/* Generated startup bundle. Original sources and byte ranges: startup-bundles.json. */

/* /reading-calm.css */
/* v98: quieter reading and study surfaces. Keep the existing colour meanings,
   exact quotations, native disclosures, target sizes and saved text settings. */

/* The passage remains the focus; secondary tools do not need a second frame. */
body.reader-page .reader-guide-hint {
  padding: .7rem .9rem;
  border: 0;
  border-inline-start: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
}
body.reader-page .reader-marker-key {
  padding-inline: 0;
  border: 0;
  background: transparent;
}
body.reader-page a.reader-lesson-signpost,
body.reader-page .reader-lesson-menu > summary.reader-lesson-signpost {
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--learn-lesson-tint);
  color: var(--learn-lesson);
  font-weight: 650;
}
body.reader-page .reader-lesson-menu[open] > summary.reader-lesson-signpost {
  border-color: var(--learn-lesson);
}
body.reader-page .reader-lesson-choices {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: .6rem .85rem;
  border: 0;
  border-inline-start: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
}
body.reader-page .reader-lesson-choices > p {
  padding-block: .2rem .5rem;
  font-size: .95rem;
  font-weight: 650;
}
body.reader-page a.reader-lesson-choice {
  gap: .65rem;
  padding: .65rem .25rem;
  border: 0;
  border-block-start: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-block-size: 44px;
}
body.reader-page .reader-lesson-choice > .le-icon { margin-block-start: .2rem; }
body.reader-page .reader-lesson-choice small {
  margin-block-end: .1rem;
  font-weight: 600;
  font-size: .82rem;
}
body.reader-page .reader-lesson-choice strong { font-weight: 650; }
body.reader-page .reader-lesson-choice .reader-lesson-focus {
  margin-block: .2rem 0;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 400;
}
body.reader-page .reader-lesson-more {
  padding-block-start: .35rem;
  border-block-start: 1px solid var(--line);
}
body.reader-page a.reader-hadith-signpost {
  background: var(--learn-source-tint);
  border: 1px solid color-mix(in srgb,var(--learn-source) 40%,transparent);
  border-radius: .65rem;
  gap: .4rem;
  padding: .35rem .6rem;
  min-block-size: 44px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
body.reader-page .reader-hadith-signpost .reader-report-count {
  display: inline-grid;
  place-items: center;
  min-inline-size: 1.5rem;
  min-block-size: 1.5rem;
  padding-inline: .3rem;
  border-radius: .4rem;
  background: var(--learn-source);
  color: var(--learn-source-tint);
  font-size: .8rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body.reader-page a.reader-hadith-signpost:hover {
  border-color: var(--learn-source);
  background:var(--learn-source-tint);
}
body.reader-page a.reader-lesson-all { font-weight: 600; }
body.reader-page .verse-actions .verse-action:not(.reader-explain-button) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Keep a clear way back without a competing banner above the lesson title. */
.verse-discovery .vd-passage-fold {
  margin-block: .7rem;
  border-block: 1px solid var(--line);
}
.verse-discovery .vd-passage-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  min-block-size: 44px;
  padding: .6rem .2rem;
  color: var(--vd-green);
  cursor: pointer;
  list-style: none;
}
.verse-discovery .vd-passage-fold > summary::-webkit-details-marker { display: none; }
.verse-discovery .vd-passage-focus {
  font: normal 1.6rem/1.9 var(--quran-word-font, Amiri, serif);
  color: var(--vd-ink);
}
.verse-discovery .vd-passage-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.verse-discovery .vd-passage-label::after { content: '+'; margin-inline-start: .4rem; font-size: 1.2rem; }
.verse-discovery .vd-passage-fold[open] .vd-passage-label::after { content: '−'; }
.verse-discovery .vd-passage-fold[open] .vd-passage-focus { display: none; }
.verse-discovery .vd-passage-fold .vd-verse-card { border: 0; border-radius: 0; }
.verse-discovery .vd-passage-fold .vd-verse-copy { border-inline-start: 0; padding-inline: .2rem; }
.verse-discovery .vd-passage-fold > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.verse-discovery .vd-section-nav button {
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}
.verse-discovery .vd-section-nav button[aria-current] {
  border-block-end-color: var(--vd-green);
  background: transparent;
  box-shadow: none;
}
.verse-discovery .vd-actions { gap: .25rem 1rem; }
.verse-discovery .vd-actions button {
  background: transparent;
  border-color:var(--line);
  padding-inline:.6rem;
  text-decoration:none;
}
body:not([data-profile="kids"]) .ye-overview-nav {
  padding: .2rem 0 .6rem;
  margin-block: .2rem 1rem;
  border: 0;
  border-block-end: 1px solid var(--ye-edge);
  border-radius: 0;
  background: transparent;
}
body:not([data-profile="kids"]) .ye-overview-actions :is(.ye-overview-link, .li-return) {
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body:not([data-profile="kids"]) .ye-overview-actions { gap: .3rem 1.35rem; }
body:not([data-profile="kids"]) .ye-course h1 {
  font-size: clamp(1.65rem, 3.3vw, 2.15rem);
  max-inline-size: 36ch;
  font-weight: 750;
}
body:not([data-profile="kids"]) .ye-course .ye-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .7rem;
  margin-block: 1rem;
  border-block-end: 1px solid var(--ye-edge);
}
body:not([data-profile="kids"]) .ye-course .ye-jumps button {
  display: inline-flex;
  flex-direction: row;
  flex: 0 1 auto;
  gap: .4rem;
  min-block-size: 44px;
  min-height: 44px;
  padding: .55rem .55rem .65rem;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: .95rem;
}
body:not([data-profile="kids"]) .ye-course .ye-jumps [data-ye-jump="reason"] {
  border-block-end-color: var(--ye-teal);
  background: transparent;
}
body:not([data-profile="kids"]) .ye-jumps strong { font-weight: 650; }
body:not([data-profile="kids"]) .ye-course .ye-jumps button svg {
  inline-size: 1.1rem;
  block-size: 1.1rem;
}
body:not([data-profile="kids"]) .ye-verse {
  border: 1px solid var(--ye-edge);
  border-block-start: 2px solid var(--ye-teal);
  border-radius: .75rem;
  box-shadow: none;
}
body:not([data-profile="kids"]) .ye-meaning { max-inline-size: 70ch; }
/* The lesson's report action uses the shared, visible riwāyāt treatment. */

/* Make the report's teaching and its optional margin note distinct. */
.vh-shelf .vh-report > summary { padding-block: .85rem; }
.vh-shelf .vh-report > summary > strong { font-weight: 700; }
.vh-report-body :is(.vh-teaching p, .vh-relation p) { max-inline-size: 68ch; }
.vh-report-body .vh-teaching { border-inline-start-width: 2px; }
.vh-report-body .vh-reading-note {
  padding: .45rem .8rem;
  border-inline-start-width: 2px;
  border-radius: .2rem .5rem .5rem .2rem;
}
.vh-report-body .vh-reading-note > summary { font-weight: 650; }
.vh-report-body .vh-reading-note .vh-note-phrase { font-size: 1.25rem; }
.vh-report-body .vh-report-links { gap: .15rem 1rem; }

/* Search keeps its tiles, with colour concentrated in the type and icon. */
.lesson-index .li-scope-menu a { border-block-start-width: 2px; padding: .85rem; }
.lesson-index .li-scope-menu strong { font-weight: 700; font-size: 1rem; }
.lesson-index .li-ayah-group li { border-inline-start-width: 2px; }
.lesson-index .li-open { gap: .65rem; min-block-size: 0; padding: .85rem; }
.lesson-index .li-card-icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  border-radius: 0;
  background: transparent;
}
.lesson-index .li-open strong { font-weight: 650; font-size: 1rem; }
.lesson-index .li-card-action { margin-block-start: .4rem; font-weight: 500; }
.lesson-index .li-card-context {
  display: block;
  margin-block-start: .4rem;
  max-inline-size: 68ch;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}
.lesson-index .li-type { font-weight: 600; }
.lesson-index .li-ayah-group[data-li-relation] ul { grid-template-columns: minmax(0, 1fr); }

/* Reading and study keep their own actions in the foreground. Installation,
   the tour and release status remain available from Home, Guide and Settings. */
body:is(.reader-page, .learn-page) .topbar :is(.pwa-install-trigger, .app-tour-trigger, .mushaf-beta-badge) {
  display: none !important;
}

/* Help is available in one quiet disclosure; the lesson index remains visible. */
body.reader-page .reader-guide-hint.reader-guide-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-block: .15rem .65rem;
  padding: 0;
  border: 0;
}
.reader-guide-help { flex: 1 1 auto; min-inline-size: 0; }
.reader-guide-help > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 44px;
  width: fit-content;
  padding-block: .4rem;
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  list-style: none;
}
.reader-guide-help > summary::-webkit-details-marker { display: none; }
.reader-guide-help > summary::after { content: '+'; margin-inline-start: .25rem; }
.reader-guide-help[open] > summary::after { content: '−'; }
.reader-guide-help > summary .li-lesson-symbol { inline-size: 1rem; block-size: 1rem; }
.reader-guide-help-copy {
  max-inline-size: 64ch;
  padding: .25rem 0 .5rem .75rem;
  padding-inline: .75rem 0;
  border-inline-start: 2px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}
.reader-guide-help-copy p + p { margin-block-start: .4rem; }
.reader-guide-help > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
body.reader-page .reader-guide-index { flex: 0 0 auto; font-size: .9rem; font-weight: 600; }

/* One calm selected-ayah bar; the source text keeps the strongest contrast. */
body.reader-page .reader-dock {
  border-color: var(--line);
  box-shadow: none;
  border-radius: .65rem;
}
body.reader-page .reader-dock [data-dock]:not([data-dock="discover"]) {
  background: transparent;
}
body.reader-page .reader-view-bar { margin-block-end: .35rem; }

@media (max-width: 460px) {
  body.reader-page .reader-guide-hint.reader-guide-compact { gap: .25rem .5rem; flex-wrap: wrap; }
  .reader-guide-help > summary, body.reader-page .reader-guide-index { font-size: .88rem; }
}
@media (hover: hover) {
  body.reader-page a.reader-lesson-choice:hover { background: var(--lesson-tint); }
  body.reader-page a.reader-lesson-signpost:hover,
  body.reader-page .reader-lesson-menu > summary.reader-lesson-signpost:hover { border-color: var(--learn-lesson); }
  body.reader-page .verse-actions .verse-action:not(.reader-explain-button):hover {
    background: var(--pale);
    border-color:var(--line);
  }
  body:not([data-profile="kids"]) .ye-course .ye-jumps button:hover { border-block-end-color: var(--ye-teal); }
}
@media (max-width: 460px) {
  body.reader-page .reader-lesson-choices { padding-inline: .6rem; }
  body:not([data-profile="kids"]) .ye-course .ye-jumps { gap: .15rem .4rem; }
  body:not([data-profile="kids"]) .ye-course .ye-jumps button { padding-inline: .4rem; }
  body:not([data-profile="kids"]) .ye-overview-actions > .ye-overview-link {
    width: auto;
    justify-content: flex-start;
  }
}
@media (forced-colors: active) {
  body.reader-page a.reader-lesson-signpost,
  body.reader-page .reader-lesson-menu > summary.reader-lesson-signpost { background: Canvas; color: LinkText; border-color: LinkText; }
  body.reader-page .reader-lesson-menu > summary.reader-lesson-signpost,
  body.reader-page a.reader-hadith-signpost { border-color: LinkText; }
  body.reader-page a.reader-lesson-choice { border-color: CanvasText; }
  body.reader-page .verse-actions .verse-action { border-color: ButtonText; }
  body:not([data-profile="kids"]) .ye-course .ye-jumps button { border: 1px solid ButtonText; }
  body:not([data-profile="kids"]) .ye-course .ye-jumps [data-ye-jump="reason"] { border-block-end-width: 3px; }
}


/* /daily-practice.css */
/* Quiet daily practice; the Quran remains the focus of its own reading surface. */
.daily-practice{--daily-green:#176653;--daily-green-deep:#114c3f;--daily-amber:#b06b12;--daily-soft:#eef6f1;--daily-ink:#183c34;color:var(--ink,#243f37);background:var(--panel,#fff);border:1px solid var(--line,#dce6df);border-radius:26px;padding:28px;margin-block:0 26px;max-width:1020px;margin-inline:auto;font:400 1rem/1.65 var(--font-ui,system-ui,sans-serif);box-sizing:border-box}
.daily-practice *,.daily-settings-fields *{box-sizing:border-box}
.daily-practice button,.daily-practice a,.daily-practice summary,.daily-settings-fields input{touch-action:manipulation}
.daily-practice svg{display:block;width:24px;height:24px;flex:none}
.daily-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.daily-eyebrow{font-size:.8125rem;letter-spacing:.09em;font-weight:750;color:var(--muted,#536a60)}
.daily-streak{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border-radius:30px;background:#fff4df;padding:7px 12px;color:#805014;font-size:.875rem;font-weight:600}
.daily-streak svg{width:18px;height:21px;color:#b36211}.daily-streak strong{font-size:1.0625rem}
.daily-main{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:26px}
.daily-copy h2{font-size:clamp(1.6rem,3vw,2rem);line-height:1.3;letter-spacing:-.025em;margin:0 0 10px;font-weight:750;max-width:25ch}
.daily-copy p{font-size:1rem;color:var(--muted,#536a60);margin:0 0 21px;max-width:52ch}
.daily-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 21px;border-radius:14px;background:var(--daily-green);color:#fff;text-decoration:none;font:700 1rem/1.5 var(--font-ui,system-ui,sans-serif);border:1px solid var(--daily-green);box-shadow:0 3px 0 var(--daily-green-deep)}
.daily-primary:hover{background:var(--daily-green-deep);color:#fff}.daily-primary:active{transform:translateY(1px);box-shadow:0 2px 0 var(--daily-green-deep)}
.daily-ring{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--daily-green) var(--daily-progress,0%),var(--line,#dce6df) 0);padding:7px}
.daily-ring>span{display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:50%;background:var(--panel,#fff);width:100%;height:100%}
.daily-ring strong{font-size:2rem;font-weight:750;line-height:1.2}.daily-ring strong small{font-size:1rem;font-weight:500;color:var(--muted,#536a60)}
.daily-ring em{font-style:normal;font-size:.75rem;color:var(--muted,#536a60);line-height:1.5}
.daily-path{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:26px 0 22px}
.daily-path li{min-width:0;position:relative}.daily-path a{display:flex;align-items:center;gap:11px;padding:14px 12px;min-height:79px;border:1px solid var(--line,#dce6df);background:var(--panel,#fff);border-radius:16px;text-decoration:none;color:inherit}
.daily-path a:hover{border-color:var(--daily-green)}.daily-path .is-next a{border-color:var(--daily-green);background:var(--daily-soft)}
.daily-path-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--pale,#f0f4f1);color:var(--muted,#5b7067)}
.daily-path-icon svg{width:22px;height:22px}.daily-path .is-next .daily-path-icon,.daily-path .is-complete .daily-path-icon{color:var(--daily-green);background:#dceee2}
.daily-path .is-complete .daily-path-icon{color:#fff;background:var(--daily-green)}
.daily-path-copy{display:grid;gap:3px;min-width:0}.daily-path-copy strong{font-size:1rem;line-height:1.4;font-weight:700}.daily-path-copy small{font-size:.8125rem;line-height:1.5;color:var(--muted,#536a60)}
.daily-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:4px 0 12px;max-width:430px;margin-inline:auto}
.daily-day{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;color:var(--muted,#536a60);font-size:.8125rem;line-height:1.5}
.daily-day b{width:30px;height:30px;border-radius:50%;background:var(--pale,#f0f4f1);display:grid;place-items:center;font-size:.9375rem;border:1px solid transparent;font-weight:600}.daily-day.is-active b{background:var(--daily-green);color:#fff}.daily-day.is-today b{outline:2px solid var(--daily-green);outline-offset:3px}.daily-day.is-today>span{color:var(--ink,#183c34);font-weight:700}
.daily-footline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-block:8px 20px;color:var(--muted,#536a60);font-size:.8125rem}.daily-footline strong{color:var(--ink,#183c34)}
.daily-more{border-top:1px solid var(--line,#dce6df)}.daily-more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding-top:8px;list-style:none;cursor:pointer;font-size:.9375rem;color:var(--daily-green);font-weight:650}
.daily-more>summary::-webkit-details-marker{display:none}.daily-more>summary>span{font-size:1.35rem}.daily-more[open]>summary>span{transform:rotate(180deg)}.daily-more-inner{padding-top:16px}
.daily-weekly-challenge{display:flex;align-items:center;gap:16px;padding:18px;border-radius:17px;background:var(--daily-soft)}.daily-weekly-challenge>div{flex:1;min-width:0}.daily-weekly-challenge h3{font-size:1.0625rem;margin:0 0 5px;line-height:1.5}.daily-weekly-challenge p{font-size:.875rem;margin:0 0 10px;color:var(--muted,#536a60)}.daily-challenge-icon{display:grid;place-items:center;color:var(--daily-amber);width:48px;height:48px;border-radius:14px;background:#fff4df;flex:none}.daily-challenge-icon svg{width:28px;height:28px}
.daily-weekly-challenge progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:7px;overflow:hidden;background:#d7e4db;color:var(--daily-green)}.daily-weekly-challenge progress::-webkit-progress-bar{background:#d7e4db}.daily-weekly-challenge progress::-webkit-progress-value{background:var(--daily-green);border-radius:7px}.daily-weekly-challenge progress::-moz-progress-bar{background:var(--daily-green);border-radius:7px}
.daily-milestone{font-size:.875rem;color:var(--muted,#536a60);margin:12px 0 17px}
.daily-circle-button{appearance:none;width:100%;display:flex;align-items:center;gap:13px;padding:15px 16px;min-height:64px;text-align:start;border:1px solid var(--line,#dce6df);border-radius:15px;background:var(--panel,#fff);color:var(--ink,#183c34);font:650 1rem/1.5 var(--font-ui,system-ui,sans-serif);cursor:pointer;margin-block:13px}.daily-circle-button>svg{color:var(--daily-green)}.daily-circle-button span{display:grid;gap:3px}.daily-circle-button small{font-size:.8125rem;font-weight:400;color:var(--muted,#536a60)}
.daily-personal-best,.daily-preferences{border-top:1px solid var(--line,#dce6df);margin-top:13px}.daily-personal-best>summary,.daily-preferences>summary{min-height:52px;padding-block:13px;cursor:pointer;font-size:.9375rem;font-weight:600}.daily-personal-best>p,.daily-board-empty{font-size:.875rem;color:var(--muted,#536a60);margin:0 0 12px}
.daily-best-list{list-style:none;padding:0;margin:0 0 15px}.daily-best-list li{display:flex;align-items:center;gap:13px;border-radius:11px;padding:11px 12px;font-size:.9375rem;min-height:45px}.daily-best-list li.is-current{background:var(--daily-soft)}.daily-best-list li>b{font-size:.875rem;color:var(--muted,#536a60);width:20px}.daily-best-list li>span{flex:1}.daily-best-list strong small{font-size:.8125rem;font-weight:400}
.daily-scope,.daily-settings-note{font-size:.8125rem;line-height:1.75;color:var(--muted,#536a60);margin-block:17px 0}
.daily-settings-fields{color:var(--ink,#183c34);font:400 1rem/1.65 var(--font-ui,system-ui,sans-serif);padding-block:8px 12px}
.daily-goal-options{border:0;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:8px}.daily-goal-options legend{font-weight:650;font-size:1rem;padding:0 0 10px}.daily-goal-options label{display:flex;align-items:center;gap:7px;border:1px solid var(--line,#dce6df);border-radius:11px;min-height:44px;padding:7px 11px;cursor:pointer;font-size:.9375rem}.daily-goal-options label:has(input:checked){border-color:var(--daily-green,#176653);background:var(--daily-soft,#eef6f1)}
.daily-settings-fields input{accent-color:var(--daily-green,#176653)}.daily-goal-options input{width:17px;height:17px;margin:0;flex:none}
.daily-setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;cursor:pointer;min-height:62px;border-top:1px solid var(--line,#dce6df)}.daily-setting-toggle>span{display:grid;gap:4px}.daily-setting-toggle strong{font-size:1rem;line-height:1.5;font-weight:650}.daily-setting-toggle small{font-size:.8125rem;line-height:1.6;color:var(--muted,#536a60)}.daily-setting-toggle>input{width:23px;height:23px;flex:none;margin-inline:8px}
.daily-time{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;font-size:.9375rem}.daily-time input{min-height:44px;font:400 1rem var(--font-ui,system-ui,sans-serif);padding:8px 10px;max-width:155px;border:1px solid var(--line,#dce6df);background:var(--panel,#fff);color:inherit;border-radius:10px}.daily-time input:disabled{opacity:.5}
.daily-settings-status{font-size:.875rem;color:var(--daily-green,#176653);min-height:1.4em;margin-block:12px 0}
.daily-reward{display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:13px;background:#fff5d9;color:#715111;font-size:.9375rem;line-height:1.5;margin:0 0 18px;animation:daily-arrive .25s ease-out}.daily-reward>span:first-child{font-size:1.5rem}.daily-reward>span:nth-child(2){flex:1}.daily-reward button,.daily-nudge>button{appearance:none;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:inherit;font:400 1.5rem/1 var(--font-ui,system-ui,sans-serif);cursor:pointer;border-radius:10px}
.daily-nudge{display:flex;gap:13px;align-items:flex-start;border:1px solid #a9cbbb;border-radius:17px;background:var(--daily-soft);padding:17px 13px 17px 17px;margin-top:12px;animation:daily-arrive .25s ease-out}.daily-nudge>div{flex:1;min-width:0}.daily-nudge-symbol{color:var(--daily-green);font-size:1.5rem;line-height:1.6}.daily-nudge strong{font-size:1rem}.daily-nudge p{font-size:.9375rem;color:var(--muted,#536a60);margin:5px 0 9px}.daily-nudge a{display:inline-flex;align-items:center;min-height:44px;color:var(--daily-green);font-size:.9375rem;font-weight:700;text-underline-offset:4px}.daily-storage-warning{font-size:.875rem;line-height:1.7;border-inline-start:3px solid var(--daily-amber);padding:10px 14px;background:#fff5df;border-radius:8px;color:#715111}
.daily-youth{border-top:4px solid var(--daily-green);background:linear-gradient(130deg,var(--panel,#fff) 65%,var(--daily-soft));padding-top:25px}.daily-youth .daily-primary{border-radius:16px}.daily-youth .daily-ring{background:conic-gradient(var(--daily-amber) var(--daily-progress,0%),#eceddc 0)}
.daily-practice :is(a,button,summary,input):focus-visible,.daily-settings-fields input:focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:4px}
[dir=rtl] .daily-eyebrow{letter-spacing:0}[dir=rtl] .daily-copy h2{letter-spacing:0;line-height:1.55}[dir=rtl] .daily-path-copy strong{line-height:1.65}
.dark .daily-practice{--daily-green:#82c9ae;--daily-green-deep:#a2e0c8;--daily-soft:#223e33;--daily-amber:#e8b75f}.dark .daily-primary{color:#123c30;background:#9edcc1;border-color:#9edcc1;box-shadow:0 3px 0 #5b9279}.dark .daily-primary:hover{background:#b6ead5}.dark .daily-streak,.dark .daily-challenge-icon{background:#3a3324;color:#e8c88b}.dark .daily-streak svg{color:#e4ad55}.dark .daily-path .is-next .daily-path-icon{background:#345748;color:#bfebd5}.dark .daily-path .is-complete .daily-path-icon{background:#82c9ae;color:#123c30}.dark .daily-day.is-active b{color:#123c30}.dark .daily-reward,.dark .daily-storage-warning{background:#3a3324;color:#e9cb8e}.dark .daily-youth .daily-ring{background:conic-gradient(var(--daily-amber) var(--daily-progress,0%),#35483d 0)}
@keyframes daily-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.daily-practice{padding:20px;border-radius:22px;margin-bottom:22px}.daily-topline{margin-bottom:20px;gap:8px;align-items:flex-start}.daily-eyebrow{font-size:.75rem;letter-spacing:.06em;padding-top:6px;max-width:18ch}.daily-streak{padding:6px 9px;font-size:.8125rem}.daily-main{grid-template-columns:minmax(0,1fr) 78px;gap:13px;align-items:start}.daily-copy h2{font-size:1.625rem;line-height:1.3}.daily-copy p{font-size:1rem;margin-bottom:17px}.daily-ring{width:78px;height:78px;padding:5px;margin-top:4px}.daily-ring strong{font-size:1.5rem}.daily-ring strong small{font-size:.875rem}.daily-ring em{font-size:.75rem}.daily-primary{font-size:.9375rem;padding:11px 15px;min-height:48px;max-width:100%}.daily-path{gap:8px;margin-block:24px 21px}.daily-path a{flex-direction:column;align-items:center;text-align:center;gap:7px;padding:12px 5px;min-height:119px;border-radius:14px}.daily-path-icon{width:35px;height:35px}.daily-path-copy{gap:3px}.daily-path-copy strong{font-size:.9375rem}.daily-path-copy small{font-size:.75rem;line-height:1.5}.daily-footline{font-size:.75rem;gap:6px;padding-bottom:13px}.daily-week{gap:3px}.daily-day{font-size:.75rem}.daily-day b{width:27px;height:27px}.daily-more>summary{font-size:.875rem}.daily-weekly-challenge{padding:14px;gap:12px}.daily-weekly-challenge h3{font-size:1rem}.daily-circle-button{padding:13px 12px;font-size:.9375rem}.daily-youth{padding-top:18px}.daily-goal-options{gap:6px}.daily-goal-options label{font-size:.875rem;padding-inline:9px}.daily-time{flex-wrap:wrap;padding-block:4px 12px}.daily-nudge{gap:8px;padding:13px 9px 13px 13px}.daily-nudge-symbol{display:none}.daily-scope{font-size:.8125rem}}
@media(max-width:350px){.daily-practice{padding:16px}.daily-main{grid-template-columns:minmax(0,1fr)}.daily-ring{display:none}.daily-copy h2{font-size:1.5rem}.daily-primary{width:100%}.daily-streak{font-size:.75rem}.daily-path-copy strong{font-size:.875rem}.daily-weekly-challenge{padding:12px}.daily-challenge-icon{width:39px;height:42px}.daily-goal-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.daily-goal-options label{justify-content:center}}
@media(prefers-reduced-motion:reduce){.daily-reward,.daily-nudge{animation:none}.daily-primary:active{transform:none}}

/* The Quran stays the primary action even after the daily reading goal. */
.daily-quran-first{border-top:4px solid var(--daily-green);padding:22px 26px}.daily-quran-first .daily-topline{margin-bottom:13px}.daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 96px;gap:18px}.daily-quran-first .daily-ring{width:96px;height:96px}.daily-quran-first .daily-copy h2{font-size:clamp(1.6rem,3vw,2.15rem)}.daily-quran-first .daily-copy p{margin-bottom:14px}.daily-quran-first .daily-path{margin-block:20px 16px}.daily-quran-first .daily-path a{min-height:68px;padding:10px}.daily-quran-first .daily-week{padding-bottom:5px}.daily-quran-first .daily-footline{padding-bottom:12px}.daily-quran-first .daily-more>summary{min-height:44px}@media(max-width:560px){.daily-quran-first{padding:18px 16px}.daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 78px;gap:10px}.daily-quran-first .daily-ring{width:78px;height:78px}.daily-quran-first .daily-ring strong{font-size:1.5rem}.daily-quran-first .daily-copy p{font-size:.9375rem}.daily-quran-first .daily-primary{min-height:44px;padding:9px 16px}.daily-quran-first .daily-path{gap:6px}.daily-quran-first .daily-path a{padding:8px 5px}.daily-quran-first .daily-path-icon{display:none}}

.daily-sitting-choice{margin:0 0 .75rem;padding:0 0 .75rem;border-block-end:1px solid var(--line);color:var(--ink)}
.daily-sitting-choice label,.daily-sitting-offer{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.daily-sitting-choice label{font-weight:650;justify-content:space-between}
.daily-sitting-choice select{color:var(--ink);font:inherit;font-weight:600;min-block-size:44px;width:auto;max-width:100%;padding-inline:.65rem;border:1px solid var(--line);border-radius:.65rem;background:var(--panel)}
.daily-sitting-offer{margin-block:.25rem 0;font-variant-numeric:tabular-nums}
.daily-sitting-offer .duration-badge[role=img]{align-self:center}
.daily-sitting-offer a,.sitting-nav a,.sitting-return{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:650;text-decoration:none}
.daily-sitting-offer a{margin-inline-start:auto}
.daily-sitting-choice small{display:block;line-height:1.5;color:var(--muted)}
.quran-sitting{max-width:46rem;margin:0 auto;padding:clamp(.25rem,1vw,.75rem);color:var(--ink);min-inline-size:0}
.sitting-nav{display:flex;align-items:center;justify-content:space-between;gap:.25rem 1rem;flex-wrap:wrap;margin-block-end:.65rem;font-size:.875rem}
.sitting-nav .sitting-full{font-weight:500}
.sitting-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;align-items:center;padding-block-end:1rem}
.sitting-header h1{margin:0 0 .2rem;font-size:clamp(1.4rem,4vw,1.85rem);line-height:1.4}
.sitting-header div>span,.sitting-position{color:var(--muted);font-variant-numeric:tabular-nums}
.sitting-header .duration-badge[role=img]{align-self:center}
.quran-sitting .sitting-passages{padding-inline:clamp(.55rem,2vw,1.15rem);min-inline-size:0}
.sitting-verse{display:block;min-inline-size:0;padding-block:1rem 1.35rem;border-block-end:1px solid var(--line);scroll-margin-block-start:5rem}
.sitting-verse:last-child{border-block-end:0}
.sitting-verse-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem .65rem}
.sitting-position{font-size:.875rem}
.sitting-verse .verse-ar,.sitting-verse .verse-en,.sitting-verse .verse-transliteration{min-inline-size:0}
.sitting-verse .verse-ar{color:var(--ink);margin-block:.6rem .75rem;line-height:2.15;text-align:start;font-size:var(--arabic-size,2rem)}
.sitting-verse .verse-actions{display:flex;justify-content:flex-end;margin:0;padding:0;border:0}
.sitting-verse .verse-listen{min-width:44px;min-height:44px}
.sitting-footer{display:flex;align-items:center;gap:.25rem 1rem;flex-wrap:wrap;justify-content:space-between;margin-block-start:1rem}
.sitting-footer small{color:var(--muted);line-height:1.6}
.sitting-status{padding-block:1rem}
.sitting-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.4rem .6rem;min-width:0}
.sitting-header .sitting-meta>.duration-badge{flex:none}
.sitting-youth-finish{display:block;padding:1.15rem;border:1px solid var(--line);border-radius:1rem;background:var(--panel)}
.sitting-youth-finish h2{margin:0;font-size:1.1rem;line-height:1.5}
.sitting-youth-finish p{margin:.4rem 0 .8rem;font-size:1rem;line-height:1.65;color:var(--muted)}
.sitting-youth-finish p[role=alert]{color:var(--ink);border-inline-start:3px solid var(--green);padding-inline-start:.6rem}
.sitting-finish-actions{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}
.sitting-finish-actions button{min-height:44px;padding:.65rem .85rem;border-radius:.7rem;font:inherit;font-weight:650;cursor:pointer}
.sitting-finish-primary{background:var(--green);color:var(--on-accent,#fff);border:1px solid var(--green)}
.sitting-finish-undo{background:transparent;color:var(--ink);border:1px solid var(--line)}
.sitting-meaning{display:inline-flex;align-items:center;min-height:44px;margin-block-start:.35rem;color:var(--green);font-size:.875rem;font-weight:600;text-decoration:none}
.sitting-youth-finish :focus-visible{outline:3px solid var(--green);outline-offset:4px}
@media(max-width:380px){.sitting-header{grid-template-columns:minmax(0,1fr)}.sitting-meta{justify-content:flex-start}.sitting-youth-finish{padding:.85rem}}
.quran-sitting a:focus-visible{outline:3px solid var(--green);outline-offset:4px;border-radius:.2rem}
@media(max-width:380px){.sitting-nav{gap:0 .65rem;font-size:.8125rem}.sitting-header{column-gap:.4rem}.sitting-header h1{font-size:1.3rem}}

/* One readable date for every day: completion never replaces the date. */
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-day {
  gap:.12rem;min-block-size:74px;padding-block:.15rem;text-align:center;
}
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-day>span {
  font:500 .875rem/1.45 var(--folio-face,var(--font-ui,system-ui));white-space:nowrap;
}
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-day>b {
  position:relative;font-size:.875rem;flex:none;
}
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-mark {
  position:absolute;inset-inline-end:-.2rem;inset-block-end:-.05rem;
  display:grid;place-items:center;inline-size:.9rem;block-size:.9rem;
  color:var(--day-on-quran,var(--ys-on-accent,#fff));background:var(--day-quran,var(--ys-accent));
  border:1px solid var(--day-paper,var(--ys-paper,#fff));border-radius:50%;
}
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-mark svg {inline-size:.65rem;block-size:.65rem}
html body :is(.folio-day,.ys-reading-record) .folio-quran-week .folio-quran-today-label {
  min-block-size:1.15rem;color:var(--day-quran,var(--ys-accent));font:600 .75rem/1.5 var(--folio-face,var(--font-ui,system-ui));
}


/* /learning-circles.css */
.lc-dialog{box-sizing:border-box;border:1px solid var(--line,#d9e6df);border-radius:26px;background:var(--panel,#fff);color:var(--ink,#173b32);padding:28px;width:min(600px,calc(100% - 28px));max-height:min(90dvh,860px);overflow:auto;font:400 16px/1.65 var(--font-ui,system-ui,sans-serif);box-shadow:0 20px 80px #061e2a3b}
.lc-dialog::backdrop{background:#09252a80;backdrop-filter:blur(3px)}
.lc-dialog *{box-sizing:border-box}.lc-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.lc-heading h2{font:750 30px/1.35 var(--font-ui,system-ui,sans-serif);margin:6px 0}.lc-kicker{font-size:12px;font-weight:750;letter-spacing:.06em;color:var(--green,#216a54)}.lc-close{flex:none;font-size:28px!important;line-height:1!important;width:44px;height:44px;border-radius:50%!important;padding:0!important}.lc-intro{margin:0 0 24px;color:var(--muted,#556c64)}
.lc-dialog button,.lc-dialog input{font:inherit}.lc-dialog button{cursor:pointer;min-height:44px;border:1px solid var(--line,#d9e6df);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#173b32);font-weight:650;padding:9px 14px}.lc-dialog button:hover{background:var(--pale,#edf6f0)}.lc-dialog button:disabled{opacity:.6;cursor:wait}.lc-dialog :is(button,input,summary):focus-visible{outline:3px solid #b17e21;outline-offset:3px}
.lc-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;border-radius:16px;background:var(--pale,#edf6f0);margin-bottom:22px}.lc-mode button{border-color:transparent;font-size:14px;background:transparent}.lc-mode button[aria-pressed=true]{background:var(--panel,#fff);border-color:var(--line,#d9e6df);box-shadow:0 2px 5px #173b3210}
.lc-form{display:grid;gap:10px}.lc-form label{font-weight:650;font-size:14px;margin-top:5px}.lc-form input,.lc-invite input{width:100%;min-width:0;min-height:48px;border-radius:12px;border:1px solid var(--line,#c5d9cf);background:var(--panel,#fff);color:var(--ink,#173b32);padding:10px 13px}.lc-form input::placeholder{color:var(--muted,#52685f);opacity:1;font-size:14px}.lc-consent,.lc-note,.lc-privacy p,.lc-invite p{font-size:14px;color:var(--muted,#52685f);line-height:1.7}.lc-primary{background:var(--green,#216a54)!important;color:white!important;border-color:var(--green,#216a54)!important;padding:13px 18px!important;box-shadow:0 3px 0 #133d2e}.lc-primary:hover{filter:brightness(1.08)}
.lc-status{margin:0 0 20px;padding:12px 14px;border:1px solid #d4b974;border-radius:12px;background:var(--pale,#fff8e8);color:var(--ink,#173b32);font-size:14px}.lc-board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.lc-board-heading h3{font-size:23px;line-height:1.4;margin:3px 0;overflow-wrap:anywhere}.lc-board-heading p{margin:4px 0 0;font-size:14px;color:var(--muted,#52685f)}.lc-board-heading button{font-size:14px;flex:none}.lc-team{margin:22px 0 10px;padding:18px;border:1px solid var(--line,#dce9df);border-radius:17px;background:var(--pale,#eff7f0)}.lc-team>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.lc-team>div span{font-size:14px}.lc-team progress{width:100%;height:9px;accent-color:var(--green,#216a54);border:0;border-radius:10px;overflow:hidden;display:block;margin-top:13px}.lc-team progress::-webkit-progress-bar{background:#cbded2;border-radius:10px}.lc-team progress::-webkit-progress-value{background:#268162;border-radius:10px}.lc-team p{font-size:14px;margin:10px 0 0;color:var(--muted,#52685f)}
.lc-ranks{padding:0;list-style:none;margin:18px 0}.lc-ranks li{display:grid;grid-template-columns:34px minmax(0,1fr) 64px;align-items:center;gap:13px;padding:15px 10px;border-bottom:1px solid var(--line,#dce9df)}.lc-ranks .lc-self{background:var(--pale,#edf6f0);border-radius:13px}.lc-rank{display:grid;place-items:center;background:var(--pale,#edf6f0);border-radius:50%;width:32px;height:32px;font-weight:700;font-size:14px}.lc-member{min-width:0;display:grid;gap:3px}.lc-member strong{font-size:16px;overflow-wrap:anywhere}.lc-member small{font-size:13px;color:var(--green,#216a54)}.lc-member>span,.lc-points>span{font-size:13px;color:var(--muted,#52685f)}.lc-points{display:grid;text-align:end}.lc-points strong{font-size:21px;line-height:1.3}.lc-invite,.lc-privacy{border-top:1px solid var(--line,#dce9df);margin-top:15px;padding-top:5px}.lc-invite summary,.lc-privacy summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:650;font-size:14px}.lc-invite>div{display:flex;gap:8px}.lc-invite input{font-size:14px;letter-spacing:.02em}.lc-invite button{flex:none;font-size:14px}.lc-leave-actions{display:flex;gap:8px;flex-wrap:wrap}.lc-privacy button{font-size:14px}.lc-dialog[dir=rtl] .lc-kicker{letter-spacing:0}
@media(max-width:440px){.lc-dialog{padding:22px 18px;border-radius:22px;max-height:92dvh;width:calc(100% - 18px)}.lc-heading h2{font-size:27px}.lc-board-heading h3{font-size:21px}.lc-team{padding:15px}.lc-ranks li{gap:9px;padding-inline:6px}.lc-invite>div{flex-wrap:wrap}.lc-invite input{flex-basis:100%}.lc-mode button{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.lc-dialog *{scroll-behavior:auto!important}}
.dark .lc-primary{background:#9edcc1!important;color:#123c30!important;border-color:#9edcc1!important;box-shadow:0 3px 0 #4b8c73}
.dark .lc-primary:hover{background:#b3e9d1!important;border-color:#b3e9d1!important;filter:none}


/* /core-passages.css */
.core-passages{--cp-accent:#216b5b;--cp-wash:#edf5ef;max-width:1040px;margin:0 auto;padding:20px 22px 60px;line-height:1.7;font-size:16px;color:var(--ink,#233b34)}
.core-passages *{box-sizing:border-box}.core-passages a{color:var(--cp-accent);text-underline-offset:3px}.core-passages button,.core-passages select,.core-passages input{font:inherit}.core-passages button,.core-passages select{min-height:44px}.core-passages :focus-visible{outline:3px solid #c28a2b;outline-offset:4px}.core-passages [hidden]{display:none!important}.core-passages [tabindex="-1"]{scroll-margin-top:95px}.core-passages h1,.core-passages h2,.core-passages h3,.core-passages p{margin-top:0}.core-passages h1{font-family:var(--font-display,var(--font-ui));font-size:clamp(28px,3.6vw,42px);line-height:1.24;letter-spacing:-.025em;margin-bottom:16px}.core-passages h2{font-size:23px;line-height:1.4}.core-passages h3{font-size:18px;line-height:1.5}.core-passages p{margin-bottom:15px}.cp-heading{max-width:790px;margin:16px 0 28px}.cp-heading>p:not(.cp-eyebrow){color:#4c655c;font-size:18px}.cp-eyebrow{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#657b71;margin-bottom:12px!important}.cp-meta{font-size:13px;color:#566c62}.cp-search{max-width:740px;margin:24px 0}.cp-search label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.cp-search>div{display:flex;gap:8px}.cp-search input{width:100%;min-width:0;border:1px solid #b9cfc4;background:#fff;border-radius:10px;padding:11px 14px;color:#203d32}.cp-search button,.cp-practice button,.cp-finish>button,.core-passages [data-cp-retry]{border:0;border-radius:10px;background:#205c4d;color:white;font-weight:650;padding:10px 18px}.cp-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0}.cp-path{display:flex;gap:13px;align-items:flex-start;border:1px solid #dce8df;border-top:3px solid var(--cp-accent);border-radius:12px;padding:18px 15px;background:white;text-decoration:none;transition:background .15s,transform .15s}.cp-path:hover,.cp-path[aria-current]{background:var(--cp-wash);transform:translateY(-2px)}.cp-path-number,.cp-entry-number{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:var(--cp-wash);color:var(--cp-accent);font-size:13px;font-weight:750}.cp-path strong,.cp-path small{display:block}.cp-path strong{font-size:16px;line-height:1.45}.cp-path small{font-size:12px;line-height:1.6;margin-top:8px;color:#52665e}.cp-tawhid{--cp-accent:#415ba3;--cp-wash:#eef1fc}.cp-wilayah{--cp-accent:#7b4685;--cp-wash:#f5edf6}.cp-law{--cp-accent:#896021;--cp-wash:#faf3e5}.cp-ethics{--cp-accent:#9a4945;--cp-wash:#faf0eb}.cp-browse-note{font-size:14px;color:#5f7368}.cp-entries{border-top:1px solid #dbe6de}.cp-entry{display:flex;align-items:flex-start;gap:15px;padding:22px 8px;border-bottom:1px solid #dbe6de;text-decoration:none}.cp-entry:hover{background:#f0f6f0}.cp-entry>span:nth-child(2){flex:1;min-width:0}.cp-entry h2{font-size:19px;margin:4px 0 7px;color:#253f34}.cp-entry p{font-size:14px;color:#52695d;line-height:1.65;margin:0}.cp-entry small{font-size:12px;color:#607265}.cp-entry-arrow{margin-top:23px}.cp-paging{display:flex;justify-content:space-between;align-items:center;margin:25px 0}.cp-paging a{padding:8px 12px}.cp-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;color:#61766b;margin:10px 0 24px}.cp-breadcrumb>span:last-child{margin-inline-start:auto}.cp-jump{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.cp-jump button{background:#fff;border:1px solid #cfdfd3;border-radius:30px;color:#3b5749;padding:5px 17px;font-size:13px}.cp-jump button:hover{background:var(--cp-wash)}.cp-ayah{background:#fff;border:1px solid #d9e7dc;border-radius:16px;padding:23px 28px;box-shadow:0 6px 20px #243d2910}.cp-ayah-top{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#5e7467}.cp-ayah-top strong{font-size:14px}.cp-quran{font-family:var(--arabic,'Amiri',serif);font-size:clamp(27px,3.1vw,36px);line-height:2.25;text-align:right;color:#173f31;margin:24px 0 15px;overflow-wrap:break-word}.cp-quran .le-key{background:#fff0ba;color:inherit;box-decoration-break:clone;border-bottom:2px solid #cba54d;border-radius:3px;padding:0 2px}.cp-verse-picker{display:flex;gap:10px;align-items:center;margin-top:15px;padding-top:15px;border-top:1px solid #e5eee7;font-size:12px;color:#586e5f}.cp-verse-picker label{flex:0 0 auto}.cp-verse-picker select{flex:1;min-width:0;max-width:380px;padding:5px 10px;background:#f7faf5;border:1px solid #ceddd1;border-radius:8px;color:#294d3b}.cp-verse-picker>span{white-space:nowrap}.cp-translation{font-size:15px;line-height:1.8;color:#435f50}.cp-translation cite{font-style:normal;font-size:11px;color:#647b6b}.cp-ayah-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e5eee7;padding-top:13px;font-size:12px}.cp-ayah-actions a{min-height:36px;display:flex;align-items:center}.cp-wording{margin:28px 0;border-inline-start:3px solid var(--cp-accent);padding:0 0 0 0;padding-inline-start:22px}.cp-wording h2{font-size:16px;color:var(--cp-accent);margin-bottom:10px}.cp-keywords{font-family:var(--arabic,'Amiri',serif);font-size:25px;line-height:1.9;text-align:start;margin-bottom:6px!important}.cp-meaning{font-weight:650}.cp-section-title{display:flex;align-items:center;gap:13px;margin:38px 0 18px!important}.cp-section-title>span,.cp-practice h2>span{font-size:12px;font-weight:700;color:var(--cp-accent);letter-spacing:.08em}.cp-report{border:1px solid #dce6df;background:#fff;border-radius:13px;padding:22px 25px;margin-bottom:15px}.cp-report h3{margin:0 0 5px}.cp-speaker{font-size:12px;color:#5d7064;margin-bottom:12px!important}.cp-report blockquote{font-family:var(--arabic,'Amiri',serif);font-size:25px;line-height:2;white-space:pre-wrap;margin:14px 0 15px;padding:13px 17px;border-inline-start:3px solid var(--cp-accent);background:var(--cp-wash);border-radius:4px}.cp-report>p{font-size:15px;line-height:1.75}.cp-relation{font-size:13px!important;color:#52685b}.cp-report footer{border-top:1px solid #e7ede8;padding-top:10px;font-size:12px;line-height:1.6;color:#526658}.cp-report footer p{margin:0 0 5px}.cp-assessment{font-size:11px!important;color:#617365}.cp-report-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:7px}.cp-report-links a,.cp-report footer>a{display:inline-block;padding:4px 0}.cp-picture{margin:28px 0;background:#fff;border:1px solid #dce6df;border-radius:15px;overflow:hidden}.cp-picture img{display:block;width:100%;max-height:340px;object-fit:cover}.cp-picture figcaption{font-size:13px;line-height:1.6;padding:12px 18px;color:#516a5b}.cp-sequence{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:28px 0;padding:0}.cp-sequence li{border-radius:12px;background:var(--cp-wash);padding:16px 18px;border-top:3px solid var(--cp-accent)}.cp-sequence li>span{font-size:12px;font-weight:750;color:var(--cp-accent)}.cp-sequence p{font-size:14px;line-height:1.65;margin:7px 0 0}.cp-argument{list-style:none;padding:0;margin:0}.cp-argument li{display:flex;gap:18px;margin-bottom:22px}.cp-step{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:50%;background:var(--cp-accent);color:#fff;font-size:12px;margin-top:3px}.cp-argument li>div{flex:1;min-width:0}.cp-argument h3{margin:0 0 8px}.cp-argument p{margin-bottom:10px}.cp-step-sources{font-size:11px}.cp-objection{background:var(--cp-wash);border-radius:13px;border:1px solid #dee6df;padding:23px 25px;margin-top:28px}.cp-objection h2{font-size:18px;color:var(--cp-accent)}.cp-objection-question{font-weight:700}.cp-objection p:last-child{margin-bottom:0}.cp-boundary{margin:20px 0 28px;padding-inline-start:17px;border-inline-start:2px solid #c0cdbc;font-size:13px;color:#506452}.cp-boundary>strong{font-size:12px}.cp-boundary p{margin:5px 0}.cp-practice{background:#fffdf4;border:1px solid #e8dab1;border-radius:14px;padding:25px;margin:28px 0}.cp-practice h2{font-size:21px}.cp-practice button{background:#6d542b;font-size:13px}.cp-practice #cp-answer{border-top:1px solid #e9ddbf;margin-top:17px;padding-top:17px}.cp-practice #cp-answer p{margin-bottom:0}.cp-related{margin:30px 0}.cp-related h2{font-size:18px}.cp-related>a{display:block;margin:10px 0;font-size:14px}.cp-source-list{border-top:1px solid #dfe8df;padding-top:16px;margin-top:30px}.cp-source-list h2{font-size:13px;color:#5c705f;margin-bottom:8px}.cp-source-list ul{margin:0;padding-inline-start:20px;font-size:11px;line-height:1.7}.cp-source-list li{margin:4px 0;overflow-wrap:anywhere}.cp-finish{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid #d6e3d9;margin-top:30px;padding-top:25px}.cp-finish>button{font-size:13px}.cp-finish>p{font-size:11px;margin:0;color:#5a6e5d}.cp-finish>a{margin-inline-start:auto;text-decoration:none;max-width:60%;display:block;text-align:end}.cp-finish>a small,.cp-finish>a strong{display:block}.cp-finish>a small{font-size:11px;color:#657764}.cp-finish>a strong{font-size:15px}.core-passages[dir="rtl"]{font-size:18px}.core-passages[dir="rtl"] h1{letter-spacing:0}.core-passages[dir="rtl"] .cp-eyebrow{letter-spacing:0}.core-passages[dir="rtl"] .cp-keywords{text-align:right}.core-passages[dir="rtl"] .cp-report>p{font-size:17px}.core-passages[dir="rtl"] .cp-argument p{font-size:18px}
@media(max-width:760px){.core-passages{padding:15px 14px 45px}.cp-paths{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-path:last-child{grid-column:1/-1}.cp-ayah{padding:19px 19px}.cp-report{padding:18px}.cp-heading{margin-top:12px}.cp-finish>a{max-width:100%;width:100%;margin-top:8px}.cp-quran{font-size:30px}}
@media(max-width:450px){.core-passages{padding:12px 7px 40px;font-size:15px}.core-passages h1{font-size:28px}.cp-heading>p:not(.cp-eyebrow){font-size:16px}.cp-paths{gap:9px}.cp-path{padding:13px 10px;gap:8px}.cp-path-number{width:23px;flex-basis:23px;height:23px;font-size:11px}.cp-path strong{font-size:14px}.cp-path small{font-size:11px}.cp-jump{gap:5px}.cp-jump button{font-size:12px;padding:4px 12px}.cp-ayah{padding:17px 14px}.cp-verse-picker{flex-wrap:wrap}.cp-verse-picker label{width:100%}.cp-quran{font-size:28px;line-height:2.2}.cp-entry{gap:10px;padding:18px 3px}.cp-entry h2{font-size:17px}.cp-entry-number{flex-basis:25px;width:25px;height:25px}.cp-report{padding:16px 14px}.cp-report blockquote{padding:9px 12px;font-size:24px}.cp-section-title{font-size:21px!important;gap:10px}.cp-objection,.cp-practice{padding:18px 16px}.cp-wording{padding-inline-start:15px}.cp-sequence{grid-template-columns:1fr}.cp-picture img{max-height:240px}.cp-argument li{gap:12px}.cp-finish{gap:9px}.cp-source-list ul{padding-inline-start:16px}}
@media(prefers-reduced-motion:reduce){.cp-path{transition:none}.cp-path:hover{transform:none}}

/* v114: concise steps; the Quran and every narration remain in the reading flow. */
.core-passages{--cp-paper:#fff;--cp-edge:#cfdfd3;--cp-muted:#526658;--cp-action-ink:#fff}
.core-passages [tabindex="-1"]{scroll-margin-top:calc(var(--learn-appbar-height,110px) + var(--learn-rail-height,45px) + var(--learn-ayah-nav-height,0px) + 16px)}
.cp-lesson{max-inline-size:50rem;margin-inline:auto}.cp-heading{margin-block-end:1rem}.cp-question{max-inline-size:65ch}
.cp-jump{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem;margin-block:.65rem 1rem}
.cp-jump button{display:flex;align-items:center;gap:.4rem;justify-content:flex-start;min-height:44px;padding:.35rem .5rem;border-radius:.45rem;background:transparent;border-color:var(--cp-edge);color:var(--cp-accent);font-size:.88rem}
.cp-jump button>span,.cp-section-title>span,.cp-practice h2>span{display:inline-grid;place-items:center;flex:none;inline-size:1.4rem;block-size:1.4rem;border-radius:50%;background:var(--cp-wash);color:var(--cp-accent);font-size:.8rem;font-weight:700;letter-spacing:normal}
.cp-section-title{font-size:1.15rem!important;gap:.5rem;margin:1.6rem 0 .7rem!important}.cp-wording{margin:1.1rem 0;padding-inline-start:1rem}.cp-wording h2{margin-block:0 .35rem}.cp-wording .cp-meaning{margin-block:.25rem .45rem}
.cp-read-more,.cp-source-list{border-block-start:1px solid var(--cp-edge);padding-block:.15rem;margin-block:.6rem;background:transparent}
.cp-read-more summary,.cp-source-list summary,.cp-source-details summary{min-height:44px;align-content:center;color:var(--cp-accent);font-size:.9rem;font-weight:650;cursor:pointer}
.cp-read-more>p{margin-block:.35rem .6rem}.cp-source-list ul{font-size:.88rem;line-height:1.7}.cp-source-list li a{display:inline-flex;align-items:center;min-height:44px}
.cp-report{padding:1rem 1.1rem;background:var(--cp-paper);border-color:var(--cp-edge)}.cp-report h3{font-size:1.04rem;line-height:1.6}.cp-report blockquote{margin-block:.6rem;font-size:1.5rem;line-height:1.95}
.cp-report .cp-narration-meaning{max-inline-size:70ch;margin-block:.55rem}.cp-report .cp-relation{margin-block:.55rem;padding-inline-start:.7rem;border-inline-start:2px solid var(--cp-accent);font-size:.92rem;color:var(--cp-muted)}
.cp-reading-note{padding:.5rem .75rem;margin-block:.65rem;border-inline-start:3px solid var(--cp-accent);background:var(--cp-wash);border-radius:.3rem}.cp-reading-note p{font-size:.92rem;line-height:1.7;margin:0;max-inline-size:65ch}
.cp-report-primary{margin-block:.6rem}.cp-report-primary>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.35rem .8rem;border:1px solid var(--cp-edge);border-radius:.5rem;background:var(--cp-wash);color:var(--cp-accent);font-size:.9rem;font-weight:650;text-decoration:none}
.cp-source-grade{display:block}.cp-source-grade a{display:inline-block;padding-block:.1rem}
.cp-report footer{font-size:.84rem;line-height:1.65;border-color:var(--cp-edge);padding-block-start:.4rem;color:var(--cp-muted)}.cp-report .cp-source-citation{margin:0}.cp-source-citation a,.cp-report-links a,.cp-report footer>a{display:inline-flex;align-items:center;min-height:44px;padding-block:.2rem}
.cp-source-details{margin:0}.cp-source-details summary{font-weight:500;min-height:44px;font-size:.84rem}.cp-report .cp-assessment{font-size:.86rem!important;line-height:1.7;color:var(--cp-muted);margin-block:0 .5rem}.cp-report-links{gap:.1rem 1rem;margin:0}
.cp-step-picker{display:flex;flex-wrap:wrap;gap:.3rem;margin-block:.2rem .5rem}.cp-step-picker button{min-width:44px;min-height:44px;padding:.25rem;border:1px solid var(--cp-edge);border-radius:.45rem;background:var(--cp-paper);color:var(--cp-accent)}.cp-step-picker [aria-pressed=true]{background:var(--cp-wash);box-shadow:inset 0 -3px 0 var(--cp-accent)}
.cp-argument li{margin:0;padding:.8rem 1rem;border-inline-start:3px solid var(--cp-accent);border-radius:.25rem .7rem .7rem .25rem;background:var(--cp-wash)}.cp-argument h3{margin:.2rem 0 .6rem;font-size:1.08rem;color:var(--cp-accent)}.cp-argument p{max-inline-size:68ch;line-height:1.8;margin-block:.35rem}.cp-step-position{display:block;color:var(--cp-muted);font-size:.8rem}.cp-step-sources a{display:inline-flex;align-items:center;min-height:44px;font-size:.84rem}
.cp-step-travel{display:flex;justify-content:space-between;gap:.5rem;margin-block:.65rem}.cp-step-travel button{min-height:44px;padding:.4rem .8rem;border:1px solid var(--cp-edge);border-radius:.6rem;font-size:.9rem;background:var(--cp-paper);color:var(--cp-accent)}.cp-step-travel button:last-child{background:var(--cp-accent);color:var(--cp-action-ink);border-color:var(--cp-accent)}.cp-step-travel button:disabled{opacity:.48}
.cp-objection{padding:.2rem 0;border-radius:0;border:0;border-block:1px solid var(--cp-edge);margin-block:1rem}.cp-boundary{font-size:.9rem;color:var(--cp-muted);margin-block:1rem}.cp-practice{padding:1.1rem;margin-block:1.2rem}.cp-practice h2{font-size:1.15rem}.cp-finish{margin-block-start:1.2rem;padding-block-start:1rem}.cp-finish>button{background:transparent;color:var(--cp-accent);border:1px solid var(--cp-edge);font-size:.88rem}.cp-finish>p:empty{display:none}.cp-finish>a small{font-size:.85rem}
body.dark .core-passages,body.dark .cp-lesson{--cp-accent:#97d6c7;--cp-wash:#213c35;--cp-paper:#192e2b;--cp-edge:#45635c;--cp-muted:#b4ccc3;--cp-action-ink:#183632}
body.dark .core-passages :is(.cp-ayah,.cp-practice){background:var(--cp-paper);border-color:var(--cp-edge)}body.dark .core-passages :is(.cp-speaker,.cp-meta,.cp-breadcrumb,.cp-finish>p,.cp-finish>a small,.cp-ayah-top,.cp-verse-picker,.cp-translation,.cp-translation cite){color:var(--cp-muted)}
@media(max-width:400px){.cp-jump{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-report{padding:.85rem .75rem}.cp-argument li{padding:.65rem .75rem}.cp-step-travel button{font-size:.84rem;padding-inline:.6rem}}


/* /amal-tracker.css */
.amal-tracker{--at-green:var(--green,#176653);--at-soft:var(--pale,#eef6f1);font:400 1rem/1.7 var(--font-ui,system-ui,sans-serif);color:var(--ink,#203e36);background:var(--panel,#fff);border:1px solid var(--line,#d9e5de);border-radius:22px;padding:24px;margin-block:22px;overflow-wrap:anywhere}
.amal-tracker *{box-sizing:border-box}.amal-tracker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}.amal-tracker-head>div>span{font-size:.75rem;letter-spacing:.06em;color:var(--muted,#52685e);font-weight:700}.amal-tracker-head h4{font-size:1.1875rem;line-height:1.5;margin:5px 0 0}.amal-tracker-mode{font-size:.8125rem;color:var(--at-green);background:var(--at-soft);padding:5px 10px;border-radius:20px;white-space:nowrap}
.amal-tracker-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.amal-tracker button{font:600 .9375rem/1.5 var(--font-ui,system-ui,sans-serif);cursor:pointer;touch-action:manipulation}.amal-tracker-steps button{flex:1 1 125px;display:grid;gap:4px;min-height:62px;border:1px solid var(--line,#d9e5de);border-radius:13px;background:var(--panel,#fff);color:var(--ink,#203e36);padding:10px 12px;text-align:start}.amal-tracker-steps button[aria-pressed=true]{border-color:var(--at-green);background:var(--at-soft)}.amal-tracker-steps small{font-size:.8125rem;font-weight:500;color:var(--muted,#52685e)}
.amal-tracker-current{text-align:center;max-width:480px;margin-inline:auto}.amal-tracker-step-label{font-size:1rem;margin:5px 0 10px;font-weight:650}.amal-tracker-phrase{font-family:var(--font-ar,"Amiri",serif);font-size:clamp(1.7rem,5vw,2.2rem);line-height:1.9;margin:10px 0 16px;color:var(--ink,#203e36)}.amal-tracker-count{display:flex;justify-content:center;align-items:baseline;gap:8px;direction:ltr;line-height:1.2;font-variant-numeric:tabular-nums;margin:12px 0 17px}.amal-tracker-count strong{font-size:3.6rem;font-weight:700}.amal-tracker-count>span{font-size:1.25rem;color:var(--muted,#52685e)}
.amal-tracker progress{appearance:none;display:block;width:100%;height:7px;border:0;border-radius:10px;background:var(--line,#d9e5de);overflow:hidden;color:var(--at-green);margin-bottom:21px}.amal-tracker progress::-webkit-progress-bar{background:var(--line,#d9e5de)}.amal-tracker progress::-webkit-progress-value{background:var(--at-green);border-radius:10px}.amal-tracker progress::-moz-progress-bar{background:var(--at-green);border-radius:10px}
.amal-tracker-add{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;width:100%;border:1px solid var(--at-green);border-radius:16px;background:var(--at-green);color:#fff;padding:12px 20px;font-size:1.125rem!important;box-shadow:0 3px 0 color-mix(in srgb,var(--at-green) 70%,#000)}.amal-tracker-add>span{font-size:1.8rem;font-weight:400;line-height:1}.amal-tracker-add:active{transform:translateY(1px)}.amal-tracker button:disabled{cursor:default;opacity:.48}.amal-tracker-add:disabled{box-shadow:none}
.amal-tracker-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:15px 0}.amal-tracker-tools button{border:1px solid var(--line,#d9e5de);border-radius:11px;min-height:44px;padding:9px 13px;color:var(--ink,#203e36);background:var(--panel,#fff)}.amal-tracker-total{text-align:center;font-size:.9375rem;color:var(--muted,#52685e);margin:17px 0 4px}.amal-tracker-total.is-complete{font-weight:650;color:var(--at-green)}.amal-tracker-status{min-height:1.7em;text-align:center;font-size:.875rem;color:var(--at-green);margin:3px 0 14px}
.amal-tracker-adjust{border-top:1px solid var(--line,#d9e5de);margin-top:15px}.amal-tracker summary{cursor:pointer;min-height:46px;padding-block:12px;font-size:.9375rem;font-weight:600}.amal-tracker-adjust form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding-bottom:14px}.amal-tracker-adjust label{display:grid;gap:7px;flex:1;min-width:130px;font-size:.875rem}.amal-tracker-adjust input{min-height:44px;width:100%;padding:8px 12px;font:400 1rem var(--font-ui,system-ui,sans-serif);color:inherit;border:1px solid var(--line,#d9e5de);border-radius:10px;background:var(--panel,#fff)}.amal-tracker-adjust button{min-height:44px;border:1px solid var(--at-green);background:var(--at-soft);color:var(--at-green);border-radius:10px;padding:9px 16px}
.amal-tracker-source{display:block;color:var(--at-green);font-size:.875rem;line-height:1.8;padding:8px 0;text-underline-offset:4px;min-height:44px}.amal-tracker-reset{display:block;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--ink);min-height:44px;padding:8px .6rem;text-decoration:none;font-weight:500!important}.amal-tracker-confirm{border:1px solid #d9b76e;background:#fff7e5;border-radius:13px;padding:16px;margin:13px 0;color:#654b1b}.amal-tracker-confirm p{font-size:1rem;margin:0 0 12px}.amal-tracker-confirm button{min-height:44px;border:1px solid #b18c46;border-radius:10px;background:#fff;color:#654b1b;padding:9px 13px;margin-inline-end:8px;margin-block:4px}.amal-tracker-confirm button[data-amal-counter-action=cancel-reset]{background:transparent}
.amal-tracker-history{margin-top:15px;border-top:1px solid var(--line,#d9e5de)}.amal-tracker-history>summary{display:flex;align-items:center;justify-content:space-between;gap:14px}.amal-tracker-history>summary>span{color:var(--at-green);font-size:.875rem}.amal-tracker-history p,.amal-tracker-note{font-size:.8125rem;color:var(--muted,#52685e);line-height:1.8;margin:7px 0 14px}.amal-tracker-note{margin:15px 0 0}.amal-tracker-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:450px;margin:18px auto}.amal-tracker-week>div{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:.8125rem;color:var(--muted,#52685e)}.amal-tracker-week b{display:grid;place-items:center;width:30px;height:30px;background:var(--at-soft);border-radius:50%;font-size:.9375rem}.amal-tracker-week .is-complete b{background:var(--at-green);color:#fff}.amal-tracker-week .is-started b{border:1px solid var(--at-green);color:var(--at-green)}.amal-tracker-history-list{list-style:none;padding:0;margin:15px 0}.amal-tracker-history-list li{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:9px 0;border-bottom:1px solid var(--line,#d9e5de);font-size:.875rem}.amal-tracker-history-list li>span{color:var(--muted,#52685e)}
.amal-tracker-warning{font-size:.875rem;line-height:1.8;padding:12px 15px;border-inline-start:3px solid #bd8e3c;background:#fff6e4;color:#72531a;border-radius:9px;margin:12px 0 17px}.amal-tracker :is(button,input,summary,a):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}[dir=rtl] .amal-tracker-head>div>span{letter-spacing:0}
.dark .amal-tracker{--at-green:#9edcc1;--at-soft:#234235}.dark .amal-tracker-add{color:#143e31}.dark .amal-tracker-week .is-complete b{color:#143e31}.dark .amal-tracker-confirm,.dark .amal-tracker-warning{background:#3c3321;color:#eed2a0;border-color:#a48548}.dark .amal-tracker-confirm button{background:#4b3e27;color:#f4dfb8;border-color:#a48548}
@media(max-width:600px){.amal-tracker{padding:18px;border-radius:18px}.amal-tracker-head{gap:11px}.amal-tracker-head h4{font-size:1.0625rem}.amal-tracker-mode{font-size:.75rem;padding:4px 8px}.amal-tracker-steps{gap:7px}.amal-tracker-steps button{min-width:0;flex-basis:85px;padding:10px 8px;font-size:.875rem}.amal-tracker-steps small{font-size:.75rem}.amal-tracker-count strong{font-size:3.2rem}.amal-tracker-add{min-height:60px}.amal-tracker-tools{gap:8px}.amal-tracker-tools button{padding-inline:10px;font-size:.875rem}.amal-tracker-week{gap:3px}.amal-tracker-week>div{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.amal-tracker-add:active{transform:none}}

.amal-tracker-chooser{margin-bottom:17px;border-block:1px solid var(--line,#d9e5de)}.amal-tracker-chooser>summary{display:flex;justify-content:space-between;gap:12px}.amal-tracker-chooser>summary>span{color:var(--muted,#52685e);font-weight:400}.amal-tracker-chooser .amal-tracker-steps{max-height:310px;overflow-y:auto;padding:4px;margin:0 0 13px}.amal-tracker-chooser .amal-tracker-steps button{flex-basis:160px}.amal-tracker-total:focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px;border-radius:6px}
.amal-tracker-research{margin-top:12px;border-top:1px solid var(--line,#d9e5de)}.amal-tracker-research>summary{min-height:44px;padding-block:10px;font-size:.875rem;color:var(--muted,#52685e);cursor:pointer}
.amal-tracker-reading-state{display:grid;justify-items:center;gap:10px;margin:16px 0 22px}.amal-tracker-reading-state>span{display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:var(--at-soft);color:var(--at-green)}.amal-tracker-reading-state>strong{font-size:1.125rem;line-height:1.5}.amal-tracker-reading-state.is-complete>span{background:var(--at-green);color:var(--panel,#fff)}.amal-tracker-reading-toggle[aria-pressed=true]{background:var(--at-soft);color:var(--at-green);box-shadow:none}.amal-tracker-reading-toggle:focus-visible{outline:3px solid var(--at-green);outline-offset:4px}.dark .amal-tracker-reading-state.is-complete>span{color:#173d30}

.amal-counter-actions{display:flex;align-items:center;justify-content:center;gap:clamp(.4rem,2vw,.75rem)}
.amal-counter-actions>.amal-tracker-add,.amal-counter-actions>.amal-tracker-next-set{flex:1;min-width:0;min-height:54px;width:auto}
.amal-counter-actions .amal-tracker-add bdi{font-size:1.4rem;font-weight:700}
.amal-counter-actions>.amal-counter-round{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line,#cedbd2);border-radius:50%;color:var(--at-green);background:var(--panel,#fff)}
.amal-tracker .amal-counter-undo{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.25rem .6rem;border:0;border-radius:.5rem;background:transparent;color:var(--at-green);font-weight:600}
.amal-counter-undo svg{width:1rem;height:1rem}
.amal-tracker .amal-counter-undo:disabled{display:none}
.amal-tracker-status:empty{min-height:0;margin:0}
.amal-tracker-head h4{margin:0}
.amal-tracker .amal-tracker-count{margin:.5rem 0}
.amal-tracker .amal-tracker-current progress{margin-bottom:.7rem}

/* Keep reset and the full-screen launcher away from the repetitive tap target. */
.amal-counter-actions:has([data-amal-counter-focus]){display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:.25rem .55rem}
.amal-counter-actions:has([data-amal-counter-focus])>.amal-tracker-add,
.amal-counter-actions:has([data-amal-counter-focus])>.amal-tracker-next-set{grid-row:1;grid-column:1/-1;min-block-size:60px}
.amal-counter-actions:has([data-amal-counter-focus])>.amal-counter-round{grid-row:2;align-self:center}
.amal-counter-actions:has([data-amal-counter-focus])>[data-amal-counter-action=subtract]{grid-column:1}
.amal-counter-actions:has([data-amal-counter-focus])>[data-amal-counter-action=reset-step]{grid-column:3}
.amal-counter-actions>[data-amal-counter-focus]{grid-row:2;grid-column:2;display:inline-flex!important;justify-self:center;align-items:center;justify-content:center;gap:.4rem;inline-size:auto;min-inline-size:44px;padding:.2rem .65rem!important;border:0;border-radius:.5rem!important;background:transparent}
.amal-counter-actions>[data-amal-counter-focus] span{font-size:.875rem}

/* Counter colours refer to a visible act and stay paired with a name and glyph. */
[data-counter-theme]{--count-solid:#665078;--count-bright:#dac6ea}
[data-counter-theme="takbir"]{--count-solid:#805524;--count-bright:#efd09b}
[data-counter-theme="tahmid"]{--count-solid:#456047;--count-bright:#c6dfb3}
[data-counter-theme="tasbih"]{--count-solid:#16635f;--count-bright:#b3ded7}
[data-counter-theme="sajdah"]{--count-solid:#81495b;--count-bright:#efc5ce}
[data-counter-theme="rakah"]{--count-solid:#636034;--count-bright:#ded8aa}
[data-counter-theme="ziyara"]{--count-solid:#386571;--count-bright:#bce2e6}
[data-counter-theme]{--counter-accent:var(--count-solid);--counter-paper:color-mix(in srgb,var(--count-solid) 8%,var(--panel,#fff))}
:is(.dark,[data-theme=dark]) [data-counter-theme]{--counter-accent:var(--count-bright);--counter-paper:color-mix(in srgb,var(--count-bright) 12%,var(--panel,#192825))}
.amal-tasbih-focus .tasbih-title,.sc-page .sourced-counter-title{display:flex;align-items:center;gap:clamp(.65rem,2vw,1.1rem);text-align:start}
.counter-art{display:block;flex:none;object-fit:contain;border:0;background:transparent}
.amal-tasbih-focus .tasbih-title .counter-art{inline-size:clamp(3.5rem,10vw,5rem);block-size:auto}
.sc-page .sourced-counter-title .counter-art{inline-size:clamp(3rem,9vw,4rem);block-size:auto;align-self:flex-start}
.sc-page .sourced-counter-title h1{margin-block:.1rem .3rem}
.amal-tasbih-focus .tasbih-title h1,.amal-tasbih-focus .tasbih-title p{margin-block:0}
.amal-tasbih-focus .amal-guide-tracker,.sc-page .amal-tracker[data-amal-standalone]{border:0;background:transparent;box-shadow:none}
.amal-tasbih-focus .amal-tracker{margin-block:.35rem .75rem;border:0;border-radius:0;background:transparent;padding:0}
.amal-tracker .tasbih-phrases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;max-inline-size:30rem;isolation:isolate;margin:.5rem auto .8rem;border-bottom:1px solid var(--line,#d4ded7)}
.tasbih-phrases button{display:flex;align-items:center;justify-content:center;gap:.35rem;position:relative;min-block-size:46px;padding:.35rem .15rem;background:transparent;border:0;color:var(--muted,#52655e);border-radius:.5rem .5rem 0 0;font-size:.94rem}
.tasbih-phrases button[aria-pressed="true"]{color:var(--counter-accent);background:var(--counter-paper)}
.tasbih-phrases button[aria-pressed="true"]::after{content:"";position:absolute;inset-inline:.4rem;inset-block-end:0;block-size:3px;border-radius:2px;background:currentColor}
.tasbih-phrases svg{flex:none;inline-size:18px;block-size:18px}
.amal-tracker [data-counter-theme].amal-tracker-current{--at-green:var(--counter-accent)}
.amal-tracker-current .amal-counter-actions:has(.amal-count-pad){display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:.35rem .5rem}
.amal-tracker-current .amal-counter-actions>.amal-count-pad{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;grid-column:1/-1;grid-row:1;min-block-size:clamp(8.25rem,22vh,11.5rem);inline-size:100%;padding:.65rem 1rem;border:0;border-radius:1.25rem;color:#fff;background:var(--count-solid);box-shadow:none;touch-action:manipulation;user-select:none;transform:none}
.amal-tracker-current .amal-count-pad:not(:disabled):active{background:color-mix(in srgb,var(--count-solid) 83%,black);transform:none}
.amal-tracker-current .amal-count-pad .amal-tracker-count{display:flex;align-items:baseline;justify-content:center;gap:.4rem;margin:0;color:inherit;font-variant-numeric:tabular-nums;line-height:1.1}
.amal-tracker-current .amal-count-pad .amal-tracker-count strong{color:inherit;font-size:clamp(2.75rem,10vw,4rem);line-height:inherit}
.amal-tracker-current .amal-count-pad .amal-tracker-count>span{color:inherit;font-size:clamp(1.2rem,4vw,1.5rem);line-height:inherit}
.amal-tracker-current .amal-count-pad .amal-pad-caption{display:flex;align-items:center;justify-content:center;gap:.4rem;color:inherit;font-size:1rem;font-weight:600}
.amal-pad-caption svg{width:1.15rem;height:1.15rem;flex:none}
.amal-tracker-current .amal-counter-actions>progress{grid-column:1/-1;grid-row:2;margin:.1rem 0 .35rem;height:.32rem}
.amal-tracker-current .amal-counter-actions:has(.amal-count-pad)>:is(.amal-counter-round,[data-amal-counter-focus]){grid-row:3}
.amal-tracker-current .amal-counter-actions:has(.amal-count-pad)>[data-amal-counter-action=subtract]{grid-column:1}
.amal-tracker-current .amal-counter-actions:has(.amal-count-pad)>[data-amal-counter-action=reset-step]{grid-column:3}
.amal-tracker[data-amal-standalone] .amal-counter-undo:disabled{display:inline-flex;visibility:hidden}
.amal-tasbih-focus .amal-tracker-current .amal-tracker-phrase{margin:.15rem 0 .5rem}
.amal-tasbih-focus .amal-tracker-step-label{font-size:.96rem;margin:.2rem auto;color:var(--muted,#53645e)}
@media(max-width:360px){.tasbih-phrases button{gap:.18rem;font-size:.85rem}.tasbih-phrases svg{width:15px;height:15px}}
@media(forced-colors:active){.amal-tracker-current .amal-count-pad,.tasbih-phrases button[aria-pressed="true"]{border:2px solid ButtonText}}
.amal-tracker [data-amal-standalone-status]:not(.sc-live-error){position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.amal-phrase-pages{display:grid;align-items:center}
.amal-phrase-pages>span{grid-area:1 / 1}
.amal-phrase-pages>[aria-hidden=true]{visibility:hidden}
.amal-phrase-nav{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.2rem auto .6rem}
.amal-phrase-nav button{min-inline-size:44px;min-block-size:44px;padding:.25rem .6rem;border:0;border-radius:.45rem;background:transparent;color:var(--counter-accent,var(--green))}
.amal-phrase-nav button:disabled{color:var(--muted);opacity:.55}
.amal-phrase-nav output{font-size:.88rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.counter-context>summary{min-block-size:44px;cursor:pointer;align-content:center;color:var(--green);font-weight:600}
@media print{.amal-tracker .amal-phrase-pages{display:block}.amal-phrase-pages>[aria-hidden=true]{visibility:visible}.amal-phrase-nav{display:none}}
.dua-dialog .dua-repeat[data-counter-theme] button[data-dua-repeat-change="1"],
.shirazi-native-passage .gr-counter[data-counter-theme]>button.gr-count-primary{background:var(--count-solid);border-color:var(--count-solid);color:#fff}

/* A counted bead is filled, the next bead is outlined, and the figure remains readable with colour disabled. */
svg.count-bead-strand{display:block;width:min(15.5rem,90%);height:auto;inline-size:min(15.5rem,90%);block-size:auto;margin-inline:auto;overflow:visible;transform:none;flex:none}
.count-bead-strand polyline{fill:none;stroke:currentColor;stroke-width:.75;opacity:.55}
.count-bead-strand .counted{fill:currentColor;stroke:currentColor;stroke-width:1.4}
.count-bead-strand .waiting,.count-bead-strand .next-bead{fill:var(--count-solid,#16635f);stroke:currentColor;stroke-width:1.05;opacity:.66}
.count-bead-strand .next-bead{stroke-width:2;opacity:1}
[dir=rtl] svg.count-bead-strand{transform:scaleX(-1)}
html body.simple-shell .amal-guide.amal-tasbih-focus{background:transparent;border:0;box-shadow:none;padding-inline:0}
.amal-tasbih-focus .tasbih-title{padding-block:.2rem .55rem}
.amal-tasbih-focus .tasbih-title .counter-art{border-radius:50%;aspect-ratio:1;inline-size:3.2rem}
.amal-tasbih-focus .tasbih-phrases{margin-block:.5rem .35rem}
.amal-tasbih-focus .tasbih-metadata{display:flex;align-items:center;justify-content:space-between;gap:.35rem .85rem;flex-wrap:wrap;color:var(--muted);font-weight:500;font-size:.9rem;min-block-size:2rem}
.amal-tasbih-focus .tasbih-metadata .duration-scope{margin:0;text-align:end}
.tasbih-set-total bdi{font-weight:700;font-variant-numeric:tabular-nums}
.amal-tasbih-focus .amal-tracker-current .amal-tracker-phrase{font-size:clamp(2rem,8vw,3rem);margin:.5rem 0 .15rem;line-height:1.7}
.amal-tasbih-focus .dua-phrase-help{border:0;padding:0;margin:.15rem auto 1rem;background:transparent;text-align:center}
.amal-tasbih-focus .dua-phrase-help p{margin:.15rem auto}
.amal-tasbih-focus .dua-phrase-help p small{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.amal-tasbih-focus .amal-tracker-current .amal-count-pad{position:relative;isolation:isolate;min-block-size:10.5rem;padding:.35rem 1.25rem .8rem;gap:0;border-radius:2.2rem 2.2rem 1.3rem 1.3rem}
.amal-tasbih-focus .amal-count-pad .count-bead-strand{height:3.8rem}
.amal-tasbih-focus .amal-count-pad .amal-tracker-count{margin-block:-1.1rem .25rem}
.amal-tasbih-focus .amal-count-pad .amal-pad-caption{font-size:.92rem}


/* /sourced-counters.css */
.sc-page{max-width:44rem;margin:0 auto;padding:clamp(.75rem,3vw,1.5rem);color:var(--text,inherit)}
.sc-page>header h1{margin:.65em 0 .25em;font-size:clamp(1.65rem,5vw,2.3rem);line-height:1.2;text-wrap:balance}
.sc-page>header p{margin:0 0 1.1rem;line-height:1.6}
.sc-links a,.sc-related a{display:flex;align-items:center;gap:.5em}
.sc-links a,.sc-related a,.sc-reference summary{min-height:44px;align-content:center}
.sc-page .amal-tracker-head>div,.sc-page .amal-tracker-research{display:none}
.sc-page .amal-tracker-head{justify-content:flex-end}
.sc-plan{margin-block:1rem}.sc-plan>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:650}
.sc-reference{margin-block:1rem;border-block-start:1px solid var(--line,#c8d5c9);padding-block:.35em}
.sc-reference summary{cursor:pointer;font-weight:650}
.sc-related{margin-block:1rem}.sc-related h3{font-size:1rem}
.sc-related a,.sc-page .sc-links a,.sc-page .sc-links a:visited{color:var(--at-green,var(--green,#176653));width:fit-content;margin-block:.35rem;padding:0 .75em;border:1px solid var(--line,#c8d5c9);border-radius:.6rem;text-decoration:none;font-weight:600}
.sc-reference a{text-decoration:underline;text-underline-offset:.18em}
.sc-page a:focus-visible,.sc-reference summary:focus-visible,.sc-related a:focus-visible{outline:3px solid currentColor;outline-offset:3px}

.sc-page .amal-tracker-instruction{margin-block:1rem;text-align:start}
.sc-page .amal-tracker-instruction>p{font-size:1.25rem;line-height:1.9;margin-block:.4rem}

.sc-page .amal-tracker-next-set{display:block;margin:0 auto 1rem;padding:.65rem 1.1rem;border-radius:.75rem;border:1px solid var(--line);background:var(--paper);color:inherit;font:inherit;font-weight:650;cursor:pointer}

.sc-page .amal-tracker-current{margin-block:.4rem .65rem}
.sc-page .sc-undo{display:block;min-height:44px;min-width:5rem;margin:.3rem auto 0;padding:.35rem .9rem;background:transparent;border:0;border-radius:.5rem;color:var(--at-green);font-weight:600}
.sc-page .sc-undo:disabled{opacity:.55}
.sc-page .sc-undo:enabled:hover{background:var(--at-soft)}
.sc-page .sc-adjust-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-block:0 .8rem}
.sc-page .sc-adjust-actions button{border-color:var(--line);background:transparent;color:inherit}
.sc-page .amal-tracker-adjust{margin-top:.25rem}
.sc-page .amal-tracker-next-set{width:100%;min-height:56px;margin:0;background:var(--at-green);color:var(--panel,#fff);font-weight:700}
.sc-page [data-amal-current-count]:focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:4px;border-radius:.4rem}
.sc-page .sc-live:not(.sc-live-error){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sc-page .sc-live-error{margin-block:.45rem;color:inherit;font-size:.9rem}

.sc-links{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-block:.55rem}
.sc-page .sc-links a{margin:0;min-height:44px;padding:.4rem .8rem}
.sc-page .sc-links a:hover{background:var(--at-soft,var(--pale,#eef6f1));text-decoration:none}

.sc-time-left{display:inline-flex;align-items:center;gap:.3em;color:var(--muted);font-size:.8125rem;white-space:nowrap}
.sc-count-done{color:var(--green);font-weight:700;line-height:1.4}
.sc-related a{max-inline-size:100%;overflow-wrap:anywhere}
.sc-related a>.duration-badge,.sc-related a>.sc-time-left,.sc-related a>.sc-count-done{flex:none;align-self:center;margin-inline-start:auto}


/* /duration.css */
/* One unoutlined face and its minute value share a single, quiet area of colour. */
.duration-badge[role=img]{
  --duration-ink:#124f43;--duration-paper:#e0f3e9;
  display:inline-flex;align-items:center;gap:.28em;
  vertical-align:middle;justify-self:start;align-self:start;
  box-sizing:border-box;inline-size:max-content;min-block-size:1.35em;
  padding-block:.14em;padding-inline:.34em .4em;margin:0;border:0;border-radius:1em;
  color:var(--duration-ink);background:var(--duration-paper);
  font:600 max(.875rem,12px)/1.15 var(--font-ui,system-ui,sans-serif);
  font-variant-numeric:tabular-nums;letter-spacing:normal;text-decoration:none;white-space:nowrap;
}
.duration-badge[role=img][lang=en]{direction:ltr}
.duration-badge[role=img][lang=ar]{direction:rtl}
.duration-badge[data-duration-band=medium]{--duration-ink:#694411;--duration-paper:#fbedd6}
.duration-badge[data-duration-band=long]{--duration-ink:#55365f;--duration-paper:#f0e8f5}
.duration-badge[data-duration-band=variable]{--duration-ink:#3f535e;--duration-paper:#eef2f3}
body.dark .duration-badge{--duration-ink:#c7f6df;--duration-paper:#19392f}
body.dark .duration-badge[data-duration-band=medium]{--duration-ink:#ffe6b4;--duration-paper:#3d301e}
body.dark .duration-badge[data-duration-band=long]{--duration-ink:#f0dcf7;--duration-paper:#382c42}
body.dark .duration-badge[data-duration-band=variable]{--duration-ink:#d8e6ed;--duration-paper:#2b363b}
.duration-badge[role=img] .duration-symbol{
  display:block;flex:none;inline-size:.88em;block-size:.88em;max-inline-size:none;
  margin:0;padding:0;border:0;background:none;color:inherit;pointer-events:none;
}
.duration-badge[role=img] .duration-disc{fill:currentColor;stroke:none}
.duration-badge[role=img] .duration-hands{fill:none;stroke:var(--duration-paper)}
.duration-badge[role=img] .duration-value{
  display:inline-flex;align-items:baseline;column-gap:.14em;
  margin:0;padding:0;border:0;color:inherit;background:none;font:inherit;white-space:nowrap;
}
.duration-badge[role=img] .duration-value>bdo,.duration-badge[role=img] .duration-value>span{
  display:inline;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:nowrap;
}
.duration-badge[role=img] .duration-value>bdo{letter-spacing:-.018em;font-variant-numeric:tabular-nums}
.duration-badge[role=img] .duration-value>span{font-size:.68em;font-weight:600;line-height:1;letter-spacing:normal}
.duration-badge[role=img] .duration-value>span[lang=ar]{font-size:.85em;font-weight:500}
.duration-badge[role=img][data-duration-band=variable]{padding-inline:.4em;min-inline-size:1.35em;justify-content:center}
.dua-library .dua-card>.duration-badge{margin-inline:17px;margin-block:0 .65rem}
.dua-reader-title-wrap>.duration-badge,.shirazi-native-section>header>.duration-badge{margin-block-start:.3rem}
.shirazi-native-unit>.duration-badge{margin-block-end:.35rem}
:is(.shirazi-entry-title,.mafatih-readings>a,.devotion-result,.guided-counter-row)>.duration-badge{margin-block-start:.25em}
.shirazi-brief-links .duration-badge,.mafatih-source-link .duration-badge,.dua-section-components .duration-badge,.mf-chapter-list .duration-badge,.mf-reading-actions .duration-badge,.shirazi-native-unit nav .duration-badge{margin-inline-start:.4em}
.shirazi-days a:has(.duration-badge){display:flex;flex-direction:column;align-items:center;gap:.15em}
.shirazi-days a .duration-badge{align-self:center}
@font-face{font-family:"Mushaf Honorifics";src:url("/fonts/NotoSansArabic-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0028-0029,U+0600-06FF,U+FD40-FD4F,U+FDFA-FDFB}
.devotional-card-honorific{position:relative;display:inline;white-space:nowrap;unicode-bidi:isolate}
.devotional-card-honorific>.devotional-card-glyph{display:inline;padding:0;margin:0;font-family:"Mushaf Honorifics","Noto Sans Arabic",serif;font-weight:400;font-style:normal;font-size:1.1em;line-height:1;letter-spacing:normal;vertical-align:baseline;color:inherit}
.devotional-card-glyph::before{content:attr(data-mark);user-select:none}
.devotional-card-honorific-full{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (forced-colors:active){
  .duration-badge[role=img]{--duration-paper:Canvas;--duration-ink:CanvasText;color:CanvasText;background:Canvas}
  .duration-badge[role=img] .duration-symbol{color:CanvasText;forced-color-adjust:none}
  .duration-badge[role=img] .duration-hands{stroke:Canvas}
}
.aq-library .aq-link:has(.duration-badge){display:flex;flex-wrap:wrap;gap:.25rem .6rem}
.aq-library .aq-link>.duration-badge{align-self:center}
.mf-print-practice .duration-badge,.mf-print-steps>summary .duration-badge{margin-inline-start:.4em}
.duration-scope{margin-block:.45rem}
.duration-scope>summary{cursor:pointer;line-height:1.5;min-block-size:44px;align-content:center}

.mg-duration-help .duration-examples{
  display:grid;list-style:none;gap:.35em;margin:.5em 0;padding:0;
}
.mg-duration-help .duration-examples li{
  display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;column-gap:.5em;
}


/* /amal-guides.css */
/* Calm Aʿmāl library. Source review belongs to the Researcher profile. */
body:not([data-profile="researcher"]) [data-amal-research],
body:not([data-profile="researcher"]) .amal-guide-sources,
body:not([data-profile="researcher"]) .amal-books,
body:not([data-profile="researcher"]) .dua-audio-research,
body:not([data-profile="researcher"]) .amal-reading-research,
body:not([data-profile="researcher"]) .amal-tracker-research,
body:not([data-profile="researcher"]) .aridha-research,
body:not([data-profile="researcher"]) .shirazi-research{display:none!important}
body[data-profile="researcher"] [data-amal-practice]{display:none!important}
.amal-curated,.amal-guide{color:var(--ink);min-width:0}
.amal-collection-intro{font-size:1rem;line-height:1.8;color:var(--muted);margin:0 0 1rem}
.amal-collection-rows{padding:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.amal-collection-rows .amal-guide-row{border-bottom:1px solid var(--line);border-radius:0}
.amal-related-gesture{border:1px solid var(--line);border-radius:14px;padding:0 1rem;margin:1.25rem 0}
.amal-related-gesture>summary{min-height:50px;display:flex;align-items:center;cursor:pointer;color:var(--green);font-size:.95rem;font-weight:650}
.amal-related-gesture>p{font-size:.9rem;line-height:1.7;color:var(--muted)}
.amal-gesture-tile{margin:1.2rem 0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel);min-width:0}
.amal-gesture-tile>a{display:flex;align-items:center;gap:1rem;color:var(--ink);padding:1rem;text-decoration:none;min-height:72px}
.amal-gesture-tile-images{display:flex;flex:0 0 auto;gap:3px;border-radius:9px;overflow:hidden;max-width:46%}
.amal-gesture-tile-images img{width:58px;height:58px;object-fit:cover;object-position:52% 25%;transform:none!important}
.amal-gesture-tile strong{display:block;font-size:1rem;line-height:1.5}.amal-gesture-tile small{display:block;color:var(--muted);font-size:.875rem;line-height:1.6;margin-top:4px}
.amal-gesture-tile-sources{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;padding:.3rem 1rem .7rem;border-top:1px solid var(--line)}
.amal-gesture-tile-sources>a{color:var(--green);font-size:.875rem;line-height:1.5;min-height:44px;display:flex;align-items:center;text-underline-offset:3px}
.amal-gesture-tile a:focus-visible,.amal-sahifa-gesture:focus-visible{outline:3px solid var(--gold,#af8b45);outline-offset:-3px}
.amal-sahifa-row-copy{flex:1;min-width:0}.amal-sahifa-row-copy>small{display:block;font-size:.75rem;color:var(--muted);margin:0 0 .5rem}
.amal-sahifa-gesture{flex:0 0 56px;display:flex;flex-direction:column;align-items:center;min-height:44px;color:var(--green);text-decoration:none;text-align:center;gap:3px;padding:5px;font-size:.65rem;line-height:1.4}
.amal-sahifa-gesture img{width:44px;height:40px;object-fit:cover;border-radius:6px;transform:none!important}
.amal-guide-row-copy small{font-size:.875rem}.amal-guide-row-copy em{font-size:.8rem}.amal-guide .amal-guide-intro>div>p{font-size:1rem}.amal-guide-steps li>p{font-size:1rem}.amal-guide-subtitle{font-size:1rem}
.amal-guide .amal-source-list p,.amal-guide-notes li{font-size:.875rem}.amal-source-list a{font-size:.9rem}
.amal-guide .amal-sahifa-row .amal-guide-link{font-size:.9rem}
@media(max-width:650px){.amal-collection-rows{grid-template-columns:1fr}.amal-gesture-tile>a{gap:.75rem;padding:.8rem}.amal-gesture-tile-images img{width:37px;height:52px}.amal-sahifa-gesture{flex-basis:48px}.amal-gesture-tile strong{font-size:.95rem}}
.cal-amal.is-guide>header{margin-bottom:14px}
.cal-amal.is-guide>header>h1,.cal-amal.is-guide>header>p{display:none}
.cal-amal.is-guide .cal-breadcrumb{padding-bottom:0}
.calendar-page.is-amal-view .cal-toolbar,.calendar-page.is-amal-view .cal-purpose-switch{display:none}
.amal-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:6px 0 26px}
.amal-feature-card{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:start;border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:0;overflow:hidden;color:var(--ink);transition:border-color .15s,transform .15s}
.amal-feature-card:hover,.amal-guide-row:hover{border-color:var(--green)}
.amal-feature-card:active{transform:translateY(1px)}
.amal-feature-card>img{width:100%;height:130px;object-fit:cover;object-position:center 48%;background:#fff8ec;transform:none!important}
.amal-feature-count{height:130px;display:flex;align-items:center;justify-content:center;gap:7px;background:var(--pale);color:var(--dark);font:700 30px/1 var(--font-ui)}
.amal-feature-count>span{font-size:17px;color:var(--muted)}
.amal-feature-card .amal-guide-row-copy{padding:16px 18px 18px;gap:6px}
.amal-guide-row-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.amal-guide-row-copy strong{font-size:16px;line-height:1.5;font-weight:750}
.amal-guide-row-copy small{font-size:12px;line-height:1.7;color:var(--muted)}
.amal-guide-row-copy em{font-style:normal;font-size:11px;color:var(--green);font-weight:650}
.amal-feature-card .amal-guide-row-arrow{display:none}
.amal-overview-group{border:1px solid var(--line);border-radius:16px;background:var(--panel);margin:14px 0;overflow:hidden}
.amal-overview-group>h3,.amal-overview-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:700;line-height:1.5;margin:0;padding:17px 19px;min-height:56px;color:var(--ink)}
.amal-overview-group>summary{cursor:pointer;list-style:none}
.amal-overview-group>summary::after{content:'+';color:var(--green);font-size:20px}
.amal-overview-group[open]>summary::after{content:'−'}
.amal-overview-group>summary>span,.amal-overview-group>h3>span{margin-inline-start:auto;font-size:11px;color:var(--muted);font-weight:500}
.amal-guide-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 8px 8px;gap:2px}
.amal-guide-row{display:flex;gap:15px;justify-content:space-between;align-items:center;text-align:start;border:1px solid transparent;background:none;border-radius:10px;padding:13px 12px;min-height:78px;color:var(--ink)}
.amal-guide-row .amal-guide-row-copy strong{font-size:14px}
.amal-guide-row-arrow{color:var(--green);flex-shrink:0;font-size:21px}
.amal-guide{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:28px}
.amal-guide-heading{margin-bottom:20px}
.amal-guide-eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:1px;color:var(--green);line-height:1.7;margin-bottom:10px}
.amal-guide-heading h1{font:750 clamp(25px,3vw,34px)/1.3 var(--font-ui);letter-spacing:-.7px;margin:0 0 8px}
.amal-guide-subtitle{color:var(--muted);font-size:14px;line-height:1.7;margin:0}
.amal-guide-intro{margin-bottom:22px}
.amal-guide-intro.has-image{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:center}
.amal-guide-intro>div>p{font-size:15px;line-height:1.9;margin:0 0 18px}
.amal-guide-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.amal-guide-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.amal-guide-actions>button>svg{flex:none}
.amal-guide-primary,.amal-guide-source-button{min-height:44px;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:650}
.amal-guide-primary{display:flex;gap:16px;align-items:center;background:var(--dark);border:1px solid var(--dark);color:#fff}
.amal-guide-source-button{border:1px solid var(--line);background:var(--panel);color:var(--green)}
.amal-guide-image{margin:0;min-width:0}
.amal-guide-image>img{width:100%;height:auto;display:block;border:1px solid #e8decd;border-radius:15px;background:#fff8ec;transform:none!important}
.amal-guide-image>figcaption{font-size:11px;line-height:1.75;color:var(--muted);padding-top:9px}
.amal-guide-steps{margin:24px 0}
.amal-guide h2,.amal-guide h4{font-size:16px;line-height:1.6;margin:0 0 14px}
.amal-guide-steps>ol{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.amal-guide-steps li{display:flex;align-items:flex-start;gap:13px}
.amal-guide-steps li>b{display:grid;place-items:center;background:var(--pale);color:var(--green);border-radius:50%;width:28px;height:28px;flex:0 0 28px;font-size:12px;margin-top:2px}
.amal-guide-steps li>p{margin:0;font-size:14px;line-height:1.9}
.amal-guide-text{padding:21px;background:var(--light);border-radius:13px;margin:20px 0}
.amal-guide-text .amal-guide-arabic{font-family:var(--arabic);font-size:clamp(24px,3vw,32px);line-height:2.1;color:var(--ink);margin:6px 0 14px}
.amal-guide-text p:not(.amal-guide-arabic){font-size:13px;line-height:1.85;margin:8px 0}
.amal-guide-text>small{font-size:11px;line-height:1.8;color:var(--muted)}
.amal-guide-links{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}
.amal-guide-link{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:start;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--green);font-size:13px;font-weight:650;text-decoration:none;padding:11px 13px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}
.amal-guide-link:hover{background:var(--pale)}
.amal-guide-tracker{scroll-margin-block:100px;margin:26px 0}
.amal-guide .amal-tracker .amal-tracker-phrase{font:clamp(25px,3vw,32px)/1.9 var(--arabic);margin:10px 0 14px;color:var(--ink)}
.amal-guide-sources{margin-top:27px;border-top:1px solid var(--line);scroll-margin-block:100px}
.amal-guide-sources>summary{font-size:14px;font-weight:700;padding:17px 0;cursor:pointer;color:var(--green)}
.amal-guide-notes{padding-inline-start:20px;margin:0 0 20px}
.amal-guide-notes li{font-size:12px;line-height:1.9;color:var(--muted);margin:10px 0}
.amal-source-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.amal-source-list>li{border-top:1px solid var(--line);padding-top:14px;min-width:0}
.amal-source-list a{display:block;color:var(--green);font-size:13px;font-weight:650;line-height:1.8;overflow-wrap:anywhere}
.amal-source-list p{color:var(--muted);font-size:12px;line-height:1.85;margin:7px 0}
.amal-source-kind{display:inline-block;color:var(--muted);font-size:10px;margin-bottom:5px}
.amal-prayer-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:22px 0}
.amal-prayer-map>li{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 8px;border-radius:12px;border:1px solid var(--line);background:var(--light);text-align:center}
.amal-prayer-map b{font-size:32px;line-height:1.5;color:var(--dark)}
.amal-prayer-map span{font-size:13px;font-weight:650}
.amal-prayer-map small{font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}
.amal-position-map{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:14px}
.amal-position-map>ol{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.amal-position-map li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--light);border-radius:9px;font-size:12px;line-height:1.6}
.amal-position-map li b{color:var(--green);font-size:18px}
.amal-position-map>p{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 0}
.amal-sequence{border:1px solid var(--line);border-radius:12px;margin:20px 0;padding:14px 18px}
.amal-sequence summary{min-height:30px;font-size:14px;cursor:pointer;color:var(--green);font-weight:650}
.amal-sequence ol{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
.amal-sequence li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;gap:2px 10px}
.amal-sequence li>span{font:22px/1.8 var(--arabic);text-align:start}
.amal-sequence li>small{grid-row:2;color:var(--muted);font-size:10px;line-height:1.7}
.amal-sequence li>b{grid-column:2;grid-row:1 / 3;color:var(--green);font-size:13px}
.amal-search-label{display:block;font-size:13px;font-weight:650;margin:15px 0}
.amal-search-label input{display:block;width:100%;min-height:46px;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:11px 13px;color:var(--ink);margin-top:8px;font-size:16px}
.amal-sahifa-group{border-bottom:1px solid var(--line);padding:5px 0}
.amal-sahifa-group>summary{cursor:pointer;font-size:14px;padding:14px 0;font-weight:650}
.amal-sahifa-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.amal-sahifa-row{display:flex;align-items:center;gap:10px;min-width:0}
.amal-sahifa-row>span{font-size:12px;color:var(--muted);min-width:22px;text-align:center}
.amal-sahifa-row .amal-guide-link{border:none;flex:1;padding:8px 0;font-size:12px;background:none;font-weight:500}
.amal-books .amal-source-list{padding:0 20px 20px}
.amal-legacy-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 8px 8px}
.amal-library-footer{font-size:11px;line-height:1.8;color:var(--muted);margin:18px 0 4px}
[data-amal-sahifa-row][hidden],.amal-sahifa-group[hidden],[data-amal-sahifa-empty][hidden],[data-amal-search-row][hidden],[data-amal-search-group][hidden],.amal-feature-grid[hidden]{display:none!important}
.amal-month-options{margin:8px 0 15px}
.amal-month-options>summary{font-size:12px;cursor:pointer;color:var(--muted);padding:8px 0}
.amal-month-options .cal-amal-month-filter{margin-top:10px}
[dir=rtl] .amal-guide-heading h1{letter-spacing:0}
@media(max-width:700px){.amal-feature-grid{gap:9px}.amal-feature-card>img,.amal-feature-count{height:110px}.amal-feature-count{font-size:22px;gap:4px}.amal-feature-card .amal-guide-row-copy{padding:12px}.amal-guide-row-copy strong{font-size:14px}.amal-guide-row-copy small{font-size:11px}.amal-guide{padding:22px}.amal-guide-intro.has-image{grid-template-columns:1fr;gap:17px}.amal-guide-image>img{max-height:330px;object-fit:contain}.amal-guide-rows,.amal-legacy-list,.amal-sahifa-list{grid-template-columns:1fr}}
@media(max-width:460px){.amal-feature-grid{grid-template-columns:1fr;margin-bottom:20px}.amal-feature-card{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;min-height:88px}.amal-feature-card>img,.amal-feature-count{width:92px;height:100%;min-height:88px;object-fit:cover}.amal-feature-count{font-size:17px;flex-direction:column;gap:0;line-height:1.3}.amal-feature-count>span{display:none}.amal-feature-card .amal-guide-row-copy{padding:13px 14px}.amal-feature-card .amal-guide-row-copy strong{font-size:15px}.amal-feature-card .amal-guide-row-copy small{font-size:11px}.amal-guide{padding:17px 14px;border-radius:15px}.amal-guide-heading h1{font-size:26px}.amal-guide-intro>div>p{font-size:14px}.amal-guide-subtitle{font-size:12px}.amal-guide-steps li>p{font-size:13px}.amal-guide-steps li{gap:10px}.amal-guide-text{padding:16px}.amal-position-map{padding:15px}.amal-position-map>ol,.amal-sequence ol{grid-template-columns:1fr}.amal-prayer-map>li{padding:12px 5px}.amal-prayer-map b{font-size:27px}.amal-prayer-map span{font-size:12px}.amal-prayer-map small{font-size:10px}.amal-overview-group>summary,.amal-overview-group>h3{padding:15px;font-size:14px}.amal-guide-row{padding:11px 9px}.amal-guide-links{display:grid;grid-template-columns:1fr}.amal-guide-link{font-size:12px}}
@media(prefers-reduced-motion:reduce){.amal-feature-card{transition:none}}

.devotion-segments{grid-template-columns:repeat(4,minmax(0,1fr))}.cal-amal>header h1{font-size:28px;line-height:1.4;margin:0 0 10px}.amal-sahifa-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 24px}@media(max-width:600px){.devotion-segments{grid-template-columns:repeat(2,minmax(0,1fr))}.amal-sahifa-choices{grid-template-columns:1fr}.cal-amal>header h1{font-size:24px}}

body .study-segments.devotion-segments{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important}
body .study-segments.devotion-segments>button{min-width:0!important;width:auto!important;white-space:normal;text-align:center;line-height:1.6}
.amal-browse-options{border-bottom:1px solid var(--line);margin:4px 0 12px}
.amal-browse-options>summary{display:flex;gap:12px;align-items:center;min-height:44px;cursor:pointer;list-style:none;font-size:12px;color:var(--green);font-weight:650}
.amal-browse-options>summary:after{content:'+';margin-inline-start:auto;font-size:18px}
.amal-browse-options[open]>summary:after{content:'−'}
.amal-browse-options>summary>span{color:var(--muted);font-weight:450}
.amal-browse-options .cal-amal-filters{padding-top:8px}
@media(max-width:600px){body .study-segments.devotion-segments{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .study-segments.devotion-segments>button{min-height:44px;padding:8px 6px}}

.amal-feature-count>b{font:inherit}.amal-feature-count>i{font-style:normal;font-size:17px;color:var(--muted)}@media(max-width:460px){.amal-feature-count>i{display:none}.amal-feature-count>b{display:block;line-height:1.3}}

/* Optional discovery stays compact; search and useful actions come first. */
.amal-collections{margin:10px 0 20px}.cal-amal>header{margin-bottom:14px}.cal-amal>header p{margin:0;line-height:1.6}
.amal-guide-row-copy small{font-size:14px}.amal-guide-row-copy em{font-size:13px}.amal-sahifa-group>summary{font-size:16px}
@media(max-width:600px){body .study-segments.devotion-segments{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0;margin-bottom:16px}body .study-segments.devotion-segments>button{font-size:12px;min-height:56px;padding:6px 3px;line-height:1.5}.cal-amal>header h1{font-size:24px}.amal-collections .amal-guide-rows{padding:0 6px 6px}.amal-collections .amal-guide-row{min-height:68px;padding:10px}.amal-collections>h3{min-height:44px;padding:12px 16px}.amal-collections .amal-guide-row-copy strong{font-size:15px}.amal-collections .amal-guide-row-copy small{font-size:13px}}

.amal-sahifa-selected{margin:.5rem 0 1rem;border-block:1px solid var(--line);font-size:.875rem}.amal-sahifa-selected>summary{min-height:44px;cursor:pointer;padding:.75rem 0;color:var(--green)}

/* v122: shorter browse rows and a quieter first screen. */
.cal-amal:not(.is-guide)>.amal-search-label{margin:18px 0 4px}
.cal-amal>.amal-collections{margin:8px 0}
.cal-amal>.amal-collections>summary{min-height:48px;padding:11px 16px;font-size:14px}
.cal-amal .cal-results-count{margin:8px 0;font-size:12px}
.amal-curated>.amal-overview-group:first-child{margin-top:12px}
.amal-tagged-row .amal-guide-row{width:100%;min-height:74px}
.amal-guide-row-copy small{font-size:13px;line-height:1.5}
.amal-sahifa-row{border-bottom:1px solid var(--line);padding:5px 0}
.amal-sahifa-row .amal-guide-link{min-height:48px;font-size:15px}
.amal-guide-heading{margin-bottom:12px}
.amal-guide-heading+.devotion-topic-tags{margin-bottom:12px}
.amal-guide-eyebrow{display:none}
.amal-guide-intro>div>p{line-height:1.7;margin-bottom:14px}
.amal-guide-actions:empty{display:none}
.amal-guide-intro{margin-bottom:18px}
@media(max-width:600px){.amal-guide-row-copy small{font-size:12px}.amal-sahifa-row .amal-guide-link{font-size:14px}}
.amal-research-entry{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--light);margin:16px 0}
.amal-research-entry p{font-size:14px;line-height:1.7;margin:0 0 12px}

/* v124: tools lead with their task; optional day/theme links sit afterwards. */
.amal-tool-extras{border-top:1px solid var(--line);margin:24px 0 4px;padding-top:8px}.amal-tool-extras>summary{min-height:44px;align-content:center;cursor:pointer;color:var(--green);font-weight:600;font-size:.9375rem}.amal-tool-extras .amal-cycle-inline{margin:8px 0 16px}.amal-tool-extras .devotion-tags{margin:12px 0}.amal-tool-extras>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* v130: the guide is the destination; discovery and scheduling support it. */
.amal-browse-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 18px}
.amal-browse-nav>button{display:grid;justify-items:center;align-content:center;gap:7px;min-height:76px;padding:10px 4px;border:1px solid var(--line);border-radius:16px;background:var(--panel,#fff);color:var(--green);font:inherit;cursor:pointer}
.amal-browse-nav>button>span{display:grid;place-items:center;width:32px;height:30px}.amal-browse-nav>button>strong{font-size:.875rem;line-height:1.3}.amal-browse-nav>button:hover{background:var(--light)}
.amal-browse-nav>button:focus-visible,.amal-guide-row:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.amal-guide-row{gap:13px;min-height:84px!important;padding:14px!important;align-items:center;justify-content:flex-start}
.amal-guide-symbol{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:15px;background:#e4f1e9;color:#175e4c;overflow:hidden}
.amal-guide-symbol>img{display:block;width:100%;height:100%;object-fit:cover}.amal-guide-symbol.tone-blue{background:#e5eef9;color:#305e96}.amal-guide-symbol.tone-indigo{background:#eeebfa;color:#61519a}.amal-guide-symbol.tone-gold{background:#fcf0d4;color:#926315}.amal-guide-symbol.tone-rose{background:#f8e8e6;color:#9d5251}
.amal-guide-row-copy{min-width:0}.amal-guide-row-copy strong{font-size:1rem;line-height:1.45}.amal-guide-row-copy small{font-size:.875rem!important;line-height:1.5;margin-top:4px}.amal-guide-row-copy em{font-size:.8125rem}
.amal-prayer-hub{background:transparent;border:0!important;box-shadow:none}.amal-prayer-hub>h3{padding:8px 2px 12px!important;font-size:1.125rem!important}.amal-prayer-hub>h3>span{display:none}
.amal-prayer-hub .amal-guide-rows{padding:0;gap:10px}.amal-prayer-hub .amal-tagged-row{border:1px solid var(--line);border-radius:18px;background:var(--panel,#fff);overflow:hidden}.amal-prayer-hub .amal-guide-row-featured{height:100%;border:0!important;border-radius:18px;background:transparent;text-align:start}
.amal-prayer-hub .amal-tagged-row:first-child{background:#174f45;border-color:#174f45}.amal-prayer-hub .amal-tagged-row:first-child .amal-guide-row{color:#fff}.amal-prayer-hub .amal-tagged-row:first-child small{color:#e1efe9}.amal-prayer-hub .amal-tagged-row:first-child .amal-guide-symbol{background:#f7e1a8;color:#284d3d}
[data-amal-library-section]{scroll-margin-top:90px}.amal-overview-group>summary{min-height:58px;font-size:1rem}.amal-overview-group>summary:focus-visible,.amal-overview-group>h3:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.amal-library-discovery{margin-top:20px;border-top:1px solid var(--line);padding-top:12px}.amal-time-options>summary{gap:9px;font-size:.9375rem;min-height:58px}.amal-guide .amal-guide-schedule{margin-top:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.amal-guide-schedule>summary{min-height:52px;display:flex;align-items:center;gap:10px;font-size:.9375rem;font-weight:650;color:var(--green);cursor:pointer}.amal-guide-schedule>div{padding:6px 0 16px}.amal-guide-secondary{margin:18px 0}.amal-guide-secondary>summary{font-size:1rem;font-weight:650;min-height:48px;cursor:pointer;align-content:center}.amal-guide-secondary .amal-guide-steps{margin:10px 0}.amal-guide.is-focused-guide{padding-top:18px}.is-focused-guide .amal-guide-heading{margin-bottom:14px}
.dark .amal-guide-symbol{background:#244a3d;color:#b5e6cd}.dark .amal-guide-symbol.tone-blue{background:#243d55;color:#bfd6f9}.dark .amal-guide-symbol.tone-indigo{background:#3b3154;color:#ded0ff}.dark .amal-guide-symbol.tone-gold{background:#493e27;color:#efd5a0}.dark .amal-guide-symbol.tone-rose{background:#4e3334;color:#f1beba}
@media(max-width:600px){.amal-browse-nav{gap:5px;margin:12px 0}.amal-browse-nav>button{border-radius:13px;min-height:70px;padding:8px 2px}.amal-browse-nav>button>strong{font-size:.8125rem}.amal-guide-rows{grid-template-columns:1fr}.amal-guide-symbol{flex-basis:48px;width:48px;height:48px}.amal-guide-row{padding:12px!important;min-height:82px!important}.amal-prayer-hub>h3{padding-bottom:10px!important}.amal-guide-heading h1{font-size:1.65rem}.cal-amal:not(.is-guide)>.amal-search-label{margin-top:12px}.amal-guide.is-focused-guide{padding:16px 12px}}
[hidden].amal-tagged-row,[hidden].amal-overview-group,.amal-browse-nav>button[hidden]{display:none!important}

.amal-context-action,.amal-gesture-library-item{scroll-margin-top:110px}

/* Keep guide headings clear of the fixed app toolbar when opening a practice. */
.amal-guide-heading h1{scroll-margin-top:100px}
/* A Quran-question launcher must not cover reading or counting actions here. */
body:has(#cal-amal-panel) .aa-launch{display:none}
@media(max-width:760px){.amal-guide-heading h1,[data-amal-library-section]{scroll-margin-top:140px}}
/* One primary tasbih counter, with source instructions kept close by. */
.amal-tasbih-focus .amal-guide-tracker{margin-top:18px}.amal-tasbih-focus .amal-tracker{margin-top:0}.amal-tasbih-focus .amal-tracker-head{display:none}.amal-tasbih-focus .amal-tracker-current{padding-top:12px}.amal-tasbih-focus .amal-tracker-add{min-height:88px;font-size:1.05rem}.amal-tasbih-focus .amal-tasbih-instructions{line-height:1.8}.amal-tasbih-focus .amal-tasbih-instructions li{margin:8px 0}.amal-tasbih-focus .amal-tracker-note{font-size:.875rem}.prayer-counter-tools button{text-decoration:none;border:1px solid var(--line,#d9e5de);border-radius:9px;padding:8px 12px}

.amal-tasbih-sequence{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.35rem}
.amal-tasbih-instructions .amal-tasbih-sequence li{margin:0;padding:.5rem .75rem;display:flex;gap:.75rem;align-items:center;justify-content:space-between;border-inline-start:3px solid var(--green,#315b44);background:var(--light,#eef4ef);border-radius:.35rem}
.amal-tasbih-sequence li>span{min-width:0}
.amal-tasbih-sequence b{display:block;font:normal 1.5rem/1.6 var(--arabic);text-align:start}
.amal-tasbih-sequence small{display:block;color:var(--muted);font-size:.875rem}
.amal-tasbih-sequence strong{white-space:nowrap;font-size:1rem}
.amal-tasbih-picture{margin:1rem 0;max-width:30rem}
.amal-tasbih-picture img{display:block;width:100%;height:auto;border-radius:.65rem}
.amal-tasbih-picture figcaption{font-size:.95rem;line-height:1.5;margin-block-start:.5rem}


/* /salat-guide.css */
.salat-follow{display:grid;gap:.4rem;max-width:46rem;margin:.65rem auto 1rem;color:var(--ink);text-align:start;min-width:0}
.salat-choose{display:flex;flex-wrap:wrap;gap:.45rem}
.salat-follow button,.salat-follow input,.salat-follow select,.salat-follow textarea{font:inherit}
.salat-follow button,.salat-follow select,.salat-follow textarea{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:.7rem}
.salat-follow button{min-height:44px;cursor:pointer;padding:.5rem .9rem;font-size:1rem}
.salat-follow button[aria-pressed=true]{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.salat-card{padding:clamp(.7rem,2.5vw,1rem);border:1px solid var(--line);border-radius:1rem;background:var(--panel);min-width:0}
.salat-position{display:flex;align-items:center;justify-content:space-between;gap:.35rem .6rem;font-size:.9rem}.salat-position>strong{min-width:0;line-height:1.45}
.salat-position>.salat-step-picker:only-child{margin-inline-start:auto}
.salat-position>span,.salat-qualifier{color:var(--muted)}
.salat-card progress{width:100%;height:.32rem;border:0;background:var(--line);border-radius:.5rem;accent-color:var(--green);display:block;margin:.35rem 0 .65rem;overflow:hidden}
.salat-card progress::-webkit-progress-bar{background:var(--line)}
.salat-card progress::-webkit-progress-value,.salat-card progress::-moz-progress-bar{background:var(--green)}
.salat-movement{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:start;gap:.35rem .65rem}
.salat-movement>div{min-width:0}
.salat-movement>.salat-instruction{grid-column:1/-1}
.salat-movement h2,.salat-done h2{margin:0 0 .35rem;color:var(--ink);font-size:clamp(1.3rem,4vw,1.7rem);line-height:1.3;scroll-margin-top:6rem}
.salat-instruction,.salat-movement p,.salat-disclosure p{line-height:1.65;margin:.25rem 0;font-size:1rem}
.salat-movement svg{width:100%;height:auto;transform:none!important}
.salat-recitation{margin:1rem 0 .25rem;border-inline-start:.24rem solid var(--green);background:color-mix(in srgb,var(--green) 6%,var(--panel));border-radius:.35rem;padding:.65rem 1rem}
.salat-recitation p{margin:0;text-align:start;font-family:var(--quran-font,'Amiri','Noto Naskh Arabic',serif);font-size:clamp(1.5rem,5.4vw,2.1rem);line-height:2;color:var(--ink);overflow-wrap:break-word}
.salat-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.65rem}
.salat-actions button{flex:1 1 5.5rem}.salat-actions button[disabled]{opacity:.43;cursor:default}
.salat-actions .salat-primary{background:var(--green);border-color:var(--green);color:var(--panel);font-weight:700}
.salat-disclosure,.salat-other-tools{border:0;border-block-start:1px solid var(--line);border-radius:0;padding:0 .25rem;background:var(--panel);min-width:0}
.salat-disclosure>summary,.salat-other-tools>summary{min-height:44px;cursor:pointer;padding:.4rem 0;font-size:.94rem;font-weight:600;line-height:1.5;list-style-position:inside}
.salat-disclosure[open],.salat-other-tools[open]{padding-bottom:.7rem}
.salat-disclosure label{display:block;font-size:1rem}
.salat-disclosure select,.salat-disclosure textarea{display:block;width:100%;max-width:100%;min-height:44px;padding:.5rem;margin:.4rem 0}
.salat-disclosure li{margin:.35rem 0;line-height:1.5}.salat-disclosure ul,.salat-disclosure ol{padding-inline-start:1.3rem}
.salat-follow a,.salat-disclosure a{color:var(--ink);text-decoration:underline;text-underline-offset:.18em}
.salat-help{border:0;border-bottom:1px solid var(--line);background:transparent}
.salat-follow :is(button,summary,textarea,select,a):focus-visible{outline:3px solid var(--green);outline-offset:3px}
.salat-qualifier{font-size:.9rem;margin:.3rem 0}
@media(max-width:430px){.salat-choose button{flex:1 1 auto}.salat-recitation{padding:.5rem .65rem}}
.salat-view{display:inline-flex;justify-self:start;background:var(--panel);border:1px solid var(--line);padding:.2rem;border-radius:.7rem}
.salat-view button{font-size:.95rem;border:0}
.salat-unit>ol{list-style:none;padding:0;margin:0}
.salat-unit li{padding:.8rem 0;border-bottom:1px solid var(--line)}
.salat-unit li h3,.salat-unit li p{margin:.2rem 0}
.salat-unit li>p{font-size:1rem;line-height:1.65}
.salat-actions .salat-primary{background:#096651;color:#fff;border-color:#096651}
[data-theme=dark] .salat-actions .salat-primary{background:#9ddfc9;color:#123c31;border-color:#9ddfc9}
.salat-follow .salat-focus-button{justify-self:start;display:inline-flex;gap:.5rem;align-items:center;background:var(--ink);color:var(--panel);font-weight:700;border-color:var(--ink)}
.salat-focus-button svg{width:1.2rem;height:1.2rem}
dialog.salat-focus-layer{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:0 max(1rem,env(safe-area-inset-right)) max(1.5rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));border:0;background:var(--panel);color:var(--ink);box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
dialog.salat-focus-layer::backdrop{background:var(--panel)}
.salat-focus-layer>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;z-index:1;top:0;padding:max(.75rem,env(safe-area-inset-top)) 0 .75rem;background:var(--panel);border-bottom:1px solid var(--line);max-width:46rem;margin:auto}
.salat-focus-layer>header strong{font-size:1.1rem}
.salat-focus-layer>header button{min-height:44px;cursor:pointer;font:inherit;border:1px solid var(--line);border-radius:.65rem;background:var(--panel);color:var(--ink);padding:.45rem .7rem;font-weight:650}
.salat-follow-launchers{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.salat-follow-launchers :is(.salat-focus-button,.gr-routine){min-height:44px;padding-inline:.7rem;font-size:.94rem}
.salat-focus-layer .salat-follow-launchers{display:none}
.salat-focus-layer .salat-movement h2,.salat-focus-layer .salat-unit h2{scroll-margin-top:5rem}
.salat-focus-layer .salat-choose,.salat-focus-layer .salat-length,.salat-focus-layer .salat-follow>.salat-qualifier{display:none}

.gr-follow,.gr-reading{min-width:0;color:var(--ink,#183b35);overflow-wrap:anywhere}
.gr-follow{padding:clamp(10px,2.5vw,16px);margin:10px 0;border:1px solid var(--line,#b5cbc2);border-radius:14px;background:var(--panel,#fff)}
.gr-follow h3,.gr-follow h4{margin:0 0 .65rem;color:var(--ink,#173930)}
.gr-position,.gr-actions,.gr-counter,.gr-follow-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gr-position{margin:.2rem 0 .4rem;font-size:.875rem;color:var(--muted,#50625b)}
.gr-follow-tools{margin-top:12px;justify-content:flex-start}
.gr-follow button,.gr-reading button,button.gr-routine{min-height:44px;padding:8px 14px;border-radius:10px;border:1px solid var(--line,#afc6bd);background:var(--panel,#fff);color:var(--ink,#183b35);font:inherit;cursor:pointer}
.gr-actions [data-gr-move="1"],.gr-counter [data-gr-plus]{background:#216b56;color:#fff}
.gr-follow button:disabled,.gr-reading button:disabled{opacity:.5;cursor:default}
.gr-reading{margin:.5rem 0 1rem}
.gr-passage,.gr-jump,.gr-aids{padding:8px 12px;background:var(--pale,#eaf5ef);color:var(--ink,#183b35);border-radius:10px}
.gr-passage>summary,.gr-jump>summary,.gr-aids>summary,.gr-follow-tools summary{cursor:pointer;min-height:44px;align-content:center;color:var(--ink,#233f36);font-weight:650}
.gr-aids{margin-top:8px;border-top:1px solid var(--line,#b5cbc2)}
.gr-aids p{margin:.35rem 0 .65rem}
.gr-aids p[lang="ar-Latn"]{font-style:italic}
.gr-aids small,.gr-credit{color:var(--muted,#52655d)}
.gr-verses{max-height:none;overflow:visible}
.gr-verses p.gr-verse,.gr-reading p.gr-verse{font:normal 400 clamp(23px,5vw,31px)/2.05 Amiri,serif;text-align:start;margin:.3rem 0;color:var(--ink,#193a32)}
.gr-verse small{font:normal 500 .55em/1 sans-serif;vertical-align:middle;color:var(--muted,#52655d)}
.gr-counter{justify-content:center;gap:.5rem;margin-block:.65rem .25rem}.gr-counter output{font-variant-numeric:tabular-nums}
.gr-jump{margin-top:10px}.gr-jump select{max-width:100%;width:100%;font:inherit;padding:8px;background:var(--panel,#fff);color:var(--ink,#183b35)}

.salat-course-choice{display:grid;gap:.3rem;margin-block:.25rem;font-weight:600}.salat-course-choice select{max-width:100%;min-height:44px;padding:.45rem .7rem}

.gr-passage[data-gr-active]>h4{margin:.2rem 0;font-size:1rem;color:inherit}
.gr-more-verses>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:650}

.salat-category-link{display:inline-flex;align-items:center;min-block-size:44px;font-size:.93rem;font-weight:650;text-underline-offset:.18em}
.salat-course-sections {display:flex;flex-wrap:wrap;gap:.125rem .3rem;margin:.5rem 0 .8rem}
.amal-guide .salat-course-sections a {display:flex;align-items:center;min-block-size:44px;padding:.25rem .65rem;border-radius:.6rem;color:var(--muted);font-weight:600;text-decoration:none;line-height:1.4}
.amal-guide .salat-course-sections a[aria-current="page"] {background:var(--pale);color:var(--green);box-shadow:inset 0 -2px currentColor}
.salat-course-panel>h2 {font-size:clamp(1.16rem,2.5vw,1.45rem);margin:.7rem 0 .3rem;line-height:1.45;color:var(--ink)}
.salat-course-panel>h2:focus-visible {outline:none;box-shadow:inset 3px 0 var(--green);padding-inline-start:.55rem}
[dir="rtl"] .salat-course-panel>h2:focus-visible {box-shadow:inset -3px 0 var(--green)}
.salat-course-time-scope {margin:.1rem 0 .45rem;font-size:.875rem;line-height:1.45;color:var(--muted)}
.salat-course-cards {display:grid}
.amal-guide .salat-course-cards .salat-course-card {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:clamp(.35rem,1.3vw,.8rem);min-block-size:48px;padding:.65rem .25rem;text-align:start;text-decoration:none;color:var(--green)}
.salat-course-card+.salat-course-card {border-block-start:1px solid var(--line)}
.salat-course-copy {min-inline-size:0;overflow-wrap:anywhere}
.salat-course-copy strong {display:block;font-size:1rem;font-weight:650;line-height:1.4;color:var(--ink)}
.salat-course-copy small {display:block;color:var(--muted);font-size:.875rem;line-height:1.45;margin-block-start:.125rem}
.salat-course-card::after {content:"";inline-size:.36rem;block-size:.36rem;border-block-start:1.5px solid currentColor;border-inline-end:1.5px solid currentColor;transform:rotate(45deg)}
[dir="rtl"] .salat-course-card::after {transform:rotate(-45deg)}
.amal-guide .salat-course-card:is(:hover,:focus-visible),.amal-guide .salat-course-sections a:is(:hover,:focus-visible) {background:var(--pale);color:var(--green)}
.amal-guide .salat-course-card:focus-visible,.amal-guide .salat-course-sections a:focus-visible {outline:2px solid var(--green);outline-offset:2px}
.salat-choose button[data-salat-prayer] {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.25rem .45rem}
.amal-guide-row>.duration-badge {margin-inline-start:auto;flex-shrink:0}

.gr-reading-choices{display:flex;gap:.4rem;flex-wrap:wrap}.gr-reading-choices button{min-height:44px;font:inherit;padding:.45rem .75rem;border-radius:10px;background:var(--panel,#fff);color:var(--ink,#183b35);border:1px solid var(--line,#afc6bd)}.gr-reading-choices button[aria-pressed=true]{font-weight:700;box-shadow:inset 0 -3px currentColor}

.salat-follow button.salat-reading-jump{margin:.1rem 0;color:var(--green);font-weight:650}.salat-current-readings [data-gr-active]{scroll-margin-block-start:4rem}

/* A shared reading and stage hierarchy keeps the rite's order visible. */
.salat-unit-position{font-size:.94rem;font-weight:700;color:var(--green);margin:.15rem 0 .5rem}
.salat-structure{border:1px solid var(--line);border-radius:.85rem;padding:.8rem;margin:0 0 1rem;background:var(--pale,var(--panel))}
.salat-structure>div{display:flex;gap:.6rem;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:1rem}
.salat-structure>div>span{font-size:.875rem;color:var(--muted)}
.salat-structure>ol{list-style:none;display:flex;gap:.4rem;padding:0;margin:.7rem 0}
.salat-structure li{flex:1;display:grid;justify-items:center;gap:.1rem;border:1px solid var(--line);border-radius:.65rem;padding:.45rem .15rem;color:var(--muted);background:var(--panel)}
.salat-structure li>b{font-size:1.2rem;line-height:1.3}.salat-structure li>span{font-size:.875rem}
.salat-structure li[aria-current=step]{border:2px solid var(--green);color:var(--green);font-weight:700}
.salat-structure>p{font-size:.9rem;line-height:1.6;margin:0}
.salat-current-readings{display:grid;gap:.65rem;margin-top:1rem}.salat-current-readings>.gr-reading{margin:0}
.salat-current-readings .gr-passage{border:1px solid var(--line);padding:.7rem .85rem;border-radius:.8rem}
.salat-current-readings .gr-passage>h4{font-size:1rem;font-weight:700;margin:.1rem 0 .65rem;padding-bottom:.5rem;border-bottom:1px solid var(--line)}
.salat-joined-reading{background:var(--pale,var(--panel));border:1px solid var(--line);border-radius:.8rem;padding:.7rem .85rem}
.salat-joined-reading>h4{margin:.1rem 0 .65rem;font-size:1rem;padding-bottom:.5rem;border-bottom:1px solid var(--line)}
.salat-joined-reading .gr-reading{margin:0}.salat-joined-reading .gr-passage{border:0;padding:0;border-radius:0}
.salat-joined-reading .gr-passage>h4{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.salat-basmala .gr-verse>small{display:none}.salat-joined-reading .salat-reading-cue{font-size:.9rem;line-height:1.6;margin:.4rem 0;color:var(--green)}
.salat-stage-counter{justify-content:center;padding:.35rem 0;border:0;border-radius:0;background:transparent;margin:.5rem 0}
.salat-stage-counter output{font-size:1.2rem;font-weight:750}.salat-stage-counter [data-salat-action=count]{background:var(--green);color:var(--panel)}
.salat-source-reading{margin-block:.65rem;min-width:0}.salat-source-reading [data-salat-source-passage]{min-width:0}.salat-source-reading .salat-recitation p{overflow-wrap:anywhere}.salat-source-details small{display:flex;flex-wrap:wrap;gap:.3rem .65rem;font:400 .875rem/1.6 var(--font-ui,system-ui,sans-serif)}
.salat-source-details small a,.salat-related-readings a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:.18em}
.salat-related-readings{display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin-block:1rem}.salat-related-readings a{text-decoration:none;padding:.5rem .7rem;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);font:600 .95rem/1.5 var(--font-ui,system-ui,sans-serif);max-width:100%;overflow-wrap:anywhere}
.salat-related-readings a:focus-visible,.salat-source-reading a:focus-visible{outline:3px solid var(--green);outline-offset:3px}.salat-source-reading [aria-busy=true]{min-height:3rem}

.gr-counter [data-gr-zero],.gr-counter [data-gr-minus]{display:grid;place-items:center;padding:0;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--green)}
.gr-counter>output{min-width:3.5em;text-align:center;font-size:1.3rem;font-weight:750;line-height:1.3}
.gr-counter [data-gr-plus]{min-width:44px}
.gr-reset-choice{display:flex;flex:1 1 100%;gap:.5rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.gr-reset-choice[hidden]{display:none}

.gr-follow .gr-icon-control,.gr-reading .gr-icon-control,.gr-tracked .gr-icon-control{display:inline-grid;place-items:center;flex:0 0 44px;inline-size:44px;min-inline-size:44px;block-size:44px;min-block-size:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--green);box-sizing:border-box}
.gr-icon-control>svg{inline-size:20px;block-size:20px;transform:none}
.gr-actions{justify-content:flex-end;gap:.5rem;margin-block-start:.5rem}
.gr-actions [data-gr-move="1"],.gr-counter [data-gr-plus]{background:#096651;border-color:#096651;color:#fff}
[data-theme=dark] .gr-actions [data-gr-move="1"],[data-theme=dark] .gr-counter [data-gr-plus]{background:#9ddfc9;border-color:#9ddfc9;color:#123c31}
.gr-step-picker{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;min-block-size:44px;border:1px solid var(--line);border-radius:2rem;background:var(--panel);color:var(--muted);font-size:.875rem;cursor:pointer}
.gr-step-picker>span{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .6rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.gr-step-picker svg{inline-size:16px;block-size:16px}
.gr-follow .gr-step-picker select{position:absolute;inset:0;inline-size:100%;block-size:100%;min-block-size:44px;opacity:0;margin:0;padding:0;cursor:pointer}
.gr-step-picker:focus-within{outline:3px solid var(--green);outline-offset:3px}
.gr-passage[data-gr-active] .gr-verses{max-height:none;overflow:visible;scrollbar-gutter:auto}
.gr-source{margin-block-start:.5rem;border-block-start:1px solid var(--line);font-size:.875rem}
.gr-source>summary{min-block-size:44px;align-content:center;cursor:pointer;color:var(--muted)}
.gr-source a{display:inline-flex;align-items:center;min-block-size:44px;color:var(--green)}
.gr-follow .gr-icon-control:focus-visible,.gr-reading .gr-icon-control:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.gr-restart-status{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;font-size:.875rem;color:var(--muted);margin-block-start:.4rem}
.gr-restart-status[hidden]{display:none}
button.gr-routine.gr-icon-control{display:inline-grid;place-items:center;flex:0 0 44px;inline-size:44px;min-inline-size:44px;block-size:44px;min-block-size:44px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--green)}

/* Compact controls leave the current instruction and recitation in the foreground. */
.salat-follow .salat-icon-control,.salat-focus-layer>header .salat-icon-control{display:inline-grid;place-items:center;flex:0 0 44px;inline-size:44px;min-inline-size:44px;block-size:44px;min-block-size:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--green);cursor:pointer;box-sizing:border-box}
.salat-follow .salat-icon-control svg,.salat-focus-layer>header .salat-icon-control svg{width:20px;height:20px;transform:none}
.salat-follow .salat-icon-control.salat-primary{background:#096651;color:#fff;border-color:#096651}
[data-theme=dark] .salat-follow .salat-icon-control.salat-primary{background:#9ddfc9;color:#123c31;border-color:#9ddfc9}
.salat-follow .salat-icon-control:disabled{opacity:.4;cursor:default}
.salat-navigation{align-items:center;justify-content:flex-end;gap:.5rem}
.salat-navigation>button.salat-icon-control{flex:0 0 44px}
.salat-navigation>button:not(.salat-icon-control){order:-1;flex:1 1 8rem;font-size:.94rem}
.salat-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;min-width:0}.salat-launcher-spacer{flex:1 1 0}
.salat-step-picker{position:relative;display:inline-flex;flex:0 0 auto;min-block-size:44px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:2rem;color:var(--muted);background:var(--panel);font-size:.875rem;line-height:1.3;cursor:pointer}
.salat-step-picker>span{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .6rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.salat-step-picker svg{inline-size:16px;block-size:16px}
.salat-follow .salat-step-picker select{position:absolute;inset:0;inline-size:100%;block-size:100%;min-block-size:44px;margin:0;padding:0;opacity:0;cursor:pointer}
.salat-step-picker:focus-within{outline:3px solid var(--green);outline-offset:3px}
.salat-restart{position:relative;flex:0 0 44px;inline-size:44px;block-size:44px;margin:0;padding:0;border:0;background:transparent}
.salat-restart>summary{list-style:none}
.salat-restart>summary::-webkit-details-marker{display:none}
.salat-restart[open]>summary{background:var(--pale);color:var(--green)}
.salat-reset-options{position:absolute;z-index:5;inset-block-start:calc(100% + .35rem);inset-inline-end:0;inline-size:min(18rem,calc(100vw - 3rem));padding:.7rem;border:1px solid var(--line);border-radius:.8rem;background:var(--panel);box-shadow:0 .4rem 1.5rem #0002;display:grid;gap:.4rem}
.salat-reset-options p{font-size:1rem;line-height:1.5;margin:0 0 .2rem}
.salat-reset-options small{font-size:.875rem;line-height:1.5;color:var(--muted)}
.salat-reset-options button{min-block-size:44px;text-align:start;font-size:.94rem}
.salat-source-details{margin-block-start:.3rem}
.salat-source-details small{display:flex;flex-wrap:wrap;gap:.3rem .6rem}
.salat-source-details a{min-height:44px;display:inline-flex;align-items:center}
.salat-focus-layer .salat-toolbar{margin-block:.3rem}

/* Counting is the primary repeated action; correction and navigation stay compact. */
.gr-counter>button.gr-count-primary{display:inline-grid;place-items:center;flex:0 0 64px;inline-size:64px;min-inline-size:64px;block-size:64px;min-block-size:64px;padding:0;border-radius:50%;box-sizing:border-box}
.gr-counter>button.gr-count-primary>svg{inline-size:28px;block-size:28px;width:28px;height:28px}
.salat-follow .salat-counter-launch{display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px;padding:.45rem .7rem;border:1px solid var(--green);border-radius:999px;background:var(--pale);color:var(--green);font-size:.875rem;font-weight:700;white-space:nowrap;cursor:pointer}
.salat-counter-launch svg{inline-size:20px;block-size:20px;flex:none}
.salat-toolbar{flex-wrap:wrap}

/* Everyday practice puts the chosen prayer, count and full-screen action in
   the same context. Prayer variants and display settings open on request. */
.salat-follow[data-worship-guide] .salat-context {display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap;}
.salat-follow[data-worship-guide] .salat-context .salat-toolbar {flex:1 1 auto;}
.salat-follow[data-worship-guide] .salat-prayer-switch {flex:1 1 10rem;min-inline-size:0;}
.salat-follow[data-worship-guide] .salat-prayer-switch[open] {flex-basis:100%;}
.salat-follow[data-worship-guide] .salat-prayer-switch summary {display:flex;align-items:center;gap:.55rem;min-block-size:48px;color:var(--ink);font-weight:700;cursor:pointer;}
.salat-follow[data-worship-guide] .salat-prayer-switch summary::-webkit-details-marker {display:none;}
.salat-follow[data-worship-guide] .salat-prayer-switch img {inline-size:2.55rem;block-size:2.55rem;flex:none;border-radius:.55rem;}
.salat-follow[data-worship-guide] .salat-switch-hint {color:var(--green);font-size:.875rem;text-decoration:underline;text-underline-offset:.2em;}
.salat-follow[data-worship-guide] .salat-choose {padding-block:.4rem .7rem;}
.salat-follow[data-worship-guide] .salat-card {padding:.65rem 0;border:0;border-block-start:1px solid var(--line);border-radius:0;background:transparent;}
.salat-follow[data-worship-guide] .salat-view-picker {margin:0;}
.salat-follow[data-worship-guide] .salat-stage-counter output {min-inline-size:6ch;font-variant-numeric:tabular-nums;}
.salat-follow[data-worship-guide] .salat-navigation .salat-labelled-action {display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;inline-size:auto;min-inline-size:6rem;min-block-size:48px;gap:.5rem;padding-inline:.9rem;border-radius:.7rem;}
.salat-focus-layer .salat-follow[data-worship-guide] .salat-prayer-switch {display:none;}
.salat-focus-layer:has([data-worship-guide]) {scrollbar-gutter:stable;}
.salat-course-panel>.salat-directory-title {display:flex;align-items:center;gap:.7rem;}
.salat-directory-title img {inline-size:2.75rem;block-size:2.75rem;flex:none;border-radius:.55rem;}
.salat-follow[data-worship-guide] .salat-course-context .salat-course-choice {flex:1 1 14rem;margin:0;min-inline-size:0;}
.salat-follow[data-worship-guide] .salat-course-context .salat-course-choice select {max-inline-size:100%;}
.salat-follow[data-worship-guide] .salat-alternate {margin-block:.5rem;}
@media (min-height:331px) {
  dialog.salat-focus-layer:has([data-worship-guide] .salat-navigation) {padding-block-end:calc(5rem + env(safe-area-inset-bottom));}
  .salat-focus-layer [data-worship-guide] .salat-navigation {position:fixed;z-index:2;inset-inline:0;inset-block-end:0;max-inline-size:46rem;box-sizing:border-box;margin:0 auto;padding:.5rem max(1rem,env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));background:var(--panel);border-block-start:1px solid var(--line);justify-content:space-between;flex-wrap:nowrap;}
}


/* /amal-gestures.css */
/* Text and directions follow the interface language; anatomical images never mirror. */
.amal-gesture{color:var(--ink,#263c32);margin:24px 0;padding:22px;border:1px solid var(--line,#dfdfd3);border-radius:16px;background:var(--panel,#fffdf8);min-width:0}
.amal-gesture>header{margin-bottom:20px}
.amal-gesture-eyebrow{display:block;color:var(--green,#345b48);font:650 11px/1.6 var(--font-ui,system-ui);margin-bottom:5px}
.amal-gesture h3{font:700 clamp(19px,2.1vw,24px)/1.45 var(--font-ui,system-ui);margin:0 0 8px;letter-spacing:-.25px}
.amal-gesture>header>p{font-size:13px;line-height:1.85;color:var(--muted,#627369);margin:0;max-width:80ch}
.amal-gesture-body.has-image{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:center}
.amal-gesture-figure{margin:0;min-width:0}
.amal-gesture-image-frame{position:relative;overflow:hidden;border-radius:12px;background:#fff4e1;border:1px solid #e9ddc7;direction:ltr;isolation:isolate}
.amal-gesture-image-frame>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;transform:none!important;scale:1!important;rotate:none!important}
.amal-gesture-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transform:none!important;scale:1!important;rotate:none!important}
.amal-gesture-motion path{fill:none;stroke:#214d39;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #fff9ed)}
.amal-gesture-figure figcaption{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px}
.amal-gesture-figure figcaption>span{border-radius:6px;padding:5px 8px;background:var(--pale,#eef2e7);color:var(--dark,#204735);font-size:11px;line-height:1.6}
.amal-gesture-orientation{flex-basis:100%;min-width:0;width:100%}
.amal-gesture-viewpoint{margin:3px 0 0;font-size:11px;line-height:1.75;color:var(--muted,#627369)}
.amal-gesture-diagram-details{margin-top:9px;border:1px solid var(--line,#dfdfd3);border-radius:9px;background:var(--light,#f8f7f1);overflow:hidden}
.amal-gesture-diagram-details>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;min-height:44px;padding:7px 11px;font-size:11px;font-weight:650;color:var(--green,#345b48);cursor:pointer}
.amal-gesture-diagram-details>summary::after{content:'+';font-size:17px;font-weight:400}
.amal-gesture-diagram-details[open]>summary::after{content:'−'}
.amal-gesture-diagram-details>p{margin:0;padding:0 12px 12px;font-size:11px;line-height:1.75;color:var(--muted,#627369)}
.amal-gesture-orientation-diagram{display:block;width:100%;height:auto;max-width:430px;margin:0 auto 6px;direction:ltr;transform:none!important;scale:1!important;rotate:none!important;overflow:visible}
.amal-gesture-orientation-diagram text{fill:var(--ink,#263c32);font:18px var(--font-ui,system-ui);unicode-bidi:plaintext}
.amal-gesture-orientation-diagram .gesture-diagram-task{font-size:13px;fill:var(--muted,#627369)}
.gesture-diagram-body{fill:none;stroke:#587565;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gesture-diagram-arrow{fill:none;stroke:#28533d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.gesture-diagram-plane,.gesture-diagram-active{fill:#345b48;stroke:#345b48;stroke-width:2}
.gesture-diagram-idle{fill:#f3f4ed;stroke:#8e9e93;stroke-width:2}
.gesture-diagram-reference{fill:none;stroke:#9ba99f;stroke-width:2;stroke-dasharray:5 4}
.gesture-diagram-back{fill:none;stroke:#62756c;stroke-width:6;stroke-linecap:round}
.gesture-diagram-palm{fill:none;stroke:#3c7651;stroke-width:6;stroke-linecap:round}
.amal-gesture-steps{list-style:none;display:grid;gap:14px;margin:0;padding:0}
.amal-gesture-steps>li{display:flex;gap:10px;align-items:flex-start;min-width:0}
.amal-gesture-steps>li>span{flex:0 0 25px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--pale,#eef2e7);color:var(--green,#345b48);font:650 12px/1 var(--font-ui,system-ui);margin-top:3px}
.amal-gesture-steps>li>p{margin:0;font-size:13px;line-height:1.9}
.amal-gesture-verses{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.amal-gesture-verse{display:inline-flex;gap:10px;align-items:center;min-height:44px;color:var(--green,#345b48);font-size:12px;font-weight:650;line-height:1.6;text-decoration:underline;text-underline-offset:3px;border:0;background:none;padding:3px 0;text-align:start;cursor:pointer}
.amal-gesture-evidence{border-top:1px solid var(--line,#dfdfd3);margin-top:20px}
.amal-gesture-evidence>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--green,#345b48);font-size:12px;font-weight:650;list-style:none;padding-top:4px}
.amal-gesture-evidence>summary::after{content:'+';font-size:19px;font-weight:400}
.amal-gesture-evidence[open]>summary::after{content:'−'}
.amal-gesture-notes{padding-inline-start:18px;margin:12px 0 18px;display:grid;gap:8px}
.amal-gesture-notes li,.amal-gesture-sources p,.amal-gesture-source-footnote{font-size:12px;line-height:1.85;color:var(--muted,#627369)}
.amal-gesture-excerpt,.amal-gesture-sources blockquote{font:21px/2 var(--arabic,serif);margin:12px 0;padding:10px 14px;background:var(--light,#f8f7f1);border-inline-start:2px solid var(--line,#dfdfd3);border-radius:7px;color:var(--ink,#263c32)}
.amal-gesture-sources{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.amal-gesture-sources>li{border-top:1px solid var(--line,#dfdfd3);padding-top:13px;min-width:0}
.amal-gesture-sources a{display:block;font-size:12px;font-weight:650;line-height:1.8;color:var(--green,#345b48);overflow-wrap:anywhere}
.amal-gesture-source-kind{display:block;font-size:10px;color:var(--muted,#627369);line-height:1.7;margin-bottom:4px}
.amal-gesture-sources p{margin:6px 0}
.amal-gesture-sources .amal-gesture-grade{color:var(--ink,#263c32);font-weight:600}
.amal-gesture-video{padding-block:7px;min-height:44px}
.amal-gesture-source-footnote{margin:18px 0 0;padding-top:12px;border-top:1px solid var(--line,#dfdfd3)}
.amal-gesture.is-compact{padding:17px;margin:15px 0}
.amal-gesture.is-compact h3{font-size:18px}
.amal-gesture.is-compact .amal-gesture-body.has-image{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px}
.amal-gesture-library-intro{font-size:13px;line-height:1.9;color:var(--muted,#627369);margin:8px 0 18px}
.amal-gesture-library-item{border:1px solid var(--line,#dfdfd3);background:var(--panel,#fffdf8);border-radius:12px;margin:10px 0;overflow:hidden}
.amal-gesture-library-item>summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:15px 17px;min-height:66px;align-items:center}
.amal-gesture-library-item>summary>span{font-size:14px;font-weight:650;line-height:1.6}
.amal-gesture-library-item>summary>small{font-size:11px;color:var(--muted,#627369);line-height:1.7;grid-column:1}
.amal-gesture-library-item>summary::after{content:'+';grid-column:2;grid-row:1 / 3;color:var(--green,#345b48);font-size:20px}
.amal-gesture-library-item[open]>summary::after{content:'−'}
.amal-gesture-library-item>.amal-gesture{border:0;border-top:1px solid var(--line,#dfdfd3);border-radius:0;margin:0}
.amal-gesture-library-item>.amal-gesture>header>.amal-gesture-eyebrow,.amal-gesture-library-item>.amal-gesture>header>h3{display:none}
.amal-gesture-library-item>.amal-gesture::before{content:none}
[dir=rtl] .amal-gesture h3{letter-spacing:0}
[dir=rtl] .amal-gesture-image-frame,[dir=rtl] .amal-gesture-image-frame>img,[dir=rtl] .amal-gesture-motion,[dir=rtl] .amal-gesture-orientation-diagram{transform:none!important;scale:1!important;rotate:none!important;direction:ltr}
.amal-gesture summary:focus-visible,.amal-gesture a:focus-visible,.amal-gesture-library-item>summary:focus-visible{outline:2px solid var(--green,#345b48);outline-offset:3px;border-radius:3px}
@media(max-width:700px){.amal-gesture-body.has-image,.amal-gesture.is-compact .amal-gesture-body.has-image{grid-template-columns:1fr;gap:18px}.amal-gesture-figure{max-width:560px;width:100%;margin-inline:auto}.amal-gesture{padding:18px}.amal-gesture>header{margin-bottom:16px}.amal-gesture-steps{gap:12px}}
@media(max-width:420px){.amal-gesture{padding:15px 12px;border-radius:13px}.amal-gesture h3{font-size:19px}.amal-gesture>header>p,.amal-gesture-steps>li>p{font-size:12px}.amal-gesture-figure figcaption>span{font-size:10px;padding:4px 6px}.amal-gesture-steps>li{gap:8px}.amal-gesture-library-item>summary{padding:13px}.amal-gesture-excerpt,.amal-gesture-sources blockquote{font-size:19px;padding:8px 10px}}
@media print{.amal-gesture{break-inside:avoid}.amal-gesture-evidence{break-inside:avoid}.amal-gesture-motion{print-color-adjust:exact}}

.amal-gesture-lesson{margin:1rem 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:0 1rem}.amal-gesture-lesson>summary{padding:.85rem 0;min-height:44px;cursor:pointer;font-size:1rem;font-weight:650;color:var(--green)}.amal-gesture-lesson>p{font:1.2rem/1.8 var(--arabic);margin:.5rem 0 1rem}.amal-gesture-lesson iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:10px}.amal-gesture-lesson>a{display:inline-flex;align-items:center;min-height:44px;margin:.5rem 0;color:var(--green);font-size:.9rem}

/* v120: a quiet picture cue beside the reading; details live in the guide. */
.amal-gesture-overview{margin:1rem 0;max-width:29rem;font-family:var(--font-ui,system-ui);font-size:1rem;line-height:1.5}
.amal-gesture-overview>a,.amal-gesture-cue{display:flex;align-items:center;gap:.8rem;width:fit-content;max-width:100%;min-height:64px;padding:.45rem .7rem;border:1px solid var(--line,#d7dfd5);border-radius:12px;background:var(--panel,#fffdf8);color:var(--green,#345b48);text-decoration:none;text-align:start;font-family:var(--font-ui,system-ui);font-size:1rem;line-height:1.5;word-spacing:normal;box-sizing:border-box}
.amal-gesture-overview strong,.amal-gesture-cue strong{display:block;font-size:.9375rem;line-height:1.45;font-weight:650}
.amal-gesture-overview small,.amal-gesture-cue small{display:block;font-size:.875rem;line-height:1.5;color:var(--muted,#627369);margin-top:.12rem}
.amal-gesture-miniatures{display:grid;grid-template-columns:repeat(3,40px);gap:3px;flex:none;direction:ltr}
.amal-gesture-miniatures img{display:block;width:40px;height:30px;border-radius:4px;object-fit:contain;background:#fff4e1;transform:none!important}
.amal-gesture-cue-image{display:block;position:relative;flex:none;width:72px;height:54px;border-radius:7px;overflow:hidden;background:#fff4e1;direction:ltr}
.amal-gesture-cue-image>img{display:block;width:100%;height:100%;object-fit:contain;transform:none!important;scale:1!important;rotate:none!important}
.amal-inline-gestures{display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0;word-spacing:normal}
.amal-inline-gestures .amal-gesture-cue{padding:.3rem .6rem;min-height:58px}
.amal-inline-gestures .amal-gesture-cue small{display:none}
.amal-inline-gestures .amal-gesture-cue[data-context-cue] small{display:block}
.amal-gesture-overview a:focus-visible,.amal-gesture-cue:focus-visible{outline:3px solid var(--green,#345b48);outline-offset:3px}
.amal-gesture>header>p,.amal-gesture-steps>li>p{font-size:1rem;line-height:1.85}
.amal-gesture-figure figcaption>span,.amal-gesture-viewpoint{font-size:.875rem;line-height:1.65}
.amal-gesture-figure figcaption>.amal-gesture-viewpoint{flex-basis:100%;margin:.35rem 0}
.amal-gesture-evidence>summary{font-size:.9375rem}
.amal-gesture-evidence>p,.amal-gesture-notes li,.amal-gesture-sources p,.amal-gesture-source-footnote,.amal-gesture-sources a{font-size:.9375rem;line-height:1.8}
.amal-gesture-source-kind{font-size:.8125rem}
.amal-gesture-library-item>summary>small{font-size:.875rem}
.amal-gesture-library-intro{font-size:1rem}
[dir=rtl] .amal-gesture-cue-image,[dir=rtl] .amal-gesture-cue-image>img,[dir=rtl] .amal-gesture-miniatures,[dir=rtl] .amal-gesture-miniatures>img{transform:none!important;scale:1!important;rotate:none!important;direction:ltr}
@media(max-width:420px){.amal-gesture-overview>a{gap:.65rem;padding:.4rem .55rem}.amal-gesture-miniatures{grid-template-columns:repeat(3,34px);gap:2px}.amal-gesture-miniatures img{width:34px;height:26px}.amal-gesture-overview small{font-size:.8125rem}.amal-gesture-steps>li>p{font-size:1rem}.amal-gesture-figure figcaption>span{font-size:.875rem}}
/* v122: the named action opens the full illustrated guide. */
.amal-gesture-cue.is-text,.amal-gesture-overview>.amal-gesture-cue.is-text{display:inline-flex;align-items:center;justify-content:space-between;gap:.7rem;min-height:44px;max-width:100%;padding:.5rem .7rem;border-radius:9px;box-sizing:border-box}
.amal-gesture-cue.is-text strong{font-size:.875rem;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.amal-gesture-cue.is-text>span[aria-hidden]{flex:none;font-size:1rem;line-height:1}
.amal-inline-gestures .amal-gesture-cue.is-text{min-height:44px;padding:.5rem .7rem}
.amal-gesture-cue.is-text:hover{border-color:var(--green,#345b48);background:var(--pale,#eef2e7)}
.amal-gesture-cue.is-text:hover strong{text-decoration:none}
.amal-gesture-overview:has(>.is-text){margin:.65rem 0}
.amal-context-actions{display:grid;gap:.6rem;margin:1rem 0}
.amal-context-action{border:1px solid var(--border, #dbe4df);border-radius:14px;padding:.8rem 1rem;background:var(--surface,#fff);scroll-margin-top:5rem}
.amal-context-action>summary{cursor:pointer;font-weight:650;line-height:1.6}
.amal-context-action[open]>summary{margin-bottom:.6rem}
.amal-context-reason{font-size:.9rem;line-height:1.65;margin:.5rem 0;color:var(--muted,#52665c)}
.amal-context-action>ol{margin:.6rem 0;padding-inline-start:1.3rem;display:grid;gap:.5rem;font-size:.95rem;line-height:1.7}
.amal-context-action .amal-gesture-evidence{margin-top:.8rem}

/* A compact preview only at an explicitly sourced posture cue. */
.amal-gesture-cue.is-illustrated{display:inline-flex;min-height:64px;padding:.35rem .55rem;gap:.7rem;background:var(--panel);border-color:var(--line)}
.amal-gesture-cue.is-illustrated .amal-gesture-cue-image{width:64px;height:48px;border-radius:6px;overflow:hidden;flex:none}
.amal-gesture-cue.is-illustrated .amal-gesture-cue-image img{width:100%;height:100%;object-fit:contain;transform:none!important;scale:1!important;rotate:none!important}
.amal-gesture-cue.is-illustrated strong{flex:1;font-size:.9rem;line-height:1.5}
.amal-gesture-cue.is-illustrated .amal-gesture-cue-open{font-size:1.4rem;padding-inline:.2rem;color:var(--green)}
@media(max-width:480px){.amal-gesture-cue.is-illustrated{max-width:100%;width:100%}.amal-gesture-cue.is-illustrated .amal-gesture-cue-image{width:56px;height:42px}}

/* Visible thumbnails identify each guide without expanding all eight. */
.amal-gesture-library-item>summary{grid-template-columns:80px minmax(0,1fr) auto;column-gap:14px}
.amal-gesture-library-item>summary>.amal-gesture-library-thumb{grid-column:1;grid-row:1/3;width:80px;height:60px;object-fit:contain;background:#fff4e1;border-radius:8px;direction:ltr;transform:none!important;scale:1!important;rotate:none!important}
.amal-gesture-library-item>summary>span{grid-column:2}
.amal-gesture-library-item>summary>small{grid-column:2}
.amal-gesture-library-item>summary::after{grid-column:3}
@media(max-width:420px){.amal-gesture-library-item>summary{grid-template-columns:64px minmax(0,1fr) auto;column-gap:10px}.amal-gesture-library-item>summary>.amal-gesture-library-thumb{width:64px;height:48px}}

/* The instruction appears beside its exact passage; expand it in place. */
.amal-inline-action{border:1px solid var(--line,#d9e5de);border-inline-start:4px solid var(--green,#176653);border-radius:14px;background:var(--panel,#fff);margin:12px 0;color:var(--ink,#203e36);font-family:var(--font-ui,system-ui,sans-serif);font-size:1rem;font-weight:400;letter-spacing:normal;line-height:1.6;overflow:hidden;text-align:start}
.amal-inline-action>summary{display:flex;align-items:center;gap:12px;padding:10px;min-height:86px;list-style:none;cursor:pointer}.amal-inline-action>summary::-webkit-details-marker{display:none}.amal-inline-action-picture{display:block;width:94px;flex:0 0 94px;align-self:center;line-height:0;background:#edf4ee;border-radius:11px;overflow:hidden}.amal-inline-action-picture :is(img,svg){display:block;width:100%;height:78px;object-fit:contain;direction:ltr;transform:none!important;scale:1!important;rotate:none!important}.amal-inline-action-copy{display:grid;gap:4px;min-width:0}.amal-inline-action-copy>strong{font-size:.95rem;font-weight:750;line-height:1.5}.amal-inline-action-copy>small{font-size:.78rem;font-weight:450;color:var(--muted,#52685e);line-height:1.4}.amal-inline-action-plus{font-size:1.5rem;font-weight:450;color:var(--green,#176653);margin-inline-start:auto;padding-inline:3px}.amal-inline-action[open]>summary>.amal-inline-action-plus{transform:rotate(45deg)}.amal-inline-action-body{border-top:1px solid var(--line,#d9e5de);padding:14px 16px}.amal-inline-action-body>ol{padding-inline-start:22px;margin:0 0 12px}.amal-inline-action-body>ol>li{font-size:.95rem;line-height:1.7;margin:8px 0}.amal-inline-action-body .amal-gesture-figure{max-width:330px;margin:0 auto 14px}.amal-inline-action-full{display:inline-flex;min-height:44px;align-items:center;padding:.3rem .65rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);font-size:.85rem;color:var(--green,#176653);text-decoration:none}.amal-inline-action-body .research-footer{font-size:.75rem;margin:4px 0 0}.amal-inline-action :is(summary,a):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:-3px}
@media(max-width:420px){.amal-inline-action>summary{gap:9px;padding:8px}.amal-inline-action-picture{width:78px;flex-basis:78px}.amal-inline-action-picture :is(img,svg){height:66px}.amal-inline-action-copy>strong{font-size:.88rem}.amal-inline-action-copy>small{font-size:.74rem}.amal-inline-action-body{padding:12px}}

.qunut-prayer-times{margin-block:.6rem;border-block-start:1px solid var(--line);font:400 .94rem/1.55 var(--font-ui,system-ui)}
.qunut-prayer-times summary{align-content:center;min-height:44px;cursor:pointer;font-weight:650;color:var(--green);padding:.2rem}
.qunut-prayer-times p{margin:.3rem 0 .6rem}
.qunut-prayer-times dl{display:grid;grid-template-columns:auto 1fr;gap:.3rem .8rem;margin:.25rem 0}
.qunut-prayer-times dd{margin:0;align-self:center}
.qunut-prayer-times a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-decoration:underline;text-underline-offset:.15em}


/* /gesture-access.css */
/* The gesture sheet shares the app's parchment and green surfaces. */
.gesture-access-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.5rem .7rem;border:1px solid var(--line,#d9e0d5);border-radius:10px;background:var(--panel,#fffdf8);color:var(--green,#345b48);font:600 .875rem/1.35 var(--font-ui,system-ui);cursor:pointer;text-align:start;text-decoration:none}
.gesture-access-trigger>svg{flex:none;width:18px;height:18px}
.gesture-access-mount-quran{display:contents}
.gesture-access-mount-options{margin-block:.75rem .25rem;grid-column:1/-1}
.gesture-access-preview{box-sizing:border-box;max-width:35rem;margin:.9rem 0;padding:.8rem;border:1px solid var(--line,#d9e0d5);border-radius:14px;background:var(--panel,#fffdf8);font:400 .875rem/1.5 var(--font-ui,system-ui);text-align:start;color:var(--ink,#263c32);word-spacing:normal}
.gesture-access-preview.is-compact{margin:.65rem 0;padding:.7rem}
.gesture-access-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.55rem}
.gesture-access-preview-heading>strong{font-size:.9375rem}
.gesture-access-preview-heading>button{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;padding:.3rem .35rem;border:0;border-radius:7px;background:transparent;color:var(--green,#345b48);font:650 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer;text-align:start}
.gesture-access-preview-heading>button>span{font-size:1.3rem;line-height:1}
.gesture-access-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.gesture-access-preview-card{display:flex;min-width:0;flex-direction:column;align-items:stretch;padding:.35rem;border:1px solid var(--line,#d9e0d5);border-radius:10px;background:var(--light,#faf9f3);text-decoration:none!important;color:var(--ink,#263c32);line-height:1.45}
.gesture-access-picture{display:block;flex:none;overflow:hidden;aspect-ratio:4/3;background:#fff4e1;border-radius:7px;direction:ltr;transform:none!important;scale:1!important;rotate:none!important}
.gesture-access-picture>img{display:block;width:100%;height:100%;object-fit:contain;direction:ltr;transform:none!important;scale:1!important;rotate:none!important}
.gesture-access-preview-card>strong{font-size:.875rem;font-weight:700;margin-top:.4rem;color:var(--green,#345b48);overflow-wrap:anywhere}
.gesture-access-preview-card>small{font-size:.8125rem;color:var(--muted,#627369);margin-top:.15rem;overflow-wrap:anywhere}
.gesture-access-preview>p{font:400 .875rem/1.6 var(--font-ui,system-ui);color:var(--muted,#627369);margin:.7rem 0 0}
.gesture-access-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:min(880px,calc(100dvh - 40px));padding:0;border:1px solid var(--line,#d9e0d5);border-radius:22px;background:var(--panel,#fffdf8);color:var(--ink,#263c32);box-shadow:0 22px 80px #173a282e;overflow:hidden;font:400 1rem/1.55 var(--font-ui,system-ui);text-align:start}
.gesture-access-dialog[open]{display:flex;flex-direction:column}
.gesture-access-dialog::backdrop{background:#102d225c;backdrop-filter:blur(3px)}
.gesture-access-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem .9rem;border-bottom:1px solid var(--line,#d9e0d5);flex:none}
.gesture-access-heading>div>span{display:block;color:var(--muted,#627369);font-size:.8125rem;font-weight:700;letter-spacing:.08em}
.gesture-access-heading h2{margin:.12rem 0 0;font:700 clamp(1.2rem,3vw,1.5rem)/1.4 var(--font-ui,system-ui);color:var(--ink,#263c32)}
.gesture-access-heading>button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:.5rem;border:1px solid var(--line,#d9e0d5);border-radius:50%;background:var(--light,#faf9f3);color:var(--green,#345b48);font-size:1.4rem;cursor:pointer}
.gesture-access-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.75rem 1.25rem 1.15rem;scrollbar-gutter:stable}
.gesture-access-intro{font-size:.9375rem;color:var(--muted,#627369);margin:0 0 1rem}
.gesture-access-group{--gesture-accent:var(--green,#345b48);--gesture-tint:color-mix(in srgb,var(--gesture-accent) 8%,var(--panel,#fffdf8))}
.gesture-access-group[data-gesture-context=dua]{--gesture-accent:#42637d}
.dark .gesture-access-group[data-gesture-context=dua]{--gesture-accent:#a1c4e2}
.gesture-access-group+.gesture-access-group{margin-top:1.4rem}
.gesture-access-group>h3{display:flex;align-items:center;gap:.55rem;font:700 .9375rem/1.5 var(--font-ui,system-ui);color:var(--gesture-accent);margin:0 0 .65rem}
.gesture-access-group>h3>span{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:10px;background:var(--gesture-tint)}
.gesture-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.gesture-access-choice{display:flex;align-items:center;gap:.75rem;min-width:0;min-height:106px;padding:.7rem;border:1px solid var(--line,#d9e0d5);border-block-start:3px solid var(--gesture-accent);border-radius:14px;background:var(--panel,#fffdf8);color:var(--ink,#263c32);font:inherit;text-align:start;cursor:pointer}
.gesture-access-choice>.gesture-access-picture{width:96px;height:72px;border-radius:10px}
.gesture-access-choice-label{flex:1;min-width:0;overflow-wrap:anywhere}
.gesture-access-choice strong{display:block;font-size:1rem;line-height:1.4;font-weight:750}
.gesture-access-choice small{display:block;margin-top:.35rem;font-size:.875rem;line-height:1.5;color:var(--gesture-accent)}
.gesture-access-scope{font-size:.875rem;line-height:1.7;margin:1rem 0 0;color:var(--muted,#627369)}
.gesture-access-back,.gesture-access-full-guide{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;border:0;border-radius:9px;background:transparent;padding:.4rem .45rem;font:600 .875rem/1.5 var(--font-ui,system-ui);color:var(--green,#345b48);text-decoration:none!important;cursor:pointer;text-align:start}
.gesture-access-content>.amal-gesture{margin:.55rem 0 1rem;padding:1rem;border-radius:13px}
.gesture-access-content>.amal-gesture.is-compact .amal-gesture-body.has-image{grid-template-columns:1fr;gap:1rem}
.gesture-access-content .amal-gesture-figure{max-width:370px;margin-inline:auto}
.gesture-access-content .amal-gesture-steps{gap:.75rem}
.gesture-access-content .amal-gesture-steps>li>p{font-size:.9375rem;line-height:1.75}
.gesture-access-content .amal-gesture-figure figcaption>span{font-size:.8125rem}
.gesture-access-trigger:hover,.gesture-access-preview-heading>button:hover,.gesture-access-preview-card:hover,.gesture-access-back:hover,.gesture-access-full-guide:hover{background:var(--pale,#eef2e7);border-color:var(--green,#345b48);text-decoration:none}
.gesture-access-choice:hover{background:var(--gesture-tint);border-color:var(--gesture-accent)}
.gesture-access-trigger:focus-visible,.gesture-access-preview a:focus-visible,.gesture-access-preview button:focus-visible,.gesture-access-dialog button:focus-visible,.gesture-access-dialog a:focus-visible,.gesture-access-dialog summary:focus-visible{outline:3px solid var(--green,#345b48);outline-offset:3px}
[dir=rtl] .gesture-access-heading>div>span{letter-spacing:0}
[dir=rtl] .gesture-access-picture,[dir=rtl] .gesture-access-picture>img{direction:ltr;transform:none!important;scale:1!important;rotate:none!important}
@media(max-width:600px){
 .gesture-access-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - 20px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 .gesture-access-heading{padding:.9rem 1rem .75rem}
 .gesture-access-content{padding:.75rem 1rem 1rem}
 .gesture-access-grid{grid-template-columns:1fr;gap:.4rem}
 .gesture-access-choice{flex-direction:row;align-items:center;gap:.75rem;padding:.5rem;min-height:70px;border-block-start-width:1px;border-inline-start:3px solid var(--gesture-accent)}
 .gesture-access-choice>.gesture-access-picture{width:68px;height:52px;margin:0}.gesture-access-choice-action{margin-top:.15rem}.gesture-access-choice small{margin-top:0}
 .gesture-access-choice strong{font-size:.9375rem}
 .gesture-access-choice small{font-size:.875rem}
 .gesture-access-trigger{font-size:.875rem;padding-inline:.6rem}
 .gesture-access-content>.amal-gesture{padding:.9rem .75rem}
}
@media(max-width:360px){.gesture-access-preview{padding:.55rem}.gesture-access-preview-grid{gap:.35rem}.gesture-access-preview-heading{align-items:flex-start}.gesture-access-preview-heading>button{max-width:52%}.gesture-access-choice{padding:.55rem}.gesture-access-content{padding-inline:.75rem}}
@media(prefers-reduced-motion:no-preference){.gesture-access-dialog[open]{animation:gesture-sheet-in .18s ease-out}@keyframes gesture-sheet-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}}
@media print{.gesture-access-dialog{display:none!important}.gesture-access-trigger,.gesture-access-mount-quran{display:none!important}}

/* Keep the illustrated chooser within reach while the duʿā text stays open. */
.gesture-access-mount-dua-toolbar{display:contents}.dua-reader-bar .gesture-access-trigger.is-reader{gap:6px;padding:4px 9px;min-height:44px;border:1px solid var(--line,#d9e0d5);background:var(--pale,#eef2e7);font-size:.8125rem;white-space:nowrap}.gesture-access-trigger.is-reader .gesture-access-picture{width:32px;height:28px;flex:0 0 32px;border-radius:5px;overflow:hidden;background:#f5efe0}.gesture-access-trigger.is-reader .gesture-access-picture img{width:100%;height:100%;object-fit:contain;direction:ltr;transform:none!important}.dua-dialog.is-focus .gesture-access-mount-dua-toolbar{display:none}
.gesture-access-trigger.is-reader>span>strong,.gesture-access-trigger.is-reader>span>small{display:block;text-align:start;line-height:1.3}.gesture-access-trigger.is-reader>span>strong{font-size:.8125rem;font-weight:750}.gesture-access-trigger.is-reader>span>small{font-size:.6875rem;font-weight:500;color:var(--muted,#627369)}
.gesture-access-reader-options{display:flex;gap:2px;width:38px;flex:none;direction:ltr}.gesture-access-trigger.is-reader .gesture-access-reader-options .gesture-access-picture{width:18px;height:28px;flex:0 0 18px}
.gesture-access-reader-art{display:grid;place-items:center;width:32px;height:28px;flex:none;overflow:hidden;border-radius:5px;background:#f5efe0;direction:ltr}.gesture-access-reader-art img,.gesture-access-reader-art svg{display:block;width:100%;height:100%;object-fit:contain;transform:none!important}
.gesture-access-choice-action{display:block;margin-top:.35rem;font-size:.8125rem;line-height:1.5;color:var(--muted,#627369)}
.gesture-access-illustration-note{display:block;font-size:.875rem;line-height:1.5;font-weight:500;margin-top:.45rem;color:var(--muted,#627369)}
.gesture-access-condition{font:400 .875rem/1.6 var(--font-ui,system-ui);padding:.6rem .75rem;border-radius:10px;background:var(--pale,#eef2e7);color:var(--green,#345b48);margin:.35rem 0 .6rem}
.gesture-reading-application{box-sizing:border-box;max-width:42rem;min-width:0;margin:.45rem 0 .65rem;border:1px solid var(--line,#d9e0d5);border-radius:12px;background:var(--panel,#fffdf8);color:var(--ink,#263c32);font:400 .875rem/1.35 var(--font-ui,system-ui);text-align:start;word-spacing:normal}
.gesture-reading-application>button{box-sizing:border-box;display:flex;align-items:center;gap:.5rem;width:100%;min-height:64px;padding:.4rem .5rem;border:0;border-radius:12px;background:transparent;color:inherit;text-align:start;font:inherit;cursor:pointer}
.gesture-reading-application .gesture-access-picture{width:52px;height:40px;border-radius:7px;flex:0 0 52px}.gesture-reading-application>button>span:nth-child(2){flex:1;min-width:0}.gesture-reading-application strong,.gesture-reading-application small,.gesture-reading-application>button>span>span{display:block;overflow-wrap:anywhere}
.gesture-reading-application strong{font-size:1rem;line-height:1.3;font-weight:750;margin-block:.12rem}.gesture-reading-application small{font-size:.8125rem;line-height:1.3;font-weight:650;color:var(--green,#345b48)}.gesture-reading-application>button>span>span{font-size:.8125rem;line-height:1.35;color:var(--muted,#627369)}.gesture-reading-application>button>b{font-size:1.5rem;font-weight:500;flex:none;color:var(--green,#345b48)}
.gesture-reading-application .gesture-reading-application-source{box-sizing:border-box;max-width:100%;min-width:0;font:400 .875rem/1.35 var(--font-ui,system-ui);margin:0;padding:0 .5rem;border:0;border-top:1px solid var(--line,#d9e0d5);text-align:end;white-space:normal;overflow-wrap:anywhere}
.gesture-reading-application-source a{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;color:var(--muted,#627369);text-decoration:underline;text-underline-offset:2px}
.gesture-reading-application button:focus-visible,.gesture-reading-application a:focus-visible{outline:3px solid var(--green,#345b48);outline-offset:3px}
.dua-reader-bar .gesture-access-trigger[data-hand-status]{white-space:normal;max-inline-size:21rem;text-decoration:none;text-align:start;line-height:1.25}
.dua-reader-bar .gesture-access-trigger[data-hand-status]>span:last-child{min-inline-size:0}
.dua-reader-bar .gesture-access-trigger[data-hand-status] strong,.dua-reader-bar .gesture-access-trigger[data-hand-status] small{white-space:normal}

.gesture-access-mode-icon{display:grid;place-items:center;flex:0 0 2rem;align-self:center;height:2rem;color:var(--green,#345b48)}
.gesture-access-ibtihal h3{margin:.75rem 0 .25rem;color:var(--ink);font-size:1.15rem}
.gesture-access-ibtihal .gesture-access-condition{margin-block:.25rem}
.gesture-access-ibtihal .gesture-access-primary-action{margin:.5rem 0 1rem;color:var(--ink);font-size:1.13rem;line-height:1.55}
.gesture-access-variant{margin-block:1rem;border-block-start:1px solid var(--line)}
.gesture-access-variant>summary{padding:.75rem 0;line-height:1.45;cursor:pointer;color:var(--green);font-weight:650}

.gesture-primary-figure{display:grid;gap:.65rem;max-width:28rem;margin:.7rem auto 1rem}
.gesture-primary-figure img{display:block;width:100%;height:auto;border-radius:12px;direction:ltr;transform:none}
.gesture-primary-figure figcaption{font:650 1rem/1.5 var(--font-ui,system-ui);color:var(--ink);text-align:start}
.gesture-passage-links{padding:.7rem .8rem;margin-block:.2rem 1rem;background:var(--pale);border-radius:12px}
.gesture-passage-links h3{margin:0 0 .4rem;font:700 .94rem/1.45 var(--font-ui,system-ui);color:var(--ink)}
.gesture-passage-links button{display:grid;grid-template-columns:auto 1fr;gap:.12rem .7rem;align-content:center;align-items:baseline;min-height:44px;width:100%;padding:.4rem .2rem;background:none;border:0;color:var(--ink);text-align:start;font:inherit;cursor:pointer}
.gesture-passage-links button+button{border-top:1px solid var(--line)}
.gesture-passage-links button span{grid-row:span 2;color:var(--green);font-weight:650;font-size:.85rem}
.gesture-passage-links button small{color:var(--muted)}


/* /amal-today.css */
.amal-personal-today{padding:1.25rem;margin:1.25rem 0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink)}
.amal-personal-today[hidden],.amal-plan-status[hidden]{display:none!important}
.amal-personal-today>header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.7rem}
.amal-personal-today h2{margin:.25rem 0 0;font-size:1.2rem;color:var(--ink)}
.amal-personal-eyebrow{font-size:.75rem;letter-spacing:.09em;color:var(--green);font-weight:700}
.amal-personal-total{font-size:.9rem;color:var(--muted);font-variant-numeric:tabular-nums}
.amal-personal-list{list-style:none;margin:0;padding:0}
.amal-personal-list li{display:flex;align-items:center;gap:.75rem;border-top:1px solid var(--line);padding:.7rem 0;min-width:0}
.amal-personal-list a{display:flex;align-items:center;gap:.8rem;flex:1;min-width:0;color:var(--ink);text-decoration:none;min-height:44px}
@media(hover:hover){.amal-personal-list a:hover strong{color:var(--green)}}
.amal-personal-list strong{display:block;font-size:.95rem;line-height:1.5;font-weight:650}
.amal-personal-list small{display:block;color:var(--muted);font-size:.85rem;line-height:1.5;margin-top:2px}
.amal-personal-dot{width:22px;height:22px;flex:0 0 22px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:14px}
.amal-personal-dot.is-complete{color:var(--panel);background:var(--green);border-color:var(--green)}
.amal-personal-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-top:1px solid var(--line);padding-top:.6rem;font-size:.875rem}
.amal-personal-footer a{color:var(--green);text-underline-offset:4px}
.amal-personal-footer button,.amal-personal-remove{background:transparent;border:0;color:var(--muted);min-height:44px;padding:.5rem .25rem;font:inherit;cursor:pointer}
.amal-personal-settings{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:1rem 0}
.amal-personal-settings>summary{display:flex;justify-content:space-between;align-items:center;min-height:52px;cursor:pointer;font-size:.95rem;font-weight:650;color:var(--ink);list-style:none}
.amal-personal-settings>summary span{font-size:.8rem;font-weight:400;color:var(--muted)}
.amal-personal-settings-body{padding:.1rem 0 1rem}
.amal-personal-settings-body>p{font-size:.9rem;line-height:1.6;color:var(--muted)}
.amal-today-toggle{display:flex;align-items:center;gap:.7rem;min-height:44px;font-size:.95rem;line-height:1.5;color:var(--ink)}
.amal-today-toggle input{width:20px;height:20px;accent-color:var(--green)}
.amal-save-action{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.amal-pin-button{border:1px solid var(--line);border-radius:10px;padding:.7rem .9rem;min-height:44px;background:var(--panel);color:var(--ink);font:inherit;font-size:.875rem;cursor:pointer}
.amal-pin-button[aria-pressed="true"]{border-color:var(--green);color:var(--green)}
.amal-guide .amal-plan-status,.amal-plan-status{font-size:.85rem;line-height:1.6;color:var(--ink);max-width:38rem;margin:.3rem 0}
.amal-pin-button:focus-visible,.amal-personal-today a:focus-visible,.amal-personal-today button:focus-visible,.amal-personal-settings summary:focus-visible,.amal-personal-settings button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:460px){.amal-personal-today{padding:1rem}.amal-personal-list strong{font-size:.9rem}.amal-personal-footer{gap:.5rem;flex-wrap:wrap}.amal-save-action{width:100%}.amal-pin-button{width:100%}}

.amal-personal-remove{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:.65rem;color:var(--muted);font:400 1.35rem/1 system-ui,sans-serif}
.amal-personal-remove:focus-visible,.amal-shelf-undo button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(hover:hover){.amal-personal-remove:hover{background:var(--pale);color:var(--ink)}}
.amal-shelf-undo{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.25rem .65rem;background:var(--pale);color:var(--ink);border-radius:.65rem;font-size:.9rem}
.amal-shelf-undo button{flex:none;min-width:44px;min-height:44px;background:transparent;color:var(--green);border:0;padding:.4rem .65rem;font:inherit;font-weight:650;cursor:pointer}

/* Source timing has its own visible shelf, distinct from chosen personal plans. */
.amal-recommendations{margin:1rem 0 1.25rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);min-width:0}
.amal-recommendations .ar-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}
.amal-recommendations .ar-summary-title{display:block;margin:0;font-size:1.1rem;line-height:1.4;color:var(--ink)}
.amal-recommendations .ar-eyebrow{margin:0 0 .2rem;font-size:.75rem;font-weight:750;letter-spacing:.06em;color:var(--green)}
.amal-recommendations .ar-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;padding:.15rem 0;list-style:none;color:var(--ink)}
.amal-recommendations .ar-panel>summary::-webkit-details-marker{display:none}
.amal-recommendations .ar-panel>summary::after{content:"";width:.5rem;height:.5rem;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-end:.2rem}
.amal-recommendations .ar-panel[open]>summary::after{transform:rotate(225deg)}
.amal-recommendations .ar-summary-copy{display:block;min-width:0}
.amal-recommendations .ar-summary-copy>.ar-eyebrow{display:block}
.amal-recommendations .ar-summary-meta{display:block;margin-top:.25rem;font-size:.8125rem;font-weight:400;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.amal-recommendations .ar-panel-body{margin-top:.8rem;padding-top:.6rem;border-top:1px solid var(--line)}
.amal-recommendations .ar-context{margin:.25rem 0 0;font-size:.875rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.amal-recommendations .ar-intro,.amal-recommendations .ar-empty,.amal-recommendations .ar-context-note{margin:.7rem 0;font-size:.9375rem;line-height:1.6}
.amal-recommendations .ar-intro,.amal-recommendations .ar-empty{color:var(--muted)}
.amal-recommendations button,.amal-recommendations input,.amal-recommendations select{font:inherit;min-height:44px;color:var(--ink)}
.amal-recommendations button{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:.45rem .7rem;cursor:pointer}
.amal-recommendations .ar-heading>button{flex:none;font-size:.875rem;color:var(--green)}
.amal-recommendations details>summary{min-height:44px;padding:.65rem 0;cursor:pointer;color:var(--green);font-size:.9375rem;font-weight:650;line-height:1.5}
.amal-recommendations .ar-occasion-chevron{display:none}
.amal-recommendations .ar-controls{border-block:1px solid var(--line);margin:.8rem 0}
.amal-recommendations .ar-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;padding:.2rem 0}
.amal-recommendations .ar-fields label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;line-height:1.5;color:var(--muted);min-width:0}
.amal-recommendations .ar-fields input,.amal-recommendations .ar-fields select{border:1px solid var(--line);border-radius:9px;background:var(--panel);width:100%;min-width:0;padding:.5rem .65rem;font-size:1rem}
.amal-recommendations .ar-controls p,.amal-recommendations .ar-conditional>p{font-size:.875rem;line-height:1.6;color:var(--muted);margin:.6rem 0}
.amal-recommendations .ar-list{list-style:none;margin:0;padding:0}
.amal-recommendations .ar-list>li{padding:.7rem 0;border-bottom:1px solid var(--line);min-width:0}
.amal-recommendations .ar-reading{display:block;border-radius:8px;padding:.2rem .4rem;margin-inline:-.4rem;color:var(--ink);text-decoration:none;min-height:44px}
.amal-recommendations .ar-reading strong{display:block;font-size:1rem;line-height:1.5;font-weight:650;color:var(--ink);text-decoration:none}
.amal-recommendations .ar-reading span{display:block;font-size:.875rem;line-height:1.55;color:var(--muted);margin-top:.25rem}
.amal-recommendations .ar-reading .ar-date{color:var(--green);font-weight:600}
.amal-recommendations .ar-source{display:inline-block;color:var(--muted);font-size:.8125rem;line-height:1.5;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;padding:.3rem 0}
.amal-recommendations .ar-more>summary{font-size:.875rem}
.amal-recommendations .ar-upcoming{border-top:1px solid var(--line);margin-top:.6rem}
.amal-recommendations .ar-upcoming>summary span{display:inline-block;margin-inline-start:.6rem;font-size:.8125rem;font-weight:400;color:var(--muted)}
.amal-recommendations .ar-context-note{padding:.7rem .8rem;border-radius:10px;background:var(--pale);color:var(--ink)}
.amal-recommendations .ar-context-note button{display:inline-block;margin:.4rem .25rem 0 0;font-size:.875rem}
.amal-recommendations .ar-footer{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;padding-top:.8rem;font-size:.875rem}
.amal-recommendations .ar-footer>a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:650;color:var(--green)}
.amal-recommendations .ar-footer small{flex-basis:100%;font-size:.8125rem;line-height:1.6;color:var(--muted)}
.amal-recommendations :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(hover:hover){.amal-recommendations .ar-reading:hover{background:var(--pale)}.amal-recommendations .ar-footer>a:hover{background:var(--pale);border-radius:6px}}
@media(max-width:480px){.amal-recommendations{padding:.9rem}.amal-recommendations .ar-fields{grid-template-columns:1fr}.amal-recommendations .ar-heading{flex-wrap:wrap}}

.amal-recommendations .ar-variant{margin:.15rem 0 .4rem;padding-inline-start:.85rem;border-inline-start:2px solid var(--line)}
.amal-recommendations .ar-variant>summary{width:fit-content;cursor:pointer;padding:.6rem .15rem;font-size:.875rem;color:var(--muted)}
.amal-recommendations .ar-variant .ar-choice{margin-block:.25rem .5rem}
.amal-recommendations .ar-in-day{margin:.4rem 0;padding:.5rem 0;color:var(--muted);font-size:.9rem}
.amal-recommendations .ar-source+.ar-source{margin-inline-start:.75rem}

.today-practice-dashboard .amal-recommendations[data-ar-embedded],
.amal-recommendations[data-ar-embedded]{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.amal-recommendations[data-ar-embedded] h3{margin:0 0 .35rem;font-size:1rem;line-height:1.35;color:var(--ink);font-weight:750}
.amal-recommendations[data-ar-embedded] .ar-picker-line{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0}
.ar-picker-reading{display:flex;align-items:center;min-width:0;min-height:44px;font-size:.94rem;line-height:1.42;font-weight:600;color:var(--ink);overflow-wrap:anywhere;text-decoration:none}
[data-ar-lead] .ar-picker-reading{font-weight:750;font-size:1.04rem}
@media(hover:hover){.ar-picker-reading:hover,.ar-picker-next a:hover{color:var(--green)}}
.ar-picker-add{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:44px;min-width:56px;padding:.3rem .65rem;border:1px solid var(--line);border-radius:.65rem;background:var(--panel);color:var(--green);font:inherit;font-size:.8125rem;font-weight:750;cursor:pointer}
[data-ar-lead] .ar-picker-add{background:var(--green);border-color:var(--green);color:var(--panel)}
.ar-picker-add>span{font-size:1.05rem;line-height:1}
.ar-picker-timing,.ar-picker-next span,.ar-picker-next small{font-size:.8125rem;color:var(--muted)}
.ar-picker-timing{display:block;margin:.05rem 0 .45rem}
.ar-picker-list>summary{min-height:44px;align-content:center;cursor:pointer;font-size:.875rem;font-weight:600;color:var(--green)}
.ar-picker-list>summary span{color:var(--muted);font-weight:500}
.ar-picker-list .ar-picker-line{border-top:1px solid var(--line);padding:.24rem 0}
.ar-picker-next{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .5rem;margin:.45rem 0 .6rem;line-height:1.5}
.ar-picker-next a{text-decoration:none;font-weight:650;color:var(--ink);font-size:.875rem;overflow-wrap:anywhere}
.ar-picker-empty,.ar-picker-status{margin:.3rem 0;font-size:.875rem;line-height:1.5;color:var(--muted)}
.ar-picker-status:empty{margin:0}
.ar-picker-setup{min-height:44px;padding:.4rem .6rem;color:var(--green);background:var(--panel);border:1px solid var(--line);border-radius:.5rem;cursor:pointer}

.ar-picker-browse{display:flex;align-items:center;max-width:100%;min-width:0}
.ar-picker-browse select{field-sizing:content;min-height:44px;width:auto;min-width:5.5rem;max-width:min(100%,10rem);padding:.3rem .45rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel);color:var(--green);font:inherit;font-size:.875rem;cursor:pointer}
.ar-picker-date{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;color:var(--muted);font-size:.875rem;margin:.2rem 0}
.ar-picker-date input{box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;padding:.3rem .5rem;border:1px solid var(--line);border-radius:.5rem;color:var(--ink);background:var(--panel);font:inherit}
.ar-picker-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .6rem}
.amal-recommendations[data-ar-embedded] .ar-picker-source{margin:0;min-width:0;max-width:100%}
.amal-recommendations[data-ar-embedded] .ar-picker-source>summary{display:inline-flex;align-items:center;cursor:pointer;min-height:44px;line-height:1.35;padding:0;color:var(--muted);font-size:.8125rem;font-weight:500;gap:.4em;list-style:none;text-decoration:none}
.ar-picker-source>summary::after{content:"";inline-size:.42rem;block-size:.42rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-block-end:.2em;flex:none}
.ar-picker-source[open]>summary::after{transform:rotate(225deg);margin-block:.2em 0}
.ar-picker-source>summary::-webkit-details-marker{display:none}
.amal-recommendations[data-ar-embedded] .ar-picker-source[open]{flex-basis:100%}
.amal-recommendations[data-ar-embedded] .ar-picker-source>div{padding:.15rem .65rem .45rem;border-inline-start:2px solid var(--line);overflow-wrap:anywhere}

.ar-picker-time-options{margin-block-start:.25rem;border-block-start:1px solid var(--line)}
.ar-picker-time-options>summary{display:list-item;cursor:pointer;min-height:44px;align-content:center;font-size:.8125rem;font-weight:600;color:var(--muted)}
.ar-picker-time-options>div{display:flex;align-items:center;gap:.4rem .75rem;flex-wrap:wrap;padding-block-end:.45rem}

.amal-recommendations .ar-counter-detail{display:block;color:var(--muted);font-size:.8125rem;line-height:1.45;overflow-wrap:anywhere}


/* /amal-plans.css */
.amal-cycle-inline,.amal-cycles-today{color:var(--ink);font-size:1rem;line-height:1.55}
.amal-cycle-inline{margin:1rem 0}.amal-cycles-today{margin:1.5rem 0}
.amal-cycle-inline [hidden],.amal-cycles-today[hidden],.amal-cycles-today [hidden]{display:none!important}
.amal-cycles-heading,.amal-cycle-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.amal-cycles-heading{align-items:center;margin-bottom:.8rem}.amal-cycles-heading h2{font-size:1.25rem;margin:.2rem 0}
.amal-cycles-heading>a{font-size:.875rem;color:var(--green);text-underline-offset:.2em}
.amal-cycle-kicker{font-size:.875rem;font-weight:650;color:var(--green)}
.amal-cycles-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.8rem}
.amal-cycle-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.1rem;min-width:0}
.amal-cycle-card.is-recorded{border-color:var(--green)}
.amal-cycle-card h3,.amal-cycle-card h4{margin:.25rem 0;font-size:1.08rem;font-family:inherit;line-height:1.45}
.amal-cycle-card>header p{margin:.25rem 0;font-size:.875rem;color:var(--muted)}
.amal-cycle-count{font-size:1.5rem;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--green)}
.amal-cycle-count small{font-size:.875rem;font-weight:400;color:var(--muted)}
.amal-cycle-card>progress{display:block;width:100%;height:6px;margin:1rem 0 .8rem;border:0;border-radius:4px;overflow:hidden;background:var(--line);accent-color:var(--green)}
.amal-cycle-card>progress::-webkit-progress-bar{background:var(--line)}.amal-cycle-card>progress::-webkit-progress-value{background:var(--green)}
.amal-cycle-actions{display:flex;align-items:center;gap:1rem;justify-content:space-between;font-size:.875rem}.amal-cycle-actions>span{color:var(--muted)}
.amal-cycle-inline button,.amal-cycles-today button,.amal-cycle-read{font:inherit;border:1px solid var(--line);border-radius:9px;padding:.55rem .85rem;min-height:44px;color:var(--ink);background:var(--panel);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;font-size:.875rem}
/* Keep reading actions legible inside calendar pages, which tint ordinary links green. */
.amal-cycle-actions .amal-cycle-read,.amal-cycle-inline .amal-cycle-add{background:var(--green);color:var(--panel);border-color:var(--green);text-decoration:none}
.amal-cycle-inline button:disabled{cursor:default;opacity:.5}.amal-cycle-inline button[aria-pressed="true"]{border-color:var(--green);color:var(--green)}
.amal-cycle-inline button:focus-visible,.amal-cycle-inline input:focus-visible,.amal-cycle-inline summary:focus-visible,.amal-cycle-inline a:focus-visible,.amal-cycles-today a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.amal-cycle-adder{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem .9rem}.amal-cycle-adder-note{font-size:.875rem;color:var(--muted)}
.amal-cycle-new-settings{width:100%}.amal-cycle-new-settings>summary{width:max-content}
.amal-cycle-inline details>summary,.amal-cycles-finished>summary{cursor:pointer;min-height:44px;font-size:.875rem;padding:.6rem 0;color:var(--ink)}
.amal-cycle-inline details>p,.amal-cycle-inline details>div>p{font-size:.875rem;color:var(--muted);margin:.4rem 0;line-height:1.6}
.amal-cycle-new-settings form{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;padding:.4rem 0}.amal-cycle-inline label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;min-width:0}
.amal-cycle-inline input{font:inherit;min-height:44px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:.5rem .6rem;width:100%;max-width:15rem}
.amal-cycle-inline input[type="number"]{max-width:6rem}.amal-cycle-steps,.amal-cycle-history,.amal-cycle-settings{border-top:1px solid var(--line);margin-top:.7rem}
.amal-cycle-steps>summary{display:flex;justify-content:space-between;gap:.7rem}.amal-cycle-steps>summary>span{color:var(--muted);font-variant-numeric:tabular-nums}
.amal-cycle-step{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.6rem 0;border-top:1px solid var(--line);font-size:.875rem}.amal-cycle-step>div{display:flex;align-items:center;gap:.4rem;flex-shrink:0}.amal-cycle-step>div>button{min-width:44px}.amal-cycle-step-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.amal-cycle-day-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(2.25rem,1fr));gap:.3rem;margin:.7rem 0}.amal-cycle-day-grid>span{display:flex;align-items:center;justify-content:center;gap:.15rem;aspect-ratio:1;border:1px solid var(--line);border-radius:6px;font-size:.875rem;font-variant-numeric:tabular-nums}.amal-cycle-day-grid>span.is-current{outline:2px solid var(--green);outline-offset:1px}.amal-cycle-day-grid>span.is-done{color:var(--panel);background:var(--green);border-color:var(--green)}.amal-cycle-day-grid>span.is-missed{color:var(--muted);text-decoration:underline;text-underline-offset:3px}.amal-cycle-day-grid i{font-size:.75rem;font-style:normal}
.amal-cycle-settings>div{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.amal-cycle-settings small{font-size:.875rem;color:var(--muted)}
.amal-cycle-timer{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.amal-cycle-timer output{font-variant-numeric:tabular-nums;font-size:1.15rem;min-width:4rem}
.amal-cycle-status{font-size:.875rem;line-height:1.6;margin:.4rem 0}.amal-cycle-previous,.amal-cycles-finished{margin-top:.7rem}.amal-cycles-finished .amal-cycle-card{margin-top:.6rem}
.amal-cycle-confirm{margin-top:.8rem}
@media(max-width:480px){.amal-cycle-card{padding:.9rem}.amal-cycle-step{align-items:flex-start;flex-direction:column;gap:.45rem}.amal-cycle-step>div{align-self:flex-end}.amal-cycle-adder>.amal-cycle-add{width:100%}.amal-cycles-heading{align-items:flex-start;flex-direction:column;gap:.25rem}.amal-cycle-new-settings form label:first-child{flex:1}.amal-cycle-new-settings form>button{width:100%}}

.amal-cycle-choices{display:flex;flex-wrap:wrap;gap:.5rem}.amal-cycle-choices button{min-height:44px}.amal-cycle-adder .amal-cycle-choices .amal-cycle-add{background:var(--green);color:var(--panel)}

.amal-prayer-occurrences{width:100%;min-width:0;box-sizing:border-box;margin-top:.65rem;padding-top:.65rem;border-top:1px solid var(--line)}
.amal-prayer-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.3rem}
.amal-prayer-slots button{min-width:0;min-height:48px;padding:.35rem .2rem;display:flex;flex-direction:column;gap:.1rem;font-size:.76rem;line-height:1.25}
.amal-prayer-slots button small{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.amal-prayer-slots button[aria-pressed=true]{border-color:var(--green);color:var(--green);background:color-mix(in srgb,var(--green) 7%,var(--panel))}
.amal-prayer-counter{display:flex;align-items:center;gap:.45rem;margin-top:.55rem;font-size:.875rem}
.amal-prayer-counter>span{margin-inline-end:auto;font-weight:600}.amal-prayer-counter>button{min-width:44px;font-size:1.15rem;padding:.3rem}.amal-prayer-counter output{font-size:.95rem;min-width:3.25rem;text-align:center;font-variant-numeric:tabular-nums}
.amal-prayer-note{font-size:.8rem;color:var(--muted);margin:.5rem 0 0;line-height:1.5}
.amal-prayer-times{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.65rem;width:100%}.amal-prayer-new-times{width:100%}
.amal-prayer-occurrences button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.amal-prayer-occurrences button:disabled{opacity:.45;cursor:default}

/* Shared routine identity: colour reinforces the labelled subject and icon. */
:is(.amal-cycle-card,.devotion-routine-card){--routine-accent:#226a9a;--routine-tint:color-mix(in srgb,var(--routine-accent) 9%,var(--panel))}
:is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="quran"]{--routine-accent:#08776d}
:is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="prayer"]{--routine-accent:#9f496d}
:is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="night"]{--routine-accent:#6852a5}
:is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="morning"]{--routine-accent:#8b5b10}
:is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="growth"]{--routine-accent:#417531}
.dark :is(.amal-cycle-card,.devotion-routine-card){--routine-accent:#a1d1f1}
.dark :is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="quran"]{--routine-accent:#a8e2cc}
.dark :is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="prayer"]{--routine-accent:#edb4c8}
.dark :is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="night"]{--routine-accent:#c9b9f3}
.dark :is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="morning"]{--routine-accent:#f0d099}
.dark :is(.amal-cycle-card,.devotion-routine-card)[data-routine-tone="growth"]{--routine-accent:#b3df97}
.amal-cycle-card{border-inline-start:4px solid var(--routine-accent);padding:1rem}
.amal-cycle-card>header{align-items:flex-start;gap:.65rem}
.amal-cycle-identity{display:flex;align-items:flex-start;gap:.7rem;min-width:0;flex:1}
.amal-cycle-identity>div{min-width:0;overflow-wrap:anywhere}
.amal-cycle-emblem{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--routine-accent);color:var(--panel)}
.amal-cycle-emblem svg{width:26px;height:26px;stroke-width:2}
[data-routine-tone="night"] .amal-cycle-emblem{border-radius:50%}
.amal-cycle-card .amal-cycle-kicker{color:var(--routine-accent);font-weight:750}
.amal-cycle-card h3,.amal-cycle-card h4{font-size:1.05rem;font-weight:750;overflow-wrap:anywhere}
.amal-cycle-card .amal-cycle-options-button{padding:.4rem .55rem;gap:.35rem;flex:none;font-weight:650;background:var(--routine-tint);border-color:transparent}
.amal-cycle-options-button svg{width:18px;height:18px;flex:none;color:var(--routine-accent)}
.amal-cycle-options-button[aria-expanded="true"]{border-color:var(--routine-accent)}
.amal-programme-progress{display:flex;gap:.65rem;align-items:center;margin:.6rem 0;font-size:.875rem;line-height:1.35;color:var(--muted)}
.amal-programme-progress>span{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.amal-programme-progress>progress{display:block;appearance:none;flex:1;min-width:2.5rem;width:auto;height:5px;border:0;border-radius:10px;overflow:hidden;background:var(--line);accent-color:var(--routine-accent,var(--green))}
.amal-programme-progress>progress::-webkit-progress-bar{background:var(--line)}
.amal-programme-progress>progress::-webkit-progress-value{background:var(--routine-accent,var(--green))}
.amal-programme-progress>progress::-moz-progress-bar{background:var(--routine-accent,var(--green))}
.amal-cycle-actions{flex-wrap:wrap;gap:.5rem}
.amal-cycle-actions .amal-cycle-confirm{margin:0;font-weight:700;min-width:7.5rem}
.amal-cycle-read svg{width:19px;height:19px;flex:none}
.amal-cycle-check{width:20px;height:20px;border:2px solid var(--routine-accent,var(--green));border-radius:50%;display:grid;place-items:center;box-sizing:border-box;flex:none}
.amal-cycle-check svg{width:14px;height:14px;visibility:hidden;stroke-width:2.6}
.amal-cycle-confirm[aria-pressed="true"] .amal-cycle-check{background:var(--routine-accent,var(--green));color:var(--panel)}
.amal-cycle-confirm[aria-pressed="true"] .amal-cycle-check svg{visibility:visible}
.amal-cycle-recorded-note{font-size:.875rem;color:var(--routine-accent);margin:.45rem 0 0;font-weight:600}
.amal-cycle-options-panel{border-top:1px solid var(--line);padding-top:.5rem;margin-top:.8rem}
.amal-cycle-options-panel>:first-child{margin-top:0;border-top:0}
.amal-cycle-options-panel :is(summary,button,input){min-height:44px}
.amal-cycle-options-panel summary{padding:.5rem 0;cursor:pointer;font-size:.875rem;font-weight:600}
.amal-cycle-options-panel label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;min-width:0}
.amal-cycle-options-panel input{font:inherit;min-height:44px;box-sizing:border-box;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:.5rem .6rem;background:var(--panel);color:var(--ink)}
.amal-cycles-today :is(button,input,summary):focus-visible{outline:2px solid var(--routine-accent,var(--green));outline-offset:3px}
.amal-cycles-today button:disabled{opacity:.5;cursor:default}
.amal-cycle-identity,.devotion-routine-identity{-webkit-touch-callout:none}
@media(max-width:480px){.amal-cycle-card{padding:.8rem}.amal-cycle-emblem{width:38px;height:38px;border-radius:12px}.amal-cycle-emblem svg{width:23px;height:23px}.amal-cycle-identity{gap:.5rem}.amal-cycle-card .amal-cycle-options-button{flex-direction:column;gap:.1rem;line-height:1.2;padding:.35rem .45rem;min-width:58px}}
.amal-prayer-single{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.65rem .7rem;border:1px solid var(--line);border-radius:12px;margin-top:.5rem;font-size:.95rem;font-weight:650;background:color-mix(in srgb,var(--green) 5%,var(--panel))}.amal-prayer-single button{display:flex;align-items:center;gap:.4rem;min-height:44px;font-weight:750}.amal-prayer-single button svg{width:20px;height:20px}.amal-prayer-single button[aria-pressed=true]{background:var(--green);color:var(--panel);border-color:var(--green)}
.amal-timed-occurrences{width:100%;display:grid;gap:8px;margin-top:10px}.amal-timing-occurrence{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--panel);min-width:0}.amal-timing-signal{display:flex;align-items:center;gap:12px;min-width:0}.amal-timing-signal>div{display:grid;gap:3px;min-width:0}.amal-timing-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:rgba(105,119,88,.13);flex-shrink:0}.amal-timing-icon svg{width:26px;height:26px;stroke-width:2.2}.amal-timing-badge{font-size:1.03rem;font-weight:900;letter-spacing:.055em;line-height:1.2}.amal-timing-anchor{font-size:.84rem;font-weight:700}.amal-timing-signal output{font-size:1.26rem;line-height:1.3;font-weight:850;font-variant-numeric:tabular-nums}.amal-timing-signal small{font-size:.75rem;line-height:1.4}.amal-timing-occurrence[data-timing-state="ready"]:not([data-timing-kind="any"]){color:#fff;background:#1c6249;border-color:#1c6249;box-shadow:0 4px 0 #114732}.amal-timing-occurrence[data-timing-state="ready"]:not([data-timing-kind="any"]) .amal-timing-icon{background:rgba(255,255,255,.17);color:#f7d678}.amal-timing-occurrence[data-timing-state="ready"]:not([data-timing-kind="any"]) .amal-timed-record{background:#f5d47b;color:#213b2d;border-color:#f5d47b}.amal-timing-occurrence[data-timing-state="upcoming"],.amal-timing-occurrence[data-timing-state="waiting-prayer"],.amal-timing-occurrence[data-timing-state="needs-time"]{background:#eef0ed;color:#536052;border-style:dashed}.amal-timing-occurrence[data-timing-state="window-passed"]{background:#fff0db;border-color:#c77a2b;color:#754014}.amal-timing-occurrence[data-timing-state="complete"]{background:#e6efe4;color:#365330}.amal-timed-record,.amal-timing-setup,.amal-timed-count>button{min-height:46px;min-width:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:12px;font:inherit;font-weight:800;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer}.amal-timed-record svg,.amal-timing-setup svg,.amal-timed-count svg{width:19px;height:19px}.amal-timed-record:disabled,.amal-timed-count>button:disabled{background:#dce0da;color:#727c70;cursor:not-allowed;border-color:transparent;opacity:1}.amal-timed-count{display:flex;align-items:center;gap:8px;flex-shrink:0}.amal-timed-count output{font-size:.82rem;white-space:nowrap;font-variant-numeric:tabular-nums}.amal-timed-count output b{font-size:1.55rem}.amal-timing-more>summary{padding:10px 5px;min-height:44px;font-size:.8rem;font-weight:700;cursor:pointer}.amal-timing-more[open]{display:grid;gap:7px}.amal-timing-more .amal-timing-occurrence{margin-top:7px}.amal-timing-change,.amal-timing-start{font-size:.78rem;color:var(--muted);line-height:1.5}.amal-timing-setup{font-size:.79rem;max-width:155px}.amal-cycle-card[data-timing-state="upcoming"]>.amal-cycle-actions .amal-cycle-read{opacity:.8}body.dark .amal-timing-occurrence[data-timing-state="upcoming"],body.dark .amal-timing-occurrence[data-timing-state="waiting-prayer"],body.dark .amal-timing-occurrence[data-timing-state="needs-time"]{background:#29352d;color:#bdc8ba;border-color:#667360}body.dark .amal-timing-occurrence[data-timing-state="window-passed"]{background:#463825;color:#f3cf9b}body.dark .amal-timing-occurrence[data-timing-state="complete"]{background:#263d2b;color:#c5dfb8}body.dark .amal-timed-record:disabled,body.dark .amal-timed-count>button:disabled{background:#354138;color:#acb4a7}@media(max-width:480px){.amal-timing-occurrence{padding:12px;gap:9px;flex-wrap:wrap}.amal-timing-signal{gap:9px;flex:1 1 150px}.amal-timing-icon{width:38px;height:38px;border-radius:12px}.amal-timing-badge{font-size:.94rem}.amal-timing-anchor{font-size:.78rem}.amal-timing-setup,.amal-timed-record{font-size:.78rem}.amal-timed-count{margin-inline-start:auto}.amal-timing-setup{max-width:132px}.amal-timing-signal output{font-size:1.16rem}}@media(prefers-reduced-motion:reduce){.amal-timing-occurrence{transition:none}}

/* A short route to the existing ready practice; this is never a second counter. */
.amal-next-opportunity{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;box-sizing:border-box;padding:13px 15px;margin:0 0 14px;border:1px solid #b99542;border-radius:17px;background:linear-gradient(110deg,#174c39,#1d624a);color:#fff;box-shadow:0 3px 0 #103b2c;min-width:0}
.amal-next-opportunity[hidden]{display:none}
.amal-next-emblem{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:14px 7px 14px 7px;background:#f5d47b;color:#214f3b}
.amal-next-emblem svg{width:27px;height:27px;stroke-width:2.3}
.amal-next-copy{min-width:0}.amal-next-opportunity .amal-next-kicker{display:block;color:#f8db8e;font-size:.72rem;line-height:1.25;font-weight:900;letter-spacing:.075em}
.amal-next-opportunity .amal-next-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff;margin:3px 0;font-size:1rem;line-height:1.25;font-weight:850;overflow-wrap:anywhere}
.amal-next-copy>p{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:0;color:#e5f0df;font-size:.78rem;line-height:1.3}
.amal-next-count{display:inline-block;white-space:nowrap;border-radius:6px;background:#ffffff20;padding:1px 5px;font-weight:800;font-variant-numeric:tabular-nums}
.amal-next-opportunity .amal-next-open{display:flex;align-items:center;justify-content:center;min-height:46px;max-width:102px;box-sizing:border-box;padding:8px 11px;border:1px solid #f5d47b;border-radius:12px;background:#f5d47b;color:#203c2c;font:inherit;font-size:.85rem;line-height:1.25;font-weight:850;text-align:center;cursor:pointer}
.amal-next-actions{display:grid;gap:3px;align-items:center}
.amal-next-actions .amal-next-open{text-decoration:none}
.amal-next-opportunity .amal-next-record{background:none;border:0;border-radius:8px;color:#fff;font:inherit;font-size:.8rem;line-height:1.25;text-align:center;min-height:44px;max-width:102px;cursor:pointer}
.amal-next-actions :focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:480px){.amal-next-opportunity{grid-template-columns:36px minmax(0,1fr) 80px;gap:9px;padding:11px 12px;border-radius:15px}.amal-next-emblem{width:36px;height:36px;border-radius:12px 6px 12px 6px}.amal-next-emblem svg{width:24px;height:24px}.amal-next-opportunity .amal-next-title{font-size:.95rem}.amal-next-opportunity .amal-next-open{font-size:.8rem;padding:7px}.amal-next-copy>p{font-size:.75rem}}
@media(max-width:350px){.amal-next-opportunity{grid-template-columns:30px minmax(0,1fr) 70px;gap:7px;padding:10px}.amal-next-emblem{width:30px;height:30px}.amal-next-emblem svg{width:22px;height:22px}.amal-next-opportunity .amal-next-title{font-size:.9rem}}

/* The same removal controls are used on Today, in a reading and in My routines. */
.schedule-card-tools,.devotion-reading-heading,.schedule-removal-actions{display:flex;align-items:center;gap:.45rem}
.schedule-card-tools{flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.schedule-card-tools button.schedule-remove-trigger,.devotion-reading-heading button.schedule-remove-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:44px;min-height:44px;padding:.3rem .5rem;background:transparent;border:1px solid transparent;border-radius:.65rem;color:var(--muted,#53645b);font:inherit;cursor:pointer}
.schedule-remove-mark{display:inline-block;font-family:system-ui,sans-serif;font-weight:400;font-size:1.35rem;line-height:1}
.schedule-remove-label{display:none}
[data-plan-remove-surface],[data-routine-remove-surface]{touch-action:pan-y pinch-zoom}
[data-schedule-remove-revealed] button.schedule-remove-trigger,.schedule-card-tools button.schedule-remove-trigger:focus-visible,.devotion-reading-heading button.schedule-remove-trigger:focus-visible{background:var(--pale);color:var(--ink);border-color:var(--line)}
[data-schedule-remove-revealed] .schedule-remove-label{display:inline;font-size:.85rem}
.schedule-remove-trigger:focus-visible,.schedule-removal-actions button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media (hover:hover){.schedule-card-tools button.schedule-remove-trigger:hover,.devotion-reading-heading button.schedule-remove-trigger:hover{background:var(--pale);color:var(--ink)}}
.devotion-reading-heading{justify-content:space-between}
.devotion-reading-heading>strong{display:flex;align-items:flex-start;gap:.45rem;overflow-wrap:anywhere;min-width:0}
dialog.schedule-removal-dialog{box-sizing:border-box;width:min(25rem,calc(100% - 2rem));max-height:85dvh;margin:auto;padding:1.25rem;border:1px solid var(--line,#b6bcb7);border-radius:1rem;background:var(--panel,#fffefa);color:var(--ink,#202622);text-align:start}
.schedule-removal-dialog::backdrop{background:rgb(12 24 21 / .55)}
.schedule-removal-dialog h2{font-size:1.27rem;line-height:1.4;margin:0 0 .65rem;overflow-wrap:anywhere}
.schedule-removal-dialog h2,.schedule-removal-dialog [data-schedule-remove-cancel],.schedule-removal-choice{color:var(--ink,#202622)}
.schedule-removal-dialog [data-schedule-remove-cancel]{background:var(--pale,#edf3ee)}
.schedule-removal-dialog p{color:var(--muted,#415750);font-size:1rem;line-height:1.55;margin:.5rem 0}
.schedule-removal-choice{display:flex;align-items:flex-start;gap:.55rem;padding:.75rem 0;font-size:.95rem;line-height:1.45}
.schedule-removal-choice input{width:1.15rem;height:1.15rem;flex:none;margin:.1rem 0}
.schedule-removal-actions{flex-wrap:wrap;justify-content:flex-end;margin-top:1rem}
.schedule-removal-dialog [data-schedule-remove-confirm]{border-color:var(--muted);color:var(--ink);background:transparent}
.schedule-removal-actions button{min-height:44px;padding:.45rem .9rem;border:1px solid currentColor;border-radius:.65rem;background:transparent;color:inherit;font:inherit}
@media(max-width:28rem){.devotion-routine-card>header,.amal-cycle-card>header{flex-wrap:wrap}.schedule-card-tools{margin-inline-start:auto}}
@media(forced-colors:active){[data-schedule-remove-revealed] .schedule-remove-trigger,.schedule-removal-dialog [data-schedule-remove-confirm]{outline:2px solid ButtonText}}

.devotion-editor-more>summary{cursor:pointer;padding:.6rem .25rem;font-size:.9rem}.devotion-editor-more[open]>button{display:block;margin-block:.3rem}
.schedule-removal-review{border-inline-start:3px solid var(--muted);padding:.4rem .7rem;margin-block:1rem;color:var(--ink)}
.schedule-removal-review ul{padding-inline-start:1.15em;margin:.4em 0}
.schedule-removal-review p{margin:0;color:var(--muted)}

.amal-cycle-timer button[data-amal-cycle-timer-reset]{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:50%}

/* One compact action language for every saved reading and routine. */
.routine-action-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.amal-cycle-card :is(button,a).routine-icon-control,.devotion-routines :is(button,a).routine-icon-control{
  display:inline-flex;align-items:center;justify-content:center;position:relative;
  flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border-radius:50%;gap:0;box-sizing:border-box;
}
.routine-icon-control>svg{width:22px;height:22px;flex:none}
.amal-cycle-card .routine-icon-control:not(:has(svg)),.devotion-routines .routine-icon-control:not(:has(svg)){width:auto;flex-basis:auto;padding-inline:.6rem}
.amal-cycle-card .routine-icon-control[aria-pressed=true],.devotion-routines .routine-icon-control[aria-pressed=true]{color:var(--routine-accent,var(--green));background:var(--routine-tint,var(--pale));border-color:currentColor}
.amal-cycle-card>header,.devotion-routine-card>header{flex-wrap:nowrap;gap:.5rem}
.schedule-card-tools{gap:.2rem;flex-wrap:nowrap;align-self:flex-start}
.schedule-card-tools button.schedule-remove-trigger{width:44px;height:44px;border-radius:50%;padding:0}
.amal-cycle-identity{align-items:center;gap:.55rem}
.amal-cycle-card .amal-cycle-emblem{width:36px;height:36px;border-radius:11px}
.amal-cycle-card .amal-cycle-emblem svg{width:22px;height:22px}
.amal-cycle-card .amal-cycle-actions{justify-content:flex-end;gap:.5rem;margin-block:.5rem 0}
.amal-cycle-card .amal-cycle-actions>span{margin-inline-end:auto;font-size:.875rem}
.amal-cycle-card .amal-cycle-options-button{background:transparent}
.amal-cycle-card .amal-cycle-options-button[aria-expanded=true]{background:var(--routine-tint,var(--pale))}
@media(max-width:380px){.amal-cycle-inline .amal-cycle-emblem{display:none}.amal-cycle-card .amal-cycle-kicker{font-size:.875rem}.amal-cycle-card .amal-cycle-identity h3,.amal-cycle-card .amal-cycle-identity h4{font-size:1rem}}


/* /prayer-times.css */
/* Five timetable events; the five prayer records remain separate. */
.prayer-times,.prayer-times-dialog{--pt-ink:var(--ink,#263c32);--pt-panel:var(--panel,#fffdf8);--pt-line:var(--line,#d9e0d5);--pt-green:var(--green,#345b48);color:var(--pt-ink);font-family:var(--font-ui,system-ui);text-align:start;box-sizing:border-box}
.prayer-times{margin-block:.8rem;padding:1rem;border:1px solid var(--pt-line);border-radius:20px;background:var(--pt-panel);min-width:0}
.prayer-times-heading{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-block-end:.85rem}
.prayer-times-heading>div{min-width:0;flex:1}
.prayer-times-kicker{display:block;font-size:.75rem;line-height:1.4;letter-spacing:.06em;font-weight:750;text-transform:uppercase;color:var(--muted,#627369)}
.prayer-times-headline{display:block;margin-block-start:.2rem;font-size:1.12rem;line-height:1.35;font-weight:800;overflow-wrap:anywhere;letter-spacing:-.015em}
.prayer-times-setup{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;flex:none;border:1px solid var(--pt-line);border-radius:11px;padding:.5rem .7rem;background:var(--pale,#eef2e7);color:var(--pt-green);font:750 .8125rem/1.3 var(--font-ui,system-ui);cursor:pointer}
.prayer-times-setup svg{flex:none}
.prayer-time-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;min-width:0}
[data-prayer-tone=fajr]{--pt-accent:#73528f;--pt-tint:#f0e9f6}
[data-prayer-tone=dhuhr]{--pt-accent:#85531a;--pt-tint:#fff0d5}
[data-prayer-tone=asr]{--pt-accent:#90602c;--pt-tint:#f9eddf}
[data-prayer-tone=maghrib]{--pt-accent:#a34239;--pt-tint:#fbe6de}
[data-prayer-tone=isha]{--pt-accent:#435f97;--pt-tint:#e8eef9}
.prayer-time-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:104px;padding:.6rem .25rem .5rem;border:1px solid color-mix(in srgb,var(--pt-accent) 20%,var(--pt-panel));border-radius:14px;background:var(--pt-tint);color:var(--pt-ink);cursor:pointer;font:500 .8125rem/1.3 var(--font-ui,system-ui);text-align:center;position:relative}
.prayer-time-symbol{position:relative;display:grid;place-items:center;width:32px;height:32px;color:var(--pt-accent);margin-block-end:.3rem;flex:none}
.prayer-time-chip strong{font-weight:800;line-height:1.4;overflow-wrap:anywhere;max-width:100%}
.prayer-time-clock{display:block;font-size:.875rem;font-weight:700;letter-spacing:.015em;font-variant-numeric:tabular-nums;margin-block-start:.2rem;color:var(--pt-accent)}
.prayer-time-recorded{position:absolute;inset-block-start:-4px;inset-inline-end:-6px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--pt-green);color:var(--pt-panel);box-shadow:0 0 0 2px var(--pt-tint)}
.prayer-time-chip.is-recorded{border-color:var(--pt-green)}
.prayer-times-hint{margin:.65rem 0 0;font-size:.75rem;line-height:1.5;color:var(--muted,#627369);overflow-wrap:anywhere}
.prayer-times-empty-hint{display:block;margin-top:.2rem;font-size:.75rem;line-height:1.45;color:var(--muted,#627369)}
.prayer-times-empty-checkins>summary{min-height:44px;box-sizing:border-box;padding:.65rem .15rem .5rem;color:var(--pt-green);font-size:.75rem;font-weight:700;cursor:pointer}
.prayer-times-empty-checkins>.prayer-time-chips{margin-bottom:.2rem}
.prayer-times.is-compact{padding:.4rem .5rem;border-radius:15px}
.prayer-times.is-compact .prayer-times-heading{min-height:44px;margin-bottom:.3rem;gap:.4rem}
.prayer-times.is-compact .prayer-times-kicker{display:none}
.prayer-times.is-compact .prayer-times-headline{font-size:.9375rem;line-height:1.3;margin:0;letter-spacing:0}
.prayer-times.is-compact .prayer-times-setup{padding:.4rem .5rem;font-size:.75rem;border:0;background:transparent}
.prayer-times.is-compact .prayer-time-chip{min-height:58px;padding:.25rem .1rem;gap:0;border-radius:10px;font-size:.6875rem;line-height:1.25}
.prayer-times.is-compact .prayer-time-symbol{width:24px;height:24px;margin:0}
.prayer-times.is-compact .prayer-time-symbol>svg{width:23px;height:23px}
.prayer-times.is-compact .prayer-time-clock{font-size:.75rem;margin:0;line-height:1.25}
.prayer-times.is-compact .prayer-time-recorded{width:14px;height:14px;inset-block-start:-3px;inset-inline-end:-3px}
.prayer-times.is-empty.is-compact .prayer-times-heading{margin:0}
.prayer-times.is-empty.is-compact .prayer-times-empty-checkins>summary{border-top:1px solid var(--pt-line);margin-top:.25rem}
.prayer-times-warning,.prayer-times-zone-warning{margin:.65rem 0;padding:.65rem .75rem;border:1px solid #be8c50;border-radius:10px;color:#704315;background:#fff3df;font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere}
.prayer-times-dialog{position:fixed;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--pt-line);border-radius:24px;background:var(--pt-panel);box-shadow:0 22px 80px #173a283d;overflow:hidden;font-size:1rem;line-height:1.55}
.prayer-times-dialog[open]{display:flex;flex-direction:column}
.prayer-times-dialog::backdrop{background:#102d2266;backdrop-filter:blur(3px)}
.prayer-times-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 1.15rem .9rem;border-bottom:1px solid var(--pt-line);flex:none}
.prayer-times-dialog-heading>div{min-width:0}
.prayer-times-dialog-heading>div>span{font-size:.75rem;line-height:1.4;color:var(--muted,#627369);font-weight:700}
.prayer-times-dialog-heading h2{font:800 1.45rem/1.3 var(--font-ui,system-ui);margin:.15rem 0 0;color:var(--pt-ink);overflow-wrap:anywhere}
.prayer-times-dialog-heading>button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:.5rem;border:1px solid var(--pt-line);border-radius:50%;background:var(--light,#faf9f3);color:var(--pt-green);cursor:pointer}
.prayer-times-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1rem 1.15rem 1.25rem;scrollbar-gutter:stable}
.prayer-times-checkin{padding:.85rem;border:1px solid color-mix(in srgb,var(--pt-accent) 25%,var(--pt-panel));border-radius:17px;background:var(--pt-tint);margin-block-end:1rem}
.prayer-times-checkin-top{display:flex;align-items:center;gap:.75rem}
.prayer-times-large-symbol{display:grid;place-items:center;flex:none;width:56px;height:56px;border:1px solid color-mix(in srgb,var(--pt-accent) 22%,var(--pt-panel));border-radius:17px;color:var(--pt-accent);background:color-mix(in srgb,var(--pt-panel) 65%,var(--pt-tint))}
.prayer-times-large-clock{display:block;font-size:1.5rem;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.prayer-times-checkin-top>div>span{display:block;margin-top:.3rem;font-size:.8125rem;font-weight:650;color:var(--pt-accent)}
.prayer-times-checkin>p{font-size:.8125rem;line-height:1.55;margin:.65rem 0 .75rem;color:var(--pt-accent)}
.prayer-times-primary,.prayer-times-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:46px;max-width:100%;padding:.65rem .9rem;border:1px solid var(--pt-green);border-radius:12px;font:750 .9375rem/1.4 var(--font-ui,system-ui);cursor:pointer;text-align:center;text-wrap:balance}
.prayer-times-primary{background:var(--pt-green);color:var(--pt-panel)}
.prayer-times-secondary{background:var(--pt-panel);color:var(--pt-green);font-size:.875rem}
.prayer-times-checkin>.prayer-times-primary,.prayer-times-editor form>.prayer-times-primary{width:100%}
.prayer-times-primary>svg{flex:none}
.prayer-times-primary:disabled{opacity:.55;cursor:not-allowed}
.prayer-times-done{display:flex;align-items:center;gap:.5rem;min-height:46px;color:var(--pt-green);font-size:.9375rem}
.prayer-times-done>svg{flex:none}
.prayer-times-done>strong{flex:1}
.prayer-times-done>button{min-height:44px;padding:.5rem .65rem;border:1px solid var(--pt-green);border-radius:10px;background:var(--pt-panel);color:var(--pt-green);font:750 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.prayer-times-feedback{font-size:.875rem;line-height:1.6;margin:.6rem 0 1rem;color:var(--pt-green);overflow-wrap:anywhere}
.prayer-times-feedback[hidden]{display:none}
.prayer-times-editor{margin:0;border:1px solid var(--pt-line);border-radius:14px;overflow:hidden}
.prayer-times-editor>summary{display:flex;align-items:center;gap:.5rem;list-style:none;cursor:pointer;min-height:48px;padding:.7rem .85rem;background:var(--pale,#eef2e7);color:var(--pt-green);font-size:.9375rem;font-weight:750}
.prayer-times-editor>summary::-webkit-details-marker{display:none}
.prayer-times-editor>summary>span{flex:1}
.prayer-times-editor>summary::after{content:'+';font-size:1.3rem;line-height:1;font-weight:500;flex:none}
.prayer-times-editor[open]>summary::after{content:'−'}
.prayer-times-editor form{padding:.85rem}
.prayer-times-date-label,.prayer-times-source-label{display:block;font-size:.8125rem;font-weight:750;color:var(--pt-ink)}
.prayer-times-source-label>span{font-weight:450;color:var(--muted,#627369)}
.prayer-times-dialog input,.prayer-times-dialog textarea{box-sizing:border-box;display:block;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--pt-line);border-radius:9px;background:var(--pt-panel);color:var(--pt-ink);font:500 1rem/1.4 var(--font-ui,system-ui);padding:.5rem .65rem}
.prayer-times-date-label input{width:100%;margin-top:.3rem}
.prayer-times-source-label input{width:100%;margin-top:.35rem}
.prayer-times-dialog input::placeholder{color:var(--muted,#627369);opacity:1}
.prayer-times-form-help{font-size:.8125rem;line-height:1.6;color:var(--muted,#627369);margin:.6rem 0 .75rem;overflow-wrap:anywhere}
.prayer-times-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-block:.7rem .85rem}
.prayer-time-field{display:flex;flex-direction:column;min-width:0;padding:.6rem;border:1px solid color-mix(in srgb,var(--pt-accent) 22%,var(--pt-panel));border-radius:12px;background:var(--pt-tint)}
.prayer-time-field:only-child{grid-column:1/-1}
.prayer-time-field-name{display:flex;align-items:center;gap:.4rem;color:var(--pt-accent);font-size:.875rem;line-height:1.4}
.prayer-time-field-name>svg{flex:none}
.prayer-time-field-name>strong{font-weight:800;overflow-wrap:anywhere}
.prayer-time-field-clock{display:flex;align-items:center;gap:.4rem;margin-top:.5rem;color:var(--pt-accent);min-width:0}
.prayer-time-field-clock>span{flex:none;display:grid;place-items:center}
.prayer-time-field-clock input{width:100%;padding:.4rem .35rem;font-weight:700;min-width:0;flex:1;font-variant-numeric:tabular-nums}
.prayer-times-other{margin:.3rem 0 .85rem}
.prayer-times-other>summary,.prayer-times-import>summary,.prayer-times-record-disclosure>summary{min-height:44px;padding:.6rem .15rem;font-size:.8125rem;font-weight:750;color:var(--pt-green);cursor:pointer}
.prayer-times-record-disclosure{margin-top:.5rem}
.prayer-times-record-disclosure>.prayer-times-checkin{margin-block:.3rem .5rem}
.prayer-times-import{margin-top:.85rem;padding-block-start:.25rem;border-top:1px solid var(--pt-line)}
.prayer-times-import>label{display:block;font-size:.8125rem;font-weight:750;margin-bottom:.35rem}
.prayer-times-import>textarea{width:100%;resize:vertical;min-height:100px;font-family:ui-monospace,monospace;font-size:.8125rem;margin-bottom:.6rem}
.prayer-times-import-table{max-height:16rem;overflow:auto;border:1px solid var(--pt-line);border-radius:9px;margin-block:.65rem .8rem}
.prayer-times-import-table table{width:100%;border-collapse:collapse;font-size:.75rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.prayer-times-import-table th,.prayer-times-import-table td{padding:.5rem .6rem;text-align:start;border-bottom:1px solid var(--pt-line)}
.prayer-times-import-table thead th{background:var(--pale,#eef2e7);font-weight:750;position:sticky;top:0}
.prayer-times-import-table tbody th{font-weight:650}
.prayer-times button:focus-visible,.prayer-times-dialog button:focus-visible,.prayer-times-dialog input:focus-visible,.prayer-times-dialog textarea:focus-visible,.prayer-times-dialog summary:focus-visible,.prayer-times-import-table:focus-visible{outline:3px solid var(--pt-green);outline-offset:3px}
.prayer-time-chip:hover,.prayer-time-field:focus-within{border-color:var(--pt-accent)}
.prayer-times-setup:hover,.prayer-times-secondary:hover,.prayer-times-done>button:hover{background:var(--light,#faf9f3)}
.prayer-times[dir=rtl] .prayer-times-kicker{letter-spacing:0}
.prayer-times-dialog[dir=rtl] .prayer-time-field-clock{direction:ltr}
.dark [data-prayer-tone=fajr]{--pt-accent:#d3b4ec;--pt-tint:#342a41}
.dark [data-prayer-tone=dhuhr]{--pt-accent:#f3c679;--pt-tint:#3e3222}
.dark [data-prayer-tone=asr]{--pt-accent:#ebc39a;--pt-tint:#3c3129}
.dark [data-prayer-tone=maghrib]{--pt-accent:#f4b0a2;--pt-tint:#452c2b}
.dark [data-prayer-tone=isha]{--pt-accent:#afc8f3;--pt-tint:#283449}
.dark .prayer-times-warning,.dark .prayer-times-zone-warning{background:#3d3020;color:#f2cc94;border-color:#936c39}
.dark .prayer-times-dialog input{color-scheme:dark}
@media(max-width:600px){.prayer-times-dialog{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - 16px);border-radius:23px 23px 0 0;padding-bottom:env(safe-area-inset-bottom)}.prayer-times-dialog-heading{padding:.85rem 1rem .75rem}.prayer-times-dialog-body{padding:.85rem 1rem 1rem}}
@media(max-width:380px){.prayer-times{padding:.75rem;border-radius:17px}.prayer-times-heading{gap:.4rem}.prayer-times-headline{font-size:1rem}.prayer-times-setup{padding:.4rem .5rem;font-size:.75rem}.prayer-times-setup svg{width:16px;height:16px}.prayer-time-chips{gap:.3rem}.prayer-time-chip{padding:.5rem .1rem;min-height:100px;font-size:.72rem;border-radius:11px}.prayer-time-clock{font-size:.8125rem}.prayer-times-dialog-body{padding-inline:.8rem}.prayer-times-editor form{padding:.7rem}.prayer-times-fields{grid-template-columns:1fr}.prayer-time-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:center;gap:.4rem}.prayer-time-field-clock{margin:0}.prayer-times-large-clock{font-size:1.3rem}}
@media(prefers-reduced-motion:no-preference){.prayer-times-dialog[open]{animation:prayer-times-arrive .17s ease-out}@keyframes prayer-times-arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}}
@media print{.prayer-times,.prayer-times-dialog{display:none!important}}

/* Opt-in location estimates and a static true-north qiblah diagram. */
.prayer-times-estimate{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.25rem;font-size:.6875rem;line-height:1.4;color:var(--muted,#627369)}
.prayer-times-estimate>span{min-width:0;overflow-wrap:anywhere}
.prayer-times-manual-label{font-size:.6875rem;line-height:1.4;color:var(--muted,#627369);margin:.35rem 0 0;overflow-wrap:anywhere}
.prayer-times-estimate>button{display:flex;align-items:center;gap:.25rem;min-height:44px;border:0;background:transparent;color:var(--pt-green);font:750 .75rem/1.3 var(--font-ui,system-ui);padding:.25rem .3rem;cursor:pointer}
.prayer-times.is-compact .prayer-time-clock.is-order{font-size:.625rem;line-height:1.25;text-wrap:balance;letter-spacing:0}
.prayer-location{border:1px solid var(--pt-line);border-radius:15px;margin-block:0 .8rem;background:var(--pt-panel)}
.prayer-location>summary{display:flex;align-items:center;gap:.5rem;min-height:48px;padding:.65rem .8rem;cursor:pointer;color:var(--pt-green);font-size:.9375rem;font-weight:800;list-style:none}
.prayer-location>summary::-webkit-details-marker{display:none}.prayer-location>summary>span{flex:1}.prayer-location>summary::after{content:'+';font-size:1.3rem}.prayer-location[open]>summary::after{content:'−'}
.prayer-location-body{padding:.1rem .8rem .8rem}
.prayer-location-intro{font-size:.9375rem;line-height:1.5;margin:.2rem 0 .6rem;font-weight:700}
.prayer-location-saved>strong{display:block;font-size:1.15rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.prayer-location-saved>span{display:block;font-size:.8125rem;line-height:1.55;color:var(--muted,#627369);margin-top:.25rem;overflow-wrap:anywhere}
.prayer-location-privacy{font-size:.75rem;line-height:1.6;color:var(--muted,#627369);margin:.7rem 0 .6rem}
.prayer-location-detect{width:100%;margin-top:.15rem}
.prayer-location-status{font-size:.8125rem;line-height:1.6;color:var(--pt-green);margin:.45rem 0;overflow-wrap:anywhere}.prayer-location-status:empty{display:none}
.prayer-location-body label{display:block;font-size:.8125rem;line-height:1.5;font-weight:700;margin-top:.6rem}
.prayer-location-body select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin-top:.3rem;border:1px solid var(--pt-line);border-radius:9px;background:var(--pt-panel);color:var(--pt-ink);font:500 1rem/1.4 var(--font-ui,system-ui);padding:.5rem .45rem}
.prayer-location-body input{width:100%;margin-top:.25rem}
.prayer-location-coordinates,.prayer-location-method{margin-block:.4rem .6rem}
.prayer-location-coordinates>summary,.prayer-location-method>summary{min-height:44px;box-sizing:border-box;padding:.6rem .1rem;font-size:.8125rem;font-weight:750;color:var(--pt-green);cursor:pointer}
.prayer-location-coordinate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.prayer-location-corrections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.prayer-location-remove{min-height:44px;padding:.45rem .65rem;border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--pt-green);font:650 .8125rem/1.5 var(--font-ui,system-ui);text-decoration:none;cursor:pointer;text-align:start}
.prayer-location-credit{font-size:.6875rem;margin:.35rem 0 0;color:var(--muted,#627369)}.prayer-location-credit a{color:inherit}
.prayer-location-preview-date{font-size:.6875rem;line-height:1.4;margin:.7rem 0 .4rem;color:var(--muted,#627369)}
.prayer-location-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem}
.prayer-location-preview>div{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.4rem .15rem;border-radius:9px;background:var(--pt-tint);color:var(--pt-accent);text-align:center;font-size:.875rem;line-height:1.3;min-width:0}
.prayer-location-preview strong{font-size:.875rem;overflow-wrap:anywhere}.prayer-location-preview span{text-wrap:balance;font-weight:650}
.prayer-location-manual-active{margin-top:.6rem;padding:.5rem .6rem;border:1px solid var(--pt-line);border-radius:10px;background:var(--pale,#eef2e7)}
.prayer-location-manual-active>p{font-size:.8125rem;line-height:1.45;margin:0;font-weight:700}.prayer-location-manual-active>p>span{font-weight:500;color:var(--muted,#627369);white-space:nowrap}
.prayer-qibla{display:flex;align-items:center;gap:.6rem;padding:.7rem 0;color:var(--pt-green)}
.prayer-qibla>svg{flex:none;direction:ltr;transform:none!important;max-width:40%}
.prayer-qibla>div{min-width:0}.prayer-qibla h3{font-size:1.2rem;font-weight:850;margin:0;line-height:1.35}.prayer-qibla p{font-size:.8125rem;font-weight:650;line-height:1.5;margin:.3rem 0}.prayer-qibla small{display:block;font-size:.75rem;line-height:1.55;color:var(--muted,#627369)}
.prayer-times-use-estimates{width:100%;margin-top:.5rem}
.prayer-location-body select:focus-visible{outline:3px solid var(--pt-green);outline-offset:3px}
.dark .prayer-location-body select{color-scheme:dark}
@media(max-width:480px){.prayer-location-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}}
@media(max-width:380px){.prayer-location-body{padding-inline:.6rem}.prayer-qibla>svg{width:88px;height:88px}.prayer-qibla h3{font-size:1.05rem}.prayer-location-coordinate-grid{grid-template-columns:1fr}}

/* v147: readable event times, secondary references and untimed prayer records. */
[data-prayer-tone=sunrise]{--pt-accent:#85531a;--pt-tint:#fff0d5}
[data-prayer-tone=sunset]{--pt-accent:#a34239;--pt-tint:#fbe6de}
[data-prayer-tone=midnight],[data-prayer-tone=imsak]{--pt-accent:#435f97;--pt-tint:#e8eef9}
.dark [data-prayer-tone=sunrise]{--pt-accent:#f3c679;--pt-tint:#3e3222}
.dark [data-prayer-tone=sunset]{--pt-accent:#f4b0a2;--pt-tint:#452c2b}
.dark [data-prayer-tone=midnight],.dark [data-prayer-tone=imsak]{--pt-accent:#afc8f3;--pt-tint:#283449}
.prayer-times.is-compact{padding:14px;border-radius:16px}
.prayer-times.is-compact .prayer-times-headline,.prayer-times.is-compact .prayer-times-setup{font-size:16px}
.prayer-times.is-compact .prayer-times-heading{margin-bottom:12px}
.prayer-times .prayer-time-chip,.prayer-times.is-compact .prayer-time-chip{cursor:default;min-height:108px;padding:10px 5px;font-size:16px;line-height:1.4;gap:3px}
.prayer-times .prayer-time-clock,.prayer-times.is-compact .prayer-time-clock{font-size:18px;line-height:1.4}
.prayer-time-chip small{font-size:13px;color:var(--muted,#627369);line-height:1.4}
.prayer-times-time-details{border-top:1px solid var(--pt-line);margin-top:10px}
.prayer-times-time-details>summary,.prayer-times-empty-checkins>summary,.prayer-location-comparison>summary{font-size:16px;min-height:44px;padding:10px 0;color:var(--pt-green);font-weight:650;cursor:pointer}
.prayer-times-time-details p{font-size:16px;line-height:1.6;margin:10px 0;overflow-wrap:anywhere}
.prayer-times-time-details a{color:var(--pt-green);text-underline-offset:3px}
.prayer-times-secondary-events{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px;margin:8px 0;padding:0}
.prayer-times-secondary-events>div{padding:12px;border:1px solid var(--pt-line);border-radius:10px}
.prayer-times-secondary-events dt{font-size:16px;font-weight:700}
.prayer-times-secondary-events dd{margin:4px 0 0;font-size:18px;font-weight:650}
.prayer-times-secondary-events small{display:block;margin-top:4px;font-size:14px;font-weight:400;color:var(--muted,#627369)}
.prayer-times-record-choices{display:flex;flex-wrap:wrap;gap:8px}
.prayer-times-record-choices button{min-height:44px;padding:8px 14px;border:1px solid var(--pt-line);border-radius:10px;background:var(--pt-panel);color:var(--pt-green);font:600 16px/1.4 var(--font-ui,system-ui)}
.prayer-times-estimate,.prayer-times-manual-label,.prayer-times-empty-hint{font-size:14px;line-height:1.5}
.prayer-times-estimate>button{font-size:16px}
.prayer-location-preview{gap:8px}.prayer-location-preview strong,.prayer-location-preview span{font-size:16px;line-height:1.45}
.prayer-location-preview>div{padding:10px 5px}.prayer-location-preview-date{font-size:14px}
.prayer-location-body label,.prayer-times-date-label,.prayer-times-source-label,.prayer-time-field-name{font-size:16px;line-height:1.5}
.prayer-times-primary{color:var(--on-accent,#fff)}
.prayer-times-time-details summary:focus-visible,.prayer-times-time-details a:focus-visible{outline:3px solid var(--pt-green);outline-offset:3px}
@media(max-width:600px){.prayer-time-chips,.prayer-location-preview{grid-template-columns:repeat(3,minmax(0,1fr))}.prayer-times.is-compact .prayer-time-chip{min-height:102px}.prayer-time-chip[data-prayer-event=midnight]{grid-column:span 2}.prayer-location-preview [data-prayer-event=midnight]{grid-column:span 2}}

.prayer-times-dialog-heading>.prayer-times-illustration{background:url('/assets/journeys166/qibla.webp') center/contain no-repeat;inline-size:3.5rem;block-size:3.5rem;object-fit:contain;border-radius:12px;flex:none}
.prayer-times-dialog-heading>.prayer-times-illustration+div{flex:1}
.prayer-times-dialog-body .prayer-qibla{font-variant-numeric:tabular-nums}


/* /devotion-routines.css */
.devotion-routines{margin:1.2rem 0 1.6rem;color:var(--ink);font-size:1rem;line-height:1.5}
.devotion-routines [hidden],.devotion-routine-dialog [hidden]{display:none!important}
.devotion-routines-heading,.devotion-routine-card>header,.devotion-routine-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.devotion-routines-heading{margin-bottom:.8rem}.devotion-routines-heading>div>span{display:block;font-size:.75rem;letter-spacing:.06em;color:var(--muted);font-weight:650}.devotion-routines-heading h2{font-family:inherit;font-weight:600;font-size:1.35rem;line-height:1.4;margin:.15rem 0}.devotion-routines button,.devotion-routine-dialog button,.devotion-routine-read{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-family:inherit;font-weight:500;font-size:.875rem;line-height:1.4;padding:.55rem .85rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.devotion-routines .devotion-routine-primary,.devotion-routine-dialog .devotion-routine-primary{background:var(--green);color:var(--panel);border-color:var(--green)}
.devotion-routines button:focus-visible,.devotion-routines a:focus-visible,.devotion-routines summary:focus-visible,.devotion-routine-dialog :is(button,input,select):focus-visible{outline:2px solid var(--green);outline-offset:3px}.devotion-routine-dialog button:disabled{opacity:.5;cursor:default}
.devotion-routine-starter{border:1px solid var(--line);border-inline-start:4px solid var(--green);border-radius:14px;background:var(--panel);padding:1rem;display:flex;align-items:center;flex-wrap:wrap;gap:.65rem 1rem}.devotion-routine-starter>div{flex:1 1 100%;}.devotion-routine-starter strong{font-size:1.05rem}.devotion-routine-starter p{margin:.3rem 0;color:var(--muted);font-size:.95rem}.devotion-routine-starter>a{color:var(--green);font-size:.875rem;padding:.55rem 0;text-underline-offset:3px}
.devotion-routine-card{border:1px solid var(--line);border-radius:16px;background:var(--panel);margin:.8rem 0;overflow:hidden}.devotion-routine-card>header{padding:.8rem 1rem;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--green) 5%,var(--panel))}.devotion-routine-card h3{font-size:1.08rem;line-height:1.4;margin:0}.devotion-routine-card>header p{font-size:.875rem;color:var(--muted);margin:.2rem 0 0}.devotion-routine-card ul{list-style:none;padding:0;margin:0}.devotion-routine-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.85rem 1rem;border-bottom:1px solid var(--line)}.devotion-routine-row:last-child{border-bottom:0}.devotion-routine-reading{min-width:0;flex:1}.devotion-routine-reading>a{display:block;font-size:1rem;font-weight:600;color:var(--ink);text-decoration:none}.devotion-routine-reading>a:hover{text-decoration:underline;text-underline-offset:3px}.devotion-routine-reading small{display:block;color:var(--muted);font-size:.875rem;margin-top:.2rem}.devotion-routine-row-actions{display:flex;gap:.4rem;align-items:center;flex-shrink:0}.devotion-routine-read{color:var(--green);border-color:color-mix(in srgb,var(--green) 40%,var(--line))}.devotion-routine-row.is-done .devotion-routine-reading>a{color:var(--green)}.devotion-routine-row button[aria-pressed=true]{background:color-mix(in srgb,var(--green) 8%,var(--panel));color:var(--green);border-color:var(--green)}.devotion-routine-done,.devotion-routine-counter{color:var(--green);font-size:.875rem}.devotion-routine-counter{display:block;margin-top:.2rem}.devotion-routine-empty{margin:.7rem 1rem;font-size:.95rem;color:var(--muted)}.devotion-routine-other>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:.7rem 1rem;color:var(--muted);font-size:.875rem;border-top:1px solid var(--line)}.devotion-routine-other[open]>summary{color:var(--ink)}.devotion-routine-status{font-size:.875rem;color:var(--green);margin:.7rem 0}
.devotion-routine-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 80px #0003;padding:0;width:min(45rem,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 3rem);overflow:hidden;font-family:inherit;font-size:1rem;line-height:1.5}.devotion-routine-dialog[open]{display:flex;flex-direction:column}.devotion-routine-dialog::backdrop{background:#142c236b;backdrop-filter:blur(2px)}.devotion-routine-dialog-heading{padding:1rem 1.2rem;border-bottom:1px solid var(--line);flex-shrink:0}.devotion-routine-dialog-heading small{font-size:.875rem;color:var(--green)}.devotion-routine-dialog-heading h2{font-size:1.3rem;line-height:1.4;margin:.15rem 0 0}.devotion-routine-dialog-heading>button{flex-shrink:0}.devotion-routine-dialog-body{padding:1rem 1.2rem;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}.devotion-routine-dialog label{font-size:.875rem;font-weight:500}.devotion-routine-name,.devotion-routine-search,.devotion-routine-general>label,.devotion-routine-schedule-item>label,.devotion-routine-item-timing>label{display:flex;flex-direction:column;gap:.35rem}.devotion-routine-dialog :is(input[type=text],input[type=search],input[type=date],input[type=time],select){min-height:44px;width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:8px;padding:.6rem .7rem;font:inherit;font-size:1rem}.devotion-routine-dialog select{padding-inline-end:2rem}.devotion-routine-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin:.9rem 0}.devotion-routine-filters button{font-size:.875rem;padding:.5rem .7rem}.devotion-routine-filters button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:color-mix(in srgb,var(--green) 7%,var(--panel))}.devotion-routine-search{margin-bottom:.8rem}.devotion-routine-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-height:20rem;overflow:auto;padding:.2rem .2rem .2rem 0}.devotion-routine-choice{padding:.7rem .65rem;display:flex;align-items:flex-start;gap:.6rem;border:1px solid var(--line);border-radius:10px;cursor:pointer;min-height:62px;box-sizing:border-box}.devotion-routine-choice:has(input:checked){border-color:var(--green);background:color-mix(in srgb,var(--green) 6%,var(--panel))}.devotion-routine-choice input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0;margin:.1rem 0 0}.devotion-routine-choice strong{font-size:.95rem;line-height:1.4;display:block;font-weight:550}.devotion-routine-choice small{font-size:.8rem;color:var(--muted);display:block;margin-top:.2rem}.devotion-routine-general{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.devotion-routine-weekdays{border:0;padding:0;margin:1rem 0 .7rem;display:flex;flex-wrap:wrap;gap:.35rem}.devotion-routine-weekdays legend{padding:0;margin-bottom:.5rem;font-size:.875rem}.devotion-routine-weekdays label{display:flex;align-items:center;gap:.3rem;min-height:40px;border:1px solid var(--line);border-radius:7px;padding:.2rem .45rem;font-size:.8rem;cursor:pointer}.devotion-routine-weekdays input{accent-color:var(--green);width:16px;height:16px}.devotion-routine-weekdays label:has(input:checked){border-color:var(--green);color:var(--green)}.devotion-routine-note{font-size:.875rem;color:var(--muted);margin:.6rem 0 1rem}.devotion-routine-schedule-item{padding:.85rem 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:.6rem .8rem;align-items:start}.devotion-routine-schedule-item h3{font-size:1rem;margin:.1rem 0;grid-column:1/-1}.devotion-routine-schedule-item p,.devotion-routine-schedule-item>small{margin:0;font-size:.875rem;color:var(--muted);grid-column:1/-1}.devotion-routine-item-timing{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;grid-column:1/-1}.devotion-routine-schedule-item>.devotion-routine-prescribed{color:var(--green);font-size:.85rem}.devotion-routine-dialog-footer{padding:.8rem 1.2rem;display:flex;align-items:center;gap:.6rem;border-top:1px solid var(--line);flex-shrink:0;background:var(--panel)}.devotion-routine-dialog-footer>span{margin-inline-end:auto;font-size:.875rem;color:var(--muted)}.devotion-routine-error{color:#a43329;border-inline-start:3px solid currentColor;padding:.45rem .7rem;font-size:.95rem;margin:.8rem 0}
@media(max-width:600px){.devotion-routines-heading{align-items:flex-start}.devotion-routines-heading h2{font-size:1.2rem}.devotion-routines-heading>div>span{font-size:.7rem;max-width:13rem}.devotion-routines-heading>button{max-width:10rem}.devotion-routine-starter{padding:.85rem}.devotion-routine-row{flex-wrap:wrap;padding:.75rem .85rem;gap:.45rem}.devotion-routine-reading{flex-basis:100%}.devotion-routine-row-actions{margin-inline-start:auto}.devotion-routine-dialog{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);border-radius:16px}.devotion-routine-dialog-heading,.devotion-routine-dialog-body,.devotion-routine-dialog-footer{padding:.8rem}.devotion-routine-dialog-heading h2{font-size:1.1rem}.devotion-routine-choices{grid-template-columns:1fr;max-height:20rem}.devotion-routine-schedule-item{grid-template-columns:1fr}.devotion-routine-general,.devotion-routine-item-timing{gap:.5rem}.devotion-routine-dialog-footer{flex-wrap:wrap}.devotion-routine-dialog-footer [data-devotion-ungroup]{font-size:.8rem}.devotion-routine-weekdays{gap:.25rem}.devotion-routine-weekdays label{padding:.2rem .3rem}}
@media(prefers-reduced-motion:reduce){.devotion-routine-dialog::backdrop{backdrop-filter:none}}

.devotion-routine-destination{display:flex;flex-direction:column;gap:.35rem;padding:.75rem;background:color-mix(in srgb,var(--green) 6%,var(--panel));border:1px solid var(--line);border-radius:10px;margin-bottom:.8rem}

.devotion-routines-heading>h2{font-size:1.15rem;font-weight:600;margin:.1rem 0}.devotion-routine-identity{display:flex;align-items:center;gap:.65rem;min-width:0}.devotion-routine-icon{width:2.15rem;height:2.15rem;border-radius:10px;display:grid;place-items:center;color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel));flex-shrink:0}.devotion-routine-icon svg{width:1.25rem;height:1.25rem}.devotion-routine-card>header{padding:.65rem .85rem}.devotion-routine-card>header button{font-size:.8rem;padding:.35rem .6rem;background:transparent}.devotion-routine-row{padding:.7rem .85rem;flex-wrap:wrap}.devotion-routine-row>.amal-prayer-occurrences{flex-basis:100%;margin-top:.15rem}.devotion-routine-row .amal-prayer-slots button{font-size:.76rem;padding:.35rem .2rem;min-height:48px}.devotion-routine-row .amal-prayer-counter button{min-width:44px;font-size:1.15rem;padding:.3rem}.devotion-routine-card h3{font-size:1rem}.devotion-routine-reading>a{font-size:.95rem}.devotion-routine-reading small{font-size:.8rem}.devotion-prayer-reminders{grid-column:1/-1;font-size:.85rem}.devotion-prayer-reminders>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--green)}.devotion-prayer-reminders>p{font-size:.8rem;color:var(--muted);margin:.1rem 0 .6rem}.devotion-prayer-reminders>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.6rem}.devotion-prayer-reminders label{display:flex;flex-direction:column;gap:.3rem}
.devotion-prayer-reminders>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--pale);font-weight:650;cursor:pointer;list-style:none}.devotion-prayer-reminders>summary::after{content:'⌄';font-size:1.1rem;line-height:1}.devotion-prayer-reminders[open]>summary::after{transform:rotate(180deg)}.devotion-prayer-reminders>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}

.devotion-routine-cadence{grid-column:1/-1;border:0;padding:0;margin:0}.devotion-routine-cadence legend{font-size:.875rem;font-weight:600;margin-bottom:.4rem}.devotion-routine-cadence>div{display:flex;gap:.4rem;flex-wrap:wrap}.devotion-routine-cadence button[aria-pressed=true]{background:var(--green);color:var(--panel);border-color:var(--green)}.devotion-routine-schedule-summary{margin:.75rem 0 .4rem;padding:.65rem .8rem;border-inline-start:3px solid var(--green);border-radius:0 8px 8px 0;background:color-mix(in srgb,var(--green) 6%,var(--panel));font-size:.875rem;font-weight:600;color:var(--ink)}

.devotion-routine-choice-heading{grid-column:1/-1;font-size:.8rem;font-weight:650;color:var(--green);margin:.25rem 0 0;padding:.1rem 0;line-height:1.4}.devotion-routine-choice-empty{grid-column:1/-1;font-size:.875rem;color:var(--muted);margin:.4rem 0}

.devotion-routine-card{border-inline-start:4px solid var(--routine-accent,var(--green));border-radius:18px}
.devotion-routine-card>header{align-items:flex-start;padding:.8rem .9rem;background:var(--routine-tint);gap:.65rem}
.devotion-routine-identity{align-items:center;flex:1;gap:.75rem}
.devotion-routine-identity>div{min-width:0;overflow-wrap:anywhere}
.devotion-routine-card .devotion-routine-identity .devotion-routine-icon{width:46px;height:46px;border-radius:14px;background:var(--routine-accent,var(--green));color:var(--panel)}
.devotion-routine-card .devotion-routine-icon svg{width:27px;height:27px;stroke-width:2}
.devotion-routine-card[data-routine-tone="night"] .devotion-routine-icon{border-radius:50%}
.devotion-routine-card[data-routine-tone="growth"] .devotion-routine-icon{border-radius:16px 7px 16px 7px}
.devotion-routine-card h3{font-size:1.08rem;font-weight:780;line-height:1.4;overflow-wrap:anywhere}
.devotion-routine-card>header p{margin:.2rem 0 0;font-size:.875rem}
.devotion-routine-card>header p bdi{color:var(--routine-accent,var(--green));font-weight:800;font-variant-numeric:tabular-nums}
.devotion-routine-card>header .devotion-routine-options-button{display:flex;gap:.35rem;min-height:44px;flex:none;font-weight:650;padding:.4rem .55rem;background:var(--panel)}
.devotion-routine-options-button svg{width:18px;height:18px;flex:none;color:var(--routine-accent,var(--green))}
.devotion-routine-options-button[aria-expanded="true"]{border-color:var(--routine-accent,var(--green))}
.devotion-routine-options{display:flex;flex-wrap:wrap;gap:.5rem;padding:.65rem .85rem;background:var(--routine-tint);border-bottom:1px solid var(--line)}
.devotion-routine-options button{gap:.45rem;font-weight:650;flex:1;min-width:9rem}
.devotion-routine-options svg{width:19px;height:19px;flex:none;color:var(--routine-accent,var(--green))}
.devotion-routine-card .devotion-routine-reading>strong{display:flex;align-items:flex-start;gap:.45rem;overflow-wrap:anywhere;min-width:0}
.devotion-routine-reading-icon{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:7px;color:var(--routine-accent,var(--green));background:var(--routine-tint)}
.devotion-routine-reading-icon svg{width:17px;height:17px;stroke-width:2}
.devotion-routine-reading>small{font-weight:650;color:var(--routine-accent,var(--green));margin-top:.25rem}
.devotion-routine-reading .amal-programme-progress{margin:.3rem 0 0;max-width:34rem}
.devotion-routine-row-actions{flex-wrap:wrap;gap:.45rem;max-width:100%}
.devotion-routine-row-actions .devotion-routine-toggle{font-weight:700;gap:.4rem;min-width:7.5rem}
.devotion-routine-check{width:20px;height:20px;box-sizing:border-box;border:2px solid var(--routine-accent,var(--green));border-radius:50%;display:grid;place-items:center;flex:none}
.devotion-routine-check svg{width:14px;height:14px;visibility:hidden;stroke-width:2.6}
.devotion-routine-toggle[aria-pressed="true"] .devotion-routine-check{background:var(--routine-accent,var(--green));color:var(--panel)}
.devotion-routine-toggle[aria-pressed="true"] .devotion-routine-check svg{visibility:visible}
.devotion-routine-card .devotion-routine-other>summary{font-weight:650;min-height:44px}
.devotion-routine-card .devotion-routine-completed>summary{color:var(--routine-accent,var(--green));background:var(--routine-tint)}
.devotion-routine-card .devotion-routine-row.is-done .devotion-routine-reading>strong{color:var(--routine-accent,var(--green))}
@media(max-width:480px){.devotion-routine-card>header{padding:.7rem .75rem;gap:.5rem}.devotion-routine-card .devotion-routine-identity .devotion-routine-icon{width:40px;height:40px;border-radius:12px}.devotion-routine-card .devotion-routine-icon svg{width:24px;height:24px}.devotion-routine-identity{gap:.55rem}.devotion-routine-card>header .devotion-routine-options-button{flex-direction:column;gap:.1rem;line-height:1.2;padding:.35rem .45rem;min-width:58px}.devotion-routine-card h3{font-size:1rem}.devotion-routine-row-actions{width:100%}.devotion-routine-row-actions>a{flex:1}.devotion-routine-row-actions>.devotion-routine-toggle{flex:1}}

/* v130: visual scheduling, explicit recommendations and a selectable clock. */
.devotion-routine-dialog button svg{width:21px;height:21px;flex:none}
.devotion-routine-dialog-heading h2{font-weight:800}
.devotion-recommendation{display:grid;grid-template-columns:48px 1fr;gap:.7rem;padding:1rem;border:1px solid color-mix(in srgb,var(--green) 35%,var(--line));border-radius:18px;background:color-mix(in srgb,var(--green) 7%,var(--panel));margin-bottom:1.2rem}
.devotion-recommendation-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px 8px 16px 8px;background:var(--green);color:var(--panel)}
.devotion-recommendation-icon svg{width:30px;height:30px}.devotion-recommendation strong{font-size:1.08rem;font-weight:800}.devotion-recommendation p{font-size:.95rem;margin:.15rem 0;font-weight:650}.devotion-recommendation small{display:block;font-size:.875rem;color:var(--muted)}
.devotion-recommendation>button{grid-column:1/-1;width:100%;font-weight:750;gap:.5rem;border-radius:12px;padding:.7rem}
.devotion-routine-cadence legend,.devotion-duration legend,.devotion-time-window legend{font-size:1rem;font-weight:780;padding:0;margin:0 0 .6rem}
.devotion-routine-cadence>div{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.devotion-routine-cadence button{padding:.8rem;justify-content:flex-start;gap:.65rem;min-height:88px;border-radius:15px;text-align:start;font-weight:650}
.devotion-routine-cadence button strong{display:block;font-size:1rem}.devotion-routine-cadence button small{display:block;font-size:.875rem;font-weight:500;margin-top:.2rem}
.devotion-cadence-visual{width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--green) 10%,var(--panel));color:var(--green);display:grid;place-items:center;flex:none}
.devotion-cadence-visual svg{width:27px!important;height:27px!important}
.devotion-routine-cadence button[aria-pressed=true]{background:var(--green);color:var(--panel)}.devotion-routine-cadence button[aria-pressed=true] .devotion-cadence-visual{background:color-mix(in srgb,var(--panel) 18%,var(--green));color:var(--panel)}
.devotion-duration,.devotion-time-window{border:0;padding:0;margin:1rem 0 0;min-width:0;grid-column:1/-1}
.devotion-duration>div,.devotion-time-window>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.devotion-duration button{flex-direction:column;gap:0;border-radius:13px;padding:.6rem;min-height:74px}.devotion-duration button strong{font-size:1.6rem;font-weight:850;line-height:1.15}.devotion-duration button span{font-size:.875rem}
.devotion-duration button[aria-pressed=true]{border-color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel));color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.devotion-time-window{margin:1.1rem 0}.devotion-time-window>div>button{flex-direction:column;gap:.45rem;padding:.75rem .35rem;border-radius:16px;font-size:.875rem;font-weight:700;position:relative}
.devotion-time-window>div>button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:color-mix(in srgb,var(--green) 6%,var(--panel))}
.devotion-window-visual{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#e7efea;color:#27634d}
.devotion-window-visual[data-window=morning]{background:#ffedbe;color:#9d6412}.devotion-window-visual[data-window=night]{background:#ebe3fa;color:#6b4995}
.devotion-window-visual>svg{width:32px!important;height:32px!important;stroke-width:2.2}.devotion-window-visual>.devotion-clock-face{width:42px!important;height:42px!important}
.devotion-time-window>small{font-size:.875rem;display:block;color:var(--muted);margin-top:.5rem}
.devotion-clock-launch{width:100%;padding:.65rem .8rem!important;gap:.75rem;border-radius:14px!important;justify-content:flex-start!important;text-align:start;margin:.65rem 0 0;min-height:76px!important}
.devotion-clock-launch>span{flex:1;min-width:0}.devotion-clock-launch strong{font-size:1.05rem;display:block;font-weight:780}.devotion-clock-launch small{font-size:.875rem;display:block;color:var(--muted);margin-top:.15rem}
.devotion-clock-face{color:var(--green);width:50px!important;height:50px!important;flex:none;fill:none;overflow:visible}
.devotion-clock-face .clock-wash{fill:color-mix(in srgb,var(--green) 8%,var(--panel));stroke:none}.devotion-clock-face .clock-outline{stroke:currentColor;stroke-width:2.2;opacity:.65}.devotion-clock-face .clock-tick,.devotion-clock-face .clock-pin{fill:currentColor;stroke:none}.devotion-clock-face .clock-hour{stroke:currentColor;stroke-width:5.5;stroke-linecap:round}.devotion-clock-face .clock-minute{stroke:currentColor;stroke-width:3;stroke-linecap:round}
.devotion-schedule-advanced{border:1px solid var(--line);border-radius:13px;margin:.8rem 0;padding:0 .8rem}.devotion-schedule-advanced>summary{list-style:none;min-height:48px;display:flex;align-items:center;gap:.55rem;cursor:pointer;font-weight:650;font-size:.95rem}.devotion-schedule-advanced>summary svg{width:21px;height:21px;color:var(--green)}.devotion-schedule-advanced[open]{padding-bottom:.7rem}
.devotion-schedule-advanced>summary::after{content:'+';margin-inline-start:auto;font-size:1.35rem}.devotion-schedule-advanced[open]>summary::after{content:'−'}
.devotion-routine-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem;margin-top:.7rem}.devotion-routine-weekdays legend{font-size:.875rem;font-weight:650}
.devotion-routine-weekdays label{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:50%;padding:.2rem 0;font-weight:700;font-size:.8rem;min-width:0}.devotion-routine-weekdays input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.devotion-routine-weekdays label:has(input:checked){background:var(--green);color:var(--panel);border-color:var(--green)}.devotion-routine-weekdays label:has(input:focus-visible){outline:2px solid var(--green);outline-offset:3px}
.devotion-routine-schedule-summary{font-size:.875rem;padding:.6rem .75rem;border-inline-start-width:3px;margin:.8rem 0}.devotion-schedule-adjust-label{font-weight:750;font-size:.95rem;margin:1rem 0 .5rem}
.devotion-routine-schedule-item{display:block;border:1px solid var(--line);border-radius:14px;padding:0;margin:.55rem 0;background:var(--panel)}
.devotion-routine-schedule-item>summary{min-height:72px;box-sizing:border-box;display:flex;align-items:center;gap:.65rem;cursor:pointer;list-style:none;padding:.75rem}
.devotion-routine-schedule-item>summary>span:nth-child(2){min-width:0;flex:1}.devotion-routine-schedule-item>summary strong{font-size:1rem;display:block;font-weight:750;overflow-wrap:anywhere}.devotion-routine-schedule-item>summary small{display:block;font-size:.875rem;color:var(--muted);line-height:1.4;margin-top:.2rem}
.devotion-schedule-icon{width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--green) 8%,var(--panel));color:var(--green);display:grid;place-items:center;flex:none}.devotion-schedule-icon svg{width:24px;height:24px}
.devotion-schedule-edit{color:var(--green);flex:none;display:grid;place-items:center;width:28px;height:28px}.devotion-schedule-edit svg{width:20px;height:20px}
.devotion-schedule-details{padding:.8rem;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.devotion-schedule-details>label,.devotion-reminder-control,.devotion-schedule-details>.devotion-prayer-reminders{grid-column:1/-1}.devotion-schedule-details>label{display:flex;flex-direction:column;gap:.3rem}.devotion-schedule-details>p,.devotion-schedule-details>small{grid-column:1/-1;font-size:.875rem;color:var(--muted);margin:0}
.devotion-reminder-control{min-width:0}.devotion-reminder-control .devotion-clock-launch{margin-top:0}.devotion-clock-exact>summary{font-size:.875rem;min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.devotion-clock-exact label{display:flex;flex-direction:column;gap:.3rem}
.devotion-prayer-reminders>div{grid-template-columns:repeat(2,minmax(0,1fr))}.devotion-prayer-clock{min-width:0}.devotion-prayer-clock>strong{font-size:.95rem}.devotion-prayer-clock .devotion-clock-launch{margin:.35rem 0}.devotion-prayer-clock .devotion-clock-face{width:38px!important;height:38px!important}.devotion-prayer-clock .devotion-clock-launch>svg:last-child{display:none}.devotion-prayer-exact{font-size:.875rem!important}
.devotion-clock-editor{display:flex;flex-direction:column;align-items:center;padding:.2rem 0;width:100%;min-width:0}.devotion-clock-digital{font-size:2rem;font-weight:850;line-height:1.3;color:var(--green);font-variant-numeric:tabular-nums;text-align:center}.devotion-clock-hint{font-size:.875rem;color:var(--muted);text-align:center;margin:.4rem 0 .7rem;max-width:24rem}
.devotion-clock-period{display:flex;gap:.5rem}.devotion-clock-period button{gap:.5rem;min-width:100px;font-weight:700}.devotion-clock-period button[aria-pressed=true]{background:var(--green);color:var(--panel);border-color:var(--green)}
.devotion-clock-dial{position:relative;width:264px;height:264px;max-width:100%;margin:.75rem auto;direction:ltr;border-radius:50%;background:color-mix(in srgb,var(--green) 7%,var(--panel));border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));flex:none}
.devotion-clock-dial .devotion-clock-face{position:absolute;inset:0;width:100%!important;height:100%!important;pointer-events:none}.devotion-clock-dial .clock-outline,.devotion-clock-dial .clock-tick{display:none}.devotion-clock-dial .clock-hour{stroke-width:2}.devotion-clock-dial .clock-minute{stroke-width:1;opacity:.5}.devotion-clock-dial .clock-pin{r:1.5}
.devotion-clock-dial button{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;border:0;border-radius:50%;padding:0;background:transparent;font-size:1.1rem;font-weight:750;z-index:1}.devotion-clock-dial button[aria-pressed=true]{background:var(--green);color:var(--panel);box-shadow:0 3px 9px #0002}.devotion-clock-dial button:focus-visible{outline-offset:1px}
.devotion-clock-minutes{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;width:100%;max-width:22rem;direction:ltr}.devotion-clock-minutes button{font-size:1rem;font-weight:750}.devotion-clock-minutes button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--panel)}
.devotion-clock-editor-exact{display:flex;flex-direction:column;gap:.3rem;width:100%;max-width:22rem;margin:.8rem 0 .25rem;font-size:.875rem}
.devotion-routine-dialog-footer:has([data-devotion-clock-apply])>span{display:none}
@media(max-width:600px){.devotion-routine-cadence button{padding:.65rem .5rem;gap:.4rem;flex-direction:column;align-items:flex-start}.devotion-routine-cadence button strong{font-size:.95rem}.devotion-routine-cadence button small{font-size:.875rem}.devotion-cadence-visual{width:36px;height:36px}.devotion-schedule-details{grid-template-columns:1fr}.devotion-routine-item-timing{grid-template-columns:1fr}.devotion-routine-weekdays{grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}.devotion-routine-weekdays label{border-radius:12px;min-height:44px}.devotion-prayer-reminders>div{grid-template-columns:1fr}.devotion-clock-dial{width:248px;height:248px}.devotion-clock-digital{font-size:1.8rem}.devotion-recommendation{padding:.8rem}.devotion-recommendation small{font-size:.875rem}.devotion-time-window>div{gap:.4rem}.devotion-time-window>div>button{font-size:.875rem}.devotion-window-visual{width:44px;height:44px}.devotion-routine-dialog-footer:has([data-devotion-clock-apply]){display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:.4rem}.devotion-routine-dialog-footer:has([data-devotion-clock-apply]) button{padding:.5rem .3rem;font-size:.875rem}}
@media(max-width:350px){.devotion-clock-dial{width:236px;height:236px}.devotion-clock-dial button{width:44px;height:44px}.devotion-clock-period button{min-width:90px}}
.devotion-routine-choice{align-items:center;border-radius:14px;padding:.75rem;gap:.7rem;min-height:78px}.devotion-routine-choice input{order:3;margin-inline-start:auto;flex:none}.devotion-choice-emblem{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;flex:none;background:color-mix(in srgb,var(--green) 8%,var(--panel));color:var(--green);order:1}.devotion-choice-emblem svg{width:27px;height:27px}.devotion-choice-copy{order:2;flex:1;min-width:0}.devotion-routine-choice .devotion-choice-copy strong{font-weight:750;font-size:1rem;overflow-wrap:anywhere}.devotion-routine-choice .devotion-choice-copy small{font-size:.875rem}.devotion-routine-choice:has(input:checked) .devotion-choice-emblem{background:var(--green);color:var(--panel)}
.devotion-recommendation .devotion-setup-kicker{font-size:.875rem;color:var(--green);font-weight:750;margin-bottom:.15rem}

/* Personal timing: prayer anchors, several clocks and reading counts stay distinct. */
.devotion-timing-picker{grid-column:1/-1;min-width:0;width:100%;margin:1rem 0}
.devotion-timing-picker>h3{margin:0 0 .65rem;font-size:1rem;font-weight:800;color:var(--ink)}
.devotion-timing-kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}
.devotion-timing-kinds>button{display:flex;flex-direction:column;gap:.5rem;min-height:112px;padding:.75rem .35rem;border-radius:16px;text-align:center}
.devotion-timing-kinds>button>strong{font-size:.95rem;line-height:1.35;font-weight:800}
.devotion-timing-kinds>button[aria-pressed=true]{border-color:var(--green);background:color-mix(in srgb,var(--green) 7%,var(--panel));box-shadow:inset 0 0 0 1px var(--green)}
.devotion-timing-visual{width:50px;height:50px;display:grid;place-items:center;flex:none;border-radius:15px;background:#e8edfa;color:#3b5686}
.devotion-timing-visual[data-timing-tone=clock]{background:#e3eeec;color:#27634d}
.devotion-timing-visual[data-timing-tone=after-prayer]{background:#e3f0dc;color:#386129;border-radius:50% 50% 12px 12px}
.devotion-timing-visual[data-timing-tone=before-prayer]{background:#ffedce;color:#86541b;border-radius:12px 12px 50% 50%}
.devotion-timing-visual>svg{width:40px!important;height:40px!important}
.devotion-timing-prayer-mark{position:relative;display:grid;place-items:center;width:40px;height:40px}
.devotion-timing-prayer-mark>svg{width:30px!important;height:30px!important}
.devotion-timing-prayer-mark>span{position:absolute;bottom:-4px;inset-inline-end:-5px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--panel);color:var(--ink);font-weight:850;font-size:1rem;border:1px solid currentColor}
.devotion-timing-detail{min-width:0;margin-top:.7rem}
.devotion-timing-clocks{display:grid;gap:.45rem}
.devotion-timing-clock-row{display:flex;align-items:center;gap:.4rem;min-width:0}
.devotion-timing-clock-row>.devotion-clock-launch{margin:0;flex:1;min-width:0}
.devotion-timing-remove{min-width:44px;min-height:44px;padding:.4rem!important;flex:none;border-radius:12px!important}
.devotion-timing-add{width:100%;gap:.5rem;justify-content:center!important;min-height:48px;border-style:dashed!important;border-radius:13px!important;font-weight:700}
.devotion-timing-prayers,.devotion-timing-offset,.devotion-timing-repetitions{border:0;margin:.8rem 0 0;padding:0;min-width:0}
.devotion-timing-picker legend{font-size:.9rem;font-weight:750;padding:0;margin-bottom:.45rem}
.devotion-timing-prayers>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem}
.devotion-timing-prayers>div>button{min-width:0;min-height:80px;display:flex;flex-direction:column;gap:.3rem;padding:.5rem .2rem;border-radius:13px}
.devotion-timing-prayers strong{font-size:.85rem;font-weight:750;overflow-wrap:anywhere}
.devotion-timing-prayers [data-prayer-tone]{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ffedce;color:#86541b}
.devotion-timing-prayers [data-prayer-tone=fajr]{background:#f2e4f6;color:#80518f}
.devotion-timing-prayers [data-prayer-tone=asr]{background:#ffe5d3;color:#98522b}
.devotion-timing-prayers [data-prayer-tone=maghrib]{background:#eee1f1;color:#7c4c84}
.devotion-timing-prayers [data-prayer-tone=isha]{background:#e1e8f9;color:#465d99}
.devotion-timing-prayers [data-prayer-tone]>svg{width:29px;height:29px}
.devotion-timing-prayers button[aria-pressed=true],.devotion-timing-offset button[aria-pressed=true],.devotion-timing-window button[aria-pressed=true],.devotion-timing-repetitions button[aria-pressed=true],.devotion-timing-partofday button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);color:var(--green);background:color-mix(in srgb,var(--green) 7%,var(--panel))}
.devotion-timing-every-prayer{margin-top:.5rem;min-height:44px;font-size:.875rem!important;gap:.4rem}
.devotion-timing-every-prayer::before{content:'✓';display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid currentColor;color:transparent}
.devotion-timing-every-prayer[aria-pressed=true]::before{background:var(--green);color:var(--panel)}
.devotion-timing-offset>div,.devotion-timing-window>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(4rem,1fr));gap:.4rem}
.devotion-timing-offset button,.devotion-timing-window button,.devotion-timing-repetitions button{min-height:46px;border-radius:12px;font-size:.875rem;padding:.4rem .3rem;font-weight:700}
.devotion-timing-custom{display:grid!important;grid-template-columns:1fr 5.5rem;align-items:center;gap:.5rem;margin:.5rem 0 0;font-size:.875rem!important;color:var(--muted)}
.devotion-timing-custom input{min-width:0;min-height:44px;text-align:center;font-weight:750;direction:ltr;font-variant-numeric:tabular-nums}
.devotion-timing-custom-fields{margin:.3rem 0 0}.devotion-timing-custom-fields>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--green);font-size:.85rem;text-decoration:underline;text-underline-offset:3px}.devotion-timing-custom-fields .devotion-timing-custom{margin-top:0}
.devotion-timetable-link{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:.8rem 0;padding:.65rem;border-radius:12px;background:color-mix(in srgb,var(--green) 5%,var(--panel))}
.devotion-timetable-link>span{display:flex;align-items:center;gap:.4rem;flex:1;min-width:10rem}
.devotion-timetable-link svg{width:22px;height:22px;flex:none;color:var(--green)}
.devotion-timetable-link small{font-size:.85rem;color:var(--muted);line-height:1.45}
.devotion-timetable-link button{min-height:44px;font-size:.85rem;font-weight:700}
.devotion-timing-window,.devotion-timing-partofday{border:1px solid var(--line);border-radius:12px;margin:.7rem 0 0;padding:0 .7rem}
.devotion-timing-window>summary,.devotion-timing-partofday>summary{display:flex;align-items:center;gap:.4rem;min-height:46px;list-style:none;cursor:pointer;font-size:.875rem;font-weight:650}
.devotion-timing-window>summary::after,.devotion-timing-partofday>summary::after{content:'+';margin-inline-start:auto;font-size:1.25rem}
.devotion-timing-window[open]>summary::after,.devotion-timing-partofday[open]>summary::after{content:'−'}
.devotion-timing-window[open],.devotion-timing-partofday[open]{padding-bottom:.65rem}
.devotion-timing-window>small{display:block;font-size:.85rem;color:var(--muted);margin-top:.5rem}
.devotion-timing-partofday>div{display:flex;gap:.35rem;flex-wrap:wrap}
.devotion-timing-partofday button{min-height:44px;flex:1;font-size:.85rem;gap:.3rem}
.devotion-timing-partofday button svg{width:20px!important;height:20px!important}
.devotion-timing-repetitions{border-top:1px solid var(--line);padding-top:.8rem;margin-top:1rem}
.devotion-timing-repetitions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
.devotion-timing-counter-note{display:block;font-size:.85rem;color:var(--muted);line-height:1.45;margin:.4rem 0 0}
.devotion-timing-summary{font-size:.875rem;font-weight:700;line-height:1.5;border-inline-start:3px solid var(--green);background:color-mix(in srgb,var(--green) 5%,var(--panel));padding:.6rem .75rem;border-radius:0 10px 10px 0;color:var(--ink);margin:.8rem 0 0}
.devotion-timing-mixed{font-size:.875rem;line-height:1.5;color:var(--muted);margin:.3rem 0 .6rem}
.devotion-schedule-details .devotion-timing-picker{margin:.2rem 0}
.devotion-schedule-details .devotion-timing-kinds{grid-template-columns:repeat(2,minmax(0,1fr))}
.devotion-schedule-details .devotion-timing-kinds>button{flex-direction:row;justify-content:flex-start;text-align:start;padding:.65rem;min-height:86px}
.devotion-schedule-details .devotion-timing-visual{width:42px;height:42px}
.devotion-clock-exact input[type=time]{direction:ltr}
.devotion-routine-dialog-footer:has([data-devotion-clock-apply]):not(:has([data-devotion-clock-clear])){grid-template-columns:1fr 1fr}
@media(max-width:600px){.devotion-timing-kinds{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.devotion-timing-kinds>button{flex-direction:row;justify-content:flex-start;gap:.5rem;text-align:start;min-height:88px;padding:.65rem .5rem}.devotion-timing-kinds>button>strong{font-size:.9rem}.devotion-timing-visual{width:42px;height:42px;border-radius:13px}.devotion-timing-visual>svg{width:34px!important;height:34px!important}.devotion-timing-prayer-mark{width:34px;height:34px}.devotion-timing-prayer-mark>svg{width:27px!important;height:27px!important}.devotion-timing-prayers>div{grid-template-columns:repeat(3,minmax(0,1fr))}.devotion-timing-offset>div,.devotion-timing-window>div{grid-template-columns:repeat(2,minmax(0,1fr))}.devotion-timetable-link>span{min-width:0;flex-basis:100%}.devotion-timetable-link>button{width:100%}.devotion-timing-clock-row .devotion-clock-launch>svg:last-child{display:none}.devotion-timing-clock-row .devotion-clock-launch strong{font-size:1rem}}
@media(max-width:350px){.devotion-timing-kinds>button,.devotion-schedule-details .devotion-timing-kinds>button{flex-direction:column;justify-content:center;text-align:center;min-height:100px}.devotion-timing-repetitions button{font-size:.8rem}.devotion-timing-custom{grid-template-columns:1fr 4.5rem}}
.devotion-bundle-switch{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;background:var(--pale);padding:.3rem;border-radius:13px;margin:0 0 1rem}.devotion-bundle-switch button{border-color:transparent;background:transparent;gap:.45rem;font-weight:700;padding:.6rem .4rem}.devotion-bundle-switch button[aria-pressed=true]{background:var(--panel);border-color:var(--green);color:var(--green);box-shadow:0 2px 6px #0001}.devotion-bundle-switch svg{width:21px;height:21px;flex:none}
.devotion-bundle-intro{font-size:1rem;line-height:1.5;margin:.2rem 0 1rem;color:var(--muted)}.devotion-bundle-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.devotion-bundle-card,.devotion-bundle-review{--bundle-ink:#26634e;--bundle-bg:#e3f2e6}.devotion-bundle-card[data-bundle-tone=blue],.devotion-bundle-review[data-bundle-tone=blue]{--bundle-ink:#244f86;--bundle-bg:#e8f0fb}.devotion-bundle-card[data-bundle-tone=amber],.devotion-bundle-review[data-bundle-tone=amber]{--bundle-ink:#805716;--bundle-bg:#fff0cc}.devotion-bundle-card[data-bundle-tone=violet],.devotion-bundle-review[data-bundle-tone=violet]{--bundle-ink:#654587;--bundle-bg:#f0e8fa}
.devotion-routine-dialog .devotion-bundle-card{display:flex;align-items:flex-start;text-align:start;gap:.75rem;width:100%;padding:1rem .85rem;border-radius:17px;border:1px solid color-mix(in srgb,var(--bundle-ink) 32%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--bundle-ink) 6%,var(--panel)),var(--panel));color:var(--ink)}.devotion-bundle-card:hover{box-shadow:0 5px 18px #0001;border-color:var(--bundle-ink)}.devotion-bundle-emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--bundle-bg);color:var(--bundle-ink);flex:none;transform:rotate(-3deg)}.devotion-bundle-emblem svg{width:29px;height:29px;stroke-width:2.2}.devotion-bundle-copy{display:flex;flex-direction:column;gap:.4rem;min-width:0}.devotion-bundle-copy>small{font-size:.875rem;font-weight:600;color:var(--muted)}.devotion-bundle-copy>strong{font-size:1.14rem;line-height:1.35;font-weight:800;color:var(--ink)}.devotion-bundle-copy>span{font-size:.94rem;line-height:1.45}.devotion-bundle-facts{display:flex;flex-direction:column;gap:.4rem;margin-top:.3rem}.devotion-bundle-facts b{font-size:.875rem;line-height:1.4;font-weight:650;display:flex;align-items:center;gap:.4rem}.devotion-bundle-facts svg{width:18px;height:18px;flex:none;color:var(--muted)}.devotion-bundle-copy>.devotion-bundle-action{font-size:.875rem;font-weight:750;color:var(--green);margin-top:.3rem;text-decoration:underline;text-underline-offset:3px}
.devotion-bundle-review{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem .75rem;padding:.85rem;border:1px solid var(--line);border-radius:15px;margin-bottom:1rem;background:var(--pale)}.devotion-bundle-review>div{flex:1;min-width:0}.devotion-bundle-review h3{font-size:1.1rem;line-height:1.4;margin:.15rem 0;font-weight:800}.devotion-bundle-review small,.devotion-bundle-review p{font-size:.875rem;line-height:1.5;color:var(--muted);margin:.15rem 0}.devotion-bundle-review details{flex:1 0 100%;border-top:1px solid var(--line);padding-top:.3rem}.devotion-bundle-review summary{min-height:44px;display:flex;align-items:center;font-size:.875rem;font-weight:700;cursor:pointer}.devotion-bundle-review details p{font-size:1rem;color:var(--ink);margin:.2rem 0 .6rem}.devotion-bundle-review a{display:inline-block;color:var(--green);font-size:.875rem;line-height:1.5;padding:.4rem 0;text-underline-offset:3px}.devotion-bundle-review summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:600px){.devotion-bundle-grid{grid-template-columns:1fr}.devotion-routine-dialog .devotion-bundle-card{padding:.85rem .75rem}.devotion-bundle-emblem{width:44px;height:44px}.devotion-bundle-switch button{font-size:.875rem}.devotion-bundle-copy>strong{font-size:1.08rem}}
/* Four choices remain visible together on narrow phones; details follow selection. */
@media(max-width:600px){.devotion-bundle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.devotion-routine-dialog .devotion-bundle-card{display:flex;flex-direction:column;gap:.35rem;padding:.7rem .55rem}.devotion-bundle-card .devotion-bundle-emblem{width:36px;height:36px;border-radius:11px}.devotion-bundle-card .devotion-bundle-emblem svg{width:24px;height:24px}.devotion-bundle-copy{gap:.25rem;width:100%}.devotion-bundle-copy>strong{font-size:1rem;line-height:1.3}.devotion-bundle-copy>small{font-size:.875rem}.devotion-bundle-facts{gap:.25rem;margin-top:.15rem}.devotion-bundle-facts b{font-size:.875rem;line-height:1.35;align-items:flex-start;gap:.3rem}.devotion-bundle-facts svg{width:16px;height:18px}.devotion-bundle-copy>.devotion-bundle-action{font-size:.875rem;margin-top:.15rem}.devotion-bundle-intro{font-size:.9375rem;line-height:1.45;margin:.1rem 0 .65rem}.devotion-bundle-switch{margin-bottom:.65rem}}
@media(max-width:600px){.devotion-bundle-copy>.devotion-bundle-action{display:none}}
.devotion-bundle-adjust{border-top:1px solid var(--line);margin-top:.8rem;padding-top:.3rem}.devotion-bundle-adjust>summary{display:flex;align-items:center;gap:.5rem;min-height:48px;font-size:.9375rem;font-weight:700;cursor:pointer;color:var(--green)}.devotion-bundle-adjust>summary svg{width:20px;height:20px}.devotion-bundle-adjust>summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.devotion-bundle-adjust .devotion-schedule-adjust-label,.devotion-bundle-adjust>.devotion-routine-schedule-summary{display:none}

.devotion-bundle-shelf{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem .75rem;margin:.15rem 0 .8rem;font-size:.95rem;font-weight:700}
.devotion-bundle-shelf select{min-height:44px;max-width:100%;min-width:9rem;font:inherit;padding:.35rem .6rem;border-radius:.7rem;background:var(--panel);color:var(--ink);border:1px solid var(--line)}
.devotion-bundle-review details a,.devotion-saved-bundle a{min-height:44px;display:inline-flex;align-items:center;margin-inline-end:1rem;color:var(--green);text-underline-offset:.15em}
.devotion-saved-bundle{flex:1 0 100%;border-top:1px solid var(--line);font-size:.95rem;padding:.15rem .35rem}
.devotion-saved-bundle summary{cursor:pointer;padding:.65rem .15rem;min-height:44px;font-weight:700}
.devotion-saved-bundle p{line-height:1.55;margin:.4rem 0}
.devotion-saved-bundle button{margin:.35rem 0}

.devotion-season-dates{display:grid;gap:.65rem;padding:1rem;border:1px solid var(--line,#cbd8cf);border-radius:.9rem;color:var(--ink);background:var(--panel)}
.devotion-season-dates h4,.devotion-season-dates p{margin:0}
.devotion-season-dates label{display:grid;gap:.25rem;font-weight:650}
.devotion-season-dates input,.devotion-season-dates select{box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:.5rem;font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line,#bdcfc6);border-radius:.5rem}

.today-routine-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
}
.today-routine-list > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  list-style: none;
  cursor: pointer;
}
.today-routine-list > summary::-webkit-details-marker {display: none}
.today-routine-list > summary::after {
  content: '';
  width: .48rem;
  height: .48rem;
  margin-inline-start: auto;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  color: var(--green);
  transform: rotate(45deg);
}
.today-routine-list[open] > summary::after {transform: rotate(225deg)}
.today-routine-list > summary:focus-visible {outline: 2px solid var(--green); outline-offset: 2px}
.today-routine-list-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .65rem;
  background: var(--pale);
  color: var(--green);
}
.today-routine-list-icon svg {width: 1.25rem; height: 1.25rem}
.today-routine-list > summary strong, .today-routine-list > summary small {display: block}
.today-routine-list > summary small {color: var(--muted); font-size: .875rem; margin-top: .15rem}
.today-routine-list-body {padding: .4rem .7rem .7rem; border-top: 1px solid var(--line)}
.devotion-bundle-already { display:block; font-size:.9rem; font-weight:700; color:var(--green,currentColor); }
.devotion-routine-identity [data-devotion-group-title]:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
[data-devotion-plan-result]:not([hidden]) { margin-block-start:.75rem; padding:.6rem .8rem; border-inline-start:3px solid var(--green,currentColor); line-height:1.6; }
[data-devotion-plan-result] a { display:inline-flex; align-items:center; min-height:44px; color:inherit; font-weight:650; text-underline-offset:.18em; }

/* Saved routines keep the reading name beside its direct actions on a phone. */
.devotion-routines-heading>[data-devotion-build]{gap:.4rem;white-space:normal;font-size:.875rem;line-height:1.3}
.devotion-routines-heading>[data-devotion-build]>svg{width:20px;height:20px;flex:none}
.devotion-routine-card>header{flex-wrap:nowrap;align-items:center;padding:.6rem .75rem}
.devotion-routine-card .devotion-routine-identity .devotion-routine-icon{width:36px;height:36px;border-radius:11px}
.devotion-routine-card .devotion-routine-icon svg{width:22px;height:22px}
.devotion-routine-card .devotion-routine-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem .6rem;padding:.65rem .75rem}
.devotion-routine-reading{min-width:0}
.devotion-routine-card .devotion-routine-row-actions{width:auto;flex-wrap:nowrap;margin:0;gap:.35rem;align-self:center}
.devotion-routine-row>.amal-prayer-occurrences,.devotion-routine-row>.amal-timed-occurrences,.devotion-routine-row>.amal-source-timing{grid-column:1/-1}
.devotion-routine-reading>small{font-size:.875rem;font-weight:500;line-height:1.45}
.devotion-reading-heading{align-items:flex-start;gap:.25rem}
.devotion-reading-heading>strong{min-width:0;font-size:1rem;line-height:1.4;overflow-wrap:break-word}
.devotion-reading-heading .schedule-remove-trigger{min-width:44px;width:44px;padding:0;opacity:.75}
.devotion-routine-options-button.routine-icon-control{background:transparent}
.devotion-routine-row-actions .devotion-routine-read{background:var(--routine-accent,var(--green));color:var(--panel);border-color:transparent}
.devotion-routine-row-actions .devotion-routine-toggle{background:var(--panel);color:var(--routine-accent,var(--green))}
.today-routine-list-body{padding:.2rem .35rem .35rem}
@media(max-width:380px){.devotion-routine-card .devotion-routine-identity .devotion-routine-icon{display:none}.devotion-routine-card .devotion-routine-row{grid-template-columns:minmax(0,1fr);gap:.35rem}.devotion-routine-card .devotion-routine-row-actions{justify-self:end}.devotion-routine-reading-icon{display:none}}
.worship-manage{padding-block-start:.5rem}
.worship-manage>h1{font-size:clamp(1.4rem,5vw,1.8rem);line-height:1.3;margin:.4rem 0 .65rem}
.worship-manage>.devotion-routines{margin:.3rem 0 .75rem}
.worship-manage .devotion-routines-heading{margin-bottom:.5rem;align-items:center;gap:.5rem}
.worship-manage .devotion-routines-heading h2{font-size:1rem}
.routine-secondary-tools{border-block-start:1px solid var(--line);padding-block-start:.5rem;margin-block-start:1rem}
.routine-secondary-tools .worship-obligation-shortcut{margin:0 0 .35rem}
.routine-secondary-tools .worship-obligation-shortcut>a{display:flex;align-items:center;gap:.55rem;min-height:44px;padding:.3rem .65rem;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--green);font-size:.94rem;font-weight:650}
.routine-secondary-tools .worship-obligation-shortcut svg{width:21px;height:21px;flex:none}
.routine-secondary-tools .worship-obligation-shortcut svg:last-child{margin-inline-start:auto}
.routine-secondary-tools .rci-settings{margin:.3rem 0}

/* One routine view, backed by the same cards, completion records and counters. */
[data-routine-dashboard] [hidden]{display:none!important}
.routine-day-overview{margin:.4rem 0 .85rem;padding:.7rem .8rem;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.routine-day-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.routine-day-heading h2{margin-inline-end:auto}
.routine-day-add{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;inline-size:44px;block-size:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--pale);color:var(--green);cursor:pointer}
.routine-day-add svg{inline-size:22px;block-size:22px}
.routine-day-add:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.routine-day-heading h2{margin:0;font:700 1.05rem/1.4 var(--font-ui,system-ui,sans-serif)}
.routine-day-count{color:var(--green);font-weight:650;font-size:.94rem;white-space:nowrap}
.routine-day-count bdi{font-variant-numeric:tabular-nums}
.routine-day-empty{font-size:.85rem;color:var(--muted)}
.routine-day-progress{display:block;width:100%;height:6px;accent-color:var(--green);margin:.55rem 0 .65rem;border:0;border-radius:10px;overflow:hidden}
.routine-day-progress::-webkit-progress-bar{background:var(--pale);border-radius:10px}
.routine-day-progress::-webkit-progress-value{background:var(--green);border-radius:10px}
.routine-view-controls,.routine-view-controls>div{display:flex;align-items:center;gap:.3rem;min-width:0}
.routine-view-controls{justify-content:space-between;gap:.6rem;margin-top:.55rem}
.routine-view-controls>div{background:var(--pale);padding:3px;border-radius:12px}
.routine-view-controls button{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:44px;padding:.35rem .65rem;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--green);font:650 .88rem/1.35 var(--font-ui,system-ui,sans-serif);cursor:pointer}
.routine-view-controls button[aria-pressed=true]{background:var(--panel);border-color:var(--line);color:var(--ink)}
.routine-view-controls button:disabled{opacity:.45;cursor:default}
.routine-view-controls button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.routine-view-controls svg{inline-size:19px;block-size:19px;flex:none}
.routine-view-controls .routine-focus-next{background:var(--green);color:white;flex:none}
.routine-attention{margin-top:.7rem;border-top:1px solid var(--line);padding-top:.5rem}
.routine-attention>strong{font-size:.8rem;color:var(--muted)}
.routine-attention ul{margin:.25rem 0 0;padding:0;list-style:none}
.routine-attention li+li{border-top:1px solid var(--line)}
.routine-attention button{display:flex;align-items:center;gap:.5rem;width:100%;min-height:44px;padding:.45rem 0;border:0;background:transparent;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.routine-attention button>span{flex:1;min-width:0;overflow-wrap:anywhere}
.routine-attention small{color:var(--muted);font-size:.76rem}
.routine-attention svg{width:18px;height:18px;flex:none;color:var(--green)}
.routine-attention button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.worship-manage[data-routine-dashboard] a{text-decoration:none}
[data-routine-view=focus] :is(.routine-secondary-tools,.schedule-card-tools,.devotion-routines-heading,.amal-cycles-heading,.amal-cycle-options-panel,.devotion-routine-options){display:none}
[data-routine-view=focus] .devotion-routine-other>summary{display:none}
[data-routine-view=focus] :is(.devotion-reading-heading,.amal-cycle-identity) [data-plan-remove]{display:none}
[data-routine-view=focus] .devotion-reading-heading>button{display:none}
[data-routine-view=focus] .devotion-routine-row{padding:.8rem;gap:.65rem}
[data-routine-view=focus] .devotion-routine-row-actions{justify-self:start;margin-inline-start:0}
.worship-manage[data-routine-view=focus] a:is(.devotion-routine-read,.amal-cycle-read){width:auto;inline-size:auto;flex-basis:auto;gap:.45rem;padding-inline:.9rem;border-radius:12px;min-height:48px}
[data-routine-view=focus] :is(.devotion-routine-read,.amal-cycle-read) .routine-action-label{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:normal}
[data-routine-view=focus] :is(.devotion-routine-reading strong,.amal-cycle-card h3){font-size:1.1rem;line-height:1.55}
@media(max-width:380px){.routine-day-overview{padding:.6rem}.routine-view-controls{gap:.25rem}.routine-view-controls button{padding-inline:.4rem;font-size:.82rem}.routine-view-controls svg{inline-size:17px;block-size:17px}}
.devotion-routine-dialog-heading>.routine-builder-close{width:44px;height:44px;min-width:44px;border-radius:50%;padding:0}
.devotion-routine-dialog-footer>[data-devotion-save]{gap:.4rem}

/* One practice, one schedule. A single scroll region keeps Save within reach at large text sizes. */
.devotion-routine-dialog[data-routine-quick]{
  width:min(31.5rem,calc(100% - 1.25rem));
  max-height:calc(100dvh - 1.25rem);
  color:var(--ink);
  border-radius:1.4rem;
}
[data-routine-quick] .devotion-routine-dialog-heading{
  align-items:center;justify-content:flex-start;gap:.65rem;
  padding:.9rem 1.15rem .65rem;border:0;
}
[data-routine-quick] .devotion-routine-dialog-heading h2{
  flex:1;font-size:clamp(1.2rem,3vw,1.5rem);line-height:1.4;margin:0;
}
[data-routine-quick] .practice-illustration{
  width:4.6rem;height:3.15rem;object-fit:cover;border-radius:.65rem;
}
[data-routine-quick] .practice-schedule-mark{
  width:2.65rem;height:2.65rem;display:grid;place-items:center;border-radius:50%;
  color:var(--green);background:color-mix(in srgb,var(--green) 10%,var(--panel));
}
[data-routine-quick] .practice-schedule-mark svg{width:1.7rem;height:1.7rem}
[data-routine-quick] .practice-body{padding:0 1.15rem .9rem;scrollbar-gutter:auto}
[data-routine-quick] .practice-search{
  min-height:46px;display:flex;align-items:center;gap:.6rem;
  padding:0 .72rem;margin:.25rem 0 .5rem;border:1px solid var(--line);border-radius:.7rem;
  color:var(--muted);background:var(--panel);box-sizing:border-box;
}
[data-routine-quick] .practice-search:focus-within{outline:2px solid var(--green);outline-offset:1px}
[data-routine-quick] .practice-search>svg{width:1.2rem;flex:none}
[data-routine-quick] .practice-search input{
  flex:1;width:100%;min-width:0;min-height:44px;padding:.4rem 0;
  border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:1rem;
}
[data-routine-quick] .practice-options{display:grid;margin:0}
[data-routine-quick] .practice-option,[data-routine-quick] .practice-picked{
  display:flex;width:100%;align-items:center;justify-content:flex-start;gap:.7rem;
  padding:.6rem .2rem;border:0;border-bottom:1px solid var(--line);background:transparent;
  border-radius:0;text-align:start;min-height:3.3rem;
}
[data-routine-quick] .practice-option:hover{background:color-mix(in srgb,var(--green) 5%,var(--panel))}
[data-routine-quick] .practice-symbol{flex:none;display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:.7rem;background:#edf0f8;color:#485879}
[data-routine-quick] .practice-symbol[data-practice-tone=quran]{background:#dfeee7;color:#1e6855;border-radius:.75rem .75rem .35rem .35rem}
[data-routine-quick] .practice-symbol[data-practice-tone=count]{background:#fbe8c8;color:#80551a;border-radius:50%}
[data-routine-quick] .practice-symbol[data-practice-tone=recite]{background:#f7e4e8;color:#85394a}
[data-routine-quick] .practice-symbol svg{width:1.45rem;height:1.45rem}
[data-routine-quick] .practice-identity{min-width:0;flex:1;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
[data-routine-quick] .practice-identity strong{flex:1 1 8rem;color:var(--ink);font-size:1rem;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
[data-routine-quick] .practice-identity .duration-badge{font-size:.84rem}
[data-routine-quick] .practice-pages{display:flex;align-items:center;justify-content:space-between;gap:.35rem;margin-top:.4rem}
[data-routine-quick] .practice-pages span{color:var(--muted);font-variant-numeric:tabular-nums}
[data-routine-quick] button.practice-link,[data-routine-quick] .practice-pages button{
  border:0;background:transparent;color:var(--green);padding:.3rem .25rem;min-height:44px;gap:.45rem;
}
[data-routine-quick] .practice-picked{border:0;padding:.2rem 0 .75rem}
[data-routine-quick] .practice-segment{margin:.45rem 0 .8rem;padding:0;border:0;min-inline-size:0}
[data-routine-quick] .practice-segment legend,[data-routine-quick] .practice-input,[data-routine-quick] .practice-name{font-weight:650;font-size:.95rem;color:var(--ink)}
[data-routine-quick] .practice-segment legend{margin:0 0 .3rem;padding:0}
[data-routine-quick] .practice-segment>div{display:flex;gap:.4rem;flex-wrap:wrap}
[data-routine-quick] .practice-segment button{
  flex:1 1 5.6rem;min-width:0;min-height:44px;gap:.35rem;border-radius:.65rem;
  padding:.35rem .4rem;line-height:1.4;white-space:normal;
}
[data-routine-quick] .practice-segment button svg{width:1.1rem;height:1.1rem}
[data-routine-quick] .practice-segment button[aria-pressed=true]{
  border:2px solid var(--green);font-weight:700;background:color-mix(in srgb,var(--green) 9%,var(--panel));color:var(--ink);
}
[data-routine-quick] .practice-input,[data-routine-quick] .practice-name{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:.45rem 0;
}
[data-routine-quick] .practice-input :is(input,select),[data-routine-quick] .practice-name input{
  color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:.5rem;
  flex:1 1 8rem;max-width:100%;min-width:0;min-height:44px;
  box-sizing:border-box;font:inherit;padding:.35rem .6rem;
}
[data-routine-quick] .practice-custom{border-top:1px solid var(--line);margin-top:.65rem}
[data-routine-quick] .practice-custom summary{min-height:44px;align-content:center;cursor:pointer;font-weight:600}
[data-routine-quick] .practice-footer{
  padding:.6rem 1.15rem max(.6rem,env(safe-area-inset-bottom));
  display:flex;justify-content:space-between;align-items:center;gap:.55rem;flex-wrap:wrap;
}
[data-routine-quick] .practice-footer button{gap:.45rem;min-height:46px}
[data-routine-quick] .practice-footer .devotion-routine-primary{flex:1 1 8rem;max-width:19rem}
@media(max-width:480px){
  .devotion-routine-dialog[data-routine-quick]{width:100%;max-height:calc(100dvh - .5rem);margin:auto auto 0;border-radius:1.2rem 1.2rem 0 0}
  [data-routine-quick] .devotion-routine-dialog-heading,[data-routine-quick] .practice-footer{padding-inline:.9rem}
  [data-routine-quick] .practice-body{padding-inline:.9rem}
}
.devotion-routine-choices:has(.practice-multiple-pages){max-height:none;overflow:visible}
.devotion-routine-choices .practice-multiple-pages{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:.4rem}
.routine-day-overview:empty{display:none}
.worship-manage .routine-start-hero{
  display:flex;justify-content:flex-start;align-items:center;gap:clamp(.75rem,3vw,1.4rem);
  margin-block:1rem 1.5rem;padding:0;background:transparent;
}
.worship-manage .routine-start-hero>img{
  width:clamp(5.5rem,23vw,9rem);max-width:32%;height:auto;object-fit:contain;border-radius:.85rem;
}
.worship-manage .routine-start-hero p{margin:0 0 .65rem;font-size:1rem;color:var(--ink)}
.worship-manage .routine-start-hero .devotion-routine-primary{display:inline-flex;gap:.45rem;min-height:46px}
[data-devotion-routine][data-routine-single-title] .devotion-reading-heading>strong{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
[data-routine-quick] .practice-footer a.devotion-routine-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:46px;padding:.4rem .7rem;box-sizing:border-box;border-radius:.65rem;
  background:var(--green);color:var(--panel);font-weight:650;text-decoration:none;
}
[data-routine-quick] .practice-footer a svg{width:1.3rem;height:1.3rem}
[data-routine-quick] .practice-current{margin:.4rem 0;color:var(--ink)}

/* A reading's duration is a filter, independent of the schedule chosen next. */
[data-routine-quick] .practice-find,[data-routine-quick] .practice-catalogue-tools {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
[data-routine-quick] .practice-find .practice-search {flex:1 1 11rem;min-width:0}
[data-routine-quick] .practice-time {display:inline-flex;align-items:center;gap:.25rem;color:var(--muted);min-height:44px}
[data-routine-quick] .practice-time select {min-height:44px;font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:.65rem;padding-inline:.4rem}
[data-routine-quick] .practice-catalogue-tools {justify-content:space-between;margin-block:.4rem}
[data-routine-quick] .practice-catalogue-tools:empty {display:none}
[data-routine-quick] .practice-input.practice-kind {flex:1 1 8rem;max-width:16rem}
[data-routine-quick] .practice-pages output {font-variant-numeric:tabular-nums;min-inline-size:5ch;text-align:center}
[data-routine-quick] .practice-pages button {min-inline-size:44px;min-block-size:44px}
[data-routine-quick] .practice-options[data-quick-list] .practice-option {content-visibility:auto;contain-intrinsic-block-size:auto 4rem}
[data-routine-quick] .practice-illustration {inline-size:3.5rem;block-size:3.5rem;object-fit:contain;flex:none}
[data-routine-quick] .practice-no-fit {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-block:.5rem}
[data-routine-quick] .practice-no-fit img {inline-size:3rem;block-size:3rem;object-fit:contain}
.practice-plan-preview{border-block-end:1px solid var(--line);padding-block:.2rem .8rem;margin-block-end:.9rem;min-inline-size:0}
.practice-preview-identity{display:flex;align-items:center;gap:.7rem}.practice-preview-identity>img{width:3.6rem;height:3.6rem;object-fit:contain;border-radius:.7rem}
.practice-preview-identity>div{min-inline-size:0;flex:1}.practice-preview-identity :is(small,strong,div>span){display:block;overflow-wrap:anywhere}
.practice-preview-identity small,.practice-preview-measure,.practice-source-note{color:var(--muted);font-size:.9rem}.practice-preview-identity strong{font-size:1.24rem;line-height:1.45;font-weight:650}
.practice-preview-measure{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.35rem;margin-block:.55rem .2rem}
.practice-preview-measure strong{color:var(--ink);font-variant-numeric:tabular-nums}.practice-preview-dates{margin-inline-start:auto}.practice-preview-dates time{unicode-bidi:isolate}
.practice-preview-when{display:flex;gap:.4rem;align-items:center;line-height:1.55;margin:0;font-size:1rem}.practice-preview-when svg{width:1.2rem;height:1.2rem;color:var(--green)}
@media(max-width:360px){.practice-preview-identity>img{width:3rem;height:3rem}.practice-preview-dates{flex-basis:100%;margin-inline-start:0}}

/* Keep the reading action first. Its timetable, completion and editing controls have distinct roles. */
.worship-manage[data-routine-dashboard] .routine-view-controls .routine-focus-next {
  border-color:var(--line);color:var(--green);background:var(--panel);font-weight:550;
}
.worship-manage[data-routine-dashboard] .routine-view-controls>div {border:1px solid var(--line);padding:2px}
.worship-manage[data-routine-dashboard] .routine-view-controls button {font-weight:550}
.worship-manage[data-routine-dashboard] .routine-day-count {font-weight:550}
.worship-manage[data-routine-dashboard] .amal-timing-occurrence[data-timing-state=ready] {
  background:color-mix(in srgb,var(--green) 5%,var(--panel));color:var(--ink);
  border:1px solid var(--line);box-shadow:none;border-radius:.75rem;padding:.45rem .65rem;
}
.worship-manage[data-routine-dashboard] .amal-timing-occurrence[data-timing-state=ready] .amal-timing-icon{display:none}
.worship-manage[data-routine-dashboard] .amal-timing-occurrence[data-timing-state=ready] .amal-timing-badge {
  color:var(--green);font-size:.875rem;font-weight:600;letter-spacing:normal;
}
.worship-manage[data-routine-dashboard] .amal-timing-occurrence[data-timing-state=ready] .amal-timing-anchor {
  display:inline-block;color:var(--muted);font-size:.875rem;font-weight:500;
}
.worship-manage[data-routine-dashboard] .amal-timing-signal {flex:1 1 7rem;min-inline-size:0}
.worship-manage[data-routine-dashboard] .amal-timing-occurrence[data-timing-state=ready] .amal-timed-record {
  color:var(--green);background:var(--panel);border:1px solid var(--line);box-shadow:none;min-block-size:44px;
}
.worship-manage[data-routine-dashboard] .amal-prayer-slots{gap:.25rem;margin-block:.35rem .5rem}
.worship-manage[data-routine-dashboard] .amal-prayer-slots button {gap:.15rem;border-radius:.65rem;line-height:1.55}
.worship-manage[data-routine-dashboard] .amal-prayer-slots small {color:var(--muted);font-size:.77rem;line-height:1.4}
.worship-manage[data-routine-dashboard] .prayer-sitting-time {display:inline-flex;align-items:center;gap:.35rem;font-size:.875rem;color:var(--muted)}
.worship-manage[data-routine-dashboard] .devotion-routine-counter {margin-block:.3rem;font-size:.875rem;font-weight:500}
.worship-manage[data-routine-dashboard] .amal-prayer-reading {justify-content:flex-start;margin-block-start:.45rem}
.worship-manage[data-routine-dashboard] .amal-prayer-reading a {min-block-size:44px}
.worship-manage[data-routine-dashboard] .amal-cycle-actions:empty {display:none}
.worship-manage[data-routine-view=all] [data-plan-remove-surface]:not([data-schedule-remove-revealed]):not(:has([aria-expanded=true])) .schedule-remove-trigger:not(:focus-visible),
.worship-manage[data-routine-view=all] [data-devotion-routine]:not(:has([data-devotion-options][aria-expanded=true])) [data-routine-remove-surface]:not([data-schedule-remove-revealed]) .schedule-remove-trigger:not(:focus-visible) {position:absolute;inline-size:1px;block-size:1px;min-inline-size:0;min-block-size:0;max-inline-size:1px;max-block-size:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
@media(max-width:320px){
 .worship-manage[data-routine-dashboard] .amal-prayer-slots {grid-template-columns:repeat(auto-fit,minmax(48px,1fr))}
}

.devotion-routine-dialog .bundle-directory-search {
  display:flex;align-items:center;gap:.65rem;min-height:44px;margin-block:.4rem .85rem;
  padding-inline:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted)
}
.bundle-directory-search > svg {width:19px;height:19px;flex:none}
.devotion-routine-dialog .bundle-directory-search input {flex:1;min-width:0;width:100%;min-height:44px;padding:.45rem 0;margin:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit}
.bundle-directory-search:focus-within {outline:2px solid var(--green);outline-offset:2px}
.bundle-directory-heading,.bundle-results-heading {display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.bundle-directory-heading {font-size:.84rem;color:var(--muted)}
.devotion-routine-dialog .bundle-directory-heading button {min-height:44px;padding:.25rem .35rem;border:0;border-radius:.4rem;background:transparent;color:var(--green);font-weight:650}
.bundle-directory-heading button[aria-pressed="true"] {text-decoration:underline;text-underline-offset:.2em}
.bundle-category-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.32rem;margin:0;padding:0}
.devotion-routine-dialog .bundle-category-grid button {
  display:flex;align-items:center;justify-content:flex-start;gap:.32rem;min-width:0;min-height:44px;padding:.3rem .5rem;
  background:transparent;border:1px solid var(--line);border-radius:9px;color:var(--ink);
  font:inherit;font-weight:500;font-size:.85rem;line-height:1.3;text-align:start;overflow-wrap:anywhere
}
.bundle-category-grid svg {flex:none;width:16px;height:16px;color:var(--muted)}
.devotion-routine-dialog .bundle-category-grid button[aria-pressed="true"] {color:var(--green);background:var(--pale);border-color:var(--green);font-weight:650}
.bundle-category-grid button[aria-pressed="true"] svg {color:inherit}
.bundle-results-heading {margin:.9rem 0 .35rem;color:var(--ink);font-size:.95rem}
.bundle-results-heading bdi {color:var(--muted);font-size:.84rem;font-variant-numeric:tabular-nums}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:0;border-block-start:1px solid var(--line)}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-grid + .devotion-bundle-grid {border-block-start:0}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-card {
  display:grid;grid-template-columns:2.15rem minmax(0,1fr) auto;align-items:center;gap:.65rem;min-height:58px;
  width:100%;padding:.6rem .1rem;margin:0;border:0;border-block-end:1px solid var(--line);
  border-radius:0;background:transparent;box-shadow:none;text-align:start;text-decoration:none;color:var(--ink);line-height:1.35
}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-card:is(:focus-visible,:hover) {background:var(--pale)}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-emblem {width:2.1rem;height:2.1rem;padding:.4rem;border:0;border-radius:9px;color:var(--green);background:var(--pale)}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-emblem svg {width:100%;height:100%}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-copy {display:grid;gap:.12rem;min-width:0}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-copy strong {font-size:.98rem;font-weight:620;color:var(--ink);line-height:1.48;overflow-wrap:anywhere}
.bundle-result-meta {color:var(--muted);font-size:.84rem;line-height:1.5}
.bundle-result-trailing,.bundle-result-arrow,.bundle-result-trailing .devotion-bundle-already {display:inline-flex;gap:.3rem;align-items:center}
.bundle-result-arrow {color:var(--muted)}.bundle-result-arrow svg,.bundle-result-trailing .devotion-bundle-already svg {width:15px;height:15px}
.devotion-routine-dialog [data-bundle-results] .devotion-bundle-already {font-size:.8rem;color:var(--green)}
:is(.devotion-routines,.routine-day-actions) .routine-browse-bundles {min-height:44px;display:inline-flex;gap:.4rem;align-items:center;justify-content:center;margin-inline-start:.4rem;padding:.35rem .6rem;background:transparent;border:1px solid var(--line);border-radius:.65rem;color:var(--green);font:inherit;font-weight:600}
.routine-browse-bundles svg {width:18px;height:18px}
@media(max-width:390px) {
  .devotion-routine-dialog .bundle-category-grid button {gap:.25rem;padding:.25rem .3rem;font-size:.81rem}
  .devotion-routine-dialog [data-bundle-results] .devotion-bundle-card {grid-template-columns:1.8rem minmax(0,1fr) auto;gap:.45rem}
  .devotion-routine-dialog [data-bundle-results] .devotion-bundle-emblem {width:1.8rem;height:1.8rem}
  .bundle-result-trailing:has(.duration-badge) .bundle-result-arrow {display:none}
  :is(.devotion-routines,.routine-day-actions) .routine-browse-bundles {margin-inline-start:0}
}
.devotion-routine-dialog .devotion-routine-dialog-footer[hidden] {display:none}
.bundle-season-section h3 {margin:.8rem 0 .22rem;font-size:.85rem;font-weight:640;color:var(--green)}
.bundle-review-reading {display:inline-flex;align-items:center;gap:.4rem;min-height:44px;color:var(--green);font-weight:600;text-underline-offset:.18em}
.bundle-review-reading svg {width:16px;height:16px}

.routine-day-heading:has(.routine-day-actions) {flex-wrap:wrap}
.routine-day-actions {display:inline-flex;align-items:center;gap:.4rem;margin-inline-start:auto}
.routine-day-actions .routine-browse-bundles {margin:0}

/* Saved routines share one surface. Accent colour belongs to the practice or selected prayer. */
:is(.devotion-routines,.amal-cycles-today) :is(.devotion-routine-card,.amal-cycle-card) {
  border:1px solid var(--line);border-radius:12px;box-shadow:none;background:var(--panel)
}
.devotion-routines .devotion-routine-card>header {
  background:transparent;border:0;padding-block:.35rem;gap:.45rem
}
.devotion-routines .devotion-routine-card .devotion-routine-identity .devotion-routine-icon {
  background:var(--routine-tint);color:var(--routine-accent);inline-size:32px;block-size:32px;border-radius:9px
}
.devotion-routines .devotion-routine-identity h3 {font-weight:650}
.devotion-routines .devotion-routine-card .devotion-routine-row {
  padding-block:.4rem;column-gap:.55rem;row-gap:.22rem
}
.devotion-routines .devotion-reading-heading {min-inline-size:0}
.devotion-routines .devotion-routine-reading>small {
  color:var(--muted);font-weight:500
}
.devotion-routine-reading .prayer-sitting-time,.devotion-routine-reading .devotion-routine-counter {
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:.3rem
}
.devotion-routine-reading .prayer-sitting-time+.devotion-routine-counter {margin-inline-start:.7rem}
:is(.devotion-routines,.amal-cycles-today) .amal-programme-progress {max-inline-size:24rem;margin-block:.3rem}
.devotion-routines .devotion-flexible-actions {
  display:flex;flex-wrap:wrap;align-items:center;gap:.12rem .7rem;grid-column:1/-1;min-inline-size:0
}
.devotion-routines .devotion-flexible-actions>.amal-timed-occurrences {flex:1 1 11rem;min-inline-size:0;margin:0}
.worship-manage[data-routine-dashboard] .devotion-flexible-actions .amal-timing-occurrence,
.devotion-routines .devotion-flexible-actions .amal-timing-occurrence {
  min-inline-size:0;gap:.3rem;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ink)
}
.devotion-routines .devotion-flexible-actions .amal-timing-icon {display:none}
.devotion-routines .devotion-flexible-actions .amal-timing-badge {text-transform:none;letter-spacing:normal}
.devotion-routines .devotion-flexible-actions .amal-timing-signal {flex:1 1 auto;min-inline-size:0}
.worship-manage[data-routine-dashboard] .devotion-flexible-actions .amal-timed-record,
.devotion-routines .devotion-flexible-actions .amal-timed-record {
  min-block-size:44px;min-inline-size:44px;padding:.25rem .45rem;
  color:var(--green);background:transparent;border:0;box-shadow:none;font-weight:550
}
.worship-manage[data-routine-view] .devotion-routine-card a:is(.devotion-routine-read,.amal-cycle-read),
.devotion-routines .devotion-routine-card a:is(.devotion-routine-read,.amal-cycle-read) {
  min-block-size:44px;padding:.3rem .55rem;border-radius:.55rem;border:0;
  color:var(--routine-accent,var(--green));background:var(--routine-tint);font-weight:600
}
.devotion-routines .devotion-routine-card .amal-prayer-occurrences {margin:0;padding:0;border:0}
.worship-manage[data-routine-dashboard] .amal-prayer-slots button,
.devotion-routines .amal-prayer-slots button {
  min-block-size:48px;min-inline-size:0;gap:.08rem;border:0;border-radius:0;
  background:transparent;color:var(--ink);border-block-end:2px solid transparent
}
.worship-manage[data-routine-dashboard] .amal-prayer-slots button[aria-pressed=true],
.devotion-routines .amal-prayer-slots button[aria-pressed=true] {
  border-block-end-color:var(--routine-accent,var(--green));color:var(--routine-accent,var(--green));
  background:var(--routine-tint);border-radius:.4rem .4rem 0 0;font-weight:650
}


/* /routine-check-in.css */
.rci-tile,.rci-settings,.rci-day{--rci-surface:#eaf3ed;--rci-ink:#153c32;--rci-accent:#2a6550;--rci-line:#bfd4c6;box-sizing:border-box}
:is(.rci-tile,.rci-day)[data-rci-theme=dawn]{--rci-surface:#fbefe4;--rci-ink:#542e21;--rci-accent:#85482b;--rci-line:#e5c5ad}
:is(.rci-tile,.rci-day)[data-rci-theme=night]{--rci-surface:#eeeeff;--rci-ink:#292a53;--rci-accent:#555486;--rci-line:#cbcae9}
.rci-tile{border:1px solid var(--rci-line);border-inline-start:4px solid var(--rci-accent);border-radius:16px;padding:12px 16px;margin-block:10px 16px;background:var(--rci-surface);color:var(--rci-ink);display:grid;gap:5px}
.rci-tile-head{display:flex;align-items:center;gap:8px}.rci-tile-head strong{font-size:.925rem;line-height:1.45}
.rci-icon,.rci-options{color:var(--rci-accent);display:inline-flex;align-items:center;justify-content:center}.rci-options{margin-inline-start:auto;min-width:44px;min-height:44px}
.rci-open{color:inherit;font-size:1.22rem;line-height:1.45;font-weight:700;text-underline-offset:.2em;text-decoration-thickness:1px;display:inline-flex;align-items:center;min-height:44px;justify-self:start}
.rci-trail{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.rci-trail progress{accent-color:var(--rci-accent);width:4.75rem;height:6px;border:0;border-radius:5px;overflow:hidden;background:var(--rci-line)}
.rci-trail progress::-webkit-progress-bar{background:var(--rci-line)}.rci-trail progress::-webkit-progress-value{background:var(--rci-accent)}.rci-trail progress::-moz-progress-bar{background:var(--rci-accent)}
.rci-trail small,.rci-settings small{font-size:.85rem;line-height:1.55}.rci-later{justify-self:start;background:none;border:1px solid var(--rci-line,var(--line));border-radius:.5rem;padding:0 .6rem;min-height:44px;color:inherit;font:inherit;font-size:.85rem;text-decoration:none}
.rci-settings{color:var(--ink);border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-block:8px 14px}
.rci-settings>summary{display:flex;align-items:center;gap:.6rem;padding:8px 14px;min-height:46px;box-sizing:border-box;font-weight:650;cursor:pointer;list-style:none}
.rci-settings>summary::-webkit-details-marker{display:none}.rci-settings>summary::after{content:'+';font-weight:500;margin-inline-start:auto}.rci-settings[open]>summary::after{content:'−'}
.rci-settings-body{display:grid;gap:14px;padding:6px 15px 15px}.rci-check{display:flex;align-items:flex-start;gap:.6rem;min-height:44px}.rci-check input{width:20px;height:20px;flex:none;margin-block-start:.2rem}
.rci-check strong,.rci-check small{display:block}.rci-settings small,.rci-calendar-help{color:var(--muted)}.rci-settings [hidden]{display:none!important}
.rci-settings fieldset{border:0;margin:0;padding:0}.rci-settings legend{font-weight:650;margin-block-end:.4rem}.rci-settings input[type=time],.rci-settings input[type=url],.devotion-share input{box-sizing:border-box;font:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px;min-height:44px;max-width:100%}
.rci-swatches,.rci-calendar-actions{display:flex;gap:.4rem;flex-wrap:wrap}.rci-swatches label{min-height:44px;border:1px solid var(--line);border-radius:11px;display:inline-flex;align-items:center;gap:.45rem;padding:0 .65rem;cursor:pointer;font-size:.88rem;position:relative}
.rci-swatches input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.rci-swatches label:has(input:checked){border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.rci-swatches label:has(input:focus-visible){outline:2px solid var(--green);outline-offset:3px}
.rci-swatches i{width:15px;height:15px;background:#42735e;border-radius:50%;border:1px solid currentColor}.rci-swatches [data-rci-swatch=dawn] i{background:#bd7855}.rci-swatches [data-rci-swatch=night] i{background:#716f9d}
.rci-settings button,.rci-calendar-actions a{display:inline-flex;gap:.3rem;align-items:center;min-height:44px;padding:5px 9px;font:inherit;font-size:.9rem;color:var(--green);background:transparent;border:1px solid var(--line);border-radius:8px;cursor:pointer;box-sizing:border-box}
.rci-calendar-help{font-size:.88rem;line-height:1.5}.rci-settings [role=status]:empty{display:none}.rci-settings [role=status]{display:block}
:root[data-routine-theme=dawn] :is(.amal-cycle-card,.devotion-routine-card){border-inline-start:3px solid #af6c4c}
:root[data-routine-theme=night] :is(.amal-cycle-card,.devotion-routine-card){border-inline-start:3px solid #8381b0}
body.dark .rci-tile,.dark .rci-tile,.dark .rci-day{--rci-surface:#213b32;--rci-ink:#f2f9f5;--rci-accent:#a6d9bb;--rci-line:#466854}
.dark :is(.rci-tile,.rci-day)[data-rci-theme=dawn]{--rci-surface:#412e26;--rci-ink:#fff2e8;--rci-accent:#edb795;--rci-line:#745442}
.dark :is(.rci-tile,.rci-day)[data-rci-theme=night]{--rci-surface:#2a2c45;--rci-ink:#f4f2ff;--rci-accent:#c5c1f0;--rci-line:#514f74}
.practice-share-footer{max-width:62rem;margin:.5rem auto;padding-inline:.75rem;display:flex;justify-content:flex-end}
.devotion-share{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.devotion-share .devotion-share-button{background:transparent;color:var(--muted);font:inherit;font-size:.875rem;border:0;display:inline-flex;align-items:center;gap:.35rem;padding:5px 8px;min-height:44px;cursor:pointer}.devotion-share-button svg{width:16px;height:16px}
.devotion-share-button:hover,.devotion-share-button:focus-visible{color:var(--ink);background:var(--pale)}.devotion-share [role=status]{font-size:.875rem;color:var(--ink)}.devotion-share [role=status]:empty{display:none}.devotion-share input{width:100%}
.rci-tile[data-rci-phase=passed]{border-inline-start-color:#a64537}.rci-tile[data-rci-phase=passed] .rci-icon{color:#953a31}
.amal-timing-occurrence[data-timing-state="window-passed"]{border-inline-start:4px solid #a34a3f;background:#fbefeb;color:#643c37}
.amal-timing-occurrence[data-timing-state="window-passed"] .amal-timing-icon{color:#853a30;background:#f2d9d3}
body.dark .amal-timing-occurrence[data-timing-state="window-passed"]{background:#382b29;color:#f2d9d3;border-inline-start-color:#de978c}
body.dark .amal-timing-occurrence[data-timing-state="window-passed"] .amal-timing-icon{background:#543935;color:#f2b5a6}
body.dark .rci-tile[data-rci-phase=passed] .rci-icon{color:#f2b5a6}

.rci-day {
  min-inline-size: 0;
  padding: clamp(.9rem,2.8vw,1.35rem);
  border: 1px solid var(--rci-line);
  border-radius: 1.1rem;
  background: var(--rci-surface);
  color: var(--rci-ink);
  text-align: start;
}
.rci-day :is(h2,h3,h4,p,ul) { margin: 0; }
.rci-day-head { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; }
.rci-day-head h2 { display:flex; align-items:center; gap:.55rem; font-size:1.1rem; line-height:1.5; color:inherit; }
.rci-day-head h2 > span { display:inline-flex; color:var(--rci-accent); }
.rci-day-total,.rci-day-phase { color:var(--rci-accent); font-size:.9rem; line-height:1.55; font-weight:650; }
.rci-day-lead { padding-block:.75rem; }
.rci-day-lead h3 { font-size:clamp(1.18rem,2vw,1.52rem); line-height:1.4; overflow-wrap:anywhere; color:inherit; }
.rci-day-primary {
 display:inline-flex; align-items:center; justify-content:center; margin-block-start:.5rem;
 min-height:44px; padding:.5rem .9rem; border:0; border-radius:.65rem;
 background:var(--rci-accent); color:var(--rci-surface); font:inherit; font-weight:700; text-decoration:none; cursor:pointer;
}
.rci-day-agenda { border-block-start:1px solid var(--rci-line); }
.rci-day-agenda summary {
  display:flex; align-items:center; justify-content:space-between; gap:.7rem; min-height:44px;
  font-weight:650; cursor:pointer; list-style:none;
}
.rci-day-agenda summary::-webkit-details-marker { display:none; }
.rci-day-agenda summary > span { inline-size:.6rem; block-size:.6rem; border-block-end:2px solid; border-inline-end:2px solid; transform:rotate(45deg); margin-inline:.3rem; }
.rci-day[dir=rtl] .rci-day-agenda summary > span { transform:rotate(-45deg); }
.rci-day-agenda[open] summary > span { transform:rotate(225deg); }
.rci-day[dir=rtl] .rci-day-agenda[open] summary > span { transform:rotate(135deg); }
.rci-day-group { padding-block:.5rem; }
.rci-day-group h4 { color:var(--rci-accent); font-size:.89rem; }
.rci-day-group ul { padding:0; list-style:none; }
.rci-day-group li { display:flex; align-items:center; justify-content:space-between; gap:.5rem; border-block-end:1px solid var(--rci-line); }
.rci-day-group li:last-child { border:0; }
.rci-day-group li>span { color:var(--rci-accent); font-size:.88rem; }
.rci-day-reading,.rci-day-links a,.rci-day-reminder :is(button,a) {
  display:inline-flex; align-items:center; min-block-size:44px; color:inherit;
  background:none; border:0; padding:0; font:inherit; text-decoration:none; text-align:start; cursor:pointer;
}
.rci-day-reading { font-weight:650; overflow-wrap:anywhere; }
.rci-day-links,.rci-day-reminder { display:flex; align-items:center; gap:.4rem 1rem; flex-wrap:wrap; border-block-start:1px solid var(--rci-line); }
.rci-day-reminder :is(button,a) { color:var(--rci-accent); font-size:.94rem; font-weight:650; text-decoration:none; padding-inline:.6rem; border:1px solid var(--rci-line); border-radius:.5rem; }
.rci-day :is(a,button,summary):focus-visible { outline:3px solid var(--rci-accent); outline-offset:2px; }
.rci-day-actions,.rci-day-start {
 display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .85rem;
}
.rci-day-bundle,.rci-day-secondary,.rci-day-start button:not(.rci-day-primary) {
 display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:.15rem .6rem;
 background:transparent; color:var(--rci-accent); font:inherit; font-size:.94rem; font-weight:650;
 text-align:start; text-decoration:none; border:1px solid var(--rci-line); border-radius:.5rem; cursor:pointer;
}
.rci-day-bundle { max-width:100%; overflow-wrap:anywhere; }
.rci-day-bundle svg { width:1rem; height:1rem; flex:none; }
.rci-day-upcoming { display:grid; justify-items:start; gap:.18rem; padding-block:.6rem; }
.rci-day-upcoming strong { font-size:.94rem; color:var(--rci-accent); }
.rci-day-warning { border-inline-start:3px solid currentColor; padding:.4rem .7rem; line-height:1.55; }
.rci-day > .rp-routine-link { margin-block:.35rem .65rem; text-decoration:none; }
@media(hover:hover){.rci-day > .rp-routine-link:hover {border-color:var(--rci-accent);}}
.rci-day-links { gap:.3rem .6rem; padding-block-start:.35rem; }
.rci-day-links :is(a,button) {
  display:inline-flex; align-items:center; gap:.35rem; min-block-size:44px; padding:.3rem .2rem;
  border:0; border-radius:.35rem; background:transparent; color:var(--rci-accent);
  font:inherit; font-size:.86rem; font-weight:650; line-height:1.35; text-align:start; text-decoration:none; cursor:pointer;
}
.rci-day-links svg { inline-size:1.05rem; block-size:1.05rem; flex:none; }
@media(hover:hover){.rci-day-links :is(a,button):hover {background:var(--pale);}}
.rci-day-lead:empty { display:none; }
.rci-day-up-next { display:flex; flex-wrap:wrap; align-items:baseline; gap:.15rem .65rem; padding-block:.45rem .65rem; color:var(--rci-ink); line-height:1.5; }
.rci-day-up-next strong { color:var(--rci-accent); font-size:.9rem; }
.rci-day-up-next span { overflow-wrap:anywhere; }
.rci-day:has(>.rci-day-agenda[open]) > .rci-day-up-next { display:none; }

.rci-day-list {
  --rci-ink:var(--ink);
  --rci-accent:var(--green);
  --rci-line:var(--line);
  color:var(--rci-ink); min-inline-size:0; text-align:start;
}
.rci-day-list[data-rci-theme=dawn] { --rci-accent:#85482b; }
.rci-day-list[data-rci-theme=night] { --rci-accent:#555486; }
.dark .rci-day-list[data-rci-theme=dawn] { --rci-accent:#edb795; }
.dark .rci-day-list[data-rci-theme=night] { --rci-accent:#c5c1f0; }
.rci-day-list :is(h3,h4,p,ul) { margin:0; }
.rci-saved-head { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; margin-block:.15rem .45rem; }
.rci-saved-head h3 { color:inherit; font-size:1.04rem; line-height:1.5; margin-inline-end:auto; }
.rci-saved-head .rci-day-total { color:var(--muted); font-size:.84rem; font-weight:550; }
.rci-saved-head progress { inline-size:3rem; block-size:.28rem; accent-color:var(--rci-accent); }
.rci-day-list .rci-saved-rows { list-style:none; margin:0; padding:0; }
.rci-saved-row {
  display:flex; align-items:center; gap:.15rem; border-block-start:1px solid var(--rci-line);
  min-inline-size:0; color:var(--rci-ink);
}
.rci-saved-row:first-child { border:0; }
.rci-saved-row[data-day-featured][data-day-state=ready] { color:var(--rci-accent); }
.rci-saved-check,.rci-row-symbol {
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  inline-size:44px; min-block-size:44px; padding:0; box-sizing:border-box; color:var(--rci-accent);
}
.rci-saved-check { border:0; border-radius:50%; background:transparent; cursor:pointer; }
.rci-saved-check:hover { background:color-mix(in srgb,var(--rci-accent) 9%,transparent); }
.rci-row-symbol { color:var(--muted); }
.rci-saved-check svg,.rci-row-symbol svg { inline-size:21px; block-size:21px; }
.rci-saved-check[aria-checked=true] circle { fill:var(--rci-accent); }
.rci-saved-check[aria-checked=true] path { stroke:var(--panel,#fff); stroke-width:2.1; }
.rci-saved-reading {
  display:flex; align-items:center; gap:.65rem; justify-content:space-between;
  flex:1; min-inline-size:0; min-block-size:44px; padding:.3rem .25rem; box-sizing:border-box;
  color:inherit; text-decoration:none; text-align:start; line-height:1.4;
}
.rci-saved-reading strong { font-size:.96rem; font-weight:620; overflow-wrap:anywhere; }
.rci-saved-reading>span { min-inline-size:0; display:grid; gap:.12rem; }
.rci-row-context {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:.18rem .35rem;
  color:var(--muted); font-size:.8125rem; font-weight:450; line-height:1.5;
}
.rci-row-kind { font-weight:550; }
.rci-row-reference { overflow-wrap:anywhere; }
.rci-saved-row[data-day-kind=quran] .rci-row-kind { color:var(--rci-accent); }
.rci-saved-reading .rci-row-meta .duration-badge { vertical-align:middle; margin-block:.12rem; }
.rci-saved-next .rci-saved-reading strong { font-weight:720; }
@media(hover:hover){.rci-saved-reading:hover {background:var(--pale);border-radius:.45rem;}}
.rci-saved-reading i {
  flex:none; inline-size:.43rem; block-size:.43rem; margin-inline:.25rem;
  border-block-start:1.5px solid; border-inline-end:1.5px solid; transform:rotate(45deg); color:var(--muted);
}
.rci-day-list[dir=rtl] .rci-saved-reading i { transform:rotate(-45deg); }
.rci-row-meta { display:block; font-size:.81rem; font-weight:500; color:var(--muted); line-height:1.45; }
.rci-saved-row[data-day-state=ready] .rci-row-meta { color:var(--rci-accent); }
.rci-saved-row[data-day-state=done] .rci-saved-reading strong { color:var(--muted); font-weight:500; }
.rci-saved-more>summary { font-size:.88rem; color:var(--rci-accent); }
.rci-day-list .rci-saved-hint { padding-block:.3rem .65rem; color:var(--muted); line-height:1.55; }
.rci-saved-hint [data-worship-show] {
  min-block-size:44px; padding:.35rem .7rem; border:1px solid var(--rci-line); border-radius:.55rem;
  color:var(--rci-accent); background:transparent; text-align:start; font:inherit; font-size:.92rem; font-weight:650; cursor:pointer;
}
.rci-plan-tools { margin-block:.55rem .2rem; padding-block-start:.45rem; border-block-start:1px solid var(--rci-line,var(--line)); }
.rci-plan-tools h4 { margin:0; color:var(--muted); font:600 .875rem/1.5 var(--font-ui,system-ui); }
.rci-plan-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.15rem .8rem; }
.rci-plan-actions :is(a,button) {
  display:inline-flex; align-items:center; gap:.4rem; min-block-size:44px; max-inline-size:100%; padding:.25rem .1rem;
  border:0; border-radius:.4rem; background:transparent; color:var(--rci-accent,var(--green));
  font:600 .9rem/1.5 var(--font-ui,system-ui); text-decoration:none; text-align:start; cursor:pointer;
}
.rci-plan-actions svg { inline-size:1.1rem; block-size:1.1rem; flex:none; }
.rci-plan-actions .rci-plan-calendar { color:var(--muted); font-weight:500; margin-inline-start:auto; }
.rci-plan-tools [hidden] { display:none; }
.rci-plan-tools:has([data-rci-plan-heading][hidden]) { margin-block-start:.1rem; padding-block-start:0; border:0; }
.rci-plan-tools:has([data-rci-plan-heading][hidden]) .rci-plan-calendar { margin-inline-start:0; }
.rci-day-list .rci-day-seasonal>summary { color:var(--muted); font-size:.9rem; }
@media(hover:hover){.rci-plan-actions :is(a,button):hover { background:var(--pale); }}
@media(max-width:360px){.rci-plan-actions { gap:.1rem .65rem; }.rci-plan-actions .rci-plan-calendar { margin-inline-start:0; }}
.rci-day-list .rci-day-agenda>summary { gap:.7rem; }
.rci-day-list[dir=rtl] .rci-day-agenda summary > span { transform:rotate(-45deg); }
.rci-day-list[dir=rtl] .rci-day-agenda[open] summary > span { transform:rotate(135deg); }
.rci-day-list :is(a,button,summary):focus-visible { outline:3px solid var(--rci-accent); outline-offset:2px; }

.rci-quick-undo { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .7rem; color:var(--muted); font-size:.85rem; }
.rci-quick-undo button { border:0; background:none; color:var(--rci-accent); min-block-size:44px; padding:.25rem; font:inherit; font-weight:650; cursor:pointer; }

.rci-day-list .rci-effort-icon {display:none}

.mushaf-transfer{box-sizing:border-box;width:min(28rem,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);border:1px solid var(--line,#b6c8bc);border-radius:1.25rem;padding:1.25rem;background:var(--panel,#fff);color:var(--ink,#173d32);box-shadow:0 1rem 4rem #092e3330;overflow:auto}
.mushaf-transfer::backdrop{background:#132b2880}
.mushaf-transfer header,.mushaf-transfer-when,.mushaf-transfer-clock{display:flex;align-items:center;gap:1rem}
.mushaf-transfer header{justify-content:space-between}
.mushaf-transfer h2{font:inherit;font-weight:750;font-size:1.3rem;margin:0}
.mushaf-transfer button,.mushaf-transfer input{box-sizing:border-box;font:inherit;color:inherit}
.mushaf-transfer button{min-height:44px;cursor:pointer;border:1px solid var(--line,#b6c8bc);border-radius:.65rem;background:transparent;padding:.45rem .75rem}
.mushaf-transfer [data-transfer-close]{border:0;font-size:1.45rem;line-height:1;width:44px}
.mushaf-transfer-name{font-size:1.1rem;font-weight:650;margin:.6rem 0 .85rem;overflow-wrap:anywhere}
.mushaf-transfer label{display:grid;gap:.3rem;min-width:0;flex:1;font-size:.92rem}
.mushaf-transfer-when,.mushaf-transfer-clock{margin-block:.6rem}
.mushaf-transfer .mushaf-transfer-allday{display:flex;align-items:center;gap:.4rem;min-height:44px}
.mushaf-transfer input:not([type=checkbox]){width:100%;min-height:42px;border:1px solid var(--line,#b6c8bc);border-radius:.5rem;padding:.35rem .55rem;background:transparent;direction:ltr}
.mushaf-transfer input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:var(--green,#266647)}
.mushaf-transfer-providers{display:flex;flex-wrap:wrap;gap:.45rem}
.mushaf-transfer-providers button{flex:1 1 7rem;font-weight:650}
.mushaf-transfer-hint,.mushaf-transfer-feedback{font-size:.9rem;line-height:1.55}
.mushaf-transfer-feedback:empty,.mushaf-transfer [hidden]{display:none}
.mushaf-transfer .mushaf-transfer-series{display:block;margin-block-start:.75rem;border:0;text-decoration:underline;text-underline-offset:.17em;padding-inline:0}
@media(max-width:34rem){.mushaf-transfer{margin:auto auto max(.6rem,env(safe-area-inset-bottom));padding:1rem}}


/* /ramadan-schedule.css */
.ramadan-schedule{max-width:56rem;margin:0 auto;padding:clamp(1rem,3vw,2.25rem);color:var(--ink,#223a33)}
.ramadan-schedule *,.rs-today *{box-sizing:border-box}.rs-back,.rs-options a{color:var(--green,#21634e);text-underline-offset:.2em}
.rs-back{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.rs-title{display:flex;align-items:center;gap:.8rem}.rs-title>span,.rs-phase-icon{color:var(--green,#21634e);display:grid;place-items:center;flex:none}
.rs-title h1{margin:.55rem 0;font-size:clamp(1.75rem,4vw,2.4rem);line-height:1.2}.rs-dates,.rs-period-head p,.rs-options small{color:var(--muted,#52635c);margin:.2rem 0 .7rem}
.rs-day-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.6rem;margin:1rem 0;padding:.58rem .75rem;border-block:1px solid var(--line,#ccd9d1)}
.rs-day-nav a,.rs-view{color:var(--green,#21634e);font-weight:650;min-height:44px;display:inline-flex;align-items:center}.rs-day-nav a:last-child{justify-self:end}.rs-day-nav label{font-weight:700;display:flex;align-items:center;gap:.35rem}
.rs-day-nav select,.rs-options select{font:inherit;min-height:44px;border:1px solid var(--line,#ccd9d1);border-radius:.5rem;background:var(--panel,#fff);color:inherit;padding-inline:.5rem}
.rs-period{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(0,1.6fr);align-items:start;gap:.55rem 1.2rem;padding:1.1rem 0;border-block-end:1px solid var(--line,#ccd9d1)}
.rs-period-head{display:flex;align-items:start;gap:.65rem}.rs-phase-icon{width:2.5rem;height:2.5rem;border-radius:.8rem;background:color-mix(in srgb,var(--green,#21634e) 11%,transparent)}
.rs-period h2{font-size:1.15rem;line-height:1.35;margin:0}.rs-period-head p{font-size:.9rem;line-height:1.5;margin:.15rem 0}.rs-actions,.rs-more{grid-column:2}
.rs-reading{color:inherit;display:flex;align-items:center;min-height:44px;padding:.42rem .7rem;line-height:1.45;text-decoration:underline;text-underline-offset:.2em}.rs-main{background:color-mix(in srgb,var(--green,#21634e) 9%,transparent);border-radius:.65rem;color:var(--green,#21634e);font-weight:700}.rs-qadr .rs-main{border-inline-start:3px solid var(--green,#21634e)}
.rs-more summary,.rs-options summary{cursor:pointer;min-height:44px;align-content:center;color:var(--muted,#52635c);padding:.45rem .25rem;font-weight:650}
.rs-options{margin-top:.8rem;border:1px solid var(--line,#ccd9d1);border-radius:.8rem;padding:.15rem .9rem}.rs-options summary svg{vertical-align:middle;margin-inline-end:.4rem}.rs-options fieldset{border:0;border-block-start:1px solid var(--line,#ccd9d1);padding:.6rem 0;margin:.5rem 0}.rs-options legend{padding-inline-end:.5rem;font-weight:650}.rs-options label{display:flex;align-items:center;gap:.65rem;min-height:44px}.rs-options input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:var(--green,#21634e)}.rs-options small{display:block;margin-top:.45rem}
.rs-bundle-links{display:flex;flex-wrap:wrap;gap:.45rem;margin:.5rem 0 1rem}.rs-bundle-links button,.rs-phase-toggle{border:1px solid var(--line,#ccd9d1);background:var(--panel,#fff);color:var(--green,#21634e);font:inherit;border-radius:.6rem;padding:.45rem .75rem;min-height:44px}.rs-feedback:empty{display:none}
.rs-today{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;border:1px solid var(--line,#ccd9d1);border-inline-start:4px solid var(--green,#21634e);border-radius:.8rem;background:var(--panel,#fff);margin:.65rem 0}.rs-today>div{min-width:0;flex:1}.rs-today h2{font-size:1.05rem;line-height:1.35;margin:0}.rs-today .rs-reading{padding:0;min-height:44px}.rs-today .rs-view{flex:none;max-width:7rem}
.rs-feedback,.rs-options p{line-height:1.5}.rs-iftar-now{display:block;margin:.4rem 0;color:var(--green,#21634e);font-weight:650}.ramadan-schedule:focus-visible,.ramadan-schedule :focus-visible,.rs-today :focus-visible{outline:3px solid var(--green,#21634e);outline-offset:3px}
@media(max-width:580px){.rs-period{grid-template-columns:minmax(0,1fr);gap:.2rem}.rs-actions,.rs-more{grid-column:1}.rs-period .rs-actions,.rs-period .rs-more{margin-inline-start:3.15rem}.rs-today{padding:.6rem;gap:.5rem}.rs-today .rs-phase-icon{width:2rem;height:2rem}.rs-day-nav{padding-inline:0}}
.rs-saved{margin-inline-start:auto;padding-inline-start:.75rem;font-size:.875rem;font-weight:500;color:var(--muted,#52635c);text-decoration:none}
.rp-bundle{padding:clamp(.9rem,3vw,1.35rem);border:1px solid var(--line,#c0cfc7);border-radius:1rem;background:color-mix(in srgb,var(--green,#165638) 7%,var(--panel,#fff));margin:1rem 0}
.rp-bundle-title,.rp-actions,.rp-slot,.rp-alerts,.rp-primary,.rp-routine-link,.rp-picker-link{display:flex;align-items:center;gap:.65rem}.rp-bundle-title{align-items:flex-start}.rp-bundle-title>span{color:var(--green);padding-top:.15rem}.rp-bundle-title h2{font-size:1.12rem;line-height:1.4;margin:0}.rp-bundle-title p{font-size:.94rem;line-height:1.5;margin:.15rem 0 .55rem}.rp-actions,.rp-slot{flex-wrap:wrap}.rp-actions{margin-top:.55rem}
.rp-bundle button,.rp-slot button,.rp-check,.rp-options summary{min-height:44px;font:inherit;cursor:pointer}.rp-primary,.rp-alerts{border-radius:.7rem;padding:.55rem .9rem;font-weight:700!important}.rp-primary{color:#fff;background:#17543d;border:1px solid #17543d}.rp-alerts{background:var(--panel,#fff);border:1px solid var(--line,#a7bbb0);color:var(--ink,#22382e)}.rp-alerts[aria-pressed=true]{border-color:var(--green,#1b6140);color:var(--green,#1b6140)}
.rp-text,.rp-check{border:0;color:var(--green,#1b6140);background:transparent}.rp-text,.rp-options summary,.rp-saved,.rp-picker-link{font-size:.9rem;font-weight:650}.rp-text{padding:.5rem .7rem;text-decoration:underline;text-underline-offset:.18em}.rp-options{margin-top:.45rem}.rp-options summary{align-content:center;color:var(--muted,#42594b)}.rp-options p{margin:.3rem 0;line-height:1.5}.rp-saved,.rp-picker-link,.rp-routine-link{color:var(--green,#1b6140);text-underline-offset:.18em}.rp-picker-link{min-height:44px;margin:.6rem 0}.rp-routine-link strong{flex:1}
.rp-feedback:empty{display:none}.rp-feedback{font-size:.9rem}.rp-reading{display:flex;align-items:stretch;gap:.3rem}.rp-reading .rs-reading{flex:1}.rp-check{flex:0 0 44px;border-radius:.6rem;font-size:1.45rem}.rp-check[aria-pressed=true]{background:color-mix(in srgb,var(--green) 12%,var(--panel))}
.rp-state{display:inline-flex;align-items:center;gap:.3rem;border-radius:99px;color:var(--muted,#46594f);padding:.18rem .55rem;background:var(--panel,#fff);border:1px solid var(--line,#b8c9bf);font-size:.82rem;font-weight:650}
.rp-state[data-rp-state=ready]{background:#a33220;border-color:#a33220;color:#fff}.rp-state[data-rp-state=earlier]{color:#734600;background:#fff1d5;border-color:#bd8730}.rp-state[data-rp-state=done]{color:#1c543b;background:#ddf4e8;border-color:#75a98f}
.rp-bundle [hidden]{display:none!important}.rp-bundle button:focus-visible,.rp-check:focus-visible,.rp-picker-link:focus-visible{outline:3px solid var(--green,#176a48);outline-offset:2px}
@media(max-width:460px){.rp-bundle{padding:.85rem}.rp-bundle-title{gap:.5rem}.rp-actions{gap:.25rem}.rp-primary,.rp-alerts{padding:.45rem .65rem}}
button.rp-picker-link{border:0;background:transparent;color:var(--green,#1b6140);font:inherit;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}

/* Each time of day is a heading with a list of readings beneath it. */
.ramadan-schedule .rs-period {padding-block:1rem;min-inline-size:0}
.ramadan-schedule .rs-period-head {align-items:center;min-inline-size:0;flex-wrap:wrap}
.rs-period-head .rs-phase-copy {flex:1 1 8rem;min-inline-size:0}
.rs-period-head .rs-phase-icon {inline-size:2.2rem;block-size:2.2rem;background:transparent}
.rs-period-head .rp-slot {margin:0}
.ramadan-schedule .rs-period :is(.rs-actions,.rs-more) {min-inline-size:0;margin-inline:0}
.ramadan-schedule .rs-actions {display:grid;align-content:start}
.ramadan-schedule .rs-period a.rs-reading {
  display:flex;align-items:center;gap:.65rem;inline-size:100%;min-inline-size:0;
  min-block-size:44px;margin:0;padding:.48rem .2rem;border:0;border-radius:0;
  background:transparent;color:var(--ink);font-weight:500;text-align:start
}
.ramadan-schedule .rs-period .rs-reading-title {flex:1;min-inline-size:0;overflow-wrap:anywhere}
.ramadan-schedule .rs-period a.rs-main {font-weight:650;color:var(--green)}
.ramadan-schedule .rs-period a.rs-reading::after {inline-size:.85rem;block-size:.85rem;color:var(--green)}
.ramadan-schedule .rs-actions>:not(:first-child),.ramadan-schedule .rs-more a.rs-reading {
  border-block-start:1px solid var(--line)
}
.ramadan-schedule .rs-saved {padding:0;white-space:normal;max-inline-size:35%;font-size:.8rem}
.ramadan-schedule .rp-reading {align-items:center;gap:.4rem}
.ramadan-schedule .rp-reading .rp-check {inline-size:44px;min-block-size:44px;padding:0}
.ramadan-schedule .rs-more summary {padding-inline:.2rem;font-size:.9rem;font-weight:550}
.ramadan-schedule .rs-more summary bdi {margin-inline-start:.35rem;font-size:.82rem;font-variant-numeric:tabular-nums}
@media(max-width:580px){
  .ramadan-schedule .rs-period-head {gap:.45rem;padding-block-end:.25rem}
  .ramadan-schedule .rs-period .rs-phase-copy p {margin:0}
}


/* /month-routines.css */
.month-routines{color-scheme:light;max-inline-size:52rem;margin-inline:auto;padding:clamp(1rem,3vw,2rem);color:var(--ink,#263c33);line-height:1.6}
.month-routines *{box-sizing:border-box}
.month-routines h1,.month-routines h2{color:inherit;line-height:1.3;margin:0}
.month-routines h1{font-size:clamp(1.8rem,4vw,2.6rem);margin-block:.45rem 1rem}
.month-routines h2{font-size:clamp(1.25rem,3vw,1.55rem)}
.month-routines p{margin-block:.6rem}
.month-routines .mr-back,.mr-link{color:var(--green,#22614c);text-underline-offset:.2em}
.month-routines .mr-back,.month-routines .mr-link,.ramadan-schedule>.mr-link{display:inline-flex;align-items:center;min-block-size:44px;font-weight:650}
.mr-months,.mr-acts,.mr-tiers{display:grid;gap:.55rem}
.mr-months{grid-template-columns:repeat(3,minmax(0,1fr));border-block-end:1px solid var(--line,#d5e0d8);margin-block-end:1rem}
.mr-months a{display:grid;align-items:center;min-block-size:48px;text-align:center;text-decoration:none;color:inherit;border-block-end:3px solid transparent;font-weight:650}
.mr-months a[aria-current=page]{color:var(--green,#22614c);border-color:currentColor}
.mr-season,.mr-card{border:1px solid var(--line,#d5e0d8);border-radius:1rem;padding:clamp(.95rem,3vw,1.45rem);margin-block:1rem;background:var(--panel,#fff)}
.mr-season{background:var(--pale,#eff5ee);border-color:transparent}
.mr-season>p,.mr-dates,.mr-readings li small,.mr-tiers button span{font-size:.9rem;color:var(--muted,#4c6157)}
.mr-tiers,.mr-acts{grid-template-columns:repeat(2,minmax(0,1fr));margin-block:1rem}
.month-routines button,.month-routines input,.month-routines select{min-inline-size:0;max-inline-size:100%;font:inherit;color:inherit}
.month-routines button,.mr-day select,.mr-date-settings input,.mr-date-settings select{min-block-size:44px;border:1px solid var(--line,#cedcd2);border-radius:.65rem;padding:.4rem .7rem;background:var(--panel,#fff)}
.month-routines button{cursor:pointer}
.mr-acts button,.mr-tiers button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:start;line-height:1.4;gap:.18rem;padding:.65rem .7rem}
.month-routines button[aria-pressed=true]{border:2px solid var(--green,#22614c);background:var(--pale,#eff5ee)}
.mr-tiers button[aria-pressed=true],.mr-acts button[aria-pressed=true]{padding:calc(.65rem - 1px) calc(.7rem - 1px)}
.month-routines button:disabled{opacity:.58;cursor:default}
.mr-readings{list-style:none;padding:0;margin-block:.65rem}
.mr-readings li{border-block-start:1px solid var(--line,#d5e0d8);padding-block:.3rem}
.mr-readings li a{display:flex;min-block-size:44px;flex-direction:column;justify-content:center;color:var(--green,#22614c);text-decoration:none}
.mr-readings li a:hover strong{text-decoration:underline}
.month-routines .mr-primary{background:var(--green,#22614c);color:var(--on-accent,#fff);border-color:transparent;padding-inline:1rem;font-weight:700}
.month-routines .mr-link{background:transparent;border:0;padding-inline:.25rem;text-align:start;text-decoration:underline}
.mr-date-settings summary{cursor:pointer;min-block-size:44px;line-height:44px;font-weight:650}
.mr-date-settings label,.mr-day{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-block:.5rem}
.mr-date-settings>div{display:flex;flex-wrap:wrap;gap:.4rem;margin-block-start:.65rem}
.mr-day{justify-content:space-between}
.mr-day bdi{color:var(--muted,#4c6157)}
.month-routines :focus-visible{outline:3px solid var(--green,#22614c);outline-offset:3px}
.month-routines [role=status]:empty{display:none}
.mr-programme{border:2px solid var(--green,#22614c);padding:clamp(1rem,3vw,1.5rem)}
.mr-eyebrow{font-size:.85rem;font-weight:750;letter-spacing:.08em;color:var(--green,#22614c)}
[dir=rtl] .mr-eyebrow{letter-spacing:0}
.mr-programme header>p{font-size:1rem;max-inline-size:44rem}
.mr-programme-months{margin:1rem 0;padding:0;border:0;display:flex;flex-wrap:wrap;gap:.55rem}
.mr-programme-months legend{font-size:.9rem;font-weight:700;margin-block-end:.4rem}
.mr-programme-months label{display:flex;align-items:center;gap:.5rem;min-block-size:48px;flex:1;justify-content:center;border:1px solid var(--line,#cedcd2);border-radius:.7rem;padding:.55rem .7rem;cursor:pointer;font-weight:700}
.mr-programme-months label:has(input:checked){border-color:var(--green,#22614c);background:var(--pale,#eff5ee)}
.mr-programme-months input{accent-color:var(--green,#22614c);inline-size:1.15rem;block-size:1.15rem;flex-shrink:0}
.mr-programme-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.mr-programme-settings label{min-inline-size:0;display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;font-weight:650}
.mr-programme-settings input,.mr-programme-settings select{inline-size:100%;min-block-size:48px;border:1px solid var(--line,#cedcd2);border-radius:.65rem;padding:.55rem .65rem;background:var(--panel,#fff)}
.mr-programme-note{font-size:.9rem;color:var(--muted,#4c6157)}
.mr-programme-review{border-block-start:1px solid var(--line,#cedcd2);margin-block:1rem}
.mr-programme-review>summary{cursor:pointer;min-block-size:48px;display:flex;align-items:center;font-weight:700;gap:.5rem}
.mr-programme-review>summary::before{content:'+';font-size:1.3rem;font-weight:400}
.mr-programme-review[open]>summary::before{content:'−'}
.mr-programme-review ol,.mr-programme-review ul{list-style:none;padding:0;margin:0}
.mr-programme-review ol>li{padding-block:.7rem;border-block-start:1px solid var(--line,#cedcd2)}
.mr-programme-month-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.mr-programme-month-heading strong{font-size:1.1rem}
.mr-programme-month-heading span,.mr-programme-source{font-size:.9rem}
.mr-programme-review ul>li{margin-block:.6rem;display:flex;flex-direction:column;gap:.2rem}
.mr-programme-review ul a{color:var(--green,#22614c);font-weight:650;min-block-size:30px;display:flex;align-items:center;text-underline-offset:.2em}
.mr-programme-review ul span,.mr-programme-review ul small{font-size:.9rem;color:var(--muted,#4c6157)}
.mr-programme-review ul small{border-inline-start:3px solid var(--line,#cedcd2);padding-inline-start:.5rem}
.mr-programme-source{color:var(--green,#22614c);display:inline-flex;align-items:center;min-block-size:44px;text-underline-offset:.2em}
.mr-programme>.mr-primary{inline-size:100%;min-block-size:48px}
.mr-programme>.mr-link{display:flex}
.mr-coverage{border:1px solid var(--mr-warning-line,#a66c20);background:var(--mr-warning-bg,#fff7e8);color:var(--mr-warning-ink,#54380f);border-radius:.7rem;padding:.85rem;margin-block:.85rem;font-size:.95rem}
.mr-coverage ul{padding-inline-start:1.2rem;margin-block:.5rem}
.mr-coverage li{margin-block:.4rem}
.mr-coverage label{display:flex;align-items:flex-start;gap:.6rem;padding-block:.45rem;font-weight:650;cursor:pointer}
.mr-coverage input{inline-size:1.2rem;block-size:1.2rem;accent-color:var(--green,#22614c);margin-block-start:.2rem;flex-shrink:0}
.mr-more-practices{margin-block:.5rem}
.mr-more-practices summary{font-size:.95rem;cursor:pointer;min-block-size:44px;display:flex;align-items:center}
.mr-more-practices p{font-size:.9rem;color:var(--muted,#4c6157)}
.mr-more-practices a{display:flex;align-items:center;min-block-size:44px;color:var(--green,#22614c);font-size:.95rem}
.mr-other-programmes .mr-occasion-card{inline-size:100%;display:flex;flex-direction:column;text-align:start;align-items:flex-start;gap:.3rem;padding:.9rem;margin-block:.75rem;border:1px solid var(--line,#cedcd2);border-radius:.75rem;background:var(--panel,#fff);text-decoration:none;color:inherit}
.mr-occasion-card strong{color:var(--green,#22614c);font-size:1.05rem}
.mr-occasion-card span{font-size:.95rem;color:var(--muted,#4c6157)}
.mr-other-programmes>.mr-link{display:flex}
@media(max-width:440px){.mr-programme-settings{grid-template-columns:minmax(0,1fr)}.mr-programme-months{gap:.3rem}.mr-programme-months label{padding:.45rem .4rem}}
@media(max-width:390px){.mr-day bdi{flex-basis:100%}.mr-tiers,.mr-acts{gap:.35rem}.month-routines{padding:.8rem}}
@media(forced-colors:active){.month-routines button[aria-pressed=true],.mr-months a[aria-current=page]{outline:2px solid Highlight}}

body.dark .month-routines{color-scheme:dark;--mr-warning-bg:#3b3020;--mr-warning-ink:#f4dfb2;--mr-warning-line:#9e7b41}

.mr-optional-programme{margin-block:1rem;padding:.85rem 1rem;border:1px solid var(--line,#cedcd2);border-radius:.85rem;background:var(--pale,#eaf1ec)}
.mr-optional-programme label{display:flex;align-items:flex-start;gap:.6rem;font-weight:650;cursor:pointer}.mr-optional-programme input{inline-size:1.2rem;block-size:1.2rem;margin-block-start:.25rem;flex:none;accent-color:var(--green,#22614c)}.mr-optional-programme p{font-size:.9rem;color:var(--muted,#4c6157);margin:.45rem 0 0}.mr-optional-programme a{display:flex;align-items:center;min-block-size:44px;margin-block-start:.25rem;color:var(--green,#22614c);text-underline-offset:3px}

.mr-readings li a{flex-direction:row;align-items:center;justify-content:space-between;gap:.65rem}
.mr-reading-copy{display:grid;gap:.1rem;min-width:0}
.mr-readings .duration-badge,.mr-sitting-total .duration-badge{flex:none}
.mr-sitting-total{display:flex;align-items:center;justify-content:space-between;gap:.65rem;color:var(--muted);font-size:.85rem;border-block-start:1px solid var(--line);padding-block:.6rem}
.month-routines .mr-primary{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
.month-routines .mr-primary>svg{width:21px;height:21px;flex:none}


/* /pilgrimage.css */
.pilgrimage-page{max-width:1080px;margin:auto;padding:1rem 0 4rem;color:var(--ink);font-size:1rem;line-height:1.65;--pil-accent:#17624f;--pil-soft:#edf3ed;--pil-water:#e3eceb;--pil-land:#faf8ed;--pil-muted:#52655d}
.dark .pilgrimage-page{--pil-accent:#b4e3cc;--pil-soft:#223d34;--pil-water:#182e34;--pil-land:#34433b;--pil-muted:#becdc4}
.pilgrimage-page *{box-sizing:border-box}.pilgrimage-page a{color:var(--pil-accent);text-underline-offset:.2em}.pilgrimage-page button,.pilgrimage-page input,.pilgrimage-page select{font:inherit;color:inherit}.pilgrimage-page :is(a,button,input,select,summary,[role=button]):focus-visible{outline:3px solid var(--pil-accent);outline-offset:4px}.pilgrimage-page h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.2;margin:.5rem 0 1rem;letter-spacing:-.035em}.pilgrimage-page h2{font-size:1.35rem;line-height:1.4;margin:0 0 .5rem}.pilgrimage-page h3{font-size:1.15rem;line-height:1.4;margin:.25rem 0 .6rem}.pilgrimage-page p{margin:.5rem 0 1rem}.pilgrimage-page [dir=rtl] h1{letter-spacing:normal}
.pil-breadcrumb{display:flex;gap:.6rem;flex-wrap:wrap;font-size:.9rem;color:var(--pil-muted);margin:0 0 1.5rem}.pil-heading{max-width:790px;margin:1.8rem 0 2.1rem}.pil-heading p{font-size:1.1rem;max-width:710px;color:var(--pil-muted)}.pil-eyebrow{font-size:.8rem;letter-spacing:.12em;font-weight:750;color:var(--pil-accent)}[dir=rtl] .pil-eyebrow{letter-spacing:0;font-size:.9rem}.pil-paths{padding:1.5rem;background:var(--pil-soft);border-radius:22px}.pil-paths>p,.pil-section-heading p{color:var(--pil-muted)}.pil-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.2rem 0}.pil-path-grid>a{position:relative;display:grid;align-content:start;gap:.7rem;padding:1.1rem 1.2rem 2rem;background:var(--panel);border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink)}.pil-path-grid>a:hover{border-color:var(--pil-accent)}.pil-path-grid strong{font-size:1.2rem}.pil-path-grid a>span:not(.pil-path-number){font-size:.95rem;color:var(--pil-muted);line-height:1.6}.pil-path-grid b{position:absolute;bottom:.7rem;inset-inline-end:1.1rem}.pil-path-number{font-size:.85rem;font-weight:700;color:var(--pil-accent)}.pil-text-links{display:flex;flex-wrap:wrap;gap:.5rem 1.3rem;font-size:.95rem}.pil-explorer{margin-top:2.5rem}.pil-section-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem}.pil-button{display:inline-flex;justify-content:center;align-items:center;gap:.4rem;min-height:44px;padding:.55rem .85rem;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink)!important;cursor:pointer;font-weight:600;text-decoration:none;line-height:1.5}.pil-button:hover{border-color:var(--pil-accent)}.pil-button[aria-pressed=true]{background:var(--pil-soft);border-color:var(--pil-accent);color:var(--pil-accent)!important}.pil-primary{background:var(--pil-accent);border-color:var(--pil-accent);color:var(--panel)!important}.pil-region-tabs{display:flex;flex-wrap:wrap;gap:.45rem;margin:.7rem 0 1.1rem}.pil-region-tabs a{display:flex;align-items:center;min-height:44px;padding:.5rem .8rem;border-radius:24px;border:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:.95rem}.pil-region-tabs a[aria-current=page]{background:var(--pil-accent);border-color:var(--pil-accent);color:var(--panel)}.pil-filters{display:grid;grid-template-columns:2fr 1fr;gap:1rem;margin:1rem 0}.pil-filters label,.pil-book-search{display:grid;gap:.4rem;font-size:.95rem;font-weight:600}.pil-filters input,.pil-filters select,.pil-book-search input{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:.55rem .8rem;background:var(--panel);font-weight:400}.pil-map-frame{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--pil-water)}.pil-map{display:block;width:100%;height:auto;max-height:540px;direction:ltr}.pil-map-grid path{fill:none;stroke:var(--pil-muted);stroke-opacity:.1;stroke-width:.6}.pil-map-land path{fill:var(--pil-land);stroke:var(--pil-muted);stroke-opacity:.4;stroke-width:1}.pil-map-labels text{font-size:15px;text-anchor:middle;fill:var(--pil-muted);font-family:inherit;font-weight:600}.pil-map-pin{cursor:pointer;outline:none}.pil-map-pin circle{fill:#17624f;stroke:#fff;stroke-width:2.5;filter:drop-shadow(0 1px 2px #0003)}.pil-map-pin text{fill:#fff;text-anchor:middle;font:bold 15px system-ui;pointer-events:none}.pil-map-pin:focus-visible circle,.pil-map-pin:hover circle{stroke:#e8aa42;stroke-width:5}.pil-map-pin.is-cluster circle{fill:#405c4c}.dark .pil-map-pin circle{fill:#b4e3cc;stroke:#192b24}.dark .pil-map-pin text{fill:#15392b}.pil-map-north{position:absolute;top:1rem;right:1rem;font-weight:650;color:var(--pil-muted);font-size:.85rem;direction:ltr}.pil-map-caption{display:flex;justify-content:space-between;gap:1rem;margin:.6rem .1rem .25rem;font-size:.85rem;color:var(--pil-muted)}.pil-map-note{font-size:.9rem;color:var(--pil-muted);max-width:800px}.pil-result-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .7rem}.pil-result-heading p{margin:0;font-weight:650}.pil-place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.pil-place-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:.7rem 1.1rem 1rem}.pil-place-overline{display:flex;justify-content:space-between;gap:.4rem;align-items:center;font-size:.85rem;color:var(--pil-muted)}.pil-save{display:grid;place-items:center;font-size:1.5rem!important;width:44px;height:44px;border:0;background:transparent;color:var(--pil-accent)!important;cursor:pointer;border-radius:50%}.pil-place-open{display:block;flex:1;text-decoration:none;color:var(--ink)!important}.pil-place-open p{font-size:.95rem;color:var(--pil-muted);line-height:1.6}.pil-place-open:hover h3{text-decoration:underline;text-underline-offset:.2em}.pil-place-meta{display:flex;flex-wrap:wrap;gap:.35rem;font-size:.8rem;color:var(--pil-muted);margin-top:.6rem}.pil-place-meta span{padding:.2rem .5rem;border-radius:6px;background:var(--pil-soft)}.pil-more{display:flex;margin:1.2rem auto}.pil-empty,.pil-loading{padding:2rem;border:1px dashed var(--line);border-radius:12px;color:var(--pil-muted)}.pil-preparation{margin-top:2.5rem;border-top:1px solid var(--line);padding-top:1.6rem}.pil-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1rem 0 1.3rem}.pil-readings>a{display:grid;gap:.35rem;border:1px solid var(--line);border-radius:12px;padding:.85rem 1rem;background:var(--panel);text-decoration:none;color:var(--ink);line-height:1.5}.pil-readings>a:hover{border-color:var(--pil-accent)}.pil-readings strong{font-size:1rem}.pil-readings span{font-size:.9rem;color:var(--pil-muted)}.pil-readings .pil-reading-kind{font-size:.8rem;color:var(--pil-accent)}.pil-detail-topline{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:-.8rem 0 1.5rem;color:var(--pil-muted)}.pil-location-box{padding:1.5rem;background:var(--pil-soft);border:1px solid var(--line);border-radius:18px}.pil-location-box>p{font-size:.95rem}.pil-coordinate-row{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem;margin:1rem 0}.pil-coordinate-row code{padding:.6rem;background:var(--panel);border-radius:8px;font-size:.95rem}.pil-location-box .pil-map{max-height:300px}.pil-location-box .pil-map-note{font-size:.85rem}.pil-detail-section{margin:2rem 0}.pil-visit-steps{padding-inline-start:1.5rem}.pil-visit-steps li{padding:.5rem 0 .7rem .3rem;max-width:850px}.pil-sources{margin:2rem 0;padding:1rem 1.2rem;border:1px solid var(--line);border-radius:12px}.pil-sources summary{font-weight:650;cursor:pointer;min-height:30px}.pil-source-list{padding-inline-start:1.3rem}.pil-source-list li{margin:.6rem 0;overflow-wrap:anywhere;font-size:.95rem}.pil-source-list span{display:block;color:var(--pil-muted)}.pil-status{min-height:1.5rem;color:var(--pil-accent);font-size:.95rem}.pil-ritual-basis,.pil-progress-note,.pil-reading-note{color:var(--pil-muted);font-size:.95rem;max-width:850px}.pil-progress{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem 1.2rem;background:var(--pil-soft);border-radius:12px;margin-top:1.5rem}.pil-progress progress{flex:1;min-width:120px;max-width:300px;accent-color:var(--pil-accent)}.pil-ritual-steps{list-style:none;margin:2rem 0;padding:0;display:grid;gap:1.2rem}.pil-ritual-steps>li{padding:1.3rem 1.5rem;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.pil-step-header{display:flex;align-items:center;gap:.8rem}.pil-step-header h2{flex:1;margin:0;font-size:1.25rem}.pil-step-number{display:grid;place-items:center;background:var(--pil-soft);color:var(--pil-accent);width:35px;height:35px;border-radius:50%;font-size:.9rem;font-weight:750;flex:none}.pil-step-check{display:flex;gap:.5rem;align-items:center;font-size:.9rem;min-height:44px;cursor:pointer}.pil-step-check input{width:20px;height:20px;accent-color:var(--pil-accent)}.pil-ritual-steps>li>p{margin:1rem 0}.pil-step-links{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;font-size:.9rem}.pil-counter{padding:1rem 1.2rem;border-radius:12px;background:var(--pil-soft);max-width:460px;margin:1.1rem 0}.pil-counter>p{font-size:1rem;font-weight:650}.pil-counter>div{display:flex;align-items:center;gap:1rem}.pil-counter>div button{display:grid;place-items:center;min-width:48px;min-height:48px;font-size:1.5rem;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer}.pil-counter button:disabled{opacity:.45;cursor:default}.pil-counter output{min-width:95px;text-align:center;font-size:1.9rem;font-weight:700}.pil-counter output span{font-size:1rem;color:var(--pil-muted)}.pil-counter small{display:block;margin-top:1rem;line-height:1.6;font-size:.9rem}.pil-book-group{margin:1rem 0;border:1px solid var(--line);border-radius:12px;padding:1rem 1.2rem}.pil-book-group>summary{cursor:pointer;font-weight:700;font-size:1.1rem}.pil-book-group>summary span{font-size:.9rem;font-weight:400;color:var(--pil-muted);margin-inline-start:.5rem}.pil-book-count{color:var(--pil-muted);font-size:.9rem}.pil-about-copy{max-width:800px}.pil-about-copy h2{margin-top:2rem}.pil-about-copy p{line-height:1.8}
@media(max-width:850px){.pil-place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pil-path-grid a>span:not(.pil-path-number){font-size:.9rem}.pil-paths{padding:1.1rem}}
@media(max-width:600px){.pilgrimage-page{padding-top:.5rem}.pil-heading{margin:1.3rem 0 1.5rem}.pil-path-grid{grid-template-columns:1fr}.pil-path-grid>a{grid-template-columns:24px 1fr;padding:.8rem 1rem;gap:.3rem .6rem}.pil-path-grid a>span:not(.pil-path-number){grid-column:2}.pil-path-grid b{bottom:auto;top:.8rem}.pil-path-grid strong{padding-inline-end:1.2rem}.pil-path-number{grid-row:1/3}.pil-section-heading{display:block}.pil-section-heading>.pil-button{margin-bottom:.6rem}.pil-filters{grid-template-columns:1fr;gap:.6rem}.pil-region-tabs{gap:.35rem}.pil-region-tabs a{font-size:.9rem;padding:.4rem .65rem}.pil-place-grid,.pil-readings{grid-template-columns:1fr}.pil-map-labels text{font-size:18px}.pil-map-note{font-size:.85rem}.pil-detail-topline{align-items:flex-start}.pil-location-box{padding:1rem}.pil-coordinate-row code{font-size:.85rem}.pil-ritual-steps>li{padding:1rem}.pil-step-header{gap:.5rem;flex-wrap:wrap}.pil-step-header h2{font-size:1.1rem;min-width:calc(100% - 50px)}.pil-step-check{margin-inline-start:45px}.pil-progress{gap:.7rem}.pil-progress>.pil-button{width:100%}.pil-book-group{padding:.8rem}.pil-breadcrumb{font-size:.85rem}.pil-map-caption{font-size:.8rem}}

/* Keep the choice cards and important reading text readable on small screens. */
.pil-place-open p,.pil-path-grid a>span:not(.pil-path-number){font-size:1rem}.pil-filters select{appearance:none;padding-inline-end:2.3rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2357675e' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center}[dir=rtl] .pil-filters select{background-position:left .9rem center}.dark .pil-filters select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23becdc4' stroke-width='2'/%3E%3C/svg%3E")}@media(max-width:600px){.pil-path-grid>a{display:grid;grid-template-columns:1fr;padding:1rem}.pil-path-grid a>span:not(.pil-path-number){grid-column:1}}

.pil-map-cities text{font-size:13px;text-anchor:middle;fill:var(--ink);font-family:inherit;font-weight:600;paint-order:stroke;stroke:var(--pil-land);stroke-width:4;stroke-linejoin:round;pointer-events:none}.pil-map-grid path{stroke-opacity:.15}
.pil-filters{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr)}
.pil-location-status{display:flex;align-items:center;gap:1rem;margin:0 0 1rem;padding:.8rem 1rem;border-radius:12px;background:var(--pil-soft);color:var(--pil-muted);font-size:.9rem}
.pil-location-status p{flex:1;margin:0;min-width:0;overflow-wrap:anywhere}.pil-location-status .pil-button{flex-shrink:0;background:var(--panel)}
.pil-place-distance{display:flex;flex-wrap:wrap;gap:.2rem .4rem;margin:.7rem 0 0;color:var(--pil-muted);font-size:.85rem}.pil-place-distance strong{color:var(--pil-accent);unicode-bidi:isolate}.pil-distance-detail{margin:1rem 0;font-size:1rem}.pil-distance-note{flex-basis:100%;font-size:.9rem}
.pil-photo{margin:.2rem 0 .8rem;min-width:0}.pil-photo img{display:block;width:100%;height:auto;background:var(--pil-soft);border-radius:10px}.pil-photo-card img{aspect-ratio:16/10;object-fit:cover}.pil-photo figcaption{display:grid;gap:.3rem;margin-top:.45rem;color:var(--pil-muted);font-size:.75rem;line-height:1.5;overflow-wrap:anywhere}.pil-photo-caption,.pil-photo-credit{display:block}.pil-photo-credit a{display:inline;text-decoration:underline}.pil-photo-detail{max-width:850px;margin:1.5rem auto}.pil-photo-detail img{max-height:32rem;object-fit:contain}.pil-photo-detail figcaption{font-size:.85rem}.pil-photo-empty{margin:.15rem 0 .4rem;font-size:.78rem;color:var(--pil-muted)}
@media(max-width:700px){.pil-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pil-filters label:first-child{grid-column:1/-1}.pil-location-status{align-items:flex-start;flex-direction:column;gap:.6rem}.pil-photo-detail{margin:1rem 0}}
@media(max-width:420px){.pil-filters{grid-template-columns:1fr}.pil-filters label:first-child{grid-column:auto}.pil-location-status .pil-button{width:100%}}

/* A regional visit starts with its places; maps and other rites are optional. */
.pil-heading+.pil-explorer{margin-block-start:1.4rem}
.pil-map-disclosure{margin-block:1rem;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:.3rem 1rem}
.pil-map-disclosure>summary,.pil-other-guides>summary{min-height:44px;padding:.55rem 0;cursor:pointer;font-weight:650;color:var(--pil-accent)}
.pil-map-disclosure>summary>span{font-weight:400;font-size:.9rem;color:var(--pil-muted);margin-inline-start:.7rem}
.pil-map-disclosure[open]>summary{margin-block-end:.6rem}
.pil-other-guides{margin-block:2rem;border-block:1px solid var(--line);padding:.4rem 0}
.pil-other-guides .pil-paths{margin-block:.6rem 1rem}
.pil-visit-nav{display:flex;flex-wrap:wrap;gap:.6rem;margin-block:0 1.3rem}
.pil-visit-nav button{min-height:44px;padding:.6rem 1rem;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--pil-accent);font-weight:650;cursor:pointer}
.pil-visit-nav button:first-child{color:var(--panel);background:var(--pil-accent);border-color:var(--pil-accent)}
.pil-detail-summary.has-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:1.3rem;align-items:start}
.pil-detail-summary .pil-photo{margin:0}
.pil-detail-summary .pil-location-box{padding:1.2rem}
.pil-detail-map{background:transparent;padding-inline:.7rem}
.pil-primary-readings{padding-block-start:1.5rem;border-block-start:1px solid var(--line)}
.pil-detail-section h2[id],.pil-location-box h2[id]{scroll-margin-block-start:7rem}
.pil-photo figcaption{font-size:.8125rem}
.pil-place-meta{font-size:.875rem}
.pil-result-heading{flex-wrap:wrap}
.pil-place-card h3{font-size:1.2rem}
.pil-text-links a,.pil-back,.pil-breadcrumb a{text-decoration:none;border-bottom:1px solid transparent}
.pil-text-links a:hover,.pil-back:hover,.pil-breadcrumb a:hover{border-bottom-color:currentColor}
.pil-source-list a,.pil-photo-credit a{text-decoration-line:underline;text-decoration-thickness:1px;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);text-underline-offset:.2em}
@media(max-width:760px){.pil-detail-summary.has-photo{grid-template-columns:minmax(0,1fr)}.pil-detail-summary .pil-photo-detail{max-width:580px}.pil-map-disclosure>summary>span{display:block;margin:.25rem 0 0}.pil-visit-nav{gap:.4rem}.pil-visit-nav button{padding:.55rem .8rem}}

.pil-readings>a{grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center}
.pil-readings>a>strong{grid-area:1/1}
.pil-readings>a>.duration-badge{grid-area:1/2;align-self:start;justify-self:end;color:var(--duration-ink)}
.pil-readings>a>.pil-reading-kind{grid-area:2/1/3/-1}
.pil-readings>a>span:last-child:not(.duration-badge):not(.pil-reading-kind){grid-column:1/-1}

.pil-counter{padding:clamp(.65rem,3vw,1rem)}
.pil-counter>.pil-counter-actions{gap:clamp(.35rem,2vw,.75rem);flex-wrap:wrap}
.pil-counter .pil-counter-actions output{min-width:3.1em}
.pil-counter-actions .pil-counter-reset{margin-inline-start:auto;min-width:44px;min-height:44px;width:44px;height:44px;padding:0;border-radius:50%;color:var(--pil-accent)}
.pil-counter>.pil-counter-confirm{flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.pil-counter .pil-counter-confirm button{font:inherit;font-weight:600;min-height:44px;padding:.2rem .6rem}
.pil-counter .pil-counter-confirm[hidden]{display:none}
/* The everyday directory is a paged index of places. Related readings and
   attribution notes live on each place's own page. */
.pil-reader-explorer {margin-block:1rem 1.5rem;}
.pil-reader-search {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;}
.pil-search-field {display:flex;align-items:center;flex:1 1 12rem;gap:.55rem;min-inline-size:0;min-block-size:46px;padding-inline:.85rem;background:var(--panel);border:1px solid var(--control-line);border-radius:.7rem;color:var(--pil-accent);}
.pil-search-field input {font:inherit;width:100%;border:0;background:transparent;padding:.55rem 0;color:var(--ink);min-width:0;}
.pil-search-field:focus-within {outline:2px solid var(--focus-ring);outline-offset:2px;}
.pil-search-field input:focus-visible {outline:0!important;}
.pil-reader-explorer :is(.pil-reader-filters,.pil-map-disclosure) {background:transparent;border:0;border-block-end:1px solid var(--line);border-radius:0;margin:0;padding:0;}
.pil-reader-explorer :is(.pil-reader-filters,.pil-map-disclosure)>summary {cursor:pointer;min-height:44px;display:flex;gap:.5rem;align-items:center;padding:.35rem .1rem;color:var(--pil-accent);font-weight:650;}
.pil-reader-explorer :is(.pil-reader-filters,.pil-map-disclosure)>summary::after {content:"";inline-size:.45rem;block-size:.45rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-inline:auto .35rem;}
.pil-reader-explorer :is(.pil-reader-filters,.pil-map-disclosure)[open]>summary::after {transform:rotate(225deg);}
.pil-reader-explorer :is(.pil-reader-filters,.pil-map-disclosure)>summary::-webkit-details-marker {display:none;}
.pil-reader-explorer .pil-filters {grid-template-columns:repeat(2,minmax(0,1fr));}
.pil-reader-explorer .pil-result-heading {margin:.8rem 0 .2rem;color:var(--muted);font-size:.875rem;}
.pil-place-grid.pil-place-list {display:block;margin-block:.25rem .55rem;}
.pil-place-grid .pil-place-card.pil-place-row {display:flex;flex-direction:row;align-items:center;gap:.35rem;min-block-size:60px;border:0;border-block-end:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:.2rem 0;}
.pil-place-row .pil-place-open {display:flex;align-items:center;gap:.8rem;min-inline-size:0;padding:.45rem 0;}
.pil-place-row .pil-place-mark {flex:none;display:grid;place-items:center;inline-size:2.7rem;block-size:2.7rem;color:var(--green);background:var(--pale);border-radius:1rem 1rem .45rem .45rem;}
.pil-place-row .pil-row-body {display:grid;gap:.12rem;min-inline-size:0;}
.pil-row-body .pil-row-title {font-size:1rem;font-weight:650;line-height:1.5;margin:0;overflow-wrap:anywhere;}
.pil-row-body small,.pil-place-row .pil-row-body .pil-place-distance {font-size:.875rem;line-height:1.5;margin:0;color:var(--muted);}
.pil-place-row .pil-save {flex:none;min-width:44px;min-height:44px;}
.pil-place-row .pil-save[aria-pressed="true"] svg {fill:currentColor;}
.pil-pager {display:flex;justify-content:space-between;gap:.75rem;margin-block:1rem;}
.pil-pager button:disabled {color:var(--muted)!important;opacity:.64;cursor:default;}
@media(hover:hover){.pil-place-row .pil-place-open:hover .pil-row-title{text-decoration:underline;text-underline-offset:.2em;}}

.pilgrimage-page .pil-heading.pil-illustrated-heading{display:flex;align-items:center;gap:clamp(.75rem,3vw,1.25rem);padding-block:.5rem}
.pil-illustrated-heading img{width:clamp(3.5rem,12vw,4.75rem);height:auto;aspect-ratio:1;object-fit:contain;flex:none;border-radius:14px}
.pil-illustrated-heading h1{min-inline-size:0;margin:0;overflow-wrap:anywhere}
.pilgrimage-page .pil-loading{min-block-size:14rem}

/* A reserved illustration keeps the title and the save action in place while each image loads. */
.pil-place-picture{display:block;flex:none;object-fit:cover;aspect-ratio:1;inline-size:3.35rem;block-size:3.35rem;border-radius:.7rem}
.pil-reader-explorer .pil-place-row .pil-place-open{flex:1 1 auto;gap:.75rem}
.pil-reader-explorer .pil-results-tools{position:sticky;inset-block-start:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.25rem;background:var(--bg,#fafaf7);border-block-end:1px solid var(--line);padding-block:.25rem;min-width:0}
.pil-places-range{display:flex;align-items:center;gap:.15rem;min-inline-size:0}
.pil-range{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.875rem;white-space:normal;text-align:center}
.pil-turn{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;color:var(--pil-accent);cursor:pointer}
.pil-turn:disabled{opacity:.35;cursor:default}
.pil-place-row{scroll-margin-block-start:3.8rem;scroll-margin-block-end:5rem}
.pil-place-title{display:flex;align-items:center;gap:clamp(.6rem,2.5vw,1rem);margin:.7rem 0 1rem}
.pil-place-title .pil-place-picture{inline-size:clamp(4.3rem,13vw,7rem);block-size:clamp(4.3rem,13vw,7rem);border-radius:.8rem}
.pil-place-title>div{min-inline-size:0;flex:1}
.pil-place-title h1{margin:0;font-size:clamp(1.45rem,4vw,2.3rem);overflow-wrap:anywhere;letter-spacing:normal;line-height:1.35}
.pil-place-title p{margin:.2rem 0 0;color:var(--pil-muted)}
.pil-place-title .pil-save{min-height:44px;min-width:44px;flex:none}
.pil-place-title .pil-save[aria-pressed=true] svg{fill:currentColor}
.pilgrimage-page .pil-back{display:inline-flex;align-items:center;gap:.4rem;min-height:44px}
.pilgrimage-page .pil-detail-tabs{display:flex;gap:0;flex-wrap:nowrap;border-block-end:1px solid var(--line)}
.pilgrimage-page .pil-detail-tabs button{display:flex;align-items:center;justify-content:center;gap:.45rem;flex:1 1 0;min-width:0;padding:.4rem .25rem;color:var(--pil-muted);background:transparent;border:0;border-block-end:3px solid transparent;border-radius:.4rem .4rem 0 0}
.pilgrimage-page .pil-detail-tabs button[aria-pressed=true]{color:var(--pil-accent);background:var(--pil-soft);border-color:currentColor}
.pilgrimage-page [data-pil-panel][hidden]{display:none}
.pilgrimage-page [data-pil-panel] .pil-detail-section:first-child,.pilgrimage-page [data-pil-panel] .pil-location-box{margin-top:0}
@media (hover:hover){.pil-turn:enabled:hover{background:var(--pil-soft)}}
@media(max-width:375px){.pil-place-row .pil-place-picture{inline-size:2.85rem;block-size:2.85rem}.pil-reader-explorer .pil-place-row .pil-place-open{gap:.55rem}.pil-places-range{gap:0}}
.pil-rite-controls{position:sticky;inset-block-start:0;z-index:2;display:flex;align-items:center;gap:.25rem;background:var(--bg,#fafaf7);border-block-end:1px solid var(--line);padding-block:.35rem}
.pil-rite-controls select{min-inline-size:0;flex:1;min-height:44px;max-width:100%;font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:.45rem;padding:.3rem}
.pil-rite-controls~.pil-ritual-steps{padding:0}
.pil-rite-controls~.pil-ritual-steps>li{scroll-margin-block:4rem 5rem;border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent}
.pil-ritual-steps>[hidden],.pil-rite-controls>[hidden]{display:none!important}
.pil-rite-controls+.pil-ritual-steps .pil-step-header h2{overflow-wrap:anywhere;line-height:1.5}
.pil-rite-controls .catalogue-view-controls{flex:none}
@media(max-width:340px){.pil-rite-controls{gap:0}}

.pil-local-history{margin-block:.85rem 1.2rem;line-height:1.65;color:var(--ink)}
.pil-local-history dl{margin:0;display:grid;gap:.75rem}.pil-local-history dt{font-weight:700}.pil-local-history dd{margin:.1rem 0 0}
.pil-related-places{display:flex;align-items:center;flex-wrap:wrap;gap:.1rem .85rem;margin-block-start:.5rem}
.pil-related-places a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:.2em}


/* /season-guides.css */
.season-guides{max-width:1060px;margin:0 auto;padding:1rem 0 3rem;color:var(--ink);line-height:1.65;--sg-accent:var(--green);--sg-soft:var(--pale)}
.season-guides a{color:var(--sg-accent);text-underline-offset:3px}.season-guides button{font:inherit;cursor:pointer}.season-guides :focus-visible{outline:3px solid var(--sg-accent);outline-offset:3px}.season-guides :where(h1,h2,h3,p){overflow-wrap:anywhere}.season-guides h1,.season-guides h2,.season-guides h3{line-height:1.35}.sg-header{max-width:50rem;margin:1rem 0 1.7rem}.sg-header h1{font-size:clamp(1.9rem,4vw,2.8rem);margin:.25rem 0 .8rem}.sg-header>p:not(.sg-eyebrow){color:var(--muted);margin:.7rem 0}.sg-eyebrow{font-size:.75rem;letter-spacing:.1em;font-weight:750;color:var(--sg-accent);margin:0 0 .3rem}.season-guides[dir=rtl] .sg-eyebrow{letter-spacing:0}.sg-breadcrumb{display:flex;flex-wrap:wrap;gap:.6rem;font-size:.87rem;color:var(--muted)}.sg-page-note{background:var(--sg-soft);border-inline-start:3px solid var(--sg-accent);padding:.8rem 1rem;border-radius:6px}.sg-related{display:flex;gap:.8rem;flex-wrap:wrap;font-weight:650}
.sg-featured{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0 2rem}.sg-featured>a{display:block;padding:1.2rem 1.4rem;border:1px solid var(--line);border-radius:18px;background:var(--sg-soft);text-decoration:none}.sg-featured span,.sg-featured strong,.sg-featured small{display:block}.sg-featured span{font-size:.77rem;color:var(--muted)}.sg-featured strong{font-size:1.35rem;margin:.3rem 0;color:var(--ink)}.sg-featured small{font-size:.9rem}.sg-featured>a:hover{border-color:var(--sg-accent)}.sg-section-title{margin:1rem 0}.sg-section-title h2{margin:0;font-size:1.4rem}.sg-section-title p{margin:.3rem 0;color:var(--muted);font-size:.9rem}.sg-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.sg-month-card{display:block;position:relative;padding:1.25rem;border:1px solid var(--line);border-radius:15px;text-decoration:none;background:var(--panel)}.sg-month-card:hover{border-color:var(--sg-accent);background:var(--sg-soft)}.sg-month-card h3{color:var(--ink);font-size:1.12rem;margin:.8rem 0 .5rem}.sg-month-card p{color:var(--muted);font-size:.88rem;margin:.35rem 0 1rem;min-height:4.5em}.sg-month-number{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--sg-soft);font-size:.83rem;width:2rem;height:2rem;border-radius:50%;font-weight:700}.sg-open{font-size:.83rem;font-weight:650;display:flex;gap:.5rem;align-items:center}.sg-month-nav{display:flex;gap:.45rem;flex-wrap:wrap;margin:0 0 1rem}.sg-month-nav a{border:1px solid var(--line);border-radius:999px;padding:.45rem .7rem;min-height:40px;display:flex;align-items:center;box-sizing:border-box;background:var(--panel);font-size:.8rem;text-decoration:none}.sg-month-nav a[aria-current=page]{background:var(--sg-accent);color:var(--on-accent);border-color:var(--sg-accent);font-weight:700}
.sg-date-note{margin:1.2rem 0 1.5rem;padding:.8rem 1rem;background:var(--light);border:1px solid var(--line);border-radius:12px;font-size:.87rem}.sg-date-note>summary{cursor:pointer;font-weight:650;color:var(--sg-accent);min-height:24px}.sg-date-note p{color:var(--muted)}.sg-filterbar{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.3rem 0 .6rem}.sg-tag{border:1px solid var(--line);background:var(--panel);color:var(--sg-accent);border-radius:999px;padding:.4rem .75rem;min-height:38px;font-size:.8rem;font-weight:600}.sg-tag:hover{background:var(--sg-soft);border-color:var(--sg-accent)}.sg-tag[aria-pressed=true]{background:var(--sg-accent);border-color:var(--sg-accent);color:var(--on-accent)}.sg-results{color:var(--muted);font-size:.83rem;margin:.7rem 0 1rem}.sg-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.sg-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.25rem;min-width:0;align-self:start}.sg-card .sg-when{font-size:.79rem;color:var(--sg-accent);font-weight:650;margin:0 0 .35rem}.sg-card h3{font-size:1.16rem;margin:0 0 .6rem}.sg-card>p:not(.sg-when){font-size:.93rem;color:var(--muted);margin:.5rem 0 .9rem}.sg-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin:.6rem 0}.sg-tags .sg-tag{font-size:.74rem;padding:.2rem .6rem;min-height:32px}.sg-reading-links{display:flex;flex-direction:column;gap:.55rem;margin:1rem 0 .8rem}.sg-reading-links>a{padding:.5rem .7rem;border:1px solid var(--line);border-radius:9px;text-decoration:none;font-size:.87rem;background:var(--light)}.sg-reading-links>a:hover{background:var(--sg-soft);border-color:var(--sg-accent)}.sg-schedule{min-height:44px;margin:.4rem 0;padding:.55rem .85rem;border:1px solid var(--sg-accent);border-radius:9px;color:var(--sg-accent);background:var(--sg-soft);font-weight:650}.sg-sources{border-top:1px solid var(--line);margin-top:1rem;padding-top:.65rem}.sg-sources>summary{cursor:pointer;color:var(--muted);font-size:.79rem;padding:.25rem 0}.sg-source-list{list-style:none;padding:0;margin:.6rem 0}.sg-source-list>li{display:flex;flex-wrap:wrap;gap:.35rem .7rem;align-items:flex-start;padding:.65rem 0;border-top:1px solid var(--line);font-size:.83rem;overflow-wrap:anywhere}.sg-source-list>li:first-child{border-top:0}.sg-source-list>li>div:first-child{flex:1;min-width:12rem}.sg-source-list small{display:block;color:var(--muted);font-size:.73rem;margin-top:.2rem}.sg-original{font-size:.71rem;white-space:nowrap}.sg-source-readings{display:flex;flex-direction:column;gap:.4rem;flex-basis:100%;padding:.5rem .7rem;background:var(--light);border-radius:8px;margin-top:.3rem}.sg-source-readings>span{color:var(--muted);font-size:.72rem}.sg-source-readings>a{font-size:.8rem}
.sg-book-index,.sg-common{margin:1.5rem 0;border:1px solid var(--line);border-radius:15px;background:var(--panel);overflow:hidden}.sg-book-index>summary,.sg-common>summary{padding:1rem 1.2rem;cursor:pointer;color:var(--sg-accent);font-weight:650;display:flex;gap:.8rem;align-items:center;justify-content:space-between;list-style:none}.sg-book-index>summary::-webkit-details-marker,.sg-common>summary::-webkit-details-marker{display:none}.sg-book-index>summary:after,.sg-common>summary:after{content:'+';font-size:1.4rem;font-weight:400}.sg-book-index[open]>summary:after,.sg-common[open]>summary:after{content:'−'}.sg-book-index>summary strong,.sg-book-index>summary small{display:block}.sg-book-index>summary small{color:var(--muted);font-size:.8rem;font-weight:400;margin-top:.35rem}.sg-book{padding:.65rem 1.2rem;border-top:1px solid var(--line)}.sg-book>summary{cursor:pointer;color:var(--ink);font-size:.9rem;padding:.4rem 0}.sg-book>summary>span{font-size:.75rem;color:var(--muted);margin-inline-start:.65rem}.sg-common>.sg-cards{padding:0 1rem 1rem}.sg-planner{margin:2rem 0 1rem;background:var(--sg-soft);border:1px solid var(--line);border-radius:18px;padding:1.4rem;display:grid;grid-template-columns:1.25fr 1fr;gap:1.4rem;align-items:center}.sg-planner h2{font-size:1.3rem;margin:.3rem 0 .6rem}.sg-planner p:not(.sg-eyebrow){font-size:.9rem;color:var(--muted);margin:.3rem 0}.sg-planner-actions{display:flex;flex-direction:column;gap:.65rem}.sg-planner-actions>a,.sg-planner-actions>button{font-size:.87rem;line-height:1.5;text-align:start}.sg-planner-actions>button,.sg-primary{border:1px solid var(--sg-accent);border-radius:10px;padding:.65rem .8rem;min-height:44px;background:var(--panel);color:var(--sg-accent);font-weight:650;text-decoration:none}.sg-planner-actions>.sg-primary{background:var(--sg-accent);color:var(--on-accent)}.sg-editorial-note{color:var(--muted);font-size:.78rem;line-height:1.7}.sg-footer{display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap;font-size:.85rem;margin:1.5rem 0}.sg-status{padding:.8rem 1rem;border:1px solid var(--line);border-radius:9px;color:var(--sg-accent);background:var(--sg-soft)}.sg-loading{padding:2rem 0}.sg-loading>button{border:1px solid var(--line);background:var(--panel);color:var(--sg-accent);border-radius:9px;padding:.65rem 1rem;min-height:44px}.sg-loading>a{display:block;margin-top:1rem}
@media(max-width:760px){.sg-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-cards,.sg-planner{grid-template-columns:1fr}.sg-planner{gap:.8rem}.sg-card{padding:1.1rem}.sg-month-card p{min-height:0}.sg-common>.sg-cards{padding:0 .65rem .65rem}.sg-planner-actions{max-width:none}}
@media(max-width:450px){.sg-featured{grid-template-columns:1fr;gap:.7rem}.sg-featured>a{padding:1rem}.sg-month-grid{gap:.65rem}.sg-month-card{padding:.9rem}.sg-month-card h3{font-size:1rem}.sg-month-card p{font-size:.8rem}.sg-month-nav{gap:.35rem}.sg-month-nav a{font-size:.75rem;padding:.4rem .6rem}.sg-card h3{font-size:1.07rem}.sg-source-list>li>div:first-child{min-width:0;flex-basis:100%}.sg-book{padding:.65rem 1rem}.sg-planner{padding:1.1rem}.sg-tags .sg-tag{min-height:38px}}
@media(prefers-reduced-motion:reduce){.season-guides *{scroll-behavior:auto}}

.sg-fasting-month{margin-block:1.7rem}.sg-fasting-month>h2{font-size:1.35rem;margin-block:0 .75rem;color:var(--green)}

.season-guides a.sg-timed-link{display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;text-decoration:none;max-inline-size:100%}
.sg-source-readings a.sg-timed-link{align-self:flex-start}
.sg-timed-link>.duration-badge{flex:none}


/* /qada-tracker.css */
.qada-tracker{max-width:1120px;margin:0 auto;padding:20px 16px 48px;color:var(--ink,#252b28);font-size:16px;line-height:1.6}
.qt-today{margin:20px 0;padding:20px;border:1px solid var(--line,#d9dfd9);border-inline-start:4px solid var(--green,#1f6452);border-radius:16px;background:var(--panel,#fff);color:var(--ink,#252b28);font-size:16px;line-height:1.6;min-width:0}.qt-today[hidden]{display:none}.qt-today *{box-sizing:border-box}.qt-today h2{margin:0;font-size:20px;line-height:1.4}.qt-today p{margin:5px 0}.qt-today-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}.qt-today-heading p,.qt-today-note{color:var(--muted,#606a64)}.qt-today-open{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--line,#d9dfd9);border-radius:10px;color:var(--green,#1f6452);background:var(--pale,#f3f5f0);font-size:16px;font-weight:650;text-underline-offset:4px}.qt-today-status{font-weight:650;margin-block:14px 8px!important}.qt-today-targets{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.qt-today-targets>li{min-width:0;padding:12px 0;border-top:1px solid var(--line,#d9dfd9);overflow-wrap:anywhere}.qt-today-target-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.qt-today-done{color:var(--green,#1f6452);font-weight:650}.qt-today progress{display:block;appearance:none;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;background:var(--pale,#eaf5ef);color:var(--green,#1f6452);margin:10px 0}.qt-today progress::-webkit-progress-bar{background:var(--pale,#eaf5ef)}.qt-today progress::-webkit-progress-value{background:var(--green,#1f6452)}.qt-today progress::-moz-progress-bar{background:var(--green,#1f6452)}.qt-today-more{margin:8px 0}.qt-today-more summary{min-height:44px;padding:10px 0;font-size:16px;font-weight:650;cursor:pointer}.qt-today-warning{padding:12px;border:1px solid var(--control-line,var(--line,#d9dfd9));border-radius:10px;background:var(--pale,#f3f5f0)}.qt-today :is(a,summary):focus-visible{outline:3px solid var(--green,#1f6452);outline-offset:3px}
@media(max-width:600px){.qt-today{padding:16px}.qt-today-targets{grid-template-columns:1fr}.qt-today-heading{align-items:stretch}.qt-today-open{justify-content:center}}
.qt-today[data-qt-today-compact]{margin:12px 0;padding:0;border-inline-start-width:1px}.qt-today-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 16px;list-style:none;cursor:pointer}.qt-today-disclosure>summary::-webkit-details-marker{display:none}.qt-today-disclosure>summary::marker{content:""}.qt-today-summary-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 14px;min-width:0}.qt-today-summary-copy strong{font-size:16px;font-weight:650}.qt-today-summary-copy small{font-size:14px;line-height:1.4;color:var(--muted,#606a64)}.qt-today-chevron{display:flex;flex:none;color:var(--muted,#606a64)}.qt-today-chevron svg{width:18px;height:18px}.qt-today-disclosure[open]>summary{border-bottom:1px solid var(--line,#d9dfd9)}.qt-today-disclosure[open]>summary .qt-today-chevron{transform:rotate(180deg)}.qt-today-disclosure-body{padding:16px}
.qada-tracker *{box-sizing:border-box}.qada-tracker h1,.qada-tracker h2,.qada-tracker h3,.qada-tracker p{margin:0 0 12px}.qada-tracker h1{font-size:clamp(28px,5vw,40px);line-height:1.25}.qada-tracker h2{font-size:21px;line-height:1.35}.qada-tracker h3{font-size:18px}.qada-tracker a{color:var(--green,#1f6452);text-underline-offset:4px;overflow-wrap:anywhere}
.qt-breadcrumb,.qt-links,.qt-secondary,.qt-toolbar{display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap}.qt-breadcrumb{margin-bottom:20px}.qt-heading{margin:24px 0}.qt-eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;color:var(--muted,#606a64)}[dir=rtl] .qt-eyebrow{letter-spacing:0}.qt-heading>p:last-child,.qt-lead{max-width:780px;color:var(--muted,#606a64)}
.qt-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:6px;background:var(--pale,#f0f3ef);border:1px solid var(--line,#d9dfd9);border-radius:16px;margin:20px 0}.qt-tabs a{padding:10px 15px;border-radius:10px;text-decoration:none;min-height:44px;font-weight:650}.qt-tabs a[aria-current=page]{background:var(--green,#1f6452);color:var(--on-accent,#fff)}.qt-secondary{margin:8px 0 12px}.qt-secondary a[aria-current=page]{font-weight:750}.qt-toolbar{justify-content:space-between}.qt-toolbar p{margin:0;color:var(--muted,#606a64)}.qt-status{min-height:28px;margin:12px 0!important;color:var(--green,#1f6452)}.qt-status[role=alert],.qt-warning{color:var(--danger,#923c32)}
.qt-button{appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 16px;min-height:44px;border:1px solid var(--line,#cad5cb);border-radius:10px;background:var(--panel,#fff);color:var(--ink,#252b28);font:inherit;font-size:16px;line-height:1.4;cursor:pointer;text-align:center}.qt-button:hover{background:var(--pale,#eef3ef)}.qt-button:disabled{opacity:.5;cursor:not-allowed}.qt-primary{background:var(--green,#1f6452);border-color:var(--green,#1f6452);color:var(--on-accent,#fff)}.qt-primary:hover{filter:brightness(.95);background:var(--green,#1f6452)}.qada-tracker :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--green,#1f6452);outline-offset:3px}
.qt-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:8px 0 24px}.qt-total{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--line,#d9dfd9);border-radius:16px;background:var(--panel,#fff);text-decoration:none}.qt-total strong{font-size:32px;line-height:1.2}.qt-total span{color:var(--ink,#252b28)}
.qt-account-grid,.qt-target-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.qt-account,.qt-routine-target{padding:20px;background:var(--panel,#fff);border:1px solid var(--line,#d9dfd9);border-radius:16px;min-width:0}.qt-account header{display:flex;align-items:start;justify-content:space-between;gap:16px}.qt-account header>div{min-width:0}.qt-account header h2{overflow-wrap:anywhere}.qt-balance{text-align:end;flex:0 0 auto}.qt-balance strong{display:block;font-size:29px;line-height:1.2;color:var(--green,#1f6452)}.qt-balance span{display:block;font-size:15px}.qt-account .qt-primary{margin:8px 0 14px}.qt-record-note{overflow-wrap:anywhere;color:var(--muted,#606a64)}.qt-account-edit{border-top:1px solid var(--line,#d9dfd9);padding-top:12px}
.qada-tracker details{margin:16px 0}.qada-tracker summary{cursor:pointer;font-weight:650;min-height:44px;padding:8px 0;font-size:16px}.qada-tracker form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin:14px 0}.qt-field{display:flex;flex-direction:column;gap:7px;font-size:16px;min-width:0}.qt-field>span{font-size:16px;font-weight:550}.qada-tracker input:not([type=checkbox]),.qada-tracker select,.qada-tracker textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line,#c6d1c7);border-radius:9px;background:var(--panel,#fff);color:var(--ink,#252b28);font:inherit;font-size:16px}.qada-tracker input[type=number],.qada-tracker input[type=date]{font-variant-numeric:tabular-nums}.qada-tracker textarea{min-height:160px;resize:vertical}.qada-tracker input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--green,#1f6452);margin:2px 0}
.qt-wide,.qt-optional,.qt-form-help,.qada-tracker form>p,.qada-tracker form>fieldset,.qada-tracker form>.qt-check{grid-column:1/-1}.qt-optional{margin:0!important}.qt-optional .qt-field{margin-top:12px}.qt-form-help{font-size:15px;color:var(--muted,#606a64)}.qt-check{display:flex;align-items:start;gap:10px;font-size:16px;min-height:44px;padding:8px 0}.qada-tracker fieldset{border:1px solid var(--line,#d9dfd9);border-radius:12px;padding:14px;min-width:0}.qada-tracker legend{padding:0 6px;font-size:16px;font-weight:650}.qt-weekdays{display:flex;gap:5px 18px;flex-wrap:wrap}.qt-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.qt-date{max-width:260px;margin:16px 0}.qt-whole-days,.qt-add-obligation,.qt-routine-setup,.qt-backup-restore,.qt-settled{padding:12px 18px;border:1px solid var(--line,#d9dfd9);border-radius:14px;background:var(--panel,#fff)}.qt-schedule-note{color:var(--muted,#606a64)}
.qt-guidance,.qt-overview-help,.qt-summary{padding:20px;border:1px solid var(--line,#d9dfd9);border-radius:16px;background:var(--pale,#f3f5f0);margin:20px 0}.qt-guidance ul{padding-inline-start:22px}.qt-guidance li{margin:10px 0}.qt-guidance .qt-links{margin-top:16px}.qt-summary h3{margin:0 0 8px}.qt-summary p{margin:0 0 10px}.qt-summary a{font-weight:650}.qt-warning{padding:16px;border:1px solid currentColor;border-radius:12px;background:var(--panel,#fff)}
.qt-history{list-style:none;padding:0;margin:18px 0}.qt-history>li{padding:16px 0;border-bottom:1px solid var(--line,#d9dfd9)}.qt-history>li>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.qt-history time{color:var(--muted,#606a64);font-size:15px}.qt-history ul{padding-inline-start:22px}.qt-history p{margin:8px 0 0;overflow-wrap:anywhere}.qt-history .is-undone{opacity:.65}.qt-tag{border:1px solid var(--line,#cad5cb);border-radius:20px;padding:2px 10px;font-size:14px}.qt-empty{color:var(--muted,#606a64);padding:18px 0}.qt-backup-text{margin-top:18px;direction:ltr;text-align:left}.qt-routine-target strong{font-size:23px;color:var(--green,#1f6452)}
@media(max-width:700px){.qt-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qt-account-grid,.qt-target-grid{grid-template-columns:1fr}.qt-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.qada-tracker{padding:16px 12px 36px}.qt-tabs a{flex:1 0 auto;text-align:center;padding:10px}.qt-toolbar{align-items:start}.qt-toolbar p{flex:1 1 100%}}
@media(max-width:400px){.qada-tracker form{grid-template-columns:1fr}.qt-wide,.qt-optional,.qt-form-help,.qada-tracker form>p,.qada-tracker form>fieldset,.qada-tracker form>.qt-check{grid-column:1}.qt-account{padding:16px}.qt-balance{max-width:45%}.qt-total{padding:16px}.qt-total strong{font-size:28px}.qt-fields{grid-template-columns:1fr}.qt-account header{gap:10px}.qt-links{flex-direction:column;align-items:start}}

.qt-prayer-estimate{display:inline-flex;align-items:center;gap:.4rem;margin-inline:.35rem;font-size:.85em}


/* /weekly-routines.css */
.weekly-routines{max-width:980px;margin:0 auto;padding:0 0 3rem;color:var(--ink);font-size:1rem;line-height:1.65;color-scheme:light;--wr-warning:#84521b}
body.dark .weekly-routines{color-scheme:dark;--wr-warning:#f0d7a7}
.wr-header{margin:1.5rem 0 1.75rem;max-width:48rem}.wr-eyebrow{font-size:.76rem;letter-spacing:.1em;font-weight:750;color:var(--green);margin:0 0 .4rem}.wr-header h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;margin:0 0 .9rem}.wr-header>p:not(.wr-eyebrow){color:var(--muted);margin:.6rem 0}.weekly-routines a{color:var(--green);text-underline-offset:3px}.wr-header>a{display:inline-block;margin-top:.5rem;font-weight:650}
.wr-period-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1.2rem}.wr-period-nav a{border:1px solid var(--line);border-radius:999px;padding:.6rem 1rem;background:var(--panel);font-weight:650;text-decoration:none}.wr-period-nav a:hover{background:var(--pale)}
.wr-phase,.wr-planner{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:1rem}.wr-phase>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.4rem;cursor:pointer;background:var(--panel)}.wr-phase>summary::-webkit-details-marker{display:none}.wr-phase>summary::after{content:'+';font-size:1.4rem;color:var(--green)}.wr-phase[open]>summary::after{content:'−'}.wr-phase>summary>span:first-child{flex:1}.wr-phase>summary small,.wr-phase>summary strong{display:block}.wr-phase>summary small{color:var(--muted);font-size:.81rem}.wr-phase>summary strong{font-size:1.3rem;line-height:1.4;margin-top:.2rem}.wr-badge{font-size:.8rem;padding:.25rem .6rem;border-radius:8px;color:var(--green);background:var(--pale);white-space:nowrap}.wr-phase[open]>summary{border-bottom:1px solid var(--line)}
.wr-current{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;background:var(--pale);padding:.7rem 1.4rem;font-size:.83rem;color:var(--ink)}.wr-phase>.wr-note{padding:0 1.4rem}.wr-act-list{list-style:none;margin:0;padding:0}.wr-act{padding:1.15rem 1.4rem;border-bottom:1px solid var(--line)}.wr-act.is-complete{background:var(--light)}.wr-act-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.wr-act-heading>div:first-child{min-width:0}.wr-kind{color:var(--muted);font-size:.77rem}.wr-act h4{font-size:1rem;line-height:1.5;margin:.1rem 0 .4rem}.wr-act-links{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .45rem}.wr-act-links>a{font-weight:650;text-decoration:none;overflow-wrap:anywhere}.wr-act-links>a:is(:hover,:focus-visible){text-decoration:underline}.wr-act-links>.duration-badge{align-self:center}.wr-act-detail{margin-top:.6rem}.wr-act-detail>summary{cursor:pointer;font-size:.84rem;color:var(--green);padding:.25rem 0}.wr-act-detail p{margin:.5rem 0;color:var(--muted);font-size:.93rem}.wr-act-detail .wr-arabic{font-family:var(--font-arabic,serif);font-size:1.3rem;line-height:2.1;color:var(--ink);background:var(--light);border-radius:10px;padding:.8rem 1rem}.wr-reading-links{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.65rem}.wr-reading-links a{border:1px solid var(--line);border-radius:7px;padding:.25rem .65rem;font-size:.83rem;text-decoration:none}.wr-reading-links a:hover{background:var(--pale)}
.weekly-routines button,.weekly-routines input,.weekly-routines select{font:inherit}.weekly-routines button{cursor:pointer;border:1px solid var(--line);background:var(--panel);color:var(--green);border-radius:10px;padding:.55rem .85rem;min-height:44px;font-weight:650}.weekly-routines button:hover:not(:disabled){background:var(--pale)}.weekly-routines button:disabled{cursor:default;opacity:.55}.weekly-routines :focus-visible{outline:3px solid var(--green);outline-offset:3px}.weekly-routines input[type=checkbox]{width:19px;height:19px;accent-color:var(--green);flex:none;margin:.25rem .5rem 0 0}.weekly-routines[dir=rtl] input[type=checkbox]{margin:.25rem 0 0 .5rem}.wr-check{display:flex;align-items:center;gap:.25rem;font-size:.84rem;cursor:pointer;white-space:nowrap;min-height:44px}.wr-count{display:flex;gap:.2rem;align-items:center;flex:none}.wr-count button{padding:0;width:34px;min-height:38px}.wr-count label{display:flex;align-items:center;gap:.3rem;font-size:.77rem;color:var(--muted)}.wr-count input{width:55px;min-height:38px;text-align:center;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:.2rem;appearance:textfield}.wr-count input::-webkit-inner-spin-button{appearance:none}
.wr-complete{padding:1rem 1.4rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;background:var(--pale)}.wr-complete span{font-size:.9rem}.wr-chapter{font-size:.9rem;margin:.8rem 1.4rem 1rem}.wr-planner{padding:1.4rem;margin-top:2rem}.wr-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.7rem}.wr-section-heading h2{font-size:1.45rem;line-height:1.35;margin:0}.wr-section-heading button{font-size:.84rem}.wr-note{color:var(--muted);font-size:.9rem}.wr-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1rem 0}.wr-choice{display:flex;align-items:flex-start;gap:.2rem;border:1px solid var(--line);border-radius:12px;padding:.8rem;cursor:pointer;background:var(--panel)}.wr-choice:has(input:checked){background:var(--pale);border-color:var(--green)}.wr-choice strong,.wr-choice small{display:block}.wr-choice strong{font-size:.94rem}.wr-choice small{font-size:.77rem;color:var(--muted);margin-top:.2rem}.wr-fields{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;margin:1rem 0}.wr-fields label{display:grid;gap:.3rem;color:var(--muted);font-size:.86rem}.wr-fields input,.wr-fields select{min-width:0;width:100%;box-sizing:border-box;padding:.65rem .75rem;border:1px solid var(--line);border-radius:9px;min-height:44px;color:var(--ink);background:var(--panel)}.wr-tiers{border:0;margin:1rem 0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}.wr-tiers legend{font-size:.88rem;color:var(--muted);padding:0;margin-bottom:.5rem}.wr-tiers button{font-size:.87rem}.wr-tiers button[aria-pressed=true]{background:var(--green);color:var(--on-accent)}
.wr-customize{border:1px solid var(--line);border-radius:12px;padding:.7rem 1rem;margin:1rem 0}.wr-customize>summary{cursor:pointer;color:var(--green);font-weight:650}.wr-custom-phase{margin:.8rem 0;border-top:1px solid var(--line);padding-top:.7rem}.wr-custom-phase>summary{cursor:pointer;font-size:.94rem;font-weight:650}.wr-custom-phase fieldset{border:0;padding:0;margin:1rem 0}.wr-custom-phase legend{font-size:.78rem;font-weight:750;color:var(--green);padding:0;margin-bottom:.5rem}.wr-custom-phase label{display:flex;align-items:flex-start;gap:.3rem;padding:.5rem 0;line-height:1.4;font-size:.9rem;cursor:pointer}.wr-choice-title{flex:1;min-width:0}.wr-custom-phase label>.duration-badge{align-self:center}.wr-custom-phase label small{display:block;font-size:.76rem;color:var(--muted);margin-top:.25rem}.wr-preview{background:var(--light);border-radius:12px;padding:.9rem 1rem;margin:1rem 0}.wr-preview h3{font-size:.95rem;margin:0 0 .5rem}.wr-preview ul{list-style:none;padding:0;margin:0}.wr-preview li{padding:.4rem 0}.wr-preview li>*{display:block}.wr-preview strong{font-size:.88rem}.wr-preview span,.wr-preview small,.wr-preview p{color:var(--muted);font-size:.81rem;margin:.15rem 0}.wr-extension{display:flex;align-items:flex-start;gap:.3rem;padding:.8rem 0;color:var(--wr-warning);font-size:.9rem}.wr-feedback{min-height:1.6em;font-size:.9rem;color:var(--green);margin:.7rem 0}.wr-feedback.is-error{color:var(--wr-warning)}.wr-actions{display:flex;flex-wrap:wrap;gap:.6rem}.weekly-routines .wr-primary{background:var(--green);color:var(--on-accent);border-color:var(--green)}.weekly-routines .wr-primary:hover:not(:disabled){filter:brightness(.96);background:var(--green)}.wr-footer{display:flex;justify-content:space-between;gap:.7rem;flex-wrap:wrap;font-size:.82rem;margin-top:1.2rem}.wr-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.wr-choices{grid-template-columns:1fr}.wr-choice{padding:.75rem}.wr-phase>summary,.wr-act,.wr-planner{padding:1rem}.wr-current{padding:.7rem 1rem}.wr-phase>summary strong{font-size:1.17rem}.wr-act-heading{flex-wrap:wrap}.wr-count{margin:.25rem 0}.wr-complete{padding:1rem}.wr-fields{grid-template-columns:1fr}.wr-header{margin-top:1rem}.wr-period-nav a{font-size:.85rem;padding:.5rem .75rem}.wr-badge{font-size:.75rem}.wr-tiers button{flex:1;font-size:.82rem}.wr-actions button{flex:1}}

.wr-count button{width:44px;height:44px;min-height:44px;border-radius:50%;font-size:1.3rem;touch-action:manipulation}
.wr-count input{min-height:44px;font-size:1.05rem;width:60px}
.wr-count label{font-size:.875rem}
.wr-act{padding:.75rem 1rem}
.wr-kind,.wr-act-detail>summary,.wr-badge{font-size:.875rem}
.wr-act-detail>summary{min-height:44px;display:flex;align-items:center}
.wr-period-nav a{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;padding:.4rem .8rem}
.weekly-routines .wr-primary{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
.weekly-routines .wr-primary>svg{width:21px;height:21px;flex:none}


/* /prayer-counter.css */
.prayer-counter{--pc-green:var(--green,#176653);margin:20px 0;border:1px solid var(--line,#d9e5de);border-radius:16px;background:var(--panel,#fff);color:var(--ink,#203e36);font-family:var(--font-ui,system-ui,sans-serif);overflow:hidden}
.prayer-counter *{box-sizing:border-box}.prayer-counter>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:14px 18px;cursor:pointer;font-size:.95rem;font-weight:650}.prayer-counter>summary small{font-size:.78rem;font-weight:450;color:var(--muted,#52685e);text-align:end}.prayer-counter[open]>summary{border-bottom:1px solid var(--line,#d9e5de)}.prayer-counter-body{max-width:480px;margin:auto;padding:18px}.prayer-counter-choice{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:.88rem;color:var(--muted,#52685e)}.prayer-counter-choice select{min-height:44px;min-width:70px;border:1px solid var(--line,#d9e5de);border-radius:10px;background:var(--panel,#fff);color:var(--ink,#203e36);padding:7px 12px;font:inherit}.prayer-counter-choice strong{color:var(--pc-green);padding:9px 16px;font-size:1.1rem}
.prayer-counter-display{text-align:center;margin:20px 0 15px}.prayer-counter-display>strong{font-size:1.55rem;font-weight:650}.prayer-counter-display>strong>span{font-size:1rem;font-weight:450;color:var(--muted,#52685e)}.prayer-counter-sajdahs{display:flex;justify-content:center;gap:12px;margin:16px 0}.prayer-counter-sajdahs span{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line,#d9e5de);border-radius:50%;color:var(--muted,#52685e);font-size:1.1rem}.prayer-counter-sajdahs .is-recorded{background:var(--pale,#eef6f1);border-color:var(--pc-green);color:var(--pc-green)}.prayer-counter-display p,.prayer-counter-note{font-size:.81rem;line-height:1.75;color:var(--muted,#52685e);margin:9px 0}.prayer-counter button{min-height:44px;font:600 .9rem/1.5 var(--font-ui,system-ui,sans-serif);cursor:pointer;touch-action:manipulation}.prayer-counter button:disabled,.prayer-counter select:disabled{opacity:.5;cursor:default}.prayer-counter-add,.prayer-counter-finish{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:58px!important;border:0;border-radius:12px;padding:14px;color:#fff;background:var(--pc-green)}.prayer-counter-add>span{font-size:1.8rem;line-height:1}.prayer-counter-finish{margin:12px 0}.prayer-counter-tools{display:flex;gap:12px;justify-content:space-between;margin:10px 0}.prayer-counter-tools button{border:1px solid var(--line);border-radius:.5rem;background:var(--panel);color:var(--ink);padding:8px .6rem;text-decoration:none;font-weight:500}
.prayer-counter-cue,.prayer-counter-finished{padding:12px 14px;border-radius:10px;background:var(--pale,#eef6f1);color:var(--pc-green);font-size:.9rem;line-height:1.75}.prayer-counter-resume,.prayer-counter-confirm{padding:13px;border:1px solid var(--line,#d9e5de);border-radius:10px;margin:12px 0}.prayer-counter-resume p,.prayer-counter-confirm p{margin:0 0 10px;font-size:.85rem;line-height:1.7}.prayer-counter-resume button,.prayer-counter-confirm button{border:1px solid var(--pc-green);border-radius:9px;background:var(--panel,#fff);color:var(--pc-green);padding:9px 13px;margin-inline-end:8px;margin-block:3px}.prayer-counter-warning{padding:10px 12px;border-inline-start:3px solid #ae7d30;border-radius:6px;font-size:.8rem;line-height:1.75;color:var(--muted,#52685e)}.prayer-counter :is(button,select,summary):focus-visible,.prayer-counter-confirm:focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}.dark .prayer-counter{--pc-green:#9edcc1}.dark .prayer-counter-add,.dark .prayer-counter-finish{color:#143e31}@media(max-width:480px){.prayer-counter>summary{padding:13px 15px;gap:9px}.prayer-counter>summary small{max-width:44%}.prayer-counter-body{padding:15px}.prayer-counter-tools{gap:8px}}
.prayer-counter-targets{display:flex;gap:8px;justify-content:center;margin:0 0 20px}.prayer-counter-targets button{display:grid;gap:2px;align-content:center;min-width:62px;min-height:64px;padding:7px 11px;border:1px solid var(--line,#d9e5de);border-radius:12px;color:var(--muted,#52685e);background:var(--panel,#fff)}.prayer-counter-targets button>b{font-size:1.3rem;line-height:1.2}.prayer-counter-targets button>span{font-size:.75rem}.prayer-counter-targets button[aria-pressed=true]{border:2px solid var(--pc-green);background:var(--pale,#eef6f1);color:var(--pc-green)}
.prayer-counter-path{display:flex;gap:10px;justify-content:center;padding:0;margin:5px 0 20px;list-style:none}.prayer-counter-path>li{position:relative;display:grid;justify-items:center;gap:3px;flex:1;max-width:86px;border-radius:15px;padding:10px 4px;border:2px solid var(--line,#d9e5de);background:var(--panel,#fff);color:var(--muted,#52685e)}.prayer-counter-path>li>b{font-size:1.5rem;line-height:1.1}.prayer-counter-path>li>span{font-size:.75rem}.prayer-counter-path>li.is-current{border-color:var(--pc-green);color:var(--pc-green)}.prayer-counter-path>li.is-done{background:var(--pale,#eef6f1);border-color:var(--pc-green)}.prayer-counter-path-dots{display:flex;gap:5px;margin-top:4px}.prayer-counter-path-dots>i{height:9px;width:9px;border-radius:50%;border:1px solid var(--pc-green)}.prayer-counter-path-dots>i.is-recorded{background:var(--pc-green)}
.prayer-counter-display{margin-top:14px}.prayer-counter-display>strong{font-size:1.1rem;font-weight:750}.prayer-counter-sajdahs{margin:12px 0}.prayer-counter-sajdahs span{width:42px;height:42px}.prayer-counter-display .prayer-counter-add{flex-direction:column;gap:4px;min-height:160px!important;padding:15px 20px;border-radius:22px;background:var(--pc-green);color:#fff}.prayer-counter-mat{display:block;width:82px;height:66px}.prayer-counter-mat svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.prayer-counter-add>strong{font-size:1rem}.prayer-counter-note{text-align:center;font-size:.85rem}.prayer-counter-about{font-size:.85rem;color:var(--muted,#52685e);line-height:1.65}.prayer-counter-about>summary{cursor:pointer;padding:8px 0;min-height:44px}.prayer-counter-finished{text-align:center}.prayer-counter-finished>span{display:block;font-size:2rem}.prayer-counter-finished>strong{display:block;font-size:1.2rem}.prayer-counter-finished>p{font-size:.85rem;margin:5px 0}.dark .prayer-counter-display .prayer-counter-add{background:#195a48;color:#fff}
@media(max-width:360px){.prayer-counter-targets{gap:5px}.prayer-counter-targets button{min-width:54px;padding:7px}.prayer-counter-path{gap:6px}.prayer-counter-path>li{padding:9px 3px}.prayer-counter-tools button{font-size:.82rem}}

.prayer-counter-context{margin:0 0 1rem;color:var(--pc-green);font-size:1rem;font-weight:750;line-height:1.55;text-align:center}
.prayer-counter-ayat-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:0;margin:0 0 1rem;list-style:none}
.prayer-counter-ayat-path>li{display:grid;gap:.4rem;padding:.75rem;border:1px solid var(--line,#d9e5de);border-radius:.8rem;background:var(--panel,#fff);font-size:.95rem}
.prayer-counter-ayat-path>li[aria-current=step]{border:2px solid var(--pc-green);background:var(--pale,#eef6f1)}
.prayer-counter-ayat-path strong{font-size:1.1rem;color:var(--pc-green)}.prayer-counter-ayat-path span{display:flex;align-items:center;justify-content:space-between;gap:.4rem}
.prayer-counter-ayat-path b{font-variant-numeric:tabular-nums;white-space:nowrap}
.prayer-counter-ayat-path~.prayer-counter-display .prayer-counter-add{min-height:104px!important;margin-top:.65rem}
.prayer-counter>summary small,.prayer-counter-path>li>span,.prayer-counter-targets button>span{font-size:.875rem}
.prayer-counter-legacy{margin-block:1rem;padding:.8rem 1rem;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:.875rem;line-height:1.65}
.prayer-counter-legacy summary{cursor:pointer;font-weight:650;color:var(--ink)}
.prayer-counter-legacy p{margin:.65rem 0 0}
.prayer-counter[hidden]{display:none}

.prayer-counter-tools{justify-content:center;gap:.75rem}
.prayer-counter .prayer-counter-tools button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;padding:0;color:var(--green);background:var(--panel)}

.prayer-counter-entry:not([hidden]){display:flex;align-items:center;gap:.75rem;padding:.6rem;margin-block:.75rem;border-radius:1rem}
.prayer-counter-entry .prayer-counter-choice{flex:none;gap:.5rem;padding-inline:.3rem}
.prayer-counter-entry .prayer-counter-open{display:flex;align-items:center;justify-content:center;gap:.65rem;flex:1;min-inline-size:0;min-block-size:48px;padding:.65rem .8rem;border:1px solid var(--line,#c8d5ce);border-radius:.75rem;background:var(--pale,#edf5f0);color:var(--green,#176653);font-weight:700}
.prayer-counter-open bdi{white-space:nowrap;font-variant-numeric:tabular-nums}
.prayer-counter-open svg{flex:none;transform:none}
@media(max-width:380px){.prayer-counter-entry:not([hidden]){flex-wrap:wrap}.prayer-counter-entry .prayer-counter-open{min-inline-size:100%}}

/* A deliberate counting surface keeps corrections away from the touch pad. */
.counter-focus-launch{display:inline-grid!important;place-items:center;flex:none;inline-size:44px;min-inline-size:44px;block-size:44px;min-block-size:44px;padding:0!important;border:1px solid var(--line,#c8d5ce);border-radius:50%!important;color:var(--green,#176653);background:var(--panel,#fff);cursor:pointer;box-sizing:border-box;touch-action:manipulation}
.counter-focus-launch svg{inline-size:21px;block-size:21px;transform:none!important}
.counter-focus-launch:focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}
dialog.counter-focus{--cf-green:var(--green,#176653);position:fixed;inset:0;inline-size:100%;block-size:100%;block-size:100dvh;max-inline-size:none;max-block-size:none;margin:0;padding:max(.65rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));box-sizing:border-box;border:0;background:var(--panel,#fff);color:var(--ink,#173d32);font:1rem/1.5 var(--font-ui,system-ui);overflow:hidden}
dialog.counter-focus[open]{display:flex;flex-direction:column;gap:.6rem}
dialog.counter-focus::backdrop{background:#102c24dd}
.counter-focus *{box-sizing:border-box}
.counter-focus>header,.counter-focus-options,.counter-focus-scroll,.counter-focus-pad-wrap{inline-size:100%;max-inline-size:44rem;margin-inline:auto}
.counter-focus>header{position:relative;display:flex;align-items:center;gap:.7rem;justify-content:space-between;flex:none}
.counter-focus h2{font-size:1.15rem;line-height:1.35;margin:0;font-weight:750}
.counter-focus-header-tools{display:flex;align-items:center;gap:.4rem;flex:none}
.counter-focus-header-tools .devotional-sound.is-icon{position:static;margin:0}
.counter-focus-header-tools .devotional-sound-body{inline-size:min(24rem,100%)}
.counter-focus button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.counter-focus-tool{display:grid;place-items:center;flex:0 0 44px;inline-size:44px;block-size:44px;min-block-size:44px;padding:0;border:1px solid var(--line,#c8d5ce);border-radius:50%;background:var(--panel,#fff);color:var(--cf-green)}
.counter-focus-tool svg{inline-size:22px;block-size:22px;transform:none}
.counter-focus-options{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;padding:.25rem;border-radius:999px;background:var(--pale,#edf5f0);flex:none}
.counter-focus-options button{min-block-size:44px;border:0;border-radius:999px;background:transparent;color:var(--ink,#173d32);font-weight:650}
.counter-focus-options button[aria-pressed=true]{background:var(--cf-green);color:var(--panel,#fff)}
.counter-focus-scroll{min-block-size:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:.15rem .1rem}
.counter-focus-reading{font-family:var(--font-arabic,"Amiri",serif);font-size:clamp(1.5rem,5vw,2rem);line-height:1.95;white-space:pre-line;text-align:right;margin-block:.25rem .8rem}
.counter-focus-label{flex:1;min-inline-size:0;margin:0;text-align:center;font-weight:650;font-size:1rem}
.counter-focus-label:empty{display:none}
.counter-focus-corrections{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-block:0 .15rem}
.counter-focus-value{display:flex;align-items:baseline;justify-content:center;gap:.16em;direction:ltr;unicode-bidi:isolate;max-inline-size:100%;font-size:clamp(3.25rem,15vw,5.5rem);font-weight:800;line-height:1.05;font-variant-numeric:tabular-nums;white-space:nowrap}
.counter-focus-value>strong{font-size:inherit;font-weight:inherit}
.counter-focus-value>span{font-size:.46em;font-weight:650}
.counter-focus .devotional-sound{margin-block:.25rem;font-size:.875rem}
.counter-focus-hint,.counter-focus-status{margin:.45rem 0;text-align:center;font-size:.875rem;color:var(--muted,#52685e)}
.counter-focus-status{color:var(--cf-green);font-weight:650}
.counter-focus-status:empty{display:none}
.counter-focus-pad-wrap{flex:none;display:grid;gap:.5rem;padding-block-start:.1rem}
.counter-focus-pad{inline-size:100%;min-block-size:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;border:0;border-radius:1.5rem;padding:1rem .75rem;color:#fff;background:#176653;font-weight:750;user-select:none;-webkit-user-select:none}
.counter-focus-pad-caption{display:flex;align-items:center;justify-content:center;gap:.6rem}
.counter-focus-pad svg{inline-size:28px;block-size:28px;transform:none;vertical-align:middle}
.counter-focus-pad-caption strong{font-size:1.15rem}
.counter-focus-pad:not(:disabled):active{background:#104d3e;transform:scale(.995)}
.counter-focus button:disabled{cursor:default;opacity:.5}
.counter-focus-pad:disabled{opacity:.72}
.counter-focus[data-counter-focus-mode=sajdah] .counter-focus-pad{min-block-size:38vh;min-block-size:38dvh;flex-direction:column;gap:1rem;border-radius:1.8rem}
.counter-focus[data-counter-focus-mode=sajdah] .counter-focus-pad svg{inline-size:32px;block-size:32px}
.counter-focus-confirm{border:1px solid var(--line,#c8d5ce);border-radius:1rem;padding:.75rem;text-align:center;background:var(--pale,#edf5f0)}
.counter-focus-confirm p{margin:0 0 .5rem;font-weight:650}
.counter-focus-confirm button,.counter-focus-finish{min-block-size:44px;border:1px solid var(--cf-green);border-radius:.7rem;padding:.5rem .8rem;margin:.15rem;background:var(--panel,#fff);color:var(--cf-green);font-weight:650}
.counter-focus-finish{display:flex;align-items:center;justify-content:center;gap:.5rem}
.counter-focus-finish svg{inline-size:22px;block-size:22px;flex:none;transform:none}
.counter-focus [hidden]{display:none!important}
.counter-focus :is(button,select,summary,input):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}
@media (max-height:560px) and (orientation:landscape){.counter-focus-pad{min-block-size:100px}.counter-focus[data-counter-focus-mode=sajdah] .counter-focus-pad{min-block-size:32dvh}.counter-focus-options button{min-block-size:40px}}
@media (prefers-reduced-motion:reduce){.counter-focus-pad:active{transform:none}}

/* Keep the pad in the same place for the next phrase, including in sajdah. */
.counter-focus .counter-focus-finish:not([hidden]){min-block-size:48px;font-weight:700;background:var(--cf-green);color:var(--panel,#fff)}
.counter-focus-reading:empty{display:none}
@media(max-height:35rem){
  dialog.counter-focus[open]{overflow:auto;overscroll-behavior:contain}
  .counter-focus-options button{min-block-size:44px}
  .counter-focus-scroll{flex:1 0 auto;max-block-size:32dvh}
  .counter-focus-pad,.counter-focus[data-counter-focus-mode=sajdah] .counter-focus-pad{min-block-size:clamp(100px,32dvh,180px);padding:.65rem}
  .counter-focus-value{font-size:clamp(2.5rem,11dvh,4rem)}
}

.counter-focus[data-counter-theme]{--cf-green:var(--counter-accent,#176653)}
.counter-focus[data-counter-theme] .counter-focus-pad{background:var(--count-solid,#176653);color:#fff}
.counter-focus[data-counter-theme] .counter-focus-pad:not(:disabled):active{background:color-mix(in srgb,var(--count-solid,#176653) 83%,black);transform:none}
.counter-focus[data-counter-theme] .counter-focus-options button[aria-pressed=true],
.counter-focus[data-counter-theme] .counter-focus-finish:not([hidden]){background:var(--count-solid,#176653);color:#fff}
@media(forced-colors:active){.counter-focus .counter-focus-pad{border:2px solid ButtonText}}

.counter-focus .focus-bead-holder{display:block;width:min(18rem,85%);line-height:0}
.counter-focus .focus-bead-holder svg.count-bead-strand{width:100%;height:4rem;max-width:none;transform:none}
.counter-focus[dir=rtl] .focus-bead-holder svg.count-bead-strand{transform:scaleX(-1)}
.counter-focus.tasbih-counter-focus .counter-focus-scroll{display:flex;flex-flow:column;justify-content:safe center;align-items:center;padding:clamp(.5rem,3vh,2rem) 0}
.counter-focus.tasbih-counter-focus .counter-focus-reading{font-size:clamp(2rem,8vw,3.4rem);line-height:1.65;text-align:center;margin:0}
.counter-focus-set-total{margin:.5rem auto;text-align:center;font-size:.9rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.counter-focus.tasbih-counter-focus .counter-focus-pad{gap:.1rem;position:relative;padding-block:.4rem .75rem;border-radius:2rem 2rem 1.35rem 1.35rem}
.counter-focus.tasbih-counter-focus .counter-focus-value{margin-block-start:-1.25rem}
.counter-focus.tasbih-counter-focus .counter-focus-pad-wrap:has([data-counter-focus-action=finish]:not([hidden])){position:relative}
.counter-focus.tasbih-counter-focus .counter-focus-finish[data-counter-focus-action=finish]:not([hidden]){grid-area:2/1;z-index:1;align-self:end;justify-self:center;margin-block-end:.4rem;min-inline-size:55%;background:var(--panel);color:var(--counter-accent);border:0}
.counter-focus.tasbih-counter-focus .counter-focus-finish[data-counter-focus-action=finish]:not([hidden])+.counter-focus-pad{grid-area:2/1}
.counter-focus.tasbih-counter-focus .counter-focus-finish[data-counter-focus-action=finish]:not([hidden])+.counter-focus-pad .counter-focus-pad-caption{visibility:hidden}
.counter-focus.tasbih-counter-focus .counter-focus-pad-wrap:has(.counter-focus-finish:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr)}


/* /jafar-walkthrough.css */
.jafar-walkthrough{--jafar-green:var(--green,#176653);--jafar-gold:#c59d49;background:var(--panel,#fff);border:1px solid var(--line,#dce6df);border-radius:20px;padding:16px;max-width:820px;margin:10px auto;color:var(--ink,#203e36);font-family:var(--font-ui,system-ui,sans-serif)}
.jafar-walkthrough *{box-sizing:border-box}
.jafar-walkthrough button{font:650 .875rem/1.4 var(--font-ui,system-ui,sans-serif);min-height:44px;cursor:pointer;touch-action:manipulation}
.jafar-pairs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.jafar-pair{text-align:start;min-width:0}.jafar-pair>span{display:block;font-size:.75rem;line-height:1.4;font-weight:750;color:var(--jafar-green);margin-bottom:5px}.jafar-pair>div{display:flex;gap:6px}
.jafar-rakah{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:44px;height:44px;padding:4px 6px;background:var(--pale,#edf5ef);border:1.5px solid var(--line,#dce6df);border-radius:10px;color:var(--ink,#203e36)}
.jafar-rakah>b{font-size:1.15rem;line-height:1}.jafar-rakah>span{font-size:.72rem;line-height:1.2}.jafar-rakah i{position:absolute;top:-4px;inset-inline-end:-3px;font-style:normal;background:var(--jafar-green);color:#fff;border-radius:100%;width:15px;height:15px;font-size:.65rem;text-align:center}.jafar-rakah i:empty{display:none}.jafar-rakah.is-current{border-color:var(--jafar-green);box-shadow:0 0 0 2px color-mix(in srgb,var(--jafar-green),transparent 86%)}.jafar-rakah.is-counted{background:var(--jafar-green);color:#fff}
.jafar-total{display:flex;align-items:center;gap:10px;margin:8px 0 4px}.jafar-total progress{height:6px;width:auto;flex:1;min-width:0;accent-color:var(--jafar-green)}.jafar-total>span{font-size:.75rem;line-height:1.4;white-space:nowrap;color:var(--muted,#52685e)}
.jafar-current{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:center;margin:6px 0 10px}.jafar-picture{line-height:0;min-width:0}.prayer-posture-illustration{display:block;width:100%;height:auto;max-height:240px;margin:auto;transform:none!important}.jafar-picture .prayer-posture-illustration{height:140px;width:130px;max-width:100%}
.jafar-stage-label{font-size:.75rem;font-weight:700;line-height:1.35;color:var(--jafar-green)}.jafar-instruction{min-width:0}.jafar-instruction h3{font-weight:800;font-size:1.25rem;line-height:1.3;margin:3px 0 5px}.jafar-instruction p{font-size:.9rem;line-height:1.5;margin:4px 0}.jafar-instruction small{font-size:.8rem;line-height:1.5;color:var(--muted,#52685e);display:block}
.jafar-recitation{display:grid;grid-template-columns:minmax(0,1fr) 124px;align-items:center;gap:18px;padding:10px 12px;background:var(--pale,#edf5ef);border-radius:16px}
.jafar-walkthrough .jafar-formula{font-family:var(--font-arabic,"Amiri Quran","Amiri",serif);font-size:clamp(1.5rem,3.2vw,1.9rem);line-height:1.75;text-align:center;padding:4px 0;margin:0;overflow-wrap:normal}
.jafar-count-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:124px;height:124px;border:5px solid color-mix(in srgb,var(--jafar-green),transparent 76%);border-radius:50%;background:var(--jafar-green);color:#fff!important;box-shadow:0 3px 0 color-mix(in srgb,var(--jafar-green),#000 25%);padding:9px}
.jafar-count-pad strong{font-size:2.15rem;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}.jafar-count-pad strong small{font-size:.95rem;font-weight:500;opacity:.82}.jafar-count-pad>span{max-width:106px;font-size:.75rem;line-height:1.35}.jafar-count-pad.is-complete{background:var(--panel,#fff);color:var(--jafar-green)!important;box-shadow:none;opacity:1}
.jafar-count-tools{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px;margin:8px 0}.jafar-count-tools button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line,#dce6df);border-radius:10px;background:var(--panel,#fff);padding:7px 10px;color:var(--jafar-green)}.jafar-count-tools svg{flex-shrink:0}.jafar-walkthrough button:disabled{opacity:.45;cursor:default}.jafar-count-pad.is-complete:disabled{opacity:1}
.jafar-navigation{display:grid;gap:4px;margin-top:8px}.jafar-next{display:block;width:100%;border:0;border-radius:10px;padding:10px 14px;background:var(--jafar-green);color:#fff!important}.jafar-text-button{border:0;background:transparent;color:var(--muted,#52685e);padding:8px 10px}.jafar-bottom-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:2px}.jafar-bottom-tools button{border:0;background:transparent;color:var(--muted,#52685e);font-size:.8rem;text-decoration:underline;text-underline-offset:3px}.jafar-footnote{font-size:.75rem;line-height:1.5;color:var(--muted,#52685e);text-align:center;margin:4px 0 0}
.jafar-optional,.jafar-warning,.jafar-message{font-size:.875rem;line-height:1.55;background:var(--pale,#edf5ef);padding:10px 12px;border-radius:10px}.jafar-warning{border-inline-start:3px solid var(--jafar-gold)}
.jafar-resume,.jafar-reset-confirm{padding:14px;border:1px solid var(--line,#dce6df);border-radius:13px;margin:12px 0;background:var(--pale,#edf5ef)}.jafar-resume p,.jafar-reset-confirm p{font-size:.95rem;line-height:1.5;margin:0 0 10px}.jafar-resume button,.jafar-reset-confirm button,.jafar-finished>button{border:1px solid var(--jafar-green);background:var(--panel,#fff);border-radius:10px;padding:10px 12px;color:var(--jafar-green);margin:3px}.jafar-finished{text-align:center;padding:20px 4px}.jafar-finished-mark{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;margin:0 auto 12px;background:var(--pale,#edf5ef);color:var(--jafar-green);font-size:2rem}.jafar-finished>strong{display:block;margin:12px 0}.jafar-walkthrough :is(button,[tabindex]):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}
.jafar-optional-reading{border:1px solid var(--line,#dce6df);border-radius:10px;padding:0 10px;margin:8px 0;color:var(--ink,#203e36)}.jafar-optional-reading>summary{min-height:44px;cursor:pointer;font-size:.85rem;font-weight:650;padding:10px 0;line-height:1.5}.jafar-optional-reading>p{font-size:.875rem;line-height:1.6}.jafar-walkthrough .jafar-optional-reading>.jafar-formula{font-size:1.5rem;line-height:1.8}.jafar-surah-choice{border:0;border-radius:0;padding:0 3px;margin:2px 0}.jafar-surah-choice>summary{font-size:.8rem;color:var(--muted,#52685e)}
.dark .jafar-walkthrough{--jafar-green:#92d5ba}.dark .jafar-next,.dark .jafar-count-pad{background:#195a48;color:#fff!important}.dark .jafar-rakah.is-counted{color:#143e31}.dark .jafar-rakah i{color:#143e31}
@media(max-width:480px){.jafar-walkthrough{padding:12px;border-radius:16px;margin:8px auto}.jafar-pairs{gap:8px}.jafar-pair>span{font-size:.7rem;line-height:1.35}.jafar-pair>div{gap:5px}.jafar-rakah{flex-direction:column;gap:2px;padding:3px 2px}.jafar-rakah>b{font-size:1.1rem}.jafar-rakah>span{font-size:.65rem}.jafar-current{grid-template-columns:94px minmax(0,1fr);gap:10px;margin:5px 0 8px}.jafar-picture .prayer-posture-illustration{height:110px;width:94px}.jafar-stage-label{font-size:.7rem}.jafar-instruction h3{font-size:1.08rem;line-height:1.25}.jafar-instruction p{font-size:.82rem;line-height:1.45}.jafar-instruction small{font-size:.75rem}.jafar-recitation{grid-template-columns:minmax(0,1fr);gap:8px;padding:8px 10px}.jafar-walkthrough .jafar-formula{font-size:1.5rem;line-height:1.65;padding:0}.jafar-count-pad{flex-direction:row;justify-content:center;gap:16px;width:100%;height:76px;min-height:76px;border-width:3px;border-radius:13px;padding:8px 12px;box-shadow:0 2px 0 color-mix(in srgb,var(--jafar-green),#000 25%)}.jafar-count-pad strong{font-size:2rem}.jafar-count-pad>span{font-size:.8rem;max-width:128px;text-align:start}.jafar-count-tools{gap:6px}.jafar-count-tools button{font-size:.78rem;line-height:1.3;padding:7px 6px}.jafar-navigation .jafar-next{padding:10px}.jafar-footnote{font-size:.7rem}}
@media(max-width:360px){.jafar-walkthrough{padding:10px}.jafar-current{grid-template-columns:84px minmax(0,1fr);gap:8px}.jafar-picture .prayer-posture-illustration{width:84px}.jafar-pair>span{font-size:.66rem}.jafar-instruction h3{font-size:1rem}.jafar-count-pad{gap:12px}.jafar-count-pad>span{max-width:120px}}
@media(prefers-reduced-motion:reduce){.jafar-walkthrough *{scroll-behavior:auto!important}}


/* /ramadan-prayer-follower.css */
.rp-guide{--rp-ink:var(--ink,#19372e);--rp-surface:var(--panel,#fff);--rp-soft:var(--pale,#f0f6f2);--rp-line:var(--line,#b7c9bf);--rp-accent:#155642;--rp-on-accent:#fff;color:var(--rp-ink);background:var(--rp-surface);max-width:47rem;margin-inline:auto}
body.dark .rp-guide{--rp-ink:#f1f5ef;--rp-surface:#1b2520;--rp-soft:#26342c;--rp-line:#52695b;--rp-accent:#245e48;--rp-on-accent:#fff}
.rp-guide [hidden]{display:none!important}.rp-guide,.rp-guide *{box-sizing:border-box}.rp-guide>header h2{margin:0 0 .65rem;font-size:clamp(1.35rem,4vw,2rem);line-height:1.25}
.rp-follow{border:1px solid var(--rp-line);border-radius:18px;padding:clamp(.75rem,3vw,1.4rem);background:var(--rp-surface);color:var(--rp-ink);min-width:0}
.rp-guide button,.rp-guide select,.rp-guide summary,.rp-foot a,.rp-source-action{font:inherit;min-height:44px}
.rp-guide button,.rp-guide select{border:1px solid var(--rp-line);border-radius:11px;background:var(--rp-surface);color:var(--rp-ink);padding:.5rem .85rem;cursor:pointer}
.rp-guide :focus-visible,.rp-source-action:focus-visible{outline:3px solid #b87d1e;outline-offset:3px}
.rp-guide button[disabled]{cursor:default}.rp-guide button:disabled:not(.rp-pad){opacity:.6}
.rp-guide .rp-position{display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:var(--rp-ink);font-size:1rem}.rp-position span{font-size:.86rem}
.rp-guide progress{width:100%;height:.42rem;border:0;border-radius:1rem;overflow:hidden;accent-color:var(--rp-accent);background:var(--rp-line);display:block;margin:.55rem 0 .8rem}
.rp-guide progress::-webkit-progress-bar{background:var(--rp-line)}.rp-guide progress::-webkit-progress-value{background:var(--rp-accent)}.rp-guide progress::-moz-progress-bar{background:var(--rp-accent)}
.rp-current{display:grid;grid-template-columns:clamp(4.8rem,20vw,7.25rem) minmax(0,1fr);align-items:center;gap:clamp(.6rem,2.4vw,1rem);margin-bottom:.7rem}
.rp-guide .rp-current h3{font:inherit;font-size:clamp(1.2rem,4vw,1.55rem);font-weight:750;line-height:1.23;margin:0;color:var(--rp-ink)}
.rp-guide .rp-current p,.rp-guide .rp-aid p{font-size:1rem;line-height:1.5;margin:.2rem 0 0;color:var(--rp-ink)}
.rp-picture{line-height:0;border-radius:12px;overflow:hidden}.rp-picture svg{width:100%;height:auto;display:block}
.rp-count-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;align-items:stretch;margin:.5rem 0}
.rp-guide button.rp-pad,.rp-guide button.rp-next{background:var(--rp-accent);color:var(--rp-on-accent);border-color:var(--rp-accent);font-weight:700}
.rp-guide .rp-pad{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem .75rem;justify-content:center;min-height:4.2rem;padding:.6rem .75rem;line-height:1.2;font-size:.94rem}
.rp-total{display:inline-flex;align-items:baseline;gap:.25rem;white-space:nowrap;font-variant-numeric:tabular-nums}.rp-total strong{font-size:1.95rem;color:inherit;font-weight:750}.rp-total small{font:inherit}.rp-guide .rp-pad:disabled{background:var(--rp-soft);color:var(--rp-ink);border-color:var(--rp-line)}
.rp-guide .rp-undo{font-size:.94rem;white-space:normal;max-width:7rem}.rp-guide .rp-undo span{font-weight:bold}
.rp-guide .rp-next{display:block;width:100%;margin-top:.6rem}.rp-verse,.rp-aid,.rp-more,.rp-navigation{margin:.35rem 0;color:var(--rp-ink)}
.rp-guide summary,.rp-source-action{align-content:center;text-underline-offset:.2em;cursor:pointer}.rp-verse,.rp-aid,.rp-phrase{padding:0 .75rem;background:var(--rp-soft);border:1px solid var(--rp-line);border-radius:10px;color:var(--rp-ink)}
.rp-guide .rp-verse summary,.rp-guide .rp-verse [lang],.rp-guide .rp-verse .gr-verse,.rp-guide .rp-verse .gr-verses,.rp-guide .rp-verse .gr-aids,.rp-guide .rp-verse .gr-credit,.rp-guide .rp-verse .gr-verse small,.rp-guide .rp-verse small{color:var(--rp-ink);background:transparent}
.rp-guide .rp-verse .gr-verse,.rp-phrase p[lang=ar]{font-size:clamp(1.36rem,4.8vw,1.8rem);line-height:1.95;text-align:right;margin:.3rem 0}
.rp-guide .rp-navigation{border-top:1px solid var(--rp-line);margin:.6rem 0 0}.rp-guide .rp-navigation label,.rp-guide .rp-variant{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.rp-guide .rp-variant{margin:0 0 .7rem}.rp-guide select{max-width:100%}
.rp-foot:empty{display:none}.rp-foot{display:grid;gap:.5rem;margin-top:.65rem}.rp-foot>a,.rp-source-action{display:inline-flex;align-items:center;justify-content:flex-start}
.rp-guide .rp-done{display:grid;gap:.6rem}.rp-done>strong{font-size:1.4rem}.rp-done p{margin:0}.rp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:350px){.rp-guide .rp-pad{flex-direction:column}.rp-guide .rp-position{align-items:start}.rp-guide .rp-current{grid-template-columns:4.2rem minmax(0,1fr)}}
@media(forced-colors:active){.rp-guide progress,.rp-guide button{border:1px solid ButtonText}}

.rp-guide section.rp-verse>h4{margin:.4rem 0;font-size:1rem;color:inherit}

.rp-count-row{grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center}
.rp-guide .rp-count-row :is(.rp-undo,.rp-reset){display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border-radius:50%}
.rp-reset-choice{grid-column:1 / -1;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.rp-reset-choice[hidden]{display:none}


/* /amal-reading.css */
.amal-reading{margin:1.5rem 0;padding:1.5rem;border:1px solid var(--line);border-radius:16px;background:var(--panel);scroll-margin-top:100px;color:var(--ink)}
.amal-reading-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.amal-reading-header>div>span{font-size:.75rem;color:var(--green);letter-spacing:.08em;font-weight:700}
.amal-guide .amal-reading-header h2{font-size:1.25rem;line-height:1.6;margin:.25rem 0 0;color:var(--ink)}
.amal-reading-type{display:flex;gap:.4rem;flex-shrink:0}
.amal-reading button{font:inherit;font-size:.875rem;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:.55rem .85rem;cursor:pointer}
.amal-reading button:disabled{opacity:.4;cursor:default}
.amal-guide .amal-reading-language,.amal-guide .amal-reading-note{font-size:.875rem;line-height:1.7;color:var(--muted)}
.amal-reading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.8rem 0;margin-bottom:1rem;font-size:.875rem;color:var(--muted)}
.amal-reading-toolbar{flex-wrap:wrap}
.amal-reading-modes{display:flex;align-items:center;gap:.2rem .9rem;flex-wrap:wrap}
.amal-reading-toolbar button{border:0;color:var(--green);padding:.5rem 0}
.amal-reading-section{margin-bottom:1rem}
.amal-guide .amal-reading-section h3{font-size:.9rem;line-height:1.6;margin:1rem 0;color:var(--muted);font-weight:600}
.amal-guide .amal-reading-arabic p{font:var(--amal-text-size,28px)/2.1 var(--arabic);font-weight:400;color:var(--ink);text-align:right;white-space:pre-line;overflow-wrap:break-word;max-width:46rem;margin:0 auto 1.4rem}
.amal-reading-source{font-size:.8rem;color:var(--green);text-underline-offset:4px}
.amal-reading-nav{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding-top:1rem}
.amal-reading-nav button:last-child,.amal-reading button.amal-reading-finish{background:var(--green);border-color:var(--green);color:var(--panel)}
.amal-reading-finish{margin-top:1rem;width:100%}
.amal-guide .amal-reading-saving{font-size:.85rem;line-height:1.6;color:var(--ink)}
.amal-reading-saving[hidden]{display:none!important}
.amal-reading button:focus-visible,.amal-reading-source:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:480px){.amal-reading{padding:1rem .85rem;margin-inline:-.2rem}.amal-reading-header{display:block}.amal-reading-type{margin-top:.65rem}.amal-reading-toolbar{gap:.4rem;align-items:flex-start}.amal-reading-toolbar>span{padding-top:.8rem}.amal-guide .amal-reading-arabic p{line-height:2}.amal-reading{scroll-margin-top:136px}}

.amal-reading-sources{display:flex;flex-wrap:wrap;gap:.5rem 1rem}.amal-reading-source{min-height:44px;display:inline-flex;align-items:center;font-size:.875rem}


/* /devotional-evidence.css */
.devotional-evidence,.devotional-evidence-directory{margin-block:1rem;color:inherit}
.devotional-evidence h3{font-size:1.1rem;line-height:1.45;margin-block:0 .3rem}
.devotional-evidence .devotional-evidence-note{font-size:.92rem;line-height:1.55;margin-block:0 .8rem}
.devotional-evidence>ul,.devotional-evidence-directory>ul{list-style:none;padding:0;margin:0}
.devotional-evidence li,.devotional-evidence-directory li{border-inline-start:.18rem solid var(--accent,#45806d);padding-inline-start:.8rem;margin-block:.6rem}
.devotional-evidence li p{margin-block:0;line-height:1.6}
.devotional-evidence li a,.devotional-evidence-directory li a{display:inline-flex;align-items:center;min-height:2.75rem;text-underline-offset:.18em;text-decoration:underline;overflow-wrap:anywhere}
.devotional-evidence-directory summary{padding-block:.65rem;cursor:pointer}
.devotional-evidence :focus-visible,.devotional-evidence-directory :focus-visible{outline:2px solid currentColor;outline-offset:3px}

.devotional-evidence .devotional-verse-link{margin-inline-start:1em}
.devotional-source-excerpt h4{margin:0 0 .25rem;font-size:1rem}
.devotional-source-excerpt blockquote{margin:.5rem 0 0;padding-inline-start:.75rem;border-inline-start:2px solid var(--line);line-height:1.65}


/* /devotion-topics.css */
.devotion-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0}.devotion-tags a{font-family:var(--font-body,inherit);font-size:.875rem;line-height:1.35;text-decoration:none;color:var(--green,#23584b);background:var(--surface-soft,#eef3ef);border:1px solid var(--border,#dce4dc);padding:.35rem .65rem;border-radius:2rem}.devotion-tags a:hover,.devotion-tags a:focus-visible{background:#ddebe2;outline:2px solid #729b83;outline-offset:2px}.devotion-theme-browser{margin:1rem 0;padding:.8rem 1rem;border:1px solid var(--border,#dce4dc);border-radius:12px}.devotion-theme-browser>summary{cursor:pointer;font-weight:600;font-size:.95rem}.amal-tagged-row{min-width:0}.amal-tagged-row>.devotion-tags{margin:.25rem .85rem .8rem}.amal-tagged-row>.amal-guide-row,.amal-tagged-row>.amal-feature-card{width:100%}.amal-feature-grid>.amal-tagged-row{display:flex;flex-direction:column;border:1px solid var(--border,#dce4dc);border-radius:15px;overflow:hidden}.amal-feature-grid>.amal-tagged-row>.amal-feature-card{border:0;border-radius:0;flex:1}.amal-sahifa-row-copy>.devotion-tags{margin:.35rem 0}.dua-card>.devotion-tags{padding:0 1rem;margin:.25rem 0 .8rem}.devotion-topic-page{max-width:1000px;margin:auto;padding:1rem 0 4rem}.devotion-topic-page header{margin:1rem 0 1.5rem}.devotion-topic-page header>span{font-size:.8rem;letter-spacing:.08em;color:#557166}.devotion-topic-page h1{font-size:clamp(1.7rem,4vw,2.4rem);margin:.4rem 0}.devotion-topic-page p{line-height:1.7}.devotion-topic-back{font-size:.95rem;color:#23584b}.devotion-topic-controls{display:grid;grid-template-columns:2fr 1fr;gap:1rem;margin:1.2rem 0}.devotion-topic-controls label{display:grid;gap:.45rem;font-size:.95rem}.devotion-topic-controls input,.devotion-topic-controls select{min-height:44px;min-width:0;font-size:1rem;border:1px solid var(--border,#c9d6cd);border-radius:9px;padding:.65rem;background:var(--surface,#fffdf8);color:inherit}.devotion-topic-group{margin:1.5rem 0}.devotion-topic-group h2{font-size:1.1rem}.devotion-topic-group h2 span{font-size:.9rem;color:#62756c;margin-inline-start:.5rem}.devotion-topic-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.devotion-topic-links>a{display:grid;align-content:start;gap:.4rem;padding:1rem;border:1px solid var(--border,#dce4dc);border-radius:12px;background:var(--surface,#fffdf8);color:inherit;text-decoration:none}.devotion-topic-links>a:hover{border-color:#557b65}.devotion-topic-links small{font-size:.875rem;color:var(--muted,#647068)}.devotion-topic-note{font-size:.875rem;color:var(--muted,#647068);border-top:1px solid var(--border,#dce4dc);padding-top:1rem}.devotion-verse-links{font-family:var(--font-body,inherit);font-size:.875rem;direction:ltr;text-align:start;margin-top:.8rem}.devotion-verse-links .devotion-tags{display:inline-flex;margin:.25rem}.devotion-topic-empty{padding:1rem}.devotion-tags[hidden],.amal-tagged-row[hidden]{display:none!important}@media(max-width:560px){.devotion-topic-controls,.devotion-topic-links{grid-template-columns:1fr}.devotion-tags a{font-size:.84rem}.amal-tagged-row>.devotion-tags{margin-inline:.65rem}}[dir=rtl] .devotion-verse-links{direction:rtl}
/* A few recognisable intentions, with Quran readings first inside each theme. */
.devotion-theme-home{max-width:1020px;margin:0 auto 1.5rem}.devotion-theme-home>header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.65rem}.devotion-theme-home h2{font-size:1.125rem;margin:0}.devotion-theme-home>header>a{font-size:.9rem;color:var(--green,#23584b);min-height:44px;display:inline-flex;align-items:center}.devotion-theme-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.devotion-theme-card{display:flex;align-items:center;gap:.85rem;min-width:0;min-height:100px;border:1px solid var(--border,#dce4dc);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--ink,#253d35);background:var(--surface,#fffdf8)}.devotion-theme-card:hover{border-color:var(--green,#23584b);box-shadow:0 3px 12px #183c340b}.devotion-theme-card:focus-visible,.devotion-seasons a:focus-visible,.devotion-topic-hero button:focus-visible{outline:3px solid var(--green,#23584b);outline-offset:3px}.devotion-theme-card>img{width:94px;height:110px;object-fit:cover;align-self:stretch;flex:none}.devotion-theme-card>span:last-child{min-width:0;padding:.85rem .8rem .85rem 0}.devotion-theme-card strong{display:block;font-size:1rem;line-height:1.35;margin-bottom:.35rem}.devotion-theme-card small{display:block;font-size:.875rem;line-height:1.45;color:var(--muted,#596d64)}.devotion-theme-symbol{width:48px;height:48px;display:grid;place-items:center;flex:none;margin-inline-start:1rem;background:var(--surface-soft,#eef3ef);border-radius:14px;color:var(--green,#23584b)}.devotion-theme-symbol svg{width:26px;height:26px}.devotion-intention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin-block:1.5rem}.devotion-topic-hero{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:1.5rem;padding:1.5rem;border:1px solid var(--border,#dce4dc);border-radius:20px;overflow:hidden;background:var(--surface,#fffdf8)}.devotion-topic-hero>div{min-width:0}.devotion-topic-hero>img{width:190px;height:100%;max-height:210px;min-height:140px;object-fit:cover;border-radius:13px}.devotion-topic-hero:has(>div:only-child){grid-template-columns:1fr}.devotion-topic-kicker{display:flex;align-items:center;gap:.5rem;color:var(--muted,#526b60);font-size:.875rem}.devotion-topic-kicker svg{width:21px;height:21px}.devotion-topic-hero h1{margin-top:.7rem}.devotion-topic-hero p{margin:.5rem 0 1rem}.devotion-topic-hero button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.65rem 1rem;border:1px solid var(--green,#23584b);border-radius:10px;color:#fff;background:var(--green,#23584b);font:600 .95rem/1.35 var(--font-ui,system-ui,sans-serif);cursor:pointer}.devotion-topic-hero button svg{width:19px;height:19px}.devotion-topic-hero[data-theme-style=provision]{border-inline-start:5px solid #a7752e}.devotion-topic-hero[data-theme-style=hardship]{border-inline-start:5px solid #2b7583}.devotion-topic-hero[data-theme-style=seasons]{border-inline-start:5px solid #615b82}.devotion-seasons{margin:1.5rem 0}.devotion-seasons h2{font-size:1.1rem;margin-bottom:.75rem}.devotion-seasons nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.devotion-seasons a{display:flex;align-items:center;gap:.65rem;min-height:54px;padding:.7rem 1rem;border:1px solid var(--border,#dce4dc);border-radius:12px;text-decoration:none;color:var(--green,#23584b);background:var(--surface,#fffdf8);font-weight:650}.devotion-seasons svg{width:22px;height:22px;flex:none}.devotion-topic-group:first-child{border-top:3px solid var(--green,#23584b);padding-top:.4rem}.devotion-topic-page .devotion-topic-controls{gap:.75rem;margin-block:1rem}.devotion-theme-hub>header{max-width:760px}.devotion-theme-hub>header p{margin-bottom:0}[dir=rtl] .devotion-theme-card>span:last-child{padding:.85rem 0 .85rem .8rem}.dark .devotion-theme-card,.dark .devotion-topic-hero,.dark .devotion-seasons a{background:var(--panel,#1f3029);border-color:var(--line,#395044);color:var(--ink,#e5eee6)}
@media(max-width:800px){.devotion-theme-card>img{width:70px}.devotion-theme-card small{font-size:.8125rem}.devotion-theme-home-grid{gap:.5rem}.devotion-theme-card{gap:.6rem}}
@media(max-width:600px){.devotion-theme-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.devotion-theme-home-grid .devotion-theme-card{min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:0}.devotion-theme-home-grid .devotion-theme-card>img{width:100%;height:70px}.devotion-theme-home-grid .devotion-theme-card>span:last-child{padding:.6rem!important}.devotion-theme-home-grid .devotion-theme-card strong{font-size:.9rem;min-height:2.5em;margin:0}.devotion-theme-home-grid .devotion-theme-card small{display:none}.devotion-theme-card small{font-size:.875rem}.devotion-intention-grid{grid-template-columns:1fr;gap:.65rem}.devotion-topic-hero{grid-template-columns:minmax(0,1fr) 92px;padding:1rem;gap:1rem}.devotion-topic-hero>img{width:92px;min-height:170px;height:100%}.devotion-topic-hero h1{font-size:1.65rem}.devotion-topic-kicker{font-size:.8125rem}.devotion-seasons nav{gap:.4rem}.devotion-seasons a{padding:.65rem .5rem;justify-content:center;font-size:.9rem;gap:.35rem}.devotion-seasons svg{width:18px}.devotion-theme-home>header{gap:.5rem}.devotion-theme-home h2{font-size:1.05rem}}

.devotion-theme-home>header>nav{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center}.devotion-theme-home>header>nav a{min-height:44px;display:inline-flex;align-items:center}

.devotion-theme-hub>header h1 {font-size:clamp(1.65rem,4vw,2.55rem); margin-block:.5rem 1rem}
.devotion-theme-hub [data-finder-suggestions]>h2 {font-size:1.18rem; margin-block:1.4rem .55rem}
.devotion-theme-hub [data-finder-suggestions][hidden] {display:none}
.devotion-theme-hub .devotion-intention-grid {margin-block:.4rem 1rem}
.devotion-topic-page .worship-finder-controls {display:grid; grid-template-columns:minmax(0,1fr) minmax(8rem,.4fr); align-items:end; gap:.65rem}
.worship-finder-controls label {min-width:0; display:grid; gap:.38rem}
.worship-finder-controls label>span:first-child {font-weight:650}
.worship-finder-input {position:relative; display:block}
.worship-finder-input>svg {position:absolute; top:50%; inset-inline-start:.8rem; width:1.2rem; height:1.2rem; transform:translateY(-50%); pointer-events:none; color:var(--muted)}
.worship-finder-controls .worship-finder-input input {display:block; width:100%; min-height:48px; padding-inline-start:2.55rem}
.worship-finder-controls .worship-finder-input input{padding-inline-end:3rem}
.worship-finder-input>[data-topic-clear]{position:absolute;inset-inline-end:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.worship-finder-input>[data-topic-clear][hidden]{display:none!important}
.worship-finder-input>[data-topic-clear] svg{width:20px;height:20px}
.worship-finder-input>input::-webkit-search-cancel-button{display:none;-webkit-appearance:none}
.worship-search-field{display:grid;gap:.38rem;min-inline-size:0}.worship-search-field>label{font-weight:650}
.worship-inline-finder{margin-block:.6rem 1rem}
.worship-inline-finder .worship-finder-controls{margin-block:0 .5rem}
.worship-inline-finder .devotion-source-choice{margin-block:.25rem .5rem}
.worship-home>[data-worship-browse][hidden]{display:none!important}
.worship-finder-controls select {min-height:48px}
.devotion-topic-page .devotion-topic-links .devotion-result {display:grid; align-content:center; gap:.18rem; min-height:48px; padding:.65rem .8rem; line-height:1.4; border:1px solid var(--line); border-radius:.7rem; text-align:start; background:var(--panel); color:var(--ink); font:inherit; cursor:pointer; overflow-wrap:anywhere}
.devotion-result small {color:var(--muted); line-height:1.4}
.devotion-topic-links .devotion-result:hover,.devotion-topic-links .devotion-result:focus-visible {border-color:var(--green); background:var(--pale)}
.devotion-match-count {font-size:.84rem; margin-block:.7rem; color:var(--muted)}
.devotion-result-more summary,.devotion-index-retry {display:flex; align-items:center; min-height:44px; color:var(--green); font-weight:650; cursor:pointer}
.devotion-result-more summary {font-weight:650; text-decoration:none}
.devotion-result-more[open] .devotion-topic-links {margin-block:.1rem .8rem}
@media (max-width:470px){
  .devotion-topic-page .worship-finder-controls {grid-template-columns:minmax(0,1fr)}
  .devotion-topic-page .worship-finder-controls>label:last-child {display:flex; align-items:center; justify-content:flex-start; gap:.6rem}
  .worship-finder-controls select {width:auto; max-width:75%; min-height:44px}
  .devotion-theme-hub .devotion-intention-grid {gap:.52rem}
}

nav.devotion-companions{display:flex;flex-wrap:wrap;align-items:stretch;gap:.45rem;margin-block:1rem}
.devotion-companions>a[data-related-kind]{display:flex;flex:1 1 10rem;align-items:center;min-height:44px;text-align:start;text-decoration:none;color:var(--ink,#243e34);background:var(--panel,#f5f7f4);border:1px solid var(--line,#dce4dc);border-radius:.7rem;padding:.5rem .75rem}
.devotion-companions>a>span{display:block;min-width:0}.devotion-companions small,.devotion-companions strong{display:block;color:inherit}.devotion-companions small{font-size:.77rem}.devotion-companions strong{font-size:1rem;line-height:1.5}
.devotion-companions a.devotion-related-theme{display:flex;flex:1 0 100%;gap:.4rem;align-items:center;min-height:44px;color:var(--ink,#243e34);background:transparent;border:0;padding:.15rem 0;text-decoration:underline;text-underline-offset:.18em}
.devotion-companions a:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* A stable route into prayers, supplications, visitations and longer programmes. */
.devotion-paths{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-block:.85rem 1.2rem}
.devotion-paths a{display:flex;align-items:center;justify-content:center;gap:.5rem;min-width:0;min-height:52px;padding:.65rem .55rem;border:1px solid var(--line,#d0dcd4);border-radius:.85rem;background:var(--panel,#fff);color:var(--ink,#203d32);font:650 1rem/1.3 var(--font-ui,system-ui,sans-serif);text-align:center;text-decoration:none}
.devotion-paths svg{flex:none;width:21px;height:21px;color:var(--green,#245b47)}
.devotion-paths a[aria-current=page]{background:var(--green,#245b47);color:var(--on-accent,#fff);border-color:var(--green,#245b47)}
.devotion-paths a[aria-current=page] svg{color:inherit}
.devotion-paths a:hover{box-shadow:0 2px 10px #17372b12}
.devotion-paths a:focus-visible{outline:3px solid var(--green,#245b47);outline-offset:3px}
.devotion-moments h2{font-size:1.125rem;margin-block:1.2rem .5rem}
.devotion-moments .devotion-tags a,.devotion-context-tag{min-height:44px;display:inline-flex;align-items:center}
.devotion-topic-page .worship-finder-controls.is-single-search{grid-template-columns:minmax(0,1fr)}
.worship-finder-controls>label[hidden]{display:none!important}
.devotion-directory>header p{max-width:45rem;margin-block:.5rem;font-size:1rem;line-height:1.6;color:var(--muted,#53685c)}
.devotion-directory .devotion-group-note{margin-block:-.2rem .7rem;font-size:.875rem;color:var(--muted,#53685c)}
.devotion-directory [data-prayer-category=duties]{padding:1rem;border:1px solid var(--line,#d0dcd4);border-inline-start:4px solid var(--green,#245b47);border-radius:1rem;background:var(--pale,#edf5ee)}
.devotion-directory-footer{display:flex;flex-wrap:wrap;gap:.5rem 1rem;border-top:1px solid var(--line,#d0dcd4);padding-block:1rem}
.devotion-directory-footer a{min-height:44px;display:inline-flex;align-items:center;font-size:.95rem;color:var(--green,#245b47)}
.devotion-reference-results{margin-block:1.5rem;padding:1rem;border:1px solid var(--line,#d0dcd4);border-radius:.9rem;background:var(--panel,#fff)}
.devotion-reference-results>summary{min-height:44px;cursor:pointer;font-size:1.05rem;font-weight:650;line-height:1.5}
.devotion-reference-results>summary>span{margin-inline-start:.4rem;color:var(--muted,#53685c);font-size:.875rem}
.devotion-reference-results>p{font-size:.95rem;color:var(--muted,#53685c)}
@media(max-width:480px){.devotion-paths{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.devotion-paths a{justify-content:flex-start;padding-inline:.8rem;min-height:48px}.devotion-directory [data-prayer-category=duties]{padding:.75rem}}
@media(max-width:360px){.devotion-paths a{gap:.25rem;padding-inline:.35rem}.devotion-paths svg{width:16px;height:16px}}

/* Shared need links stay visible, and each reading keeps one clear primary action. */
.devotion-theme-navigation{margin-block:1rem 1.15rem}
.devotion-theme-navigation h2{margin:0 0 .6rem;font-size:1.1rem;line-height:1.4}
.devotion-theme-navigation .devotion-tags{margin:0;gap:.45rem}
.devotion-theme-navigation .devotion-tags a,.devotion-result-card>.devotion-tags a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem}
.devotion-theme-navigation a[aria-current=page]{background:var(--green,#245b47);border-color:var(--green,#245b47);color:var(--on-accent,#fff)}
.devotion-theme-navigation .devotion-all-themes{background:transparent;font-weight:650;text-decoration:none}
.devotion-hand-guide{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-block:1rem;padding:1rem 1.1rem;border:1px solid var(--line,#d0dcd4);border-radius:.9rem;background:var(--pale,#edf5ee)}
.devotion-hand-guide>div{min-width:0}
.devotion-hand-guide h2{font-size:1.05rem;line-height:1.4;margin:0}
.devotion-hand-guide p{font-size:.875rem;line-height:1.5;margin:.25rem 0 0;max-width:40rem;color:var(--muted,#53685c)}
.devotion-hand-guide>button{flex:none;min-height:44px}
.devotion-result-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line,#d0dcd4);border-radius:.8rem;background:var(--panel,#fff)}
.devotion-topic-page .devotion-result-card>.devotion-result{flex:1;border:0;border-radius:.75rem .75rem 0 0;padding:.85rem .9rem .6rem;background:transparent;text-decoration:none}
.devotion-topic-page .devotion-result-card>.devotion-result:hover{background:var(--pale,#edf5ee)}
.devotion-result-card>.devotion-result:focus-visible{outline:2px solid var(--green,#245b47);outline-offset:2px}
.devotion-result-card>.devotion-tags{margin:0;padding:0 .8rem .8rem;gap:.35rem}
.devotion-result-card>.devotion-tags a{padding:.3rem .6rem}
.devotion-result-paging{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-block:.75rem 1.2rem}
.devotion-group-count{margin:0!important;font-size:.875rem;color:var(--muted,#53685c)}
.devotion-result-paging button{min-height:44px;padding:.55rem 1rem;border:1px solid var(--green,#245b47);border-radius:.65rem;background:var(--panel,#fff);color:var(--green,#245b47);font:650 .95rem/1.4 var(--font-ui,system-ui,sans-serif);cursor:pointer}
.devotion-result-paging button:hover{background:var(--pale,#edf5ee)}
.devotion-result-paging button:focus-visible{outline:3px solid var(--green,#245b47);outline-offset:3px}
@media(max-width:560px){.devotion-hand-guide{align-items:flex-start;flex-direction:column;gap:.7rem;padding:.9rem}.devotion-hand-guide>button{align-self:flex-start}.devotion-theme-navigation .devotion-tags{gap:.35rem}.devotion-theme-navigation .devotion-tags a{font-size:.875rem}.devotion-result-card>.devotion-tags{padding-inline:.75rem}}

/* Discovery controls use the active palette; dark mode needs a dark chip surface. */
.devotion-topic-page .devotion-topic-back{color:var(--green,#23584b)}
.devotion-topic-page .devotion-topic-controls input,.devotion-topic-page .devotion-topic-controls select{background:var(--panel,#fff);color:var(--ink,#203d32);border-color:var(--line,#d0dcd4)}
.devotion-topic-page .devotion-topic-controls input::placeholder{color:var(--muted,#53685c);opacity:1}
.dark .devotion-tags a{background:#263a31;color:#dce9df;border-color:#5b7566}
.dark .devotion-tags a:hover,.dark .devotion-tags a:focus-visible{background:#355044;color:#f2f8ef;border-color:#a4c2aa;outline-color:#b5d0b2}
.dark .devotion-tags a[aria-current=page],.dark .devotion-topic-hero button,.dark .devotion-paths a[aria-current=page]{background:#bdd2a9;color:#12291e;border-color:#bdd2a9}
.dark .devotion-topic-page .devotion-topic-back{color:#c9dfbd}
.dark .devotion-topic-group h2 span{color:var(--muted,#a7bcae)}

/* Shared discovery retains the source and the full practice beside each reading. */
.devotion-source-filters{display:flex;flex-wrap:wrap;gap:.45rem;margin:.5rem 0 1rem}
.devotion-source-filters button{min-height:44px;padding:.45rem .8rem;border:1px solid var(--line,#d0dcd4);border-radius:2rem;background:var(--panel,#fff);color:var(--ink,#203d32);font:600 .875rem/1.4 var(--font-ui,system-ui,sans-serif);cursor:pointer}
.devotion-source-filters button[aria-pressed=true]{background:var(--green,#245b47);border-color:var(--green,#245b47);color:var(--panel,#fff)}
.devotion-source-filters button:focus-visible,.devotion-source-links a:focus-visible{outline:3px solid var(--green,#245b47);outline-offset:3px}
.devotion-book-badges{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.45rem}
.devotion-book-badge{display:inline-block;padding:.2rem .5rem;border:1px solid var(--line,#d0dcd4);border-radius:.35rem;color:var(--muted,#53685c);font-size:.75rem;font-weight:650;line-height:1.4}
.devotion-source-links{padding:0 .85rem .8rem;font-size:.8125rem;line-height:1.5}
.devotion-source-links a{display:inline-flex;align-items:center;min-height:32px;color:var(--green,#245b47);text-decoration:underline;text-underline-offset:.18em}
.devotion-reading-scope{font-style:italic}
.dark .devotion-source-filters button[aria-pressed=true]{background:#bdd2a9;color:#12291e;border-color:#bdd2a9}
.dark .devotion-source-links a{color:#c9dfbd}

/* A compact daily sequence is shared by Devotion, discovery and time collections. */
.devotion-everyday{max-width:1000px;margin:1.1rem auto 1.25rem}
.devotion-everyday h2{margin:0 0 .6rem;font-size:1.05rem;line-height:1.5}
.devotion-everyday-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.devotion-everyday-primary a{display:flex;align-items:center;justify-content:center;gap:.45rem;min-width:0;min-height:48px;padding:.6rem .65rem;border:1px solid var(--line,#d0dcd4);border-radius:.7rem;background:var(--panel,#fff);color:var(--ink,#203d32);font-size:.9rem;font-weight:650;line-height:1.4;text-decoration:none}
.devotion-everyday-primary svg{width:20px;height:20px;flex:none;color:var(--green,#245b47)}
.devotion-everyday-primary a:hover{background:var(--pale,#edf5ee);border-color:var(--green,#245b47)}
.devotion-everyday-primary a[aria-current=page]{background:var(--green,#245b47);border-color:var(--green,#245b47);color:var(--panel,#fff)}
.devotion-everyday-primary a[aria-current=page] svg{color:inherit}
.devotion-dawn-link{display:inline-flex;align-items:center;min-height:40px;margin-top:.25rem;color:var(--muted,#53685c);font-size:.8125rem;line-height:1.5;text-underline-offset:.2em}
.devotion-everyday a:focus-visible{outline:3px solid var(--green,#245b47);outline-offset:3px}
.devotion-source-choice,.devotion-weekdays{margin:.5rem 0 1rem}
.devotion-source-choice>summary,.devotion-weekdays>summary{display:list-item;width:fit-content;cursor:pointer;padding:.65rem .2rem}
.devotion-weekdays>summary{font-weight:650}
.devotion-source-label{font-size:.875rem;font-weight:650;color:var(--muted,#53685c)}
.devotion-source-choice .devotion-source-filters{margin:0}
.devotion-seasons .devotion-year-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.devotion-seasons .devotion-year-primary a{justify-content:flex-start;min-height:48px;font-size:.95rem}
.devotion-seasons .devotion-season-shortcuts{display:flex;flex-wrap:wrap;gap:.2rem 1rem;margin-top:.35rem}
.devotion-seasons .devotion-season-shortcuts a{min-height:40px;padding:.3rem 0;border:0;border-radius:0;background:transparent;font-size:.875rem;text-decoration:underline;text-underline-offset:.2em}
.dark .devotion-everyday-primary a[aria-current=page]{background:#bdd2a9;color:#12291e;border-color:#bdd2a9}
@media(max-width:600px){.devotion-everyday-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.devotion-everyday-primary a{justify-content:flex-start}.devotion-seasons .devotion-year-primary{grid-template-columns:1fr}}

.worship-plan-disclosure > summary {
  display:flex; align-items:center; gap:.55rem; min-block-size:44px;
  color:var(--ink); font-weight:600; list-style:none; cursor:pointer;
}
.worship-plan-disclosure > summary::-webkit-details-marker {display:none}
.worship-plan-disclosure > summary > svg {width:1.1rem;height:1.1rem;color:var(--green)}
.worship-plan-disclosure > summary > svg:last-child {margin-inline-start:auto}
.worship-plan-disclosure[open] > summary > svg:last-child {transform:rotate(180deg)}
.worship-plan-disclosure > summary:focus-visible {outline:3px solid var(--focus-ring,var(--green));outline-offset:2px}

.devotion-topic-page .devotion-browse-options{margin-block:.25rem .65rem;border:0;border-block-end:1px solid var(--line);background:none}
.devotion-browse-options>summary,.devotion-topic-group>summary{min-height:48px;align-content:center;color:var(--green);font:650 1rem/1.55 var(--font-ui,system-ui);cursor:pointer}
.devotion-topic-page .devotion-topic-group{padding:.3rem 0;margin-block:0;border:0;border-block-end:1px solid var(--line);border-radius:0;background:none}
.devotion-topic-page .devotion-topic-group .devotion-topic-links{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.devotion-topic-page .devotion-result-card,.devotion-topic-page .devotion-topic-group .devotion-result{border:0;border-radius:0;background:none;box-shadow:none}
.devotion-topic-page .devotion-topic-group .devotion-result{padding:.6rem .25rem;min-height:48px}
.devotion-topic-page .devotion-result-card,.devotion-topic-page .devotion-topic-group .devotion-topic-links>.devotion-result{border-block-end:1px solid var(--line)}
.devotion-topic-page .devotion-result-paging{display:flex;justify-content:center;gap:.5rem;margin-block:.5rem}
.devotion-topic-page .devotion-result-paging :is(button,select){display:grid;place-items:center;min-width:48px;min-height:48px;width:auto;border:1px solid var(--line);border-radius:.6rem;background:var(--panel);color:var(--green);font:650 1rem/1.4 var(--font-ui,system-ui)}
.devotion-topic-page .devotion-result-paging button{font-size:1.6rem}
.devotion-topic-page .devotion-result-paging button:disabled{opacity:.45}
.devotion-topic-page .devotion-result-paging select{padding-inline:.5rem}

.finder-reading-results{min-inline-size:0}
.finder-reading-toolbar{position:sticky;inset-block-start:0;z-index:3;display:flex;align-items:center;gap:.15rem;padding-block:.25rem;border-block-end:1px solid var(--line);background:var(--bg,#fff)}
.finder-reading-toolbar>button,.finder-reading-toolbar>select,.finder-reading-more{min-block-size:44px;background:transparent;color:var(--green);border:0;font:inherit}
.finder-reading-toolbar>button{display:grid;place-items:center;inline-size:44px;flex:none}
.finder-reading-toolbar>button:disabled{opacity:.4}
.finder-reading-toolbar>select{flex:1;min-inline-size:0;max-inline-size:none;appearance:auto}
.finder-reading-results .devotion-topic-links{display:block}
.finder-reading-row{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.5rem;padding-block:.2rem;border-block-end:1px solid var(--line);scroll-margin-block-start:3.45rem}
.finder-reading-kind{display:grid;justify-content:center;padding-block-start:.65rem;color:var(--folio-worship,var(--green))}
.finder-reading-kind svg{inline-size:1.2rem;block-size:1.2rem}
.finder-reading-row .devotion-result-card,.devotion-topic-page .finder-reading-row .devotion-result{min-inline-size:0;margin:0;border:0;box-shadow:none;background:transparent;text-align:start}
.devotion-topic-page .finder-reading-row .devotion-result{padding:.45rem .25rem}
.finder-reading-row .devotion-result strong{font-weight:600}
.finder-reading-more{display:block;margin:.45rem auto;text-decoration:underline;text-underline-offset:.18em}

.finder-series-row{display:flex;align-items:center;padding-inline:.3rem;min-width:0}
.devotion-tags a svg{flex:none;width:1em;height:1em}
.devotion-tags a[data-devotion-topic]{display:inline-flex;align-items:center;gap:.3em}

.devotion-reading-tags {display:flex;flex-wrap:wrap;align-items:center;gap:0 .65rem;padding:0 .8rem .15rem;}
.devotion-reading-tags :is(.devotion-tags,.devotion-book-badges,.finder-series-row) {display:flex;flex-wrap:wrap;align-items:center;gap:0 .6rem;margin:0;padding:0;}
.devotion-reading-tags a:is(.devotion-book-badge,[data-devotion-topic],.devotion-context-tag),
.devotion-reading-tags .devotion-tags a {display:inline-flex;gap:.22rem;align-items:center;min-block-size:2rem;padding:.125rem 0;border:0;border-radius:0;background:transparent;color:var(--green);font-size:.84rem;text-decoration:underline;text-underline-offset:.18em;}
.devotion-reading-tags a:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
.devotion-reading-tags a svg {inline-size:.95rem;block-size:.95rem;}


/* /dua-language.css */
.dua-reading-options{border:1px solid var(--line,#dce4dc);border-radius:12px;padding:.7rem 1rem;margin:1rem 0;font:400 1rem/1.6 var(--font-body,Manrope,sans-serif);color:var(--ink,#20352d)}.dua-reading-options>summary{cursor:pointer;font-size:.95rem;font-weight:650;min-height:30px}.dua-reading-option-fields{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem;margin-top:.65rem}.dua-reading-option-fields label{display:flex;align-items:center;gap:.5rem;min-height:44px}.dua-reading-option-fields input{width:18px;height:18px;accent-color:var(--green,#23584b)}.dua-reading-options p,.dua-sound-key{font-size:.875rem;line-height:1.7;color:var(--muted,#5a6b61)}.dua-parallel-help{font-family:Manrope,system-ui,sans-serif;font-size:1rem;line-height:1.8;text-align:left;direction:ltr;color:var(--ink,#20352d);margin:.5rem 0 1.5rem;letter-spacing:normal}.dua-parallel-help p{font:inherit!important;line-height:1.8!important;margin:.3rem 0!important;text-align:left!important}.dua-parallel-help [data-reading-transliteration],.dua-parallel-help [data-reading-translation]{padding:.7rem 1rem;border-inline-start:3px solid var(--line,#dce4dc);margin:.7rem 0}.dua-parallel-help [data-reading-transliteration]{background:color-mix(in srgb,var(--pale,#eaf0eb) 55%,transparent)}.dua-parallel-help [data-reading-translation]{background:var(--bg,#f6f3ea)}.dua-parallel-help span{font-size:.75rem;font-weight:700;letter-spacing:.02em;color:var(--muted,#5a6b61)}.dua-parallel-help .dua-language-note,.dua-parallel-help .dua-language-loading,.dua-parallel-help .dua-language-error{font-size:.875rem!important;color:var(--muted,#5a6b61)}.dua-language-error button{font:inherit;padding:.4rem .7rem;border:1px solid var(--line,#dce4dc);border-radius:6px;color:var(--green,#23584b);background:var(--panel,#fff)}.dua-word-current{background:#efe0ad;color:#172e28;box-shadow:none;border-radius:.12em;-webkit-box-decoration-break:clone;box-decoration-break:clone}.dua-dialog.is-wide{width:min(1100px,calc(100vw - 24px));max-width:1100px}.dua-dialog.is-focus .dua-introduction,.dua-dialog.is-focus .dua-resume,.dua-dialog.is-focus .dua-reading-options{display:none}.dua-reader-extra-tools{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;padding:.4rem 1.3rem;border-bottom:1px solid var(--line);font-size:.875rem}.dua-reader-extra-tools button{font:inherit;min-height:38px;padding:.4rem .65rem;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:inherit}.dua-reader-search{display:flex;gap:.4rem;align-items:center;min-width:0;flex:1}.dua-reader-search input{width:100%;min-width:70px;max-width:280px;background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:.5rem;font:inherit;color:inherit}.dua-reader-search [data-dua-find-count]{font-size:.8rem;white-space:nowrap}.dua-find-current{outline:2px solid #8b9e5f;outline-offset:6px;border-radius:5px}.dua-copy-section{display:flex;justify-content:flex-end;margin:.3rem 0 .8rem}.dua-copy-section button{font:500 .875rem/1.4 Manrope,sans-serif;min-height:36px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--green);padding:.4rem .65rem}.amal-reading-section .dua-copy-section{margin-top:1rem}.dua-reader-foot{font-size:.85rem}.dua-parallel-help [hidden]{display:none!important}@media(max-width:560px){.dua-reader-extra-tools{padding:.45rem .65rem}.dua-reader-search{flex-basis:100%}.dua-reader-search input{max-width:none}.dua-parallel-help [data-reading-transliteration],.dua-parallel-help [data-reading-translation]{padding:.55rem .7rem}.dua-reader-tools{flex-wrap:wrap}.dua-reading-options{padding:.65rem .8rem}}

.dua-copy-fallback{display:block;width:100%;min-height:150px;font:1rem/1.7 system-ui,sans-serif;padding:1rem;border:1px solid var(--green);border-radius:10px;background:var(--panel);color:var(--ink);direction:auto}.dua-parallel-help p{padding:.2rem 0;border:0}.dua-reading-section.dua-block-unit{margin:1rem 0;padding-bottom:.5rem}.dua-reader-extra-tools button,.dua-copy-section button{min-height:44px}.dua-reader-extra-tools [aria-pressed=true]{background:var(--pale);color:var(--dark);border-color:var(--green)}.dua-reader-search input{min-height:44px}.dua-audio-panel{flex-shrink:0}

.dua-phrase-help{font-family:Manrope,system-ui,sans-serif;font-size:1rem;line-height:1.75;text-align:start;direction:ltr;padding:.7rem 1rem;border-inline-start:3px solid var(--line);background:var(--light);border-radius:7px;margin:.7rem 0}.dua-phrase-help p{font:inherit!important;line-height:1.75!important;text-align:start!important;margin:.4rem 0!important}.dua-phrase-help strong,.dua-phrase-help small{font-size:.8rem;color:var(--muted)}.dua-phrase-note{font-size:.875rem!important}.amal-tracker .dua-phrase-help{max-width:640px;margin:.8rem auto;text-align:start}

@media(forced-colors:active){.dua-word-current{background:Highlight;color:HighlightText;forced-color-adjust:none}}


/* /dua-audio.css */
.dua-audio-panel{border:1px solid var(--line,#d8ddd5);border-radius:14px;margin:1rem 0;background:var(--panel,#fffef9);color:var(--ink,#25372e);font-size:1rem;line-height:1.65;overflow:hidden}.dua-audio-panel>summary{padding:.8rem 1rem;cursor:pointer;font-weight:650}.dua-audio-content{padding:0 1rem 1rem}.dua-audio-content p{font-family:inherit;font-size:1rem;line-height:1.65;margin:.7rem 0}.dua-audio-panel label{display:flex;flex-direction:column;gap:.3rem;font-size:.9375rem}.dua-audio-panel select{width:100%;max-width:100%;min-height:44px;border:1px solid var(--line,#d8ddd5);border-radius:9px;background:var(--panel,#fffef9);color:inherit;font:inherit;padding:.5rem .65rem}.dua-audio-panel audio{display:block;width:100%;margin:.9rem 0;direction:ltr}.dua-audio-controls{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:.75rem 0}.dua-audio-controls label:not(.dua-audio-check){min-width:6rem;flex:0 1 auto}.dua-audio-panel button{min-height:44px;border:1px solid var(--line,#d8ddd5);border-radius:9px;background:var(--panel,#fffef9);color:var(--green,#175a48);font:inherit;font-weight:600;padding:.5rem .8rem;cursor:pointer}.dua-audio-panel button:disabled{cursor:default;opacity:.5}.dua-audio-panel button:focus-visible,.dua-audio-panel select:focus-visible,.dua-audio-panel summary:focus-visible,.dua-audio-panel a:focus-visible,.dua-audio-panel input:focus-visible{outline:3px solid var(--green,#175a48);outline-offset:3px}.dua-audio-panel .dua-audio-check{display:flex;flex-direction:row;align-items:flex-start;gap:.6rem;cursor:pointer}.dua-audio-check input{margin:.35rem 0 0;inline-size:1.1rem;block-size:1.1rem;flex:none;accent-color:var(--green,#175a48)}.dua-audio-links{display:flex;gap:.6rem 1rem;flex-wrap:wrap;margin:.6rem 0 1rem}.dua-audio-links a{font-size:.9375rem;text-underline-offset:3px;color:var(--green,#175a48)}.dua-audio-panel .dua-audio-note,.dua-audio-panel .dua-audio-credit{font-size:.9375rem;color:var(--muted,#54635a)}.dua-audio-device{border-top:1px solid var(--line,#d8ddd5);padding-top:.75rem;margin-top:1rem}.dua-audio-device>summary{font-weight:600;cursor:pointer;padding:.4rem 0}.dua-audio-panel iframe{display:block;border:0;width:100%;min-height:200px;aspect-ratio:16/9;margin:.75rem 0;border-radius:8px}.dua-audio-panel [hidden]{display:none!important}.dua-audio-word-current{background:#e4d79b;color:#182d24;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.dua-audio-passage-current{outline:2px solid var(--green,#175a48);outline-offset:6px;border-radius:6px}@media(max-width:420px){.dua-audio-content{padding-inline:.75rem}.dua-audio-controls{gap:.5rem}.dua-audio-controls button{flex:1 1 auto}.dua-audio-controls label:not(.dua-audio-check){flex:1 1 5rem}.dua-audio-panel iframe{aspect-ratio:auto;height:210px}}@media(prefers-reduced-motion:reduce){.dua-audio-panel *{scroll-behavior:auto!important}}

.dua-audio-research{border-top:1px solid var(--line,#d8ddd5);margin-top:.85rem;padding-top:.35rem}
.dua-audio-research>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.875rem;color:var(--muted,#54635a);font-weight:600}
.dua-audio-panel .dua-audio-preference{margin:.8rem 0 .3rem;font-size:.875rem}
.dua-audio-panel [data-da-preference-status]:empty{display:none}
.dua-audio-panel [data-da-preference-status]{font-size:.875rem}

/* A single transport follows the reading into the rest of the app. */
.dua-record-transport{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem 1rem}
.dua-audio-panel .dua-record-transport [data-da-play]{justify-self:start;padding-inline:1.25rem;background:var(--dark,#104a40);color:var(--panel,#fff);border-color:transparent}
.dua-record-transport output{font-variant-numeric:tabular-nums;font-size:.95rem}
.dua-record-transport input[type="range"]{grid-column:1/-1;width:100%;min-height:2.75rem;margin:0;accent-color:var(--green,#187b66);cursor:pointer}
.dua-record-transport input[type="range"]:disabled{display:none}
.dua-record-options>summary,.dua-recording-choice>summary{cursor:pointer;font-weight:650;min-height:2.75rem;display:flex;align-items:center;gap:.5rem}
.dua-record-options>summary::after,.dua-recording-choice>summary::after{content:"⌄";margin-inline-start:auto}
.dua-record-options[open]>summary::after,.dua-recording-choice[open]>summary::after{transform:rotate(180deg)}
.dua-record-options,.dua-recording-choice{border-top:1px solid var(--line,#d8ddd5)}
[data-dua-panel="listen"] .dua-audio-panel{border:0;border-radius:0;background:transparent;margin:0}
[data-dua-panel="listen"] .dua-audio-panel>summary{display:none}
.dua-now-playing{position:fixed;z-index:2000;inset-inline-end:max(1rem,env(safe-area-inset-right));bottom:1rem;width:min(25rem,calc(100% - 2rem));box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.15rem .65rem;align-items:center;padding:.45rem .6rem;border-radius:1rem;background:#204d3c;color:#fff;box-shadow:0 4px 20px #153c3238}
.dua-now-playing[hidden]{display:none!important}
.dua-now-playing button{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;padding:.3rem;min-height:2.75rem;min-width:2.75rem}
.dua-dock-transport{grid-column:1/-1;display:flex;gap:.6rem;align-items:center;border-block-start:1px solid #ffffff40;padding-block-start:.25rem}
.dua-now-playing [data-dock-toggle],.dua-now-playing [data-dock-stop],.dua-now-playing [data-dock-back]{font-size:.9rem;line-height:1.2;font-weight:650;border-radius:.6rem;padding-inline:.75rem}
.dua-now-playing [data-dock-toggle]{background:#fff;color:#104a40}
.dua-now-playing [data-dock-stop]{border:1px solid #ffffff9c}
.dua-inline-actions{display:flex;justify-content:flex-end;padding-block:.35rem}
.dua-inline-actions [data-da-close]{border-color:currentColor}
.dua-now-playing [data-dock-read]{min-width:0;flex:1;text-align:start;line-height:1.35}
.dua-now-playing strong,.dua-now-playing small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dua-now-playing small{font-size:.875rem;color:#e2efeb}
.dua-now-playing button:focus-visible{outline:3px solid #ffdd8a;outline-offset:1px}
body[data-recorded-dua] #audioPlayer{display:none!important}
body[data-dua-listening] .main{padding-bottom:11rem}
.dua-dialog>.dua-now-playing{position:static;align-self:center;flex:none;width:calc(100% - 1rem);margin:.25rem auto}
@media(max-width:900px){.dua-now-playing{inset-inline:.6rem;bottom:calc(5rem + env(safe-area-inset-bottom,0px));width:auto;max-width:30rem;margin-inline:auto}body[data-dua-listening] .main{padding-bottom:14rem}}

.dua-now-playing [data-dock-back]:disabled{opacity:.55}

.dua-mini-player{flex-wrap:wrap}
.dua-mini-player [data-lp-follow]{font-weight:600;border:1px solid var(--line);min-height:44px}
.dua-mini-player [data-lp-follow][aria-pressed="true"]{background:var(--green);color:var(--panel)}
.dua-dock-transport [data-dock-back],.dua-dock-transport [data-dock-forward]{font-size:.875rem;border-radius:.55rem;border:1px solid #ffffff70;direction:ltr}
.dua-dock-transport [data-dock-time]{margin-inline-start:auto;font-size:.8125rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.dua-dock-transport button:disabled{opacity:.55}
@media(max-width:400px){.dua-dock-transport{gap:.25rem}.dua-dock-transport button{padding-inline:.45rem}.dua-mini-player [data-lp-follow]{font-size:.8125rem;padding-inline:.5rem}}
[data-dua-unit][data-dua-recited],.amal-reading-section[data-dua-recited]{box-shadow:none;background:var(--pale,#ecf5ef);border-radius:.35rem}
.dua-audio-content [data-da-bookmark-status]:empty{display:none}

/* Familiar transport controls: real playback state owns the symbol. */
[data-media-action] svg + .dua-media-label{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
[data-media-action] svg{flex:none;width:24px;height:24px;direction:ltr}
[data-media-action="play"] .mushaf-icon-wash{fill:currentColor;opacity:1}
.dua-audio-panel .dua-record-transport [data-da-play],.dua-audio-panel [data-da-speak]{display:inline-flex;align-items:center;justify-content:center;min-height:56px;min-width:56px;width:56px;height:56px;border-radius:50%;padding:12px;flex:none}
.dua-audio-panel .dua-record-transport [data-da-play] svg,.dua-audio-panel [data-da-speak] svg{width:28px;height:28px}
.dua-now-playing [data-dock-toggle],.dua-now-playing [data-dock-stop]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border-radius:50%;padding:10px;flex:none}
.dua-now-playing [data-dock-toggle]{width:48px;height:48px;min-width:48px}
.dua-dock-transport{gap:.45rem}

.dua-audio-panel [data-da-start-here]{min-block-size:44px;justify-self:start;border:0;background:var(--pale,#ecf5ef);color:var(--green,#185a4a);padding:.4rem .8rem;font:inherit;font-weight:600;text-align:start}
.dua-audio-panel [data-da-start-here][hidden]{display:none}
@media(forced-colors:active){[data-dua-unit][data-dua-recited] [data-dua-block],.amal-reading-section[data-dua-recited] .amal-reading-arabic{text-decoration:underline;text-decoration-color:Highlight;text-underline-offset:.15em}}


/* /dua-word-help.css */
.dua-study-word{cursor:pointer;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:color-mix(in srgb,var(--green) 35%,transparent);text-underline-offset:.26em;text-decoration-thickness:1px;border-radius:4px}
.dua-study-word:focus-visible{outline:2px solid var(--green);outline-offset:4px}.dua-study-selected{background:var(--pale);box-shadow:0 2px 0 var(--green)}
.dua-word-options{flex-basis:100%;border-top:1px solid var(--line);padding-top:.6rem}.dua-word-options p{font:400 .8125rem/1.6 var(--font-ui,system-ui);color:var(--muted);margin:.5rem 0 0;max-width:60ch}
.dua-word-panel{position:relative;display:grid;grid-template-columns:auto 1fr;gap:.25rem 1rem;background:var(--pale);border:1px solid var(--line);border-radius:12px;padding:.8rem 3.2rem .8rem 1rem;margin:.4rem 0 1rem;font:400 1rem/1.6 var(--font-ui,system-ui);word-spacing:normal;text-align:start;color:var(--ink)}
.dua-word-panel [data-dua-word-close]{position:absolute;inset-inline-end:.3rem;top:.3rem;min-width:44px;min-height:44px;background:none;border:0;border-radius:8px;color:var(--green);font:400 1.5rem/1 var(--font-ui,system-ui);cursor:pointer}.dua-word-panel [data-dua-word-close]:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.dua-word-panel-label{grid-column:1/-1;font-size:.75rem;font-weight:700;color:var(--green)}.dua-word-panel-arabic{font:400 1.7rem/1.5 var(--arabic);grid-row:2/4;align-self:center;padding-inline-end:.4rem}.dua-word-panel-reading{font-size:1rem;font-weight:650;overflow-wrap:anywhere}.dua-word-panel-gloss{font-size:.9375rem;overflow-wrap:anywhere}.dua-word-panel-gloss small{display:block;font-size:.6875rem;font-weight:650;letter-spacing:.03em;color:var(--muted)}
.dua-arabic-text .dua-word-panel p,.amal-reading .dua-word-panel p{grid-column:1/-1;padding:.4rem 0 0;margin:0;border:0;font:400 .75rem/1.6 var(--font-ui,system-ui);color:var(--muted)}
@media(max-width:440px){.dua-word-panel{gap:.2rem .65rem;padding-inline-start:.7rem}.dua-word-panel-arabic{font-size:1.5rem}.dua-word-panel-reading{font-size:.9375rem}}


/* /amal-aridha.css */
.amal-aridha{margin:1.5rem 0;border:1px solid var(--line);border-radius:16px;padding:1.5rem;background:var(--panel);color:var(--ink);font-size:1rem;line-height:1.7}
.amal-aridha [hidden]{display:none!important}.amal-aridha *{box-sizing:border-box}.amal-aridha .aridha-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.08em;color:var(--green)}
.amal-guide .amal-aridha h2{font-size:1.45rem;margin:.2rem 0 .6rem}.amal-guide .amal-aridha h3{font-size:1.1rem;margin:.4rem 0}.amal-guide .amal-aridha h4{font-size:1rem;margin:1.2rem 0 .5rem}.amal-guide .amal-aridha p{font-size:1rem;line-height:1.7;margin:.7rem 0}
.aridha-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:1.5rem;margin-top:1.2rem;align-items:start}.aridha-fields{min-width:0}.aridha-fields label{display:block;font-size:.95rem;font-weight:650;margin:1rem 0 .35rem}.aridha-fields label:first-child{margin-top:0}
.amal-aridha select,.amal-aridha textarea{display:block;width:100%;font:inherit;color:var(--ink);background:var(--bg,var(--panel));border:1px solid var(--line);border-radius:9px;padding:.8rem;min-height:48px}.amal-aridha select{padding-inline-end:2.2rem;white-space:normal}.amal-aridha textarea{resize:vertical;line-height:1.7;overflow-wrap:anywhere}
.amal-aridha button{font:inherit;font-size:.9rem;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:.6rem .9rem;background:var(--panel);color:var(--ink);cursor:pointer}.amal-aridha button.aridha-primary{background:var(--green);color:var(--panel);border-color:var(--green);font-weight:650}
.amal-guide .amal-aridha .aridha-note,.amal-guide .amal-aridha .aridha-privacy,.amal-guide .amal-aridha .aridha-count,.amal-guide .amal-aridha .aridha-source-note{font-size:.875rem;line-height:1.7;color:var(--muted)}.amal-guide .amal-aridha .aridha-count{text-align:end;margin:.2rem 0 .8rem;font-variant-numeric:tabular-nums}.aridha-privacy{border-inline-start:3px solid var(--line);padding-inline-start:.8rem}
.aridha-map{margin:0}.aridha-paper{padding:1.6rem 1.1rem;background:var(--bg,#f5f4ef);border:1px solid var(--line);border-radius:7px;box-shadow:5px 5px 0 color-mix(in srgb,var(--ink) 6%,transparent);text-align:center}.aridha-paper-line{display:block;height:5px;background:color-mix(in srgb,var(--ink) 12%,transparent);margin:.8rem auto;width:92%;border-radius:3px}.aridha-paper-line:nth-child(2){width:73%}.aridha-paper-context{display:block;font:1.15rem/1.9 var(--arabic,serif);margin:.6rem 0}.aridha-paper strong{display:block;padding:.9rem .4rem;color:var(--green);background:color-mix(in srgb,var(--green) 10%,var(--panel));border:1px dashed var(--green);border-radius:5px;font-size:1rem}.aridha-map figcaption{margin-top:1rem;font-size:.875rem;line-height:1.8;color:var(--muted)}
.aridha-how,.aridha-services,.aridha-language{margin:1.2rem 0 0;border:1px solid var(--line);border-radius:10px;padding:0 1rem}.amal-aridha summary{font-size:1rem;font-weight:650;padding:.85rem 0;cursor:pointer;min-height:48px}.aridha-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.2rem;padding:.5rem 0}.aridha-steps article{border-top:1px solid var(--line);padding:.8rem 0}.aridha-step-symbol{display:inline-block;color:var(--green);font-size:1.5rem;line-height:1.1}.amal-guide .aridha-steps h3{font-size:1rem}.amal-guide .aridha-steps p{font-size:.9rem}.aridha-status{min-height:1.5em;color:var(--green)}
.aridha-preview{border-top:1px solid var(--line);padding-top:1rem;scroll-margin-top:120px}.amal-guide .amal-aridha .aridha-arabic{font:1.45rem/2.05 var(--arabic,serif);text-align:right;white-space:pre-line;overflow-wrap:anywhere}.aridha-arabic mark{background:color-mix(in srgb,var(--green) 13%,var(--panel));color:var(--ink);border-radius:4px;padding:.1rem .25rem;white-space:pre-wrap;unicode-bidi:isolate}.aridha-deputy{border-top:1px solid var(--line);margin-top:1rem;padding-top:.5rem}.amal-guide .amal-aridha .aridha-english,.amal-guide .amal-aridha .aridha-transliteration{white-space:pre-line;font-size:1rem;line-height:1.9;color:var(--ink);overflow-wrap:anywhere}.amal-guide .amal-aridha .aridha-transliteration{color:var(--muted)}.aridha-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.aridha-copy-fallback{margin:1rem 0;padding:1rem;background:var(--bg);border:1px solid var(--line);border-radius:10px}.aridha-copy-fallback label{display:block;margin-bottom:.5rem;font-weight:600}
.aridha-service-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.aridha-service-links article{border-top:1px solid var(--line);padding-top:.7rem}.amal-guide .aridha-service-links p{font-size:.9rem}.aridha-services a,.aridha-source-note a,.aridha-preview a{color:var(--green);text-underline-offset:3px;overflow-wrap:anywhere;display:inline-flex;align-items:center;min-height:44px}.aridha-ziyara-links{border-top:1px solid var(--line);padding:.8rem 0}.aridha-ziyara-links>a{display:flex}.amal-guide .aridha-ziyara-links p{font-size:.875rem}
.amal-aridha :is(button,a,summary,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:650px){.amal-aridha{padding:1rem .85rem}.aridha-editor-grid{grid-template-columns:1fr;gap:1.1rem}.aridha-map{max-width:27rem;margin:auto}.aridha-service-links,.aridha-steps{grid-template-columns:1fr}.aridha-actions{display:grid;grid-template-columns:1fr 1fr}.aridha-actions button{padding:.6rem}.amal-guide .amal-aridha .aridha-arabic{font-size:1.3rem}.aridha-how,.aridha-services,.aridha-language{padding-inline:.75rem}}
@media(prefers-reduced-motion:reduce){.amal-aridha *{scroll-behavior:auto!important}}
@media print{.aridha-fields,.aridha-map,.aridha-how,.aridha-actions,.aridha-services,.aridha-privacy,.aridha-status,.aridha-copy-fallback{display:none!important}.amal-aridha{border:0;padding:0}.aridha-preview{border:0}.aridha-arabic mark{background:none}}

.aridha-writing-image{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin-bottom:1rem;border:1px solid var(--line)}

.aridha-book-steps{padding-inline-start:1.3rem;margin:.5rem 0 1rem}.aridha-book-steps li{padding:.45rem .15rem;font-size:1rem;line-height:1.75}.aridha-research{margin-top:1rem;border-top:1px solid var(--line)}.aridha-research p{font-size:.875rem!important;color:var(--muted)}.aridha-fields [data-aridha-names]{font-family:var(--arabic,serif);font-size:1.1rem;line-height:1.9}.aridha-fields [data-aridha-classical-options]{margin-top:1rem}.aridha-arabic mark:empty{display:none}

.aridha-method-picture{max-width:20rem;margin:.75rem 0 1rem}.aridha-method-picture img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:9px}.aridha-method-picture figcaption{font-size:.875rem;color:var(--muted);line-height:1.6;margin-top:.5rem}

/* The paired method uses paper diagrams, without ambiguous hand illustrations. */
.paired-aridha{color:var(--ink);max-width:62rem;margin-inline:auto;overflow-wrap:anywhere}
.paired-aridha [hidden]{display:none!important}
.paired-aridha .paired-header h3{font-size:1.25rem;margin:.6rem 0}.paired-aridha p{line-height:1.8}
.paired-time{display:inline-block;padding:.4rem .7rem;background:color-mix(in srgb,var(--green) 8%,var(--panel));border-radius:7px;font-size:.875rem;color:var(--green)}
.paired-paper-guide{margin:1rem 0}.paired-paper-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.paired-paper-stages>div{text-align:center;border:1px solid var(--line);border-radius:9px;padding:.5rem;background:var(--panel)}.paired-paper-stages svg{display:block;width:100%;max-height:8rem}.paired-paper-stages span{display:block;font-size:.875rem;line-height:1.7}.paired-sheet-inner{fill:color-mix(in srgb,var(--green) 16%,var(--panel));stroke:var(--green);stroke-width:2}.paired-sheet-outer{fill:var(--bg);stroke:var(--muted);stroke-width:2}.paired-paper-lines{fill:none;stroke:var(--muted);stroke-width:1.5}.paired-fold-line{fill:none;stroke:var(--muted);stroke-width:1.2;stroke-dasharray:4 4}.paired-paper-stages text{font-size:21px;font-family:inherit;fill:var(--ink)}.paired-paper-guide figcaption{color:var(--muted);font-size:.875rem;line-height:1.7;margin-top:.65rem}
.paired-fields{max-width:42rem;margin:1.3rem 0}.paired-fields label{display:block;font-weight:650;margin:.8rem 0 .4rem}.paired-aridha :is(select,textarea){box-sizing:border-box;width:100%;max-width:100%;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;padding:.7rem;min-height:46px}.paired-aridha textarea{resize:vertical;line-height:1.8}
.paired-aridha button{border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:.65rem .9rem;min-height:44px;font:inherit;cursor:pointer}.paired-aridha .aridha-primary{background:var(--green);border-color:var(--green);color:var(--panel,#fff)}.paired-aridha :is(button,a,summary,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
.paired-aridha summary{cursor:pointer;min-height:44px;padding:.8rem 0;font-weight:650;line-height:1.7}.paired-letter,.paired-closing{border:1px solid var(--line);border-radius:10px;margin:1rem 0;padding:0 1rem}.paired-number{display:inline-grid;place-items:center;width:1.7rem;height:1.7rem;margin-inline-end:.6rem;border-radius:50%;background:color-mix(in srgb,var(--green) 12%,var(--panel));color:var(--green)}
.amal-guide .paired-aridha .aridha-arabic,.paired-aridha .aridha-arabic{font:1.45rem/2.1 var(--arabic,serif);text-align:right;white-space:pre-line;overflow-wrap:anywhere}.amal-guide .paired-aridha .aridha-english,.amal-guide .paired-aridha .aridha-transliteration,.paired-aridha .aridha-english,.paired-aridha .aridha-transliteration{white-space:pre-line;font-size:1rem;line-height:1.9;color:var(--ink);overflow-wrap:anywhere}.paired-aridha .aridha-transliteration{color:var(--muted)}.paired-aridha .aridha-note,.paired-aridha figcaption{font-size:.875rem;color:var(--muted)}.paired-aridha .paired-source-quote{font:1.1rem/1.9 var(--arabic,serif)}.paired-aridha a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:3px}.paired-research ul{padding-inline-start:1.4rem}.paired-research li p{margin-top:0}.paired-aridha [data-paired-output]{scroll-margin-top:110px}
.amal-aridha[data-aridha-paired-active] .aridha-editor-grid{grid-template-columns:1fr;margin-bottom:1rem}.amal-aridha[data-aridha-paired-active] .aridha-fields>:not([data-aridha-choice-heading]):not([data-aridha-choice]){display:none!important}.amal-aridha[data-aridha-paired-active]>[data-aridha-status],.amal-aridha[data-aridha-paired-active]>[data-aridha-copy-fallback],.amal-aridha[data-aridha-paired-active]>.aridha-services{display:none!important}
@media(max-width:480px){.paired-paper-stages{gap:.35rem}.paired-paper-stages>div{padding:.25rem}.paired-paper-stages span{font-size:.75rem}.paired-letter,.paired-closing{padding-inline:.7rem}.paired-aridha .aridha-arabic{font-size:1.25rem}}
@media print{.paired-fields,.paired-paper-guide,.paired-method,.paired-research,.paired-aridha .aridha-actions,.paired-aridha .aridha-status,.paired-aridha .aridha-copy-fallback{display:none!important}.paired-letter{break-after:page;border:0;padding:0}.paired-letter>summary,.paired-letter .aridha-language{display:none!important}}

/* v124: a clear compose → review → delivery flow, with optional detail folded away. */
.aridha-editor-grid{grid-template-columns:minmax(0,1fr);gap:0;max-width:48rem;margin-inline:auto}
.aridha-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.aridha-fields [data-aridha-classical-options]{margin-top:0}
.amal-guide .amal-aridha .aridha-section-title{display:flex;align-items:center;gap:.6rem;margin:1.25rem 0 .8rem;font-size:1.02rem}
.aridha-step-number{display:inline-grid;place-items:center;flex:none;width:1.65rem;height:1.65rem;margin-inline-end:.45rem;border-radius:50%;background:color-mix(in srgb,var(--green) 9%,var(--panel));color:var(--green);font-size:.85rem;line-height:1;font-variant-numeric:tabular-nums}
.aridha-section-title .aridha-step-number{margin-inline-end:0}
.aridha-fields .aridha-section-title label{font:inherit;margin:0}
.aridha-address-options{border-bottom:1px solid var(--line);padding:.15rem 0 .1rem;margin-top:.7rem}
.aridha-address-options>summary{font-size:.875rem;line-height:1.6;font-weight:500}
.aridha-address-options>summary small{display:inline;margin-inline-start:.75rem;color:var(--muted);font-size:inherit}
.aridha-address-options[open]{padding-bottom:.8rem}
.aridha-address-options>div{max-width:40rem}
.aridha-input-note{display:flex;align-items:start;justify-content:space-between;gap:1rem}
.amal-guide .amal-aridha .aridha-input-note p{margin:.45rem 0}
.aridha-input-note .aridha-count{flex:none}
.aridha-placement{padding:.6rem .8rem;background:var(--bg,#f5f4ef);border-inline-start:2px solid color-mix(in srgb,var(--green) 40%,var(--line));border-radius:0 6px 6px 0}
.amal-guide .amal-aridha .aridha-placement-rule{font-size:.85rem;line-height:1.65;margin:0;color:var(--muted)}
.aridha-placement bdi{font-family:var(--arabic,serif);font-size:1.05em;color:var(--ink)}
.aridha-placement-example{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.3rem .6rem;margin-top:.5rem;direction:rtl;font-size:.95rem}
.aridha-placement-example>span{padding:.1rem .6rem;color:var(--green);border:1px dashed color-mix(in srgb,var(--green) 45%,var(--line));border-radius:4px;font-size:.8rem;direction:ltr;unicode-bidi:isolate}
.aridha-compose-actions{margin:.9rem 0 .4rem}
.amal-guide .amal-aridha .aridha-privacy{border:0;padding:0;margin:.4rem 0 0;font-size:.8rem}
.aridha-status:empty{display:none}
.aridha-preview{max-width:48rem;margin:1.3rem auto 0}
.amal-guide .amal-aridha .aridha-preview-title{font-size:1rem;font-weight:600;margin:.4rem 0}
.aridha-preview-actions{align-items:start;margin:.8rem 0 1rem}
.aridha-copy-options>summary{border:1px solid var(--line);border-radius:9px;padding:.6rem .9rem;min-height:44px;font-size:.9rem;font-weight:400}
.aridha-copy-options>.aridha-actions{padding:.6rem 0;margin:0;max-width:26rem}
.aridha-next-action{margin-top:1rem}
.aridha-writing-help{margin-top:.5rem}
.aridha-writing-help>summary{font-size:.9rem;font-weight:500}
.aridha-writing-help .aridha-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;max-width:34rem;margin:.5rem 0}
.aridha-writing-help .aridha-paper{padding:.7rem .5rem;box-shadow:none}
.aridha-writing-help .aridha-paper strong{font-size:.85rem;padding:.4rem}
.aridha-writing-help .aridha-paper-context{font-size:1rem}
.aridha-writing-help .aridha-writing-image{margin:0;align-self:center}
.aridha-writing-help figcaption{grid-column:1/-1;margin:0}
.amal-aridha [data-aridha-method-panel],.amal-aridha>.aridha-services{scroll-margin-top:110px;max-width:48rem;margin-inline:auto}
.amal-aridha[data-aridha-paired-active] .aridha-choice-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){.aridha-choice-grid{grid-template-columns:minmax(0,1fr);gap:.7rem}.aridha-address-options>summary small{display:block;margin-inline-start:1.1rem}.aridha-preview-actions{display:flex;gap:.5rem}.aridha-preview-actions>.aridha-primary{flex:1 1 auto}.aridha-copy-options{flex:1 1 auto}.aridha-compose-actions{display:flex}.aridha-writing-help .aridha-map{grid-template-columns:1fr}.aridha-writing-help .aridha-writing-image{max-width:16rem}.aridha-placement-example{justify-content:start}.aridha-input-note{gap:.6rem}}
@media print{.aridha-next-action,.aridha-copy-options{display:none!important}}

.paired-aridha{max-width:48rem}
.paired-aridha .paired-fields{max-width:none;margin:.9rem 0}
.paired-aridha .aridha-section-title{display:flex;align-items:center;gap:.6rem;font-size:1.02rem;margin:1rem 0 .7rem}
.paired-aridha .aridha-privacy{border:0;padding:0;font-size:.8rem;color:var(--muted)}
.paired-aridha .paired-method,.paired-aridha .paired-closing{scroll-margin-top:110px}
.paired-aridha .aridha-copy-options>summary{padding:.6rem .9rem;font-size:.9rem;min-height:44px;line-height:1.7;font-weight:400}
.paired-aridha .paired-copy-both{display:flex;align-items:start}
.paired-aridha .paired-time{margin-top:.5rem}
.paired-aridha .paired-header p{margin:.4rem 0 .8rem}

.paired-summary-time{display:block;margin-inline-start:2.1rem;font-size:.8rem;font-weight:400;color:var(--muted)}

/* v125: type once, then review the completed letter in the same workspace. */
.amal-guide .amal-aridha{border:0;padding:0;margin:1rem 0;background:transparent;box-shadow:none}
.aridha-composer-title{position:absolute!important;inline-size:1px;block-size:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.amal-aridha .aridha-editor-grid{margin-top:0;max-width:48rem}
.amal-guide .amal-aridha [data-aridha-choice-heading]{margin-top:0}
.amal-guide .amal-aridha .aridha-section-title{margin-block:1rem .55rem}
.amal-aridha .aridha-choice-grid{gap:.8rem}
.amal-aridha .aridha-address-options{margin-top:.3rem}
.amal-aridha .aridha-address-options>summary{padding-block:.55rem}
.amal-aridha textarea[data-aridha-request]{min-height:112px;background:var(--panel)}
.amal-aridha .aridha-placement{padding:.55rem .7rem;border-inline-start:3px solid var(--green);background:color-mix(in srgb,var(--green) 6%,var(--panel))}
.amal-aridha .aridha-placement-example{margin:0;justify-content:start;gap:.35rem .6rem}
.amal-aridha .aridha-placement-example mark{font-family:var(--font-ui);font-size:.875rem;line-height:1.6;padding:.15rem .5rem;border-radius:5px;background:color-mix(in srgb,var(--green) 13%,var(--panel));color:var(--ink);max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;unicode-bidi:isolate}
.amal-aridha .aridha-input-note .aridha-note{font-size:.875rem;line-height:1.5}
.amal-aridha .aridha-compose-actions{margin:.75rem 0 .3rem}
.amal-aridha .aridha-compose-actions .aridha-primary{min-width:150px}
.amal-aridha[data-aridha-stage="review"] .aridha-preview{border:0;padding:0;margin-top:0}
.amal-aridha .aridha-next-action{margin:.5rem 0 .8rem}
.amal-aridha .aridha-next-action>button{color:var(--green);font-weight:600;background:var(--pale,var(--panel))}
.amal-aridha .aridha-writing-help{display:flex;align-items:center;gap:1rem;max-width:34rem;margin:.65rem 0}
.amal-aridha .aridha-writing-help img{width:9rem;max-width:35%;margin:0;flex:none;aspect-ratio:4/3;object-fit:cover}
.amal-aridha .aridha-writing-help figcaption{font-size:.875rem;line-height:1.65;color:var(--muted)}
.amal-aridha .aridha-method-picture{display:flex;align-items:center;gap:1rem;max-width:34rem}
.amal-aridha .aridha-method-picture img{width:9rem;max-width:35%;flex:none}
.amal-aridha .aridha-method-picture figcaption{margin:0}
@media(max-width:650px){
 .amal-aridha .aridha-choice-grid{grid-template-columns:1fr;gap:.55rem}
 .amal-aridha .aridha-input-note{align-items:baseline}
 .amal-aridha .aridha-placement-example{font-size:.875rem}
 .amal-aridha .aridha-preview-actions{gap:.4rem}
}

/* Keep an inserted request legible when its writing direction differs from the letter. */
.amal-aridha .aridha-arabic mark,.paired-aridha .aridha-arabic mark{display:block;margin:.65rem 0;padding:.7rem .85rem;border-inline-start:3px solid var(--green);font:500 1rem/1.8 var(--font-ui,system-ui);text-align:start;unicode-bidi:plaintext}
.amal-aridha .aridha-arabic mark:dir(rtl),.paired-aridha .aridha-arabic mark:dir(rtl){font-family:var(--arabic,serif);font-size:1.3rem}

/* v126: form 2's name sequence stays together; other letter text flows normally. */
.amal-aridha .aridha-writing-rule{display:flex;align-items:center;gap:12px;margin:.85rem 0;padding:.65rem .8rem;border-inline-start:3px solid var(--green);border-radius:0 8px 8px 0;background:var(--pale,var(--panel));font:400 .875rem/1.6 var(--font-ui,system-ui)}
.amal-aridha .aridha-writing-rule>div{flex:1;min-width:0}.amal-aridha .aridha-writing-rule strong{font-weight:650;color:var(--green)}
.amal-guide .amal-aridha .aridha-writing-rule p{font:inherit;margin:.15rem 0 0}
.amal-aridha .aridha-writing-rule button{flex:none;padding:.5rem .7rem;font-size:.8125rem;background:var(--panel)}
.amal-aridha .aridha-one-line-guide{margin:.2rem 0 .6rem;scroll-margin-top:110px}
.amal-aridha .aridha-one-line-guide figcaption{font-size:.9375rem;line-height:1.7}
.amal-aridha .aridha-one-line-guide figcaption strong{color:var(--green)}
.amal-guide .amal-aridha .aridha-one-line-guide figcaption p{font:inherit;margin:.3rem 0 .7rem}
.amal-aridha .aridha-writing-sheet{box-sizing:border-box;max-width:100%;padding:.8rem;border:1px solid var(--line);border-radius:9px;background:var(--panel);font:1.2rem/2 var(--arabic,serif)}
.amal-aridha .aridha-writing-context{display:block;color:var(--muted);white-space:normal}
.amal-aridha .aridha-names-line{display:block;max-width:100%;box-sizing:border-box;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap!important;overflow-wrap:normal;word-break:normal;padding:.35rem .5rem;margin:.4rem 0;border-block:1px solid color-mix(in srgb,var(--green) 28%,var(--line));background:color-mix(in srgb,var(--green) 7%,var(--panel));font:1.2rem/2 var(--arabic,serif);color:var(--ink);scrollbar-width:thin}
.amal-aridha .aridha-names-line:focus-visible,.amal-aridha .aridha-one-line-guide:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.amal-guide .amal-aridha .aridha-one-line-help{font:.8125rem/1.65 var(--font-ui,system-ui);color:var(--muted);margin:.5rem 0}
@media(max-width:520px){.amal-aridha .aridha-writing-rule{align-items:start;flex-wrap:wrap;gap:.45rem}.amal-aridha .aridha-writing-rule>div{flex-basis:100%}.amal-aridha .aridha-writing-rule button{margin-inline-start:auto}.amal-aridha .aridha-writing-sheet{padding:.6rem}}
@media print{.amal-aridha .aridha-writing-rule{display:none!important}.amal-aridha .aridha-names-line{overflow:visible!important;white-space:nowrap!important;max-width:none;margin:.4rem 0;padding:0;border:0;background:none;font-size:10pt!important;break-inside:avoid}}


/* /amal-istikhara.css */
.istikhara-tool{margin-block:.6rem;border:0;padding:0;color:var(--ink,#25372e);font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.istikhara-tool h3{font:inherit;font-size:1.2rem;font-weight:700;margin:0 0 .5rem}.istikhara-tool h4{font:inherit;font-size:1.13rem;font-weight:700;margin:.3rem 0 .6rem}.istikhara-tool p{font-family:inherit;font-size:1rem;line-height:1.65;margin:.45rem 0}.istikhara-tool a{color:var(--green,#315b44);text-underline-offset:3px}.istikhara-tool .istikhara-help,.istikhara-tool .istikhara-source-line,.istikhara-tool .istikhara-load-status{font-size:.9rem;color:var(--muted,#56645a)}
.istikhara-guide{border-block:1px solid var(--line,#d8ddd5);margin-block:1rem}.istikhara-guide>summary{padding:.5rem .1rem;min-height:44px;box-sizing:border-box;font-weight:650;cursor:pointer}.istikhara-diagram{margin:.5rem 0 1.25rem;padding:.8rem;background:var(--cream,#f6f3e8);border-radius:12px}.istikhara-diagram svg{display:block;width:100%;max-width:520px;height:auto;margin-inline:auto;direction:ltr}.istikhara-diagram figcaption{font-size:.9rem;line-height:1.65;max-width:40rem;margin:.7rem auto 0;color:var(--muted,#56645a)}.istikhara-steps{padding-inline-start:1.5rem;margin:.4rem 0}.istikhara-steps>li{padding-inline-start:.3rem;margin-block:0 .5rem}.istikhara-steps>li::marker{font-weight:700;color:var(--green,#315b44)}.istikhara-prayer{margin:.4rem 0;padding:.6rem;border-radius:10px;background:var(--cream,#f6f3e8)}.istikhara-prayer p{margin:0 0 .55rem}.istikhara-prayer p:last-child{margin-bottom:0}.istikhara-prayer .istikhara-arabic{font-family:var(--arabic,'Amiri'),serif;font-size:1.55rem;line-height:2.05;color:var(--ink,#25372e)}.istikhara-prayer .istikhara-transliteration{font-size:.9375rem;color:var(--muted,#56645a)}.istikhara-final-step{font-weight:600}
.istikhara-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem 1rem;align-items:end}.istikhara-form label{display:flex;flex-direction:column;gap:.4rem;font-size:.9375rem;font-weight:600;min-width:0}.istikhara-tool input,.istikhara-tool select{width:100%;max-width:100%;box-sizing:border-box;min-height:46px;border:1px solid var(--line,#d8ddd5);border-radius:9px;background:var(--panel,#fffef9);color:var(--ink,#25372e);font:inherit;padding:.6rem .7rem}.istikhara-tool input{direction:ltr;text-align:start;unicode-bidi:plaintext}.istikhara-tool input[aria-invalid=true]{border:2px solid #8e3d35}.istikhara-form .istikhara-help{grid-column:1/-1;margin:0}.istikhara-tool button{border:1px solid var(--line,#d8ddd5);background:var(--panel,#fffef9);color:var(--green,#315b44);border-radius:9px;font:inherit;font-weight:650;min-height:44px;padding:.6rem .8rem;cursor:pointer}.istikhara-form>button{grid-column:1/-1;background:var(--green,#315b44);color:var(--on-accent,#fff);border-color:var(--green,#315b44)}.istikhara-tool button:disabled{opacity:.55;cursor:default}.istikhara-tool :is(button,input,select,summary,a):focus-visible{outline:3px solid var(--focus-ring,var(--green,#315b44));outline-offset:3px}.istikhara-tool [data-ik-result-heading]:focus{outline:2px solid var(--focus-ring,var(--green,#315b44));outline-offset:4px;border-radius:3px}
.istikhara-result{margin-block:1rem;border:1px solid var(--line,#d8ddd5);border-inline-start:5px solid var(--green,#315b44);border-radius:10px;padding:.9rem;background:var(--pale,#e5eee2)}.istikhara-result[data-classification=conditional],.istikhara-result[data-classification=either],.istikhara-result[data-classification=wait]{border-inline-start-color:#88651f;background:var(--cream,#f6f3e8)}.istikhara-result[data-classification=avoid],.istikhara-result[data-classification=strong-avoid]{border-inline-start-color:#8e3d35;background:var(--panel,#fffef9)}.istikhara-result .istikhara-reference{font-size:.875rem;color:var(--muted,#56645a)}.istikhara-result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin-block:.8rem}.istikhara-primary-link{font-weight:700}.istikhara-error{margin-block:1rem;padding:.2rem .85rem;border-inline-start:4px solid #8e3d35}.istikhara-tool [hidden]{display:none!important}
@media(max-width:480px){.istikhara-form{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.istikhara-prayer{padding:.7rem}.istikhara-prayer .istikhara-arabic{font-size:1.4rem}.istikhara-steps{padding-inline-start:1.3rem}.istikhara-diagram{padding:.5rem}.istikhara-result-actions{align-items:flex-start;flex-direction:column}.istikhara-tool button{max-width:100%}}

.istikhara-context-image{display:block;width:100%;height:auto;max-height:280px;object-fit:cover;object-position:center 62%;border-radius:11px;margin:.25rem 0 1rem}

.istikhara-references{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;font-size:.875rem;margin:.5rem 0 .9rem}.istikhara-references>div{display:flex;gap:.5rem}.istikhara-references dt{color:var(--muted,#56645a)}.istikhara-references dd{margin:0;font-weight:650}.istikhara-form [data-ik-numbering-field]{grid-column:1/-1}
.istikhara-tool .istikhara-intro{margin:0 0 .4rem;color:var(--muted,#56645a);font-size:.9375rem}.istikhara-methods{display:flex;gap:.25rem;padding:.2rem;border-radius:12px;background:var(--cream,#f6f3e8);margin-block:0 1.3rem}.istikhara-methods>button{flex:1;min-width:0;border-color:transparent;background:transparent}.istikhara-methods>button[aria-pressed=true]{background:var(--green,#315b44);color:var(--on-accent,#fff)}
.istikhara-options{grid-column:1/-1;border-top:1px solid var(--line,#d8ddd5);margin-top:.25rem}.istikhara-options>summary,.istikhara-original>summary,.istikhara-research>summary{min-height:44px;box-sizing:border-box;padding:.65rem .1rem;font-size:.9rem;cursor:pointer}.istikhara-options>summary{color:var(--muted,#56645a)}.istikhara-options-fields{display:grid;gap:.8rem;margin-block:.35rem .8rem}.istikhara-options .istikhara-help{margin:.7rem 0}.istikhara-form [data-ik-page-field]{grid-column:1/-1}.istikhara-tool select:disabled{opacity:.6;cursor:default}.istikhara-tool select[aria-invalid=true]{border:2px solid #8e3d35}
.istikhara-result .istikhara-assessment{margin:.6rem 0 .85rem;font-size:1.05rem;line-height:1.8}.istikhara-tool .istikhara-assessment[lang=ar]{font-family:var(--arabic,'Amiri'),serif;font-size:1.5rem;line-height:2}.istikhara-original{border-top:1px solid var(--line,#d8ddd5);margin-top:.5rem}.istikhara-research{margin-block:.8rem 0;border-top:1px solid var(--line,#d8ddd5)}.istikhara-research p{font-size:.9rem}.istikhara-result .istikhara-research{background:var(--panel,#fffef9);padding:.2rem .65rem;border-radius:8px}.istikhara-result-actions:last-child{margin-bottom:0}
.istikhara-beads-choice{border:0;margin:.65rem 0;padding:0;min-width:0}.istikhara-beads-choice>legend{font-size:1rem;font-weight:650;margin-bottom:.65rem;padding:0}.istikhara-beads-choice>div{display:flex;gap:.65rem}.istikhara-beads-choice button{flex:1}.istikhara-beads-choice button[aria-pressed=true]{background:var(--green,#315b44);color:var(--on-accent,#fff);border-color:var(--green,#315b44)}.istikhara-tool [data-ik-beads-heading]:focus{outline:2px solid var(--focus-ring,var(--green,#315b44));outline-offset:4px;border-radius:3px}
@media(max-width:480px){.istikhara-methods>button{padding:.6rem .45rem}.istikhara-tool .istikhara-assessment[lang=ar]{font-size:1.35rem}.istikhara-references>div{flex-wrap:wrap}}

/* Keep the lookup visible; preparation opens as a short, navigable guide. */
.istikhara-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;list-style:none;padding:0;margin:0 0 .65rem;font-size:.83rem;color:var(--muted,#56645a);line-height:1.4;overflow-wrap:normal}
.istikhara-journey>li{display:flex;align-items:center;gap:.4rem;min-width:0;padding-block:.2rem}
.istikhara-journey>li>span{display:inline-grid;place-items:center;flex:0 0 1.45rem;width:1.45rem;height:1.45rem;border:1px solid var(--line,#d8ddd5);border-radius:50%;font-size:.78rem;font-weight:700;background:var(--panel,#fffef9)}
.istikhara-journey>li[aria-current=step]{color:var(--green,#315b44);font-weight:700}
.istikhara-journey>li[aria-current=step]>span{background:var(--green,#315b44);border-color:var(--green,#315b44);color:var(--on-accent,#fff)}
.istikhara-tool .istikhara-methods{margin-bottom:.6rem}
.istikhara-tool .istikhara-guide{margin-block:.35rem .6rem}
.istikhara-verse-heading{display:flex;align-items:center;justify-content:space-between;gap:.65rem}
.istikhara-verse-heading h3{margin:0}
.istikhara-verse-heading>button{font-size:.85rem;padding:.45rem .65rem;background:transparent;flex-shrink:0}
.istikhara-tool .istikhara-verse-instruction{margin:.4rem 0 .8rem;font-size:.9375rem;color:var(--muted,#56645a)}
.istikhara-prep-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem;margin:.25rem 0 .35rem}
.istikhara-prep-toolbar>label{display:flex;flex-direction:column;gap:.2rem;min-width:0;font-size:.85rem;font-weight:600}
.istikhara-prep-toolbar select{font-size:.9rem}
.istikhara-prep-toolbar>button{max-width:10rem;font-size:.85rem;padding:.45rem .6rem}
.istikhara-prep-toolbar>button[aria-pressed=true]{grid-column:1/-1;justify-self:end}
.istikhara-tool .istikhara-prep-status{font-size:.875rem;color:var(--muted,#56645a);margin:.25rem 0}
.istikhara-prep-steps{list-style:none;padding:0;margin:.25rem 0 .5rem}
.istikhara-prep-steps>li{min-width:0}
.istikhara-prep-steps[data-view=all]{list-style:decimal;padding-inline-start:1.3rem}
.istikhara-prep-steps[data-view=all]>li{padding-block:.8rem;border-top:1px solid var(--line,#d8ddd5)}
.istikhara-prep-steps[data-view=all]>li::marker{font-weight:700;color:var(--green,#315b44)}
.istikhara-prep-steps h4{font-size:1.05rem;margin:.2rem 0 .35rem}
.istikhara-prep-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin:.4rem 0 .5rem}
.istikhara-prep-navigation{display:flex;align-items:center;gap:.5rem}
.istikhara-prep-navigation>[data-ik-prep-next]{background:var(--green,#315b44);border-color:var(--green,#315b44);color:var(--on-accent,#fff)}
.istikhara-guide .istikhara-guide-exit{width:auto;margin:0;padding:.4rem .65rem;background:transparent}
.istikhara-guide .istikhara-guide-exit[data-ready=true]{background:var(--green,#315b44);border-color:var(--green,#315b44);color:var(--on-accent,#fff)}
.istikhara-tool :is([data-ik-prep-heading],[data-ik-verse-heading],[data-ik-result-heading],select,input){scroll-margin-block-start:7rem}
.istikhara-tool :is([data-ik-prep-heading],[data-ik-verse-heading]):focus{outline:2px solid var(--focus-ring,var(--green,#315b44));outline-offset:4px;border-radius:3px}
@media(max-width:480px){.istikhara-journey{font-size:.78rem;gap:.35rem}.istikhara-journey>li{gap:.3rem;align-items:flex-start}.istikhara-journey>li>span{flex-basis:1.2rem;width:1.2rem;height:1.2rem;font-size:.7rem}.istikhara-verse-heading h3{font-size:1.1rem}.istikhara-prep-toolbar{gap:.45rem}.istikhara-prep-toolbar>button{max-width:7rem;font-size:.8rem}.istikhara-verse-heading>button{font-size:.8rem}}

.istikhara-counter{display:flex;align-items:center;gap:.5rem;margin:.4rem 0 0}
.istikhara-counter output{min-width:3.25rem;text-align:center;font-variant-numeric:tabular-nums;font-weight:700}
.istikhara-counter [data-ik-undo]{background:transparent}
.istikhara-result .istikhara-verse-text{font-family:var(--arabic,'Amiri'),serif;font-size:clamp(1.55rem,4vw,2rem);line-height:2.1;margin:.35rem 0 1rem;padding-block:.45rem .75rem;border-bottom:1px solid var(--line,#ccd8cc)}

/* Bead handling is illustrative; the labelled groups show exact counting examples. */
.istikhara-beads-steps>li{padding-block:.25rem .5rem;border-bottom:1px solid var(--line,#d8ddd5)}
.istikhara-beads-steps>li:last-child{border-bottom:0;padding-bottom:0}
.istikhara-tool .istikhara-beads-steps h4{font-size:1.05rem;margin:0 0 .25rem}
.istikhara-beads-picture{max-width:20rem;margin:.5rem 0 0}
.istikhara-beads-picture img{display:block;width:100%;height:auto;border-radius:10px}
.istikhara-beads-picture figcaption{font-size:.8rem;line-height:1.5;color:var(--muted,#56645a);margin-top:.35rem}
.istikhara-count-help{border-top:1px solid var(--line,#d8ddd5);margin-top:.8rem}
.istikhara-count-help>summary{font-size:.9rem;cursor:pointer;min-height:44px;box-sizing:border-box;padding:.65rem .1rem}
.istikhara-tool .istikhara-count-help>p{font-size:.875rem;color:var(--muted,#56645a);margin:.3rem 0 .8rem}
.istikhara-count-example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem;padding:.7rem 0;border-top:1px solid var(--line,#d8ddd5);font-size:.85rem;line-height:1.5}
.istikhara-count-example>div{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-align:center}
.istikhara-bead-row{display:flex;gap:.6rem;align-items:center;min-height:2.4rem}
.istikhara-bead-group{display:inline-flex;gap:.25rem;padding:.4rem;border:1px dashed var(--muted,#56645a);border-radius:8px}
.istikhara-bead{display:inline-block;flex:0 0 .85rem;width:.85rem;height:.85rem;border-radius:50%;background:currentColor}
.istikhara-counted-pairs{color:var(--muted,#56645a)}
.istikhara-last-beads{color:var(--green,#315b44)}
.istikhara-last-beads .istikhara-bead-group{border:2px solid currentColor;background:var(--pale,#e5eee2)}
.istikhara-beads-choice button{display:flex;align-items:center;justify-content:center;gap:.6rem}
.istikhara-choice-beads{display:inline-flex;align-items:center;gap:.2rem}
.istikhara-tool [data-ik-beads-heading]{scroll-margin-block-start:7rem}
@media(max-width:380px){.istikhara-count-example{gap:.4rem}.istikhara-bead-row{gap:.35rem}.istikhara-bead-group{padding:.3rem}.istikhara-beads-choice button{flex-direction:column;gap:.45rem}}

/* Compact controls retain a full finger target in either reading direction. */
.istikhara-tool .istikhara-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.istikhara-icon-button>svg{display:block;flex-shrink:0;width:20px;height:20px;pointer-events:none}
.istikhara-counter [data-ik-count]{background:var(--green,#315b44);border-color:var(--green,#315b44);color:var(--on-accent,#fff)}
.istikhara-prep-toolbar [data-ik-prep-all][aria-pressed=true]{background:var(--pale,#e5eee2);border-color:var(--green,#315b44)}
.istikhara-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* /amal-reminders.css */
.amal-reminder-settings{margin-top:1rem;border-top:1px solid var(--line);color:var(--ink)}
.amal-reminder-settings>summary{min-height:48px;display:flex;align-items:center;font-size:.95rem;font-weight:650;cursor:pointer}
.amal-reminder-settings>div{padding:0 0 .75rem}
.amal-reminder-settings p,.amal-reminder-settings small{font-size:.875rem;line-height:1.65;color:var(--muted)}
.amal-reminder-toggle{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px}
.amal-reminder-toggle strong,.amal-reminder-toggle small{display:block}.amal-reminder-toggle input{width:22px;height:22px;accent-color:var(--green);flex:0 0 22px}
.amal-reminder-sound-controls{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 5px}.amal-reminder-sound-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--green);font:650 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}.amal-reminder-sound-controls button[aria-pressed=true]{background:var(--pale);border-color:var(--green)}.amal-reminder-sound-controls svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.amal-reminder-sound-controls button[aria-pressed=false] svg{opacity:.6}.amal-reminder-sound-help{display:block}.amal-reminder-sound-status[hidden]{display:none!important}
.amal-reminder-time,.amal-reminder-quiet{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.75rem 0;font-size:.9rem}
.amal-reminder-settings input[type="time"]{min-height:44px;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:.4rem .6rem;color:var(--ink);font:inherit;max-width:100%}
.amal-reminder-quiet label{display:flex;align-items:center;gap:.5rem}.amal-reminder-setting-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0 .6rem}
.amal-reminder-setting-actions button{min-height:44px;border:1px solid var(--line);border-radius:9px;padding:.6rem .8rem;background:var(--panel);color:var(--green);font:inherit;font-size:.875rem;cursor:pointer}.amal-reminder-setting-actions button:disabled{opacity:.5;cursor:default}
.amal-reminder-popup{position:fixed;z-index:1100;inset-inline-end:22px;bottom:calc(24px + env(safe-area-inset-bottom));width:min(410px,calc(100vw - 32px));box-sizing:border-box;display:grid;grid-template-columns:48px minmax(0,1fr);gap:1rem;padding:24px;border:1px solid var(--green);border-bottom:5px solid var(--green);border-radius:22px;background:var(--panel,#fffdf8);color:var(--ink,#233c2c);box-shadow:0 14px 48px #10281c30}
.amal-reminder-close{position:absolute;inset-inline-end:5px;top:5px;width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}.amal-reminder-icon{width:48px;height:56px;display:grid;place-items:center;background:var(--pale,#eef4e9);border-radius:16px;color:var(--green);font-size:30px}
.amal-reminder-copy small{font-size:.75rem;letter-spacing:.07em;color:var(--green);padding-inline-end:22px;display:block}.amal-reminder-copy h2{font-size:1.15rem;line-height:1.4;margin:.35rem 0}.amal-reminder-copy p{font-size:1rem;font-weight:650;line-height:1.5;margin:.3rem 0}.amal-reminder-copy>span{display:block;font-size:.875rem;color:var(--muted);line-height:1.6}
.amal-reminder-actions{grid-column:1/-1;display:flex;gap:.6rem}.amal-reminder-actions a,.amal-reminder-actions button{flex:1;display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;min-height:46px;padding:.5rem .7rem;font:inherit;font-size:.875rem;border-radius:11px;cursor:pointer}.amal-reminder-actions a{background:var(--green);border:1px solid var(--green);color:white;font-weight:700}.amal-reminder-actions button{border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.amal-reminder-popup [data-amal-reminder-popup-status]{grid-column:1/-1;font-size:.875rem;line-height:1.6;margin:0}.amal-reminder-popup [hidden],.amal-reminder-status[hidden]{display:none!important}
.amal-reminder-popup :focus-visible,.amal-reminder-settings :focus-visible{outline:3px solid var(--gold,#af8b45);outline-offset:3px}
@media(max-width:600px){.amal-reminder-popup{inset-inline-end:16px;bottom:calc(88px + env(safe-area-inset-bottom));padding:20px;gap:.8rem}.amal-reminder-quiet>span{width:100%}}

.amal-reminder-settings>summary{display:flex;align-items:center;gap:9px;min-height:44px}.amal-reminder-settings>summary svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.amal-reminder-settings>summary::after{content:"+";font-size:22px;margin-inline-start:auto}.amal-reminder-settings[open]>summary::after{content:"−"}


/* /today-tools.css */
/* Today: one Quran action, four daily shortcuts and an accessible tools sheet. */
[data-tool-tone]{--tool-colour:#116858;--tool-soft:#e4f2eb}
[data-tool-tone=blue]{--tool-colour:#285b9a;--tool-soft:#e9f1ff}
[data-tool-tone=violet]{--tool-colour:#71529c;--tool-soft:#f0eafa}
[data-tool-tone=amber]{--tool-colour:#925b13;--tool-soft:#fff0d7}
.dark [data-tool-tone]{--tool-colour:#a4e4ce;--tool-soft:#214b40}
.dark [data-tool-tone=blue]{--tool-colour:#b7d5ff;--tool-soft:#243e5d}
.dark [data-tool-tone=violet]{--tool-colour:#ddc4ff;--tool-soft:#403253}
.dark [data-tool-tone=amber]{--tool-colour:#f5d398;--tool-soft:#514126}
.today-quick-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:1.1rem 0 1.8rem;padding:0;border:0;background:none}
.today-quick-tools :is(a,button){box-sizing:border-box;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:600 1rem/1.4 var(--font-ui,system-ui,sans-serif);text-decoration:none;display:flex;align-items:center;justify-content:flex-start;gap:.8rem;min-height:82px;border-radius:18px;padding:.9rem 1rem;cursor:pointer}
.today-quick-tools :is(a,button)>span{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:16px;background:var(--tool-soft);color:var(--tool-colour)}
.today-quick-tools :is(a,button)>strong{font-size:1rem;font-weight:700;line-height:1.4}
.today-quick-tools :is(a,button):hover{background:color-mix(in srgb,var(--tool-soft) 35%,var(--panel));border-color:var(--tool-colour)}
.today-quick-tools svg{width:26px;height:26px;stroke-width:1.9}
.today-quick-tools [data-today-tools=all]{border-color:color-mix(in srgb,var(--green) 32%,var(--line))}
.today-quick-tools [data-today-tools=all]>span{color:#fff;background:#176653}
.dark .today-quick-tools [data-today-tools=all]>span{color:#163c32;background:#a4e4ce}
.today-tools-sheet{box-sizing:border-box;width:min(46rem,calc(100vw - 2rem));max-width:none;max-height:min(86dvh,53rem);padding:0;border:1px solid var(--line);border-radius:26px;background:var(--panel);color:var(--ink);box-shadow:0 18px 80px #0003;overflow:hidden;font:400 1rem/1.5 var(--font-ui,system-ui,sans-serif)}
.today-tools-sheet.is-expanded{height:95dvh;max-height:95dvh}
.today-tools-sheet[open]{display:flex;flex-direction:column}
.today-tools-sheet::backdrop{background:#102f2b80;backdrop-filter:blur(4px)}
.today-sheet-handle{border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);background:color-mix(in srgb,var(--green) 4%,var(--panel));color:var(--muted);min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 12px;width:100%;cursor:ns-resize;touch-action:none;flex-shrink:0}
.today-sheet-handle>span{display:block;width:42px;height:4px;border-radius:5px;background:currentColor;opacity:.6}
.today-sheet-handle>small{font:500 .8125rem/1.4 var(--font-ui,system-ui,sans-serif)}
.today-sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.4rem;border-bottom:1px solid var(--line);flex-shrink:0}
.today-sheet-heading h2{font:750 1.6rem/1.3 var(--font-ui,system-ui,sans-serif);letter-spacing:-.02em;margin:0 0 .3rem}
.today-sheet-heading p{font-size:.9375rem;color:var(--muted);margin:0}
.today-sheet-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:var(--panel);cursor:pointer}
.today-sheet-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:1.15rem 1.4rem 1.5rem;scrollbar-gutter:stable}
.today-tool-group+.today-tool-group{margin-top:1.5rem}
.today-tool-group h3{margin:0 0 .65rem;font-size:.9375rem;line-height:1.5;font-weight:750;color:var(--ink)}
.today-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.today-tool-tile{display:flex;align-items:center;gap:.75rem;min-height:86px;padding:.8rem;border:1px solid var(--line);border-radius:16px;text-decoration:none;background:var(--panel);color:var(--ink);text-align:start;font:inherit;cursor:pointer}
.today-tool-tile:hover{border-color:var(--tool-colour);background:color-mix(in srgb,var(--tool-soft) 32%,var(--panel))}
.today-tool-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:var(--tool-soft);color:var(--tool-colour)}
.today-tool-icon svg{width:26px;height:26px;stroke-width:1.9}
.today-tool-tile>span:last-child{min-width:0}
.today-tool-tile strong{display:block;font-size:1rem;font-weight:700;line-height:1.4}
.today-tool-tile small{display:block;font-size:.875rem;line-height:1.5;color:var(--muted);margin-top:.25rem}
.today-sheet-assistant{display:flex;align-items:center;gap:.7rem;width:100%;min-height:50px;margin-top:1.3rem;padding:.65rem .8rem;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--green);font:650 .9375rem var(--font-ui,system-ui,sans-serif);cursor:pointer}.today-sheet-assistant svg{width:24px;height:24px}
.today-sheet-back{min-height:46px;margin-top:1rem;padding:.6rem 1rem;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--green);font:650 1rem var(--font-ui,system-ui,sans-serif);cursor:pointer}
:is(.today-quick-tools,.today-tools-sheet) :is(a,button):focus-visible{outline:3px solid var(--green);outline-offset:3px}
/* Strong reading hierarchy, with quieter optional controls below it. */
.calm-dashboard .today-heading{margin-bottom:1.15rem}
.calm-dashboard .today-heading h1{font-size:clamp(1.8rem,3vw,2.4rem);font-weight:800;margin-block:.25rem .4rem}
.calm-dashboard .today-heading p{margin-block:0;font-size:1rem}
.calm-dashboard .daily-quran-first{padding:0;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));border-radius:24px;background:var(--panel);margin-bottom:0;overflow:hidden}
.daily-quran-focus{padding:1.4rem 1.6rem 1.25rem;background:#114f45;color:#fff}
.daily-quran-first .daily-topline{margin-bottom:1rem;align-items:center}
.daily-quran-first .daily-eyebrow{display:flex;align-items:center;gap:.65rem;color:#dbebd9;font-size:.8125rem;letter-spacing:.09em;max-width:none;padding:0}
.daily-eyebrow img{display:block;border-radius:12px;flex:none;width:40px;height:40px}
.daily-quran-first .daily-streak{background:#ffffff14;color:#fff1cd;border:1px solid #ffffff24;font-size:.875rem;padding:.4rem .65rem}
.daily-quran-first .daily-streak svg{color:#efd49e;width:18px;height:18px}
.daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 104px;gap:1rem;align-items:center}
.daily-quran-first .daily-copy h2{font-size:clamp(1.65rem,2.6vw,2.15rem);font-weight:800;color:#fff;letter-spacing:-.025em;margin-bottom:.4rem}
.daily-quran-first .daily-copy p{font-size:1rem;line-height:1.6;color:#d5e8df;margin-bottom:1rem;max-width:42ch}
.daily-quran-first .daily-primary{gap:.6rem;box-shadow:none;border-radius:13px;min-height:48px;padding:.7rem 1.1rem;font-size:1rem;font-weight:750;background:#f4dfad;border:1px solid #f4dfad;color:#193f35}
.daily-quran-first .daily-primary:hover{background:#ffeccb;color:#193f35}
.daily-quran-first .daily-primary svg{width:22px;height:22px}
.daily-quran-first .daily-ring{display:grid;width:104px;height:104px;padding:6px;background:conic-gradient(#f0d79e var(--daily-progress,0%),#ffffff29 0)}
.daily-quran-first .daily-ring>span{background:#114f45;color:#fff}
.daily-quran-first .daily-ring strong{font-size:1.8rem;color:#fff;direction:ltr;unicode-bidi:isolate-override}
.daily-quran-first .daily-ring strong small{color:#d5e8df;font-size:.9375rem;unicode-bidi:isolate-override}
.daily-quran-first bdi[dir=ltr]{unicode-bidi:isolate-override}
.daily-quran-first .daily-ring em{font-size:.8125rem;color:#e6eee9;line-height:1.4}
.daily-quran-first .daily-ring.is-large-total strong{font-size:1.25rem;line-height:1.1;text-align:center}.daily-quran-first .daily-ring.is-large-total strong small{display:block;font-size:.75rem;line-height:1.2;margin-top:2px}
.daily-quran-first .daily-reward{margin:1rem 0 0;background:#fff3d6;color:#4b3b18;animation:none}
.daily-week-strip{display:flex;align-items:center;gap:1.5rem;padding:1.2rem 0 0;margin-top:1.2rem;border-top:1px solid #ffffff2b}
.daily-week-strip>span{color:#ecf3ed;font-size:.875rem;font-weight:650;white-space:nowrap}
.daily-week-strip>span>small{display:block;color:#c9dfd4;font-size:.8125rem;font-weight:400;margin-top:.15rem}
.daily-quran-first .daily-week{max-width:450px;width:100%;margin:0;padding:0}
.daily-quran-first .daily-day{position:relative;font-size:.8125rem;gap:5px;color:#d5e8df}
.daily-quran-first .daily-day b{width:32px;height:32px;font-size:.875rem;color:#e8f1eb;background:#ffffff0c;border:1px solid #ffffff1f;line-height:1}
.daily-quran-first .daily-day>i{position:absolute;bottom:-5px;inset-inline-end:calc(50% - 20px);display:grid;place-items:center;width:14px;height:14px;line-height:1;font-style:normal;border-radius:50%;background:#114f45}.daily-quran-first .daily-day>i:empty{display:none}
.daily-quran-first .daily-day>i svg{width:13px;height:13px;color:#f5dfaa;stroke-width:2.8}
.daily-quran-first .daily-day.is-active b{background:#d7eddc;color:#153e32;border-color:#d7eddc;font-weight:750}
.daily-quran-first .daily-day.is-today b{outline:2px solid #f0d79e;outline-offset:2px;color:#fff;background:#ffffff19}
.daily-quran-first .daily-day.is-today.is-active b{color:#153e32;background:#f0d79e}
.daily-quran-first .daily-day.is-today>span{color:#fff;font-weight:750}
.daily-quran-first>.daily-more{padding:0 1.35rem;border-top:0}
.daily-quran-first .daily-more>summary{font-size:.9375rem;padding-top:0;min-height:54px;color:var(--green)}
.daily-quran-first .daily-more>summary>span{display:grid;place-items:center}
.daily-quran-first .daily-more>summary svg{width:21px;height:21px}
.daily-quran-first .daily-more-inner{padding-bottom:1.25rem}
.daily-quran-first .daily-study-path{grid-template-columns:repeat(2,minmax(0,1fr));margin-block:0 1rem}
.daily-quran-first .daily-study-path a{flex-direction:row;text-align:start}
.daily-quran-first .daily-study-path .daily-path-icon{display:grid}
.daily-quran-first>.daily-storage-warning{margin-inline:1rem}
.daily-quran-focus :is(a,button):focus-visible{outline:3px solid #f5e1b5;outline-offset:4px}
.dark .daily-quran-focus{background:#153e36}
.dark .daily-quran-first .daily-ring>span{background:#153e36}
.dark .daily-quran-first .daily-primary{background:#f4dfad;border-color:#f4dfad;color:#193f35}
/* Supporting content uses the same clear symbols and reading size. */
:is(.devotion-theme-home nav,.taqibat-prayers,.taqibat-more,.taqibat-heading,.taqibat-quran,.today-quick-tools,.today-tool-grid) a,.taqibat-hub>a.devotion-topic-back,.devotion-routine-starter>a{text-decoration:none}
.devotion-theme-home nav a{min-height:44px;display:inline-flex;align-items:center;padding:.45rem .65rem;border-radius:10px;color:var(--green);font-weight:650;font-size:.875rem;background:color-mix(in srgb,var(--green) 7%,var(--panel))}
.taqibat-guide-link{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.taqibat-more a{min-height:44px;display:inline-flex;align-items:center;padding:.45rem .7rem;border:1px solid var(--line);border-radius:10px}
.devotion-routine-reading>strong{display:block;font-size:1rem;font-weight:700;line-height:1.4}
.devotion-routine-row.is-done .devotion-routine-reading>strong{color:var(--green)}
.devotion-routine-starter-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;color:#116858;background:#e4f2eb}
.devotion-routine-starter-icon svg{width:27px;height:27px}
.devotion-routine-starter{display:flex;align-items:center;gap:14px}
.devotion-routine-starter p{margin-bottom:0}
.devotion-routines-heading>h2,.calm-dashboard .devotion-theme-home h2{font-size:1.2rem;font-weight:750}
.devotion-routine-identity .devotion-routine-icon{width:40px;height:40px;border-radius:12px}
.devotion-routine-card h3,.devotion-routine-reading>a{font-size:1rem}
.devotion-routine-reading small{font-size:.875rem}
.devotion-routine-card>header button{min-height:44px;font-size:.875rem}
.devotion-routine-completed>summary{color:var(--green);font-weight:650}
.dark .devotion-routine-starter-icon{background:#214b40;color:#a4e4ce}
[dir=rtl] .daily-quran-first .daily-eyebrow{letter-spacing:0}
[dir=rtl] .today-sheet-heading h2{letter-spacing:0}
@media(max-width:850px){
 .today-quick-tools :is(a,button){flex-direction:column;justify-content:center;gap:.45rem;min-height:98px;padding:.65rem .3rem}
 .today-quick-tools :is(a,button)>strong{font-size:.9375rem;min-height:2.8em;display:flex;align-items:center;justify-content:center;text-align:center}
}
@media(max-width:650px){
 .today-tools-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-height:82dvh;border-radius:24px 24px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom,0px)}
 .today-tools-sheet.is-expanded{max-height:96dvh;height:96dvh}
 .today-sheet-heading{padding:.85rem 1rem}
 .today-sheet-heading h2{font-size:1.4rem}
 .today-sheet-heading p{font-size:.9375rem}
 .today-sheet-body{padding:1rem}
 .today-tool-tile{flex-direction:column;align-items:flex-start;gap:.65rem;min-height:128px;padding:.85rem}
 .today-tool-tile small{font-size:.875rem;line-height:1.5}
 .today-tool-icon{width:43px;height:43px;border-radius:13px}
 .today-tool-grid{gap:.6rem}
 .today-quick-tools{gap:.45rem;margin:.85rem 0 1.5rem}
 .today-quick-tools :is(a,button){min-height:92px;border-radius:16px;padding:.65rem .2rem}
 .today-quick-tools :is(a,button)>span{width:42px;height:42px;border-radius:14px}
 .today-quick-tools :is(a,button)>strong{font-size:.875rem}
 .today-quick-tools svg{width:24px;height:24px}
 .calm-dashboard .today-heading{margin-bottom:1rem}
 .calm-dashboard .today-heading>.eyebrow{display:none}.calm-dashboard .today-heading h1{font-size:1.85rem;line-height:1.2;margin:0 0 .3rem}
 .calm-dashboard .today-heading p{font-size:1rem;line-height:1.5}
 .calm-dashboard .daily-quran-first{padding:0;border-radius:21px}
 .daily-quran-focus{padding:1.1rem 1.05rem .9rem}
 .daily-quran-first .daily-topline{gap:.6rem;margin-bottom:1rem}
 .daily-quran-first .daily-eyebrow{gap:.45rem;font-size:.75rem;letter-spacing:.04em}
 .daily-eyebrow img{width:32px;height:32px;border-radius:10px}
 .daily-quran-first .daily-streak{font-size:.8125rem;padding:.35rem .5rem;gap:.3rem}
 .daily-quran-first .daily-streak strong{font-size:.9375rem}
 .daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 80px;gap:.7rem}
 .daily-quran-first .daily-copy h2{font-size:1.55rem;line-height:1.3;margin-bottom:.4rem}
 .daily-quran-first .daily-copy p{font-size:.9375rem;line-height:1.5;margin-bottom:1rem}
 .daily-quran-first .daily-primary{font-size:.9375rem;min-height:48px;padding:.65rem .85rem;gap:.45rem}
 .daily-quran-first .daily-ring{width:80px;height:80px;padding:5px;margin:0}
 .daily-quran-first .daily-ring strong{font-size:1.45rem}
 .daily-quran-first .daily-ring strong small{font-size:.8125rem}
 .daily-quran-first .daily-ring em{font-size:.75rem}
 .daily-week-strip{display:block;padding-top:.85rem;margin-top:1rem}
 .daily-week-strip>span{display:flex;align-items:center;justify-content:space-between;margin-bottom:.65rem;font-size:.8125rem}
 .daily-week-strip>span>small{font-size:.8125rem;margin:0}
 .daily-quran-first .daily-week{max-width:none;gap:3px}
 .daily-quran-first .daily-day{font-size:.75rem;gap:4px}
 .daily-quran-first .daily-day b{width:29px;height:29px;font-size:.8125rem}
 .daily-quran-first>.daily-more{padding:0 1rem}
 .daily-quran-first .daily-more>summary{font-size:.875rem;min-height:52px}
 .devotion-theme-home>header{flex-wrap:wrap;gap:.5rem}
 .devotion-theme-home nav{gap:.35rem}
 .devotion-theme-home nav a{padding:.35rem .5rem}
}
@media(max-width:360px){
 .daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 70px;gap:.5rem}
 .daily-quran-first .daily-ring{width:70px;height:70px}
 .daily-quran-first .daily-copy h2{font-size:1.4rem}
 .daily-quran-first .daily-primary{padding-inline:.65rem;font-size:.875rem;width:auto}
 .daily-quran-first .daily-eyebrow{font-size:.75rem;letter-spacing:0}
 .daily-quran-first .daily-streak{font-size:.75rem}
 .daily-eyebrow img{width:28px;height:28px}
 .today-quick-tools{gap:.3rem}
 .today-quick-tools :is(a,button)>strong{font-size:.875rem}
 .today-tool-tile{padding:.7rem}
 .today-tool-tile strong{font-size:.9375rem}
}
@media(prefers-reduced-motion:no-preference){
 .today-tools-sheet[open]{animation:today-sheet-arrive .18s ease-out}
 @keyframes today-sheet-arrive{from{opacity:.5;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){.today-tools-sheet::backdrop{backdrop-filter:none}}

body:has(.calm-dashboard)>.aa-launch{display:none}

/* v129 · Reach the Quran and routines without scrolling past supporting tools. */
.today-practice-dashboard .today-heading{margin-bottom:8px}
.today-practice-dashboard .today-heading h1{font-family:var(--font-ui,system-ui,sans-serif);font-size:clamp(1.6rem,3vw,2rem);font-weight:800;line-height:1.25;margin:0}
.today-practice-dashboard .daily-quran-focus{padding:18px 22px 16px}
.today-practice-dashboard .daily-topline{margin-bottom:9px}
.today-practice-dashboard .daily-eyebrow img{width:30px;height:30px;border-radius:9px}
.today-practice-dashboard .daily-copy h2{font-size:clamp(1.5rem,2.4vw,1.85rem);line-height:1.3;margin-top:0;margin-bottom:5px}
.today-practice-dashboard .daily-copy p{margin-top:0;margin-bottom:10px;font-size:.9375rem;line-height:1.5}
.today-practice-dashboard .daily-week-strip{margin-top:14px;padding-top:12px;gap:14px}
.today-practice-dashboard .daily-ring{width:88px;height:88px}
.today-practice-dashboard .daily-main{grid-template-columns:minmax(0,1fr) 88px}
.today-practice-dashboard .daily-more>summary{min-height:44px;padding-block:9px}
.today-practice-dashboard .today-quick-tools{margin:12px 0 20px;gap:8px}
.today-practice-dashboard .today-quick-tools :is(a,button){min-height:70px;padding:10px 12px}
.today-practice-dashboard .today-quick-tools :is(a,button)>span{width:40px;height:40px;border-radius:13px}
.today-explore-practices{border-top:1px solid var(--line);margin:22px 0 12px}
.today-explore-practices>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:14px;font-weight:700;font-size:.9375rem;list-style:none;cursor:pointer}
.today-explore-practices>summary::-webkit-details-marker{display:none}
.today-explore-practices>summary svg{width:20px;height:20px;color:var(--green)}
.today-explore-practices[open]>summary svg{transform:rotate(45deg)}
.practice-study-links .source-index-row>span>svg{width:24px;height:24px;vertical-align:middle;margin-inline-end:10px;color:var(--green);stroke-width:2}
.practice-study-links .source-index-row{min-height:78px;border-radius:14px}
.today-practice-dashboard .quiet-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 20px}
.today-practice-dashboard .quiet-footer>a{min-height:36px;display:inline-flex;align-items:center;font-size:.8125rem}
@media(max-width:560px){
 .today-practice-dashboard .today-heading h1{font-size:1.6rem}
 .today-practice-dashboard .daily-quran-focus{padding:14px 16px 13px}
 .today-practice-dashboard .daily-topline{margin-bottom:11px}
 .today-practice-dashboard .daily-eyebrow{font-size:.6875rem;gap:7px;letter-spacing:.05em}
 .today-practice-dashboard .daily-streak{font-size:.75rem;padding:5px 8px;gap:4px}
 .today-practice-dashboard .daily-main{grid-template-columns:minmax(0,1fr) 70px;gap:8px}
 .today-practice-dashboard .daily-ring{width:70px;height:70px;padding:4px}
 .today-practice-dashboard .daily-ring strong{font-size:1.45rem}
 .today-practice-dashboard .daily-ring em{font-size:.6875rem}
 .today-practice-dashboard .daily-copy h2{font-size:1.4rem}
 .today-practice-dashboard .daily-copy p{font-size:.8125rem;margin-bottom:9px}
 .today-practice-dashboard .daily-primary{min-height:44px;padding:9px 12px;font-size:.875rem}
 .today-practice-dashboard .daily-week-strip{padding-top:10px;margin-top:12px;gap:8px}
 .today-practice-dashboard .daily-week-strip>span{font-size:.75rem}
 .today-practice-dashboard .daily-week-strip>span>small{font-size:.6875rem}
 .today-practice-dashboard .daily-day{font-size:.6875rem;gap:4px}
 .today-practice-dashboard .daily-day b{width:26px;height:26px;font-size:.75rem}
 .today-practice-dashboard .daily-more>summary{font-size:.8125rem;padding:10px 14px}
 .today-practice-dashboard .today-quick-tools :is(a,button){padding:9px 4px;gap:5px;border-radius:14px;min-height:86px}
 .today-practice-dashboard .today-quick-tools :is(a,button)>span{width:35px;height:35px;border-radius:11px}
 .today-practice-dashboard .today-quick-tools :is(a,button)>strong{font-size:.75rem}
 .today-practice-dashboard .today-quick-tools svg{width:22px;height:22px}
}
@media(max-width:350px){.today-practice-dashboard .daily-eyebrow img{display:none}.today-practice-dashboard .daily-copy h2{font-size:1.25rem}.today-practice-dashboard .daily-main{grid-template-columns:minmax(0,1fr) 62px}.today-practice-dashboard .daily-ring{width:62px;height:62px}.today-practice-dashboard .daily-ring.is-large-total strong{font-size:1rem}.today-practice-dashboard .daily-primary{padding-inline:9px;font-size:.8125rem}.today-practice-dashboard .daily-week-strip>span>small{font-size:.6875rem}}
/* The card title belongs beside the emblem, rather than repeating it below. */
.daily-quran-first .daily-eyebrow h2{font-size:1.45rem;line-height:1.35;letter-spacing:-.025em;font-weight:800;color:#fff;margin:0;text-transform:none}
.today-practice-dashboard .daily-topline{margin-bottom:12px}
.today-practice-dashboard .daily-copy p{font-size:1rem;font-weight:500}
@media(max-width:560px){.daily-quran-first .daily-eyebrow h2{font-size:1.2rem;letter-spacing:-.02em}.today-practice-dashboard .daily-week-strip{flex-direction:row}.today-practice-dashboard .daily-week-strip>span{display:none}.today-practice-dashboard .daily-copy p{font-size:.875rem}.today-practice-dashboard .daily-topline{margin-bottom:9px}.today-practice-dashboard .daily-main{align-items:center}}
[dir=rtl] .daily-quran-first .daily-eyebrow h2{letter-spacing:0}

/* v130: age-specific Today pages put learning before adult practice management. */
.child-home-identity{display:block;color:#27694f;font-size:.875rem;font-weight:800;line-height:1.5;margin-bottom:6px}
.young-home-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 10px}
.young-home-section-title h2{font-size:1.2rem;line-height:1.5;margin:0}
.young-home-section-title>button{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--panel);color:var(--green);font:650 .875rem/1.4 var(--font-ui,system-ui,sans-serif);cursor:pointer}
.young-home-section-title>button svg{width:21px;height:21px;flex:none}
.child-learning-home .child-picture-shelves{margin-top:0}
.young-practice-drawer{margin:24px 0 18px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel);color:var(--ink)}
.young-practice-drawer>summary{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 16px;list-style:none;cursor:pointer;scroll-margin-top:calc(var(--appbar-height,72px) + 16px)}
.young-practice-drawer>summary::-webkit-details-marker{display:none}
.young-practice-drawer>summary>span:nth-child(2){min-width:0;flex:1}
.young-practice-drawer strong,.young-practice-drawer small{display:block}
.young-practice-drawer>summary strong{font-size:1rem;line-height:1.5;font-weight:750}
.young-practice-drawer>summary small{font-size:.875rem;line-height:1.5;color:var(--muted);margin-top:2px}
.young-practice-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:color-mix(in srgb,var(--green) 12%,var(--panel));color:var(--green)}
.young-practice-icon svg{width:26px;height:26px}
.young-practice-plus{font-size:1.6rem;line-height:1;width:24px;text-align:center;color:var(--green);flex:none}
.young-practice-drawer[open] .young-practice-plus{transform:rotate(45deg)}
.young-practice-body{padding:12px clamp(10px,2vw,20px) 16px;border-top:1px solid var(--line)}
.young-practice-body .daily-practice{margin-top:0}
.young-practice-drawer>summary:focus-visible,.young-home-section-title>button:focus-visible{outline:3px solid var(--green);outline-offset:-4px}
.dark .child-home-identity{color:#a6dfc6}
@media(max-width:480px){
 .child-learning-home.children-home .child-start h1{font-size:1.5rem;line-height:1.25}
 .child-learning-home.children-home .child-start p{font-size:1rem;line-height:1.45}
 .child-learning-home .child-start .children-wave{align-self:center}
 .child-learning-home .child-start .children-wave img{width:74px;height:74px}
 .child-learning-home .children-hero-start{min-height:44px;font-size:.9375rem;padding:10px 12px;gap:6px}
 .child-learning-home.children-home-v56 .children-path{min-height:80px;grid-template-columns:64px minmax(0,1fr) 24px}
 .child-learning-home.children-home-v56 .children-path>img{min-height:80px}
 .child-learning-home.children-home-v56 .children-path-copy{padding:9px 10px}
 .child-learning-home .children-path-copy strong{font-size:1.0625rem;line-height:1.4}
 .child-learning-home .children-path-copy small{font-size:.875rem;line-height:1.45}
 .young-home-section-title{gap:8px;margin-top:20px}
 .young-home-section-title h2{font-size:1.0625rem}
 .young-home-section-title>button{padding:8px;font-size:.875rem}
 .young-practice-drawer>summary{padding:12px;gap:9px}
 .young-practice-icon{width:36px;height:36px;border-radius:11px}
 .young-practice-icon svg{width:22px;height:22px}
}

/* v130 audit: the picture shelf used an undefined --card fallback (#fff)
   while inheriting night-mode text. Keep its surface and text on one theme. */
body[data-profile="kids"].dark .child-learning-home .child-picture-shelves>a{background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-profile="kids"].dark .child-learning-home .child-picture-shelves strong{color:var(--ink)}
body[data-profile="kids"].dark .child-learning-home .child-picture-shelves small{color:var(--muted)}
/* Keep learning paths clear; Quran help remains available in the reader. */
body:has(.child-learning-home) .aa-launch,body:has(.youth-studio) .aa-launch{display:none}

/* Keep personal practice ahead of secondary shortcuts; timetable stays one tap away. */
.today-practice-dashboard .today-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.today-practice-dashboard .today-heading p{flex-basis:100%}.today-prayer-times-button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:700 12px/1.35 var(--font-ui,system-ui,sans-serif)}.today-prayer-times-button svg{width:20px;height:20px}.today-prayer-times-button:focus-visible{outline:3px solid var(--accent,#ae7c32);outline-offset:3px}@media(max-width:360px){.today-prayer-times-button{padding-inline:8px;font-size:11px}}

.today-counter-group+.today-counter-group{padding-top:1rem;border-top:1px solid var(--line)}
.today-tool-description,.today-counter-note{margin:.35rem 0 .7rem;color:var(--muted);font-size:.875rem;line-height:1.6}
.today-counter-more{display:inline-flex;align-items:center;min-height:44px;margin-top:.25rem;color:var(--green);font-size:.875rem;font-weight:650;text-underline-offset:.2em}
.today-counter-note a{color:var(--green);font-weight:650;text-underline-offset:.2em}
.worship-obligation-shortcut{margin-block:1rem}
.worship-obligation-shortcut a span{display:grid;gap:.25rem}.worship-obligation-shortcut small{color:var(--muted);font-weight:400}
.dark .today-counter-more,.dark .today-counter-note a{color:#c9dfbd}

.worship-counter-door {
  display:flex; align-items:center; gap:.7rem; min-block-size:44px; box-sizing:border-box;
  color:var(--green); font:inherit; text-decoration:none; text-align:start;
}
.worship-counter-door {
  margin-block:.6rem 1rem; padding:.6rem .9rem; background:var(--panel); cursor:pointer;
  border:1px solid var(--line); border-radius:.8rem;
}
.worship-counter-door svg { inline-size:1.3rem; block-size:1.3rem; flex:none; }
.worship-counter-door :is(strong,small) { display:block; line-height:1.5; }
.worship-counter-door small,.today-counter-rows small { color:var(--muted); font-size:.83rem; }
.today-counter-chooser label { display:block; margin-block:.1rem .35rem; font-weight:650; }
.today-counter-chooser select {
  min-block-size:44px; max-inline-size:100%; inline-size:100%; box-sizing:border-box;
  border:1px solid var(--line); border-radius:.6rem; background:var(--panel); color:var(--ink);
  font:inherit; padding:.4rem .7rem;
}
.today-counter-rows { padding:0; margin:.4rem 0; list-style:none; }
.today-counter-rows li+li { border-block-start:1px solid var(--line); }
.today-counter-rows a {
  display:flex; justify-content:space-between; align-items:center; gap:.7rem; min-block-size:44px;
  padding:.38rem .2rem; box-sizing:border-box; color:var(--ink); text-decoration:none;
}
.today-counter-rows strong,.today-counter-rows small { display:block; overflow-wrap:anywhere; line-height:1.42; }
.today-counter-rows i { inline-size:.42rem; block-size:.42rem; margin-inline-end:.3rem; flex:none; border-block-start:1.5px solid; border-inline-end:1.5px solid; transform:rotate(45deg); }
[dir=rtl] .today-counter-rows i { transform:rotate(-45deg); }
.today-counter-rest>summary { cursor:pointer; min-block-size:44px; padding-block:.65rem; box-sizing:border-box; color:var(--green); font-weight:650; }
.today-counter-chooser :is(select,summary,a):focus-visible,.worship-counter-door:focus-visible { outline:2px solid var(--green); outline-offset:2px; }

.guided-counter-directory { margin-block:.65rem; border-block-start:1px solid var(--line); }
.guided-counter-directory summary { cursor:pointer; min-block-size:44px; box-sizing:border-box; padding-block:.6rem; color:var(--green); }
.guided-counter-directory>summary { font-weight:650; }
.guided-counter-body { padding-block:.2rem .65rem; }
.guided-counter-body label { display:grid; gap:.35rem; font-size:.9rem; font-weight:600; }
.guided-counter-body input { inline-size:100%; min-block-size:44px; padding:.45rem .65rem; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:.6rem; box-sizing:border-box; font:inherit; }
.guided-counter-body [role=status],.guided-counter-row small { display:block; color:var(--muted); font-size:.83rem; line-height:1.55; }
.guided-counter-row { padding-block:.3rem; border-block-start:1px solid var(--line); }
.guided-counter-row>a,.guided-counter-body button { display:inline-flex; align-items:center; min-block-size:44px; color:var(--green); font:inherit; font-weight:650; }
.guided-counter-row>a { color:var(--ink); text-decoration:none; }
.guided-counter-row summary { font-size:.85rem; }
.guided-counter-row ul { margin:.2rem 0; padding-inline-start:1.3rem; }
.guided-counter-body button { padding:.3rem .65rem; border:1px solid var(--line); border-radius:.6rem; background:var(--panel); cursor:pointer; }
.guided-counter-directory :is(summary,input,a,button):focus-visible { outline:2px solid var(--green); outline-offset:2px; }

.today-counter-rows a>.duration-badge,.today-counter-rows .sc-time-left,.today-counter-rows .sc-count-done{align-self:center;flex:none}

/* Tools are grouped by intent. One family opens at a time. */
.today-tools-sheet .today-tool-fold{border-block-end:1px solid var(--line,#cbd8cf);margin:0}
.today-tool-fold>summary{display:flex;align-items:center;gap:.7rem;min-block-size:54px;padding:.25rem .2rem;cursor:pointer;list-style:none}
.today-tool-fold>summary::-webkit-details-marker{display:none}
.today-tool-fold>summary>span{display:grid;place-items:center;inline-size:2.25rem;color:var(--green,#176653)}
.today-tool-fold>summary>strong{flex:1;font-size:1rem}
.today-tool-fold>summary>svg{inline-size:1.05rem;block-size:1.05rem}
.today-tool-fold[open]>summary>svg{transform:rotate(180deg)}
.today-tool-fold .today-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem .6rem;padding-block:.1rem .75rem}
.today-tool-fold .today-tool-tile{display:flex;align-items:center;gap:.45rem;min-block-size:48px;padding:.3rem;border:0;border-radius:.3rem;background:transparent;text-align:start;box-shadow:none}
.today-tool-fold .today-tool-tile strong{font-size:.9375rem;line-height:1.5}
.today-tool-fold .today-tool-icon{inline-size:1.6rem;block-size:1.6rem;background:transparent;flex:none}
.today-counter-rows[hidden]{display:none!important}
.today-counter-pages{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.today-counter-pages>button{min-block-size:44px;padding:.25rem .7rem;border:0;border-radius:.45rem;background:transparent;color:var(--green,#176653);font:600 .9375rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.today-counter-pages>button:disabled{opacity:.45;cursor:default}
.today-counter-pages output{font-variant-numeric:tabular-nums;color:var(--muted,#52685e)}
.today-tool-fold summary:focus-visible,.today-counter-pages button:focus-visible{outline:3px solid var(--focus-ring,#936500);outline-offset:2px}
@media(max-width:360px){.today-tool-fold .today-tool-grid{grid-template-columns:minmax(0,1fr)}}

.today-counter-rows .counter-choice-art{display:block;flex:0 0 40px;inline-size:40px;block-size:40px;object-fit:contain}
.today-counter-rows .counter-choice-art+span{min-inline-size:0;flex:1}
.child-routine {--cr-green:#266b4e;--cr-ink:#203d30;--cr-soft:#536b5d;--cr-line:#ceddce;--cr-paper:#fff;--cr-wash:#eff6ed;max-inline-size:48rem;margin-inline:auto;padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--cr-line);border-radius:1.35rem;background:var(--cr-paper);color:var(--cr-ink)}
.child-routine :is(a,summary) {touch-action:manipulation}
.child-routine :is(a,summary):focus-visible,.child-routine-entry:focus-visible {outline:3px solid #a06812;outline-offset:3px}
.child-routine-heading {display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.child-routine-heading>div {min-inline-size:0}
.child-routine-heading :is(h1,h2) {margin:0;font-size:clamp(1.35rem,3vw,1.65rem);line-height:1.4}
.child-routine-heading p {margin:.4rem 0 0;color:var(--cr-soft);font-size:1rem;line-height:1.65}
.child-routine-pal {display:block;flex:none;inline-size:4.5rem;max-inline-size:22%}
.child-routine-pal>* {max-inline-size:100%}
.child-routine-next {margin-block:1.25rem 1rem;padding:1.1rem;border-radius:1rem;background:var(--cr-wash);border:1px solid var(--cr-line)}
.child-routine-eyebrow {font-size:.875rem;color:var(--cr-soft);font-weight:600}
.child-routine-next h3 {font-size:1.2rem;line-height:1.5;margin:.35rem 0 1rem;overflow-wrap:anywhere}
.child-routine-start {display:inline-flex;justify-content:center;align-items:center;min-block-size:48px;padding:.6rem 1.2rem;border-radius:.75rem;background:var(--cr-green);color:#fff!important;font-size:1rem;font-weight:700;text-decoration:none}
.child-routine-options>summary,.child-routine-grownups>summary {display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-block-size:48px;padding:.6rem 0;list-style:none;cursor:pointer;font-size:1rem;font-weight:600}
.child-routine-options>summary::-webkit-details-marker,.child-routine-grownups>summary::-webkit-details-marker {display:none}
.child-routine-options>summary>svg {inline-size:1rem;block-size:1rem;flex:none}
.child-routine-options[open]>summary>svg {transform:rotate(180deg)}
.child-routine-options>div {display:grid;gap:.6rem;padding-block:.3rem .8rem}
.child-routine-choice,.child-routine-entry {display:flex;align-items:center;gap:.75rem;min-block-size:64px;padding:.85rem;border:1px solid var(--cr-line,var(--line,#ceddce));border-radius:.9rem;background:var(--cr-paper,var(--panel,#fff));color:var(--cr-ink,var(--ink,#203d30));text-decoration:none}
.child-routine-choice>span:first-child,.child-routine-entry>svg {flex:none;color:var(--cr-green,var(--green,#266b4e));inline-size:1.6rem}
.child-routine-choice svg {inline-size:1.6rem;block-size:1.6rem}
.child-routine-choice>span:last-child,.child-routine-entry>span {display:grid;gap:.3rem;min-inline-size:0}
.child-routine-choice strong,.child-routine-entry strong {font-size:1rem;line-height:1.5}
.child-routine-choice small,.child-routine-entry small {font-size:.875rem;line-height:1.6;color:var(--cr-soft,var(--muted,#536b5d))}
.child-routine-entry {margin-block:1rem}
.child-routine-grownups {margin-block-start:.5rem;border-block-start:1px solid var(--cr-line)}
.child-routine-grownups>summary {color:var(--cr-soft);font-size:.875rem;font-weight:500}
.child-routine-grownups p {font-size:1rem;line-height:1.7;margin:.3rem 0}
.child-routine-grownups a,.child-routine-back a {display:inline-flex;align-items:center;min-block-size:44px;color:var(--cr-green);font-size:.875rem;font-weight:600}
.child-routine-back {margin-block-end:.5rem}
.child-routine[dir=rtl] :is(h1,h2,h3,strong) {line-height:1.7}
.dark .child-routine {--cr-green:#95d6ad;--cr-ink:#e2f1e5;--cr-soft:#b8cebd;--cr-line:#45674f;--cr-paper:#21392b;--cr-wash:#2b4634}
.dark .child-routine-start {color:#173522!important}


/* /dua-prayer-routine.css */
.dua-prayer-routine{background:var(--pale);border:1px solid var(--line);border-radius:14px;padding:13px 16px;margin:2px 0 18px;font:500 13px/1.5 var(--font-ui);color:var(--ink)}
.dua-prayer-routine-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dua-prayer-routine-top label{display:flex;align-items:center;gap:8px;font-weight:700}.dua-prayer-routine select{border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:9px 28px 9px 10px;min-height:40px;font:inherit}.dua-prayer-routine-top strong{font-size:12px;color:var(--green);margin-inline-end:auto}.dua-prayer-routine button,.dua-prayer-passage-tools button{font:600 12px/1.3 var(--font-ui);border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-height:40px;background:var(--panel);color:var(--green)}.dua-prayer-routine button:focus-visible,.dua-prayer-passage-tools button:focus-visible,.dua-prayer-routine select:focus-visible{outline:3px solid #b5965f;outline-offset:3px}.dua-prayer-routine button:disabled,.dua-prayer-passage-tools button:disabled{opacity:.55;cursor:default}.dua-prayer-routine progress{display:block;width:100%;height:4px;border:0;border-radius:6px;overflow:hidden;accent-color:var(--green);margin-top:12px}.dua-prayer-routine progress::-webkit-progress-bar{background:var(--line)}.dua-prayer-routine progress::-webkit-progress-value{background:var(--green)}.dua-prayer-routine>p{margin:8px 0 0;font:400 12px/1.6 var(--font-ui);color:var(--muted)}.dua-prayer-routine>p[hidden]{display:none}.dua-prayer-routine .dua-prayer-routine-status{font-weight:600;color:var(--ink)}
.dua-prayer-passage-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px;padding-top:12px;border-top:1px solid var(--line);font:500 12px/1.5 var(--font-ui);color:var(--ink)}.dua-prayer-passage-tools button[data-prayer-routine-read]{display:flex;align-items:center;gap:8px}.dua-prayer-passage-tools button[aria-pressed=true]{color:var(--green);background:var(--pale)}.dua-prayer-passage-tools output{font:800 15px/1.2 var(--font-ui);min-width:50px;text-align:center;direction:ltr;color:var(--green)}.dua-prayer-passage-tools small{color:var(--muted);font:500 11px/1.4 var(--font-ui);margin-inline-start:auto}.dua-prayer-passage-label{margin-inline-end:6px}.dua-prayer-passage-tools.is-complete{border-top-color:#9bc6b3}
@media(max-width:600px){.dua-prayer-routine{padding:12px;margin-bottom:12px}.dua-prayer-routine-top{gap:8px}.dua-prayer-routine-top strong{margin-inline-end:0;margin-inline-start:auto}.dua-prayer-routine-top>button{flex:1 0 100%;min-height:38px}.dua-prayer-passage-tools .dua-prayer-passage-label{flex:1 0 100%}}

/* One-tap access during the prayer, using the existing counter session. */
.dua-reader-bar .dua-prayer-counter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:5px 10px;border:1px solid var(--green,#176653);border-radius:10px;background:var(--pale,#eef6f1);color:var(--green,#176653);font:700 .8125rem/1.35 var(--font-ui,system-ui);white-space:nowrap;cursor:pointer}.dua-prayer-counter-trigger>svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dua-prayer-counter-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line,#d9e5de);border-radius:20px;background:var(--panel,#fff);color:var(--ink,#203e36);overflow:hidden;box-shadow:0 18px 70px #153b3033;font:400 .9rem/1.5 var(--font-ui,system-ui);text-align:start}.dua-prayer-counter-dialog[open]{display:flex;flex-direction:column}.dua-prayer-counter-dialog::backdrop{background:#102d225c;backdrop-filter:blur(2px)}
.dua-prayer-counter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,#d9e5de);flex:none}.dua-prayer-counter-heading h2{font:750 1.2rem/1.3 var(--font-ui,system-ui);margin:0;color:var(--ink,#203e36)}.dua-prayer-counter-heading p{font-size:.8rem;line-height:1.5;color:var(--muted,#52685e);margin:4px 0 0}.dua-prayer-counter-heading button{display:grid;place-items:center;flex:0 0 44px;min-height:44px;padding:4px;border:1px solid var(--line,#d9e5de);border-radius:50%;background:var(--panel,#fff);color:var(--green,#176653);font-size:1.5rem;cursor:pointer}
.dua-prayer-counter-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px;scrollbar-gutter:stable}.dua-prayer-counter-content>.prayer-counter{margin:0;border:0;border-radius:0;background:transparent}.dua-prayer-counter-content>.prayer-counter>summary{display:none}.dua-prayer-counter-content .prayer-counter-body{padding:0;max-width:none}.dua-prayer-counter-content .prayer-counter-path{margin:0 0 12px}.dua-prayer-counter-content .prayer-counter-path>li{padding:7px 4px;border-radius:12px}.dua-prayer-counter-content .prayer-counter-path>li>b{font-size:1.25rem}.dua-prayer-counter-content .prayer-counter-display{margin:8px 0}.dua-prayer-counter-content .prayer-counter-sajdahs{margin:8px 0}.dua-prayer-counter-content .prayer-counter-add{min-height:112px!important;padding:10px 14px;border-radius:15px}.dua-prayer-counter-content .prayer-counter-mat{width:64px;height:50px}.dua-prayer-counter-content .prayer-counter-add>strong{font-size:.9rem}.dua-prayer-counter-content .prayer-counter-tools{margin:6px 0;gap:8px}.dua-prayer-counter-content .prayer-counter-tools button{font-size:.8rem}.dua-prayer-counter-content .prayer-counter-note{font-size:.75rem;margin:4px 0}.dua-prayer-counter-content .prayer-counter-about{font-size:.8rem}.dua-prayer-counter-content .prayer-counter-resume{margin:6px 0 10px;padding:10px}.dua-prayer-counter-content .prayer-counter-resume p{line-height:1.5}.dua-prayer-counter-content .prayer-counter-targets{margin-bottom:12px}
.dua-prayer-counter-trigger:focus-visible,.dua-prayer-counter-dialog :is(button,summary):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}
@media(max-width:600px){.dua-prayer-counter-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - 18px);border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.dua-prayer-counter-heading{padding:12px 14px}.dua-prayer-counter-content{padding:10px 14px}.dua-prayer-counter-heading h2{font-size:1.1rem}}
@media print{.dua-prayer-counter-dialog,.dua-prayer-counter-trigger{display:none!important}}

/* One complete passage at a time, with the same round controls as the prayer guides. */
.dua-prayer-routine{padding:10px 12px;margin-bottom:10px}
.dua-prayer-routine-top{gap:6px}
.dua-prayer-routine-top label{gap:5px;min-width:0}
.dua-prayer-routine-top select{min-height:44px;max-width:9rem;padding-block:6px}
.dua-prayer-routine-top strong{white-space:nowrap;direction:ltr}
.dua-prayer-routine .dua-prayer-icon,.dua-prayer-passage-tools .dua-prayer-icon{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.dua-prayer-icon svg{width:20px;height:20px;transform:none}
.dua-prayer-routine progress{margin-top:6px}
.dua-prayer-routine-schedules{margin-top:4px}
.dua-prayer-routine-schedules>summary{width:max-content;min-height:32px;display:flex;align-items:center;gap:5px;cursor:pointer;font-size:.8125rem}
.dua-prayer-routine-schedules>summary::before{content:'+';font-size:1.2rem}
.dua-prayer-routine-schedules[open]>summary::before{content:'−'}
.dua-prayer-passage-tools{justify-content:center;gap:10px;margin-top:10px;padding-top:8px}
.dua-prayer-passage-tools button.dua-prayer-count-primary{box-sizing:border-box;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;border-color:var(--green);background:var(--green);color:var(--panel)}
.dua-prayer-count-primary svg{width:28px;height:28px;display:block}
.dua-prayer-passage-tools button.dua-prayer-count-primary[aria-pressed=true]{background:var(--pale);color:var(--green)}
.dua-prayer-passage-tools output{font-size:1.3rem;min-width:4rem}
.dua-prayer-passage-tools [data-prayer-routine-read-label],.dua-prayer-passage-tools [data-prayer-routine-context]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.is-prayer-paged [data-dua-unit][hidden]{display:none!important}
.is-prayer-paged .dua-reader-end,.is-prayer-paged .dua-reader-themes{display:none}
.is-prayer-paged .dua-reading-section{margin-top:0}
.dua-reader-foot>select[data-prayer-routine-passage-select]{box-sizing:border-box;flex:1;min-width:0;max-width:100%;min-height:44px;padding:6px 26px 6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:600 .8125rem/1.4 var(--font-ui,system-ui);text-align:start}
[dir=rtl] .dua-reader-foot>select[data-prayer-routine-passage-select]{padding-inline:10px 26px}
.dua-reader-foot>select[data-prayer-routine-passage-select]:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:2px}


/* /devotion-design.css */
/* Shared devotional surfaces use the active reader's paper, ink and accent. */
body {--worship-radius:1.15rem;--worship-gap:clamp(.8rem,2vw,1.3rem)}
body .sidebar .nav button {min-block-size:44px}
body .sidebar .nav button.active,body.dark .sidebar .nav button.active {background:#2e5547}
.app-skip-main {
  position:fixed;inset-block-start:.5rem;inset-inline-start:.5rem;z-index:10000;
  transform:translateY(-170%);padding:.7rem 1rem;border:2px solid var(--green);
  border-radius:.65rem;background:var(--panel);color:var(--ink);font:inherit;
}
.app-skip-main:focus-visible {transform:translateY(0)}
#content:focus:not(:focus-visible){outline:0}
body :is(.worship-home,.devotion-location,.today-quick-tools) :is(a,button,summary):focus-visible,
body :is(.worship-feature):focus-visible {
  outline:3px solid var(--focus-ring,var(--green));outline-offset:3px;
}
@media(min-width:761px){
  /* Tour, install and release information have dedicated Settings actions. */
  html body:not(.reader-focus) .topbar .top-right :is(.mushaf-beta-badge,.app-tour-trigger,.pwa-install-trigger){display:none!important}
}
body .today-practice-dashboard .today-heading {margin-block:0 .8rem}
body .today-practice-dashboard .today-heading h1,
body .worship-heading h1 {font-size:clamp(1.8rem,3.5vw,2.55rem);font-weight:720;line-height:1.17;letter-spacing:-.035em;margin:0}
body :is(.today-practice-dashboard,.worship-home)[dir="rtl"] h1,
html[dir="rtl"] body :is(.today-practice-dashboard,.worship-home) h1 {letter-spacing:normal;line-height:1.48}
body .today-practice-dashboard .today-prayer-times-button {
  background:var(--panel);color:var(--ink);border-color:var(--line);
  padding-inline:.8rem;font-size:.875rem;border-radius:100vmax;
}
body .today-quick-tools {gap:.5rem;margin-block:.8rem 1.05rem}
body .today-quick-tools :is(a,button) {
  border-radius:.9rem;min-block-size:56px;padding:.55rem;box-shadow:none;
}
body .today-quick-tools :is(a,button)>span {width:2.25rem;height:2.25rem;border-radius:.7rem}
body .today-quick-tools :is(a,button)>span svg {width:1.3rem;height:1.3rem}
body .today-quick-tools :is(a,button)>strong {font-size:.925rem}
body .today-practice-dashboard :is(.devotion-routines,.prayer-times,.amal-personal-today,.amal-cycles-today) {
  border-color:var(--line);border-radius:var(--worship-radius);background:var(--panel);box-shadow:none;
}
body .devotion-location {display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-block:0 1rem}
body .devotion-location>a {
  display:inline-flex;align-items:center;gap:.45rem;min-height:44px;
  color:var(--green);font-size:.9375rem;font-weight:700;text-decoration:none;
}
body .devotion-location>a>svg {width:1.25rem;height:1.25rem}
@media(hover:hover){body .devotion-location>a:hover {background:var(--pale)}}
body .devotion-location .devotion-segments {margin:0;max-width:100%;min-width:0;flex:1 1 auto;flex-wrap:wrap}
body .devotion-location .devotion-segments button {min-height:44px;font-size:.875rem}
body .worship-home {max-inline-size:65rem;margin-inline:auto;color:var(--ink);text-align:start}
.worship-heading {margin-block:.1rem 1rem}
.worship-feature {
  overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  border-radius:1.55rem;text-decoration:none;background:#12392e;color:#fffdf4;
  min-block-size:clamp(13rem,24vw,17rem);
}
.worship-feature-copy {padding:clamp(1.25rem,3.5vw,2.5rem);align-self:center}
.worship-feature-icon {display:inline-flex;align-items:center;justify-content:center;color:#e6cf91}
.worship-feature-icon svg {width:1.6rem;height:1.6rem}
.worship-feature h2 {font-size:clamp(1.6rem,3.2vw,2.65rem);line-height:1.18;color:#fffdf4;letter-spacing:-.035em;overflow-wrap:anywhere;margin:.5rem 0}
.worship-feature p {max-inline-size:35ch;margin:.4rem 0 1rem;font-size:clamp(.95rem,1.2vw,1.05rem);line-height:1.6;color:#e4eade}
.worship-feature-link {display:inline-flex;align-items:center;min-block-size:42px;border-radius:100vmax;padding:.45rem 1.05rem;background:#f3e6bf;color:#22392e;font-weight:750;font-size:.9375rem}
.worship-feature:hover .worship-feature-link {background:white}
.worship-feature img {display:block;width:100%;height:100%;min-height:0;max-height:19rem;object-fit:cover;object-position:center 53%}
.worship-practice {margin-block:clamp(1.1rem,2.8vw,2rem)}
.worship-practice>h2 {font-size:clamp(1.15rem,1.8vw,1.4rem);margin:.2rem 0 .75rem;font-weight:730;color:var(--ink)}
.worship-rows {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.worship-row {
  display:flex;align-items:center;text-align:start;gap:.85rem;min-width:0;
  padding:1rem;border:1px solid var(--line);border-radius:var(--worship-radius);
  background:var(--panel);color:var(--ink);text-decoration:none;font:inherit;
}
.worship-action-hero + .worship-row {margin-block-start:.65rem}
.worship-row:hover {border-color:var(--green);background:var(--pale)}
.worship-row-icon {
  flex:none;display:grid;place-items:center;width:2.65rem;height:2.65rem;
  border-radius:.8rem;background:var(--pale);color:var(--green);
}
.worship-row:first-child .worship-row-icon {background:var(--sd-warm);color:var(--gold-text)}
.worship-row-icon svg {width:1.45rem;height:1.45rem}
.worship-row span:last-child {min-width:0}
.worship-row strong,.worship-row small {display:block;overflow-wrap:anywhere}
.worship-row strong {font-size:1.03rem;line-height:1.45}
.worship-row small {font-size:.9rem;line-height:1.5;margin-block-start:.2rem;color:var(--muted)}
.worship-browse {border-block-start:1px solid var(--line);padding-block:.6rem;display:flex;flex-wrap:wrap;gap:.25rem 1.3rem}
.worship-browse a {display:inline-flex;align-items:center;min-height:44px;gap:.5rem;color:var(--green);text-decoration:none;font-size:.95rem;font-weight:650}
.worship-browse svg {width:1.2rem;height:1.2rem;flex:none}
.worship-home[dir="rtl"] h2 {letter-spacing:normal;line-height:1.55}
@media(max-width:650px){
  .worship-rows {grid-template-columns:minmax(0,1fr);gap:.45rem}
  .worship-feature {grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr);min-height:0;border-radius:1.1rem}
  .worship-feature-copy {padding:1rem}
  .worship-feature h2 {font-size:1.5rem}
  .worship-feature img {max-height:none}
  .worship-feature p {font-size:.94rem;margin-block:.4rem .8rem}
  .worship-row {padding:.75rem}
  body .today-quick-tools :is(a,button)>strong {font-size:.875rem}
  body .devotion-location {gap:.2rem;margin-block-end:.7rem}
  body .devotion-location>a {min-height:38px}
}
@media(max-width:420px){
  .worship-feature {grid-template-columns:minmax(0,1.7fr) minmax(0,.8fr)}
  .worship-feature-icon {display:none}
  body .today-quick-tools {grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
  body .today-quick-tools :is(a,button) {flex-direction:row;justify-content:flex-start;text-align:start;min-block-size:48px;gap:.5rem}
  body .today-quick-tools :is(a,button)>span {width:1.8rem;height:1.8rem}
}
@media(max-width:320px){.worship-feature-copy {padding:.8rem}.worship-feature h2 {font-size:1.3rem}}
@media(forced-colors:active){
  .worship-feature,.worship-feature-link,.worship-row {border:1px solid ButtonText}
}
.young-worship-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:.7rem 0 1rem}
.young-worship-links a {display:flex;justify-content:center;align-items:center;gap:.45rem;min-height:48px;padding:.5rem;border:1px solid var(--line);border-radius:.8rem;text-align:center;background:var(--panel);color:var(--green);text-decoration:none;font-weight:700;font-size:1rem;line-height:1.45}
.young-worship-links svg {width:1.25rem;height:1.25rem;flex:none}
.young-worship-links a:hover {background:var(--pale)}
@media(max-width:360px){.young-worship-links a{font-size:.9rem}}
@media(max-width:760px){
  html body[data-profile="kids"]:not(.home-page) .topbar .top-right .pwa-install-trigger,
  html body.devotion-page:not(.reader-focus) .topbar .top-right .pwa-install-trigger {display:none!important}
  html body.devotion-page:not(.reader-focus) .topbar {
    grid-template-columns:44px minmax(0,1fr) 44px 72px 44px!important;
    grid-template-rows:auto!important;min-height:54px!important;padding:5px 8px!important;gap:4px!important;
  }
  html body.devotion-page:not(.reader-focus) .topbar>.top-brand {grid-column:1!important;grid-row:1!important;justify-content:center}
  html body.devotion-page:not(.reader-focus) .topbar>.top-brand>span {display:none}
  html body.devotion-page:not(.reader-focus) .topbar>.profile-control {display:flex!important;grid-column:2!important;grid-row:1!important;min-width:0}
  html body.devotion-page:not(.reader-focus) .topbar .profile-trigger {width:100%;max-width:100%;gap:.25rem;padding-inline:.35rem}
  html body.devotion-page:not(.reader-focus) .topbar .mushaf-explore-button {grid-column:3!important;width:44px!important}
  html body.devotion-page:not(.reader-focus) .topbar #languageButton {grid-column:4!important;width:72px}
  html body.devotion-page:not(.reader-focus) .topbar #settingsButton {grid-column:5!important}
  html body.devotion-page[data-profile="kids"]:not(.reader-focus) .topbar {grid-template-columns:44px minmax(0,1fr) 72px 44px!important}
  html body.devotion-page[data-profile="kids"]:not(.reader-focus) .topbar #languageButton {grid-column:3!important}
  html body.devotion-page[data-profile="kids"]:not(.reader-focus) .topbar #settingsButton {grid-column:4!important}
}

.mafatih-practice{max-width:52rem;margin-inline:auto;padding:clamp(.8rem,3vw,2rem);color:var(--ink)}
.mafatih-practice>header{border-block-end:1px solid var(--line);padding-block-end:1rem}
.mafatih-practice h1{font-size:clamp(1.9rem,5vw,3.2rem);margin:0}.mafatih-practice header p{margin:.4rem 0 0}
.mafatih-chapter{margin-block:1.65rem}.mafatih-chapter h2{font-size:1.25rem;margin-block:0 .65rem}
.mafatih-readings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.6rem}
.mafatih-readings a{display:grid;align-content:center;gap:.25rem;min-height:4.1rem;border:1px solid var(--line);border-radius:.8rem;padding:.7rem .9rem;text-decoration:none;background:var(--panel);color:var(--ink)}
.mafatih-readings a:hover,.mafatih-readings a:focus-visible{border-color:var(--green)}.mafatih-readings small{font-size:.875rem;color:var(--muted);line-height:1.5}.mafatih-source summary{padding-block:.7rem;cursor:pointer}

.mafatih-more summary,.mafatih-source summary{cursor:pointer;min-height:44px;padding-block:.65rem;color:var(--green);font-weight:650}
.mafatih-more[open]>summary{margin-block-end:.25rem}.mafatih-more{margin-block-start:.35rem}
.mafatih-references,.mafatih-references ul{list-style:none;padding-inline-start:0}.mafatih-references>li{margin-block:1.2rem}.mafatih-references a{display:inline-block;padding-block:.38rem;overflow-wrap:anywhere}

.worship-actions-home .worship-heading{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap}
.worship-my-routines{display:inline-flex;align-items:center;gap:.45rem;min-block-size:44px;padding:.35rem .8rem;border:1px solid var(--line);border-radius:100vmax;background:var(--panel);color:var(--green);font-weight:650;text-decoration:none}
.worship-my-routines svg,.worship-fold svg{width:1.25rem;height:1.25rem;flex:none}
.worship-actions-home .worship-action-hero{
  background:linear-gradient(125deg,var(--hero-start),var(--hero-end));
  min-block-size:0;
}
.worship-action-hero .worship-feature-link{
  background:var(--hero-action);color:var(--hero-action-ink);
}
.worship-action-hero:hover .worship-feature-link{background:var(--hero-action-hover)}
.worship-action-hero .worship-feature-copy{padding:clamp(1rem,3vw,2rem)}
.worship-action-hero img{object-position:73% 52%;max-height:15rem;align-self:stretch}
.worship-action-hero .worship-feature-link{min-block-size:44px}
.worship-actions-home .worship-rows{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.worship-actions-home .worship-practice{margin-block:1.2rem .8rem}
.worship-actions-home .worship-browse{border:0;margin-block:.35rem}
.worship-fold{margin-block:.28rem;border-block-start:1px solid var(--line);color:var(--ink)}
.worship-fold>summary{display:flex;align-items:center;gap:.7rem;min-block-size:48px;cursor:pointer;list-style:none;font-size:1rem;font-weight:680}
.worship-fold>summary::-webkit-details-marker{display:none}
.worship-fold>summary::after{content:'';display:block;inline-size:.55rem;block-size:.55rem;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);margin-inline-start:auto;margin-inline-end:.45rem;margin-block-end:.32rem}
.worship-fold[dir=rtl]>summary::after,[dir=rtl] .worship-fold>summary::after{transform:rotate(-45deg)}
.worship-fold[open]>summary::after{transform:rotate(225deg);margin-block-end:0}
[dir=rtl] .worship-fold[open]>summary::after{transform:rotate(135deg)}
.worship-link-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.35rem;padding-block:.2rem .7rem}
.worship-link-list a{display:flex;align-items:center;gap:.6rem;min-block-size:46px;padding:.45rem .7rem;border-radius:.7rem;background:var(--pale);color:var(--green);text-decoration:none;font-weight:650}
.worship-reference>summary{color:var(--muted)}
.worship-manage .devotion-location{margin-block-end:.65rem}
@media(max-width:650px){.worship-action-hero img{max-height:none}.worship-actions-home .worship-rows{grid-template-columns:minmax(0,1fr)}}

.worship-find {
  display:flex; align-items:center; gap:.85rem; padding:.8rem 1rem; margin:.45rem 0 1rem;
  border:1px solid var(--line); border-radius:1rem; color:var(--ink); background:var(--panel); text-decoration:none;
}
.worship-find-symbol {display:grid; place-items:center; width:2.65rem; height:2.65rem; flex:none; background:var(--pale); color:var(--green); border-radius:50%}
.worship-find svg {width:1.35rem; height:1.35rem}
.worship-find strong,.worship-find small {display:block; text-align:start}
.worship-find strong {font-size:1.07rem}.worship-find small {color:var(--muted); font-size:.86rem; margin-block-start:.15rem}
.worship-find i {width:.55rem; height:.55rem; margin-inline:auto .25rem; border-inline-end:2px solid currentColor; border-block-start:2px solid currentColor; transform:rotate(45deg)}
[dir=rtl] .worship-find i {transform:rotate(-45deg)}
.worship-find:hover,.worship-find:focus-visible {border-color:var(--green)}
.dua-next-reading {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:.5rem; margin:1.1rem auto .2rem; max-width:35rem; text-align:start}
.dua-next-reading a {display:flex; align-items:center; gap:.7rem; min-height:48px; padding:.6rem .85rem; border:1px solid var(--line); border-radius:.75rem; color:var(--ink); background:var(--panel); text-decoration:none}
.dua-next-reading small,.dua-next-reading strong {display:block; line-height:1.45}
.dua-next-reading small {font:.76rem/1.45 var(--font-ui,system-ui,sans-serif); color:var(--muted)}
.dua-next-reading strong {font:650 .93rem/1.45 var(--font-ui,system-ui,sans-serif)}
.dua-next-reading svg {flex:none; width:1.2rem; height:1.2rem; color:var(--green)}
@media (min-width:800px) {
  body .today-quick-tools {grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:421px) and (max-width:799px) {
  body .today-quick-tools {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:420px) {
  body .today-quick-tools > :last-child:nth-child(5) {grid-column:1/-1}
}

/* v144: needs, guidance and recurring practice each have a visible place. */
.worship-organised-home .worship-heading{align-items:flex-start;margin-block-end:.7rem}
.worship-intro{font-size:1rem;line-height:1.55;color:var(--muted);margin:.5rem 0 0}
.worship-organised-home .worship-find{margin-block:.8rem 1.2rem}
.worship-needs{padding:clamp(.9rem,2.5vw,1.4rem);border:1px solid var(--line);border-radius:1.1rem;background:var(--panel);margin-block:1rem 1.5rem}
.worship-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;margin-block:0 .8rem}
.worship-section-heading h2,.worship-resources>h2{font-size:1.25rem;line-height:1.45;font-weight:730;margin:0;color:var(--ink)}
.worship-section-heading p{font-size:1rem;line-height:1.55;color:var(--muted);margin:.35rem 0 0;max-inline-size:62ch}
.worship-section-heading>a{font-size:.9375rem;font-weight:650;min-height:44px;display:inline-flex;align-items:center;color:var(--green);text-underline-offset:3px}
.worship-organised-home .worship-practice{margin-block:1.5rem}
.worship-organised-home .worship-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.worship-organised-home .worship-rows>:only-child{grid-column:1/-1}
.worship-organised-home .worship-row{align-items:flex-start;padding:1rem;gap:.8rem}
.worship-organised-home .worship-row small{font-size:.9375rem}
.worship-organised-home .worship-row:first-child .worship-row-icon{background:var(--pale);color:var(--green)}
.worship-programmes{padding-block-start:1.2rem;border-block-start:1px solid var(--line)}
.worship-inline-links{display:flex;flex-wrap:wrap;margin-block-start:.6rem;gap:.4rem 1rem}
.worship-inline-links a{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;font-size:.9375rem;color:var(--green);text-underline-offset:3px}
.worship-inline-links svg{width:1.15rem;height:1.15rem}
.worship-season-current{display:flex;align-items:center;gap:.85rem;padding:1rem;margin-block-end:.8rem;border:1px solid var(--line);border-radius:.85rem;background:var(--pale);color:var(--ink);text-decoration:none}
.worship-season-current>svg{width:1.8rem;height:1.8rem;flex:none;color:var(--green)}
.worship-season-current strong,.worship-season-current small{display:block;font-size:1rem;line-height:1.5}
.worship-season-current small{color:var(--muted)}
.worship-resources{border-block-start:1px solid var(--line);padding-block-start:1.2rem;margin-block:1.5rem}
.worship-resources .worship-browse{display:flex;flex-wrap:wrap;gap:.35rem .7rem;margin-block:.5rem .8rem}
.worship-resources .worship-browse :is(a,button){display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.4rem .65rem;font:600 .9375rem/1.4 var(--font-ui,system-ui,sans-serif);color:var(--green);background:var(--panel);border:1px solid var(--line);border-radius:.65rem;text-decoration:none;cursor:pointer}
.worship-resources .worship-browse svg{width:1.2rem;height:1.2rem;flex:none}
.worship-organised-home .worship-find small{font-size:.9375rem}
.worship-organised-home :is(.worship-row,.worship-season-current,.worship-browse a,.worship-browse button):hover{border-color:var(--green)}
@media(max-width:800px){.worship-organised-home .worship-rows{grid-template-columns:repeat(2,minmax(0,1fr))}.worship-organised-home .worship-rows>:last-child:nth-child(3){grid-column:1/-1}}
@media(max-width:560px){.worship-organised-home .worship-rows{grid-template-columns:minmax(0,1fr)}.worship-organised-home .worship-heading{gap:.6rem}.worship-needs{padding:.9rem}.worship-organised-home .worship-row{padding:.85rem}.worship-intro{margin-block-start:.35rem}.worship-section-heading{gap:.25rem .7rem}.worship-section-heading p{font-size:.9375rem}}

/* Put practical guidance beside the need that brought the reader here. */
.worship-guided-practices{margin-block-start:1rem;padding-block-start:1rem;border-block-start:1px solid var(--line)}
.worship-organised-home .worship-programmes{margin-block:2rem;padding-block:1.5rem;border-block:1px solid var(--line)}
.worship-organised-home .worship-programmes .worship-rows>:last-child:nth-child(odd){grid-column:1/-1}
.worship-organised-home .worship-pilgrimage .worship-row{background:var(--pale)}

/* Section actions and topic chips have the same quiet navigation treatment. */
.worship-organised-home :is(.worship-section-heading>a,.worship-inline-links a){text-decoration:none}
@media(hover:hover){.worship-organised-home :is(.worship-section-heading>a,.worship-inline-links a):hover{background:var(--pale)}}

/* Compact directory rows keep the reading name and one familiar next action. */
.worship-organised-home .worship-directory-row{align-items:center;padding:.65rem .75rem;gap:.65rem;min-block-size:58px}
.worship-directory-row .worship-row-label{flex:1;min-inline-size:0}
.worship-directory-row>.mushaf-icon{flex:none;inline-size:1.15rem;block-size:1.15rem;color:var(--green)}
.worship-organised-home .worship-directory-row .worship-row-icon{inline-size:2.2rem;block-size:2.2rem;border-radius:.65rem}
.worship-organised-home .worship-practice{margin-block:1rem}
.worship-organised-home .worship-programmes{margin-block:1.2rem;padding-block:1rem}
.worship-organised-home .worship-section-heading{margin-block-end:.45rem}
.worship-organised-home .worship-needs{margin-block:1rem;padding:1rem}
.worship-counter-door>.mushaf-icon:last-child{margin-inline-start:auto;inline-size:1.1rem;block-size:1.1rem}

.worship-plan-choices{margin-block:1rem 1.25rem}
.worship-plan-choices h2{margin:0 0 .5rem;font-size:1.125rem}
.worship-plan-choices>div:first-of-type{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.5rem}
.worship-plan-choices button{min-height:3.5rem;padding:.7rem .9rem;display:flex;align-items:center;gap:.75rem;text-align:start;color:var(--dark);background:var(--panel);border:1px solid var(--line);border-radius:.75rem;font:inherit;cursor:pointer}
.worship-plan-choices button:first-child{background:var(--pale);border-inline-start:.25rem solid var(--green)}
.worship-plan-choices button:hover{border-color:var(--green)}
.worship-plan-choices button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.worship-plan-choices button>svg{flex:0 0 1.4rem;width:1.4rem;height:1.4rem;color:var(--green)}
.worship-plan-choices strong,.worship-plan-choices small{display:block;line-height:1.4}
.worship-plan-choices small{font-size:.875rem;color:var(--muted);margin-block-start:.12rem}
.worship-plan-choices [data-devotion-plan-result]:not([hidden]){margin-block-start:.6rem;font-size:.9375rem}
.worship-plan-choices [data-devotion-plan-result] a{margin-inline-start:.4rem;color:var(--green);font-weight:650}


/* /children-worship-stories.css */
/* Picture books keep the drawing, text and next action in reading order in both scripts. */
.cw-wrap, .cw-feature {
  --cw-ink: #243952;
  --cw-muted: #465c6e;
  --cw-paper: #fffdf7;
  --cw-border: #d6d2bf;
  color: var(--cw-ink);
  text-align: start;
  font-family: var(--font-ui, system-ui), sans-serif;
}
.cw-theme-night { --cw-tint: #e9eefa; --cw-accent: #374f80; --cw-accent-text: #fff; }
.cw-theme-garden { --cw-tint: #e6f0df; --cw-accent: #376244; --cw-accent-text: #fff; }
.cw-theme-clay { --cw-tint: #f6e6d8; --cw-accent: #875331; --cw-accent-text: #fff; }
.cw-theme-honey { --cw-tint: #faedcf; --cw-accent: #745519; --cw-accent-text: #fff; }
body.dark :is(.cw-wrap, .cw-feature) {
  --cw-ink: #f2f1e6;
  --cw-muted: #ced5d8;
  --cw-paper: #232f35;
  --cw-border: #546169;
}
body.dark .cw-theme-night { --cw-tint: #2d3a53; --cw-accent: #c3d3ff; --cw-accent-text: #182d4e; }
body.dark .cw-theme-garden { --cw-tint: #283f32; --cw-accent: #b2dabe; --cw-accent-text: #163924; }
body.dark .cw-theme-clay { --cw-tint: #46372d; --cw-accent: #f0c3a1; --cw-accent-text: #492a17; }
body.dark .cw-theme-honey { --cw-tint: #443c2a; --cw-accent: #f2d796; --cw-accent-text: #3d2f13; }
.cw-wrap { max-inline-size: 58rem; margin-inline: auto; padding-block-end: 2rem; }
.cw-wrap *, .cw-feature * { box-sizing: border-box; }
.cw-feature {
  overflow: hidden;
  margin-block: 0 1.25rem;
  background: var(--cw-tint);
  border: 1px solid var(--cw-border);
  border-radius: 1.35rem;
}
.cw-feature-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  color: var(--cw-ink);
  text-decoration: none;
}
.cw-feature-main img { width: 100%; height: 100%; min-height: 10rem; max-height: 17rem; object-fit: cover; }
.cw-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1rem,3vw,2rem); gap: .45rem; }
.cw-feature-copy small { color: var(--cw-accent); font-size: .88rem; font-weight: 750; }
.cw-feature-copy strong, .cw-book h1, .cw-wrap > h1 { font-size: clamp(1.5rem,3vw,2.4rem); line-height: 1.2; font-weight: 780; letter-spacing: -.025em; text-wrap: balance; margin: 0; color: var(--cw-ink); }
.cw-feature-copy > span { font-size: 1rem; line-height: 1.5; color: var(--cw-muted); }
.cw-feature-copy b, .cw-next, .cw-choices a {
  border-radius: .75rem;
  background: var(--cw-accent);
  color: var(--cw-accent-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 730;
}
.cw-feature-copy b { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block-start: .25rem; padding: .5rem 1rem; }
.cw-all, .cw-return, .cw-prev { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .45rem; font-size: .96rem; font-weight: 660; color: var(--cw-ink); text-decoration: none; }
.cw-all { display: flex; justify-content: center; border-top: 1px solid var(--cw-border); color: var(--cw-accent); }
.cw-return { margin-block-end: .35rem; }
.cw-return::before { content: ""; height: .5em; width: .5em; border-inline-start: 2px solid; border-block-end: 2px solid; transform: rotate(45deg); }
[dir="rtl"] .cw-return::before { transform: rotate(-45deg); }
.cw-intro { max-width: 42rem; margin: .55rem 0 1.25rem; color: var(--cw-muted); font-size: 1.07rem; line-height: 1.65; }
.cw-covers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.65rem,2vw,1.2rem); }
.cw-cover { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 1.1rem; background: var(--cw-tint); color: var(--cw-ink); border: 1px solid var(--cw-border); text-decoration: none; }
.cw-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.cw-cover > span { padding: clamp(.75rem,2vw,1.25rem); display: grid; gap: .35rem; }
.cw-cover strong { font-size: clamp(1.05rem,2vw,1.45rem); line-height: 1.28; text-wrap: balance; }
.cw-cover small { font-size: .95rem; line-height: 1.5; color: var(--cw-muted); }
.cw-book { margin: .1rem 0 0; border: 1px solid var(--cw-border); border-radius: 1.35rem; overflow: hidden; background: var(--cw-paper); display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.18fr); }
.cw-illustration { position: relative; background: var(--cw-tint); min-height: 19rem; overflow: hidden; }
.cw-illustration img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-words { padding: clamp(1.1rem,3.5vw,2.4rem); min-width: 0; }
.cw-folio { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: .75rem; row-gap: .15rem; color: var(--cw-accent); font-size: .88rem; font-weight: 680; line-height: 1.45; margin-block-end: 1rem; }
.cw-folio span:last-child { white-space: nowrap; color: var(--cw-muted); font-weight: 550; }
.cw-text { font-size: clamp(1.05rem,2vw,1.24rem); line-height: 1.73; margin: .8rem 0 0; max-width: 48ch; color: var(--cw-ink); }
.cw-book blockquote { margin: .9rem 0 .25rem; border: 0; border-inline-start: 3px solid var(--cw-accent); padding: .5rem .85rem; background: var(--cw-tint); color: var(--cw-ink); font: 1.58rem/1.8 Amiri,'Noto Naskh Arabic',serif; text-align: start; }
.cw-meaning { margin: .55rem 0 0; line-height: 1.5; color: var(--cw-muted); }
.cw-actions, .cw-choices { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-block-start: 1.25rem; }
.cw-actions { justify-content: flex-end; }
.cw-prev { margin-inline-end:auto; border:1px solid var(--cw-border); border-radius:.55rem; padding-inline:.7rem; }
.cw-choices { flex-direction: column; align-items: stretch; gap: .55rem; }
.cw-next, .cw-choices a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .6rem 1rem; line-height: 1.45; text-align: center; }
.cw-choices a { color: var(--cw-accent); background: var(--cw-tint); border: 1px solid var(--cw-accent); }
.cw-sources { margin-block: 1rem; background: var(--cw-paper); border: 1px solid var(--cw-border); border-radius: .9rem; padding: 0 .95rem; }
.cw-sources summary { min-height: 2.85rem; cursor: pointer; padding-block: .72rem; font-size: .94rem; font-weight: 650; color: var(--cw-ink); }
.cw-sources p, .cw-sources ul { margin: .1rem 0 .75rem; line-height: 1.65; }
.cw-sources ul { padding-inline-start: 1.2rem; }
.cw-sources a { display: inline-flex; align-items: center; min-height: 2.65rem; color: var(--cw-ink); text-decoration: underline; text-underline-offset: .15em; }
.cw-wrap:is([dir="rtl"]) h1, [dir="rtl"] .cw-feature-copy strong, [dir="rtl"] .cw-cover strong { letter-spacing: normal; line-height: 1.5; }
.cw-wrap[dir="rtl"] .cw-text { line-height: 1.95; }
body :is(.cw-wrap,.cw-feature) :is(a,summary):focus-visible { outline: 3px solid var(--green,#207055); outline-offset: -3px; }
@media (hover: hover) {
  .cw-cover:hover,.cw-next:hover,.cw-choices a:hover { border-color:var(--cw-accent); } .cw-feature-main:hover strong { color:var(--cw-accent); }
}
@media (max-width: 640px) {
  .cw-book { display: block; }
  .cw-illustration { min-height: 0; height: clamp(9rem,40vw,15rem); }
  .cw-illustration[data-cw-page="3"], .cw-illustration[data-cw-page="4"] { height: clamp(6.5rem,28vw,10rem); }
  .cw-feature-main { grid-template-columns: minmax(0,.8fr) minmax(0,1.25fr); }
  .cw-feature-main img { min-height: 9rem; }
  .cw-feature-copy { padding: .8rem; gap: .3rem; }
  .cw-feature-copy strong { font-size: clamp(1.12rem,4.5vw,1.65rem); }
  .cw-feature-copy > span { font-size: .875rem; }
  .cw-folio { margin-block-end: .65rem; }
  .cw-cover img { aspect-ratio: 1.45; }
  .cw-cover small { font-size: .86rem; }
}
@media (max-width: 350px) {
  .cw-cover > span { padding: .6rem; }
  .cw-cover strong { font-size: .98rem; }
}
.young-worship-links:has(a[href="#/calendar?q=worship-stories"]) { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 475px) {
  .young-worship-links:has(a[href="#/calendar?q=worship-stories"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }

}
.cw-resume, .cw-practice-link { display: inline-flex; align-items: center; min-height: 2.85rem; padding: .65rem 1rem; border-radius: .8rem; border: 1px solid var(--cw-accent); color: var(--cw-accent); background: var(--cw-tint); text-decoration: none; }
.cw-resume { margin-block-end: 1rem; gap: .65rem; flex-wrap: wrap; }
.cw-resume span { font-size: .95rem; }
.cw-practice-link { margin-block-start: 1rem; font-weight: 700; }
@media(hover:hover){.cw-resume:hover,.cw-practice-link:hover { border-color:var(--cw-accent); }}

.cw-look {
  margin-block: .85rem;
  padding: .7rem 1rem;
  border-inline-start: .24rem solid var(--cw-accent);
  border-radius: .35rem;
  background: var(--cw-tint);
}
.cw-look p { margin: 0; line-height: 1.65; }
.cw-look > p { font-weight: 650; }
.cw-look summary {
  width: fit-content;
  max-width: 100%;
  padding-block: .6rem;
  min-height: 44px;
  color: var(--cw-accent);
  cursor: pointer;
  font-weight: 700;
}
.cw-look summary:focus-visible { outline: 2px solid var(--cw-accent); outline-offset: 2px; }


/* /devotional-sound.css */
.devotional-sound{margin:12px 0;border:1px solid var(--line,#d9e5de);border-radius:12px;padding:12px;color:var(--ink,#203e36);background:var(--panel,#fff);font-family:var(--font-ui,system-ui,sans-serif);font-size:.875rem;text-align:start;line-height:1.5}
.devotional-sound.is-compact{padding:0}.devotional-sound>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;cursor:pointer;list-style:none;font-weight:650}.devotional-sound>summary::-webkit-details-marker{display:none}.devotional-sound>summary>[data-counter-sound-state]{margin-inline-start:auto;color:var(--muted,#52685e);font-weight:450}.devotional-sound>summary:after{content:"";width:8px;height:8px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);margin-inline:4px;align-self:center}.devotional-sound[open]>summary:after{transform:rotate(225deg)}.devotional-sound-body{padding:0 12px 12px}.devotional-sound-main{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.devotional-sound-toggle{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-weight:650}.devotional-sound-toggle input{width:21px;height:21px;accent-color:var(--green,#176653);flex-shrink:0}.devotional-sound button{min-height:44px;border:1px solid var(--line,#d9e5de);border-radius:9px;padding:8px 12px;background:var(--panel,#fff);color:var(--ink,#203e36);font:600 .875rem/1.4 var(--font-ui,system-ui,sans-serif);cursor:pointer;text-decoration:none}.devotional-sound button:disabled{opacity:.5;cursor:default}.devotional-sound-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.devotional-sound-options label{display:grid;gap:5px;font-size:.875rem}.devotional-sound select{display:block;width:100%;min-width:0;min-height:44px;border:1px solid var(--line,#d9e5de);border-radius:9px;padding:8px 28px 8px 10px;background:var(--panel,#fff);color:var(--ink,#203e36);font:inherit}.devotional-sound[dir=rtl] select{padding-inline:10px 28px}.devotional-sound-help{font-size:.8125rem!important;line-height:1.7!important;color:var(--muted,#52685e);margin:10px 0 0!important}.devotional-sound-status{font-size:.875rem!important;line-height:1.6!important;padding:8px 10px;margin:8px 0 0!important;border-inline-start:3px solid var(--gold,#9d722b);color:var(--ink,#203e36);background:var(--pale,#eef6f1)}.devotional-sound [hidden]{display:none!important}.devotional-sound :is(input,select,button,summary):focus-visible{outline:3px solid var(--focus-ring,#a06b00);outline-offset:3px}.gr-counter+.devotional-sound{margin-top:8px}.dua-repeat .devotional-sound{margin-bottom:0}@media(max-width:350px){.devotional-sound-options{grid-template-columns:1fr}.devotional-sound-main{gap:4px}}
.devotional-sound.is-icon{position:relative;flex:none;inline-size:44px;block-size:44px;margin:0;border-radius:50%}
.devotional-sound.is-icon>summary{display:grid;place-items:center;inline-size:44px;block-size:44px;padding:0;color:var(--green,#176653)}
.devotional-sound.is-icon>summary:after{display:none}
.devotional-sound.is-icon>summary svg{transform:none;inline-size:22px;block-size:22px}
.devotional-sound.is-icon>.devotional-sound-body{position:absolute;z-index:5;inset-block-start:calc(100% + .5rem);inset-inline-end:0;inline-size:min(24rem,calc(100vw - 1.5rem));max-block-size:60vh;max-block-size:60dvh;overflow:auto;padding:.75rem;border:1px solid var(--line,#d9e5de);border-radius:1rem;background:var(--panel,#fff);box-shadow:0 .4rem 1.2rem #102c2426}


/* /prayer-alerts.css */
/* Prayer sounds use the existing Mushaf palette and a single compact settings sheet. */
.prayer-alert-dialog,.prayer-alert-settings,.prayer-alert-notice{--pa-ink:var(--ink,#263c32);--pa-green:var(--green,#345b48);--pa-panel:var(--panel,#fffdf8);--pa-line:var(--line,#d9e0d5);--pa-soft:var(--pale,#eef2e7);font-family:var(--font-ui,system-ui);color:var(--pa-ink);text-align:start;box-sizing:border-box;font-size:1rem;line-height:1.5}
.prayer-alert-dialog{position:fixed;max-width:none;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--pa-line);border-radius:24px;background:var(--pa-panel);box-shadow:0 22px 80px #173a283d;overflow:hidden}
.prayer-alert-dialog[open]{display:flex;flex-direction:column}
.prayer-alert-dialog::backdrop{background:#102d2273;backdrop-filter:blur(3px)}
.pa-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 1.2rem;border-bottom:1px solid var(--pa-line);flex:none}
.pa-dialog-heading>div{min-width:0}.pa-dialog-heading>div>span{font-size:.8125rem;font-weight:700;color:var(--muted,#627369)}
.pa-dialog-heading h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.02em;margin:.2rem 0 0;color:var(--pa-ink)}
.pa-dialog-heading>button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--pa-line);border-radius:50%;background:var(--pa-panel);color:var(--pa-green);cursor:pointer}
.pa-dialog-body{padding:1rem 1.2rem 1.3rem;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.prayer-alert-settings *{box-sizing:border-box}
.pa-status-card{display:flex;align-items:center;gap:.8rem;padding:1rem;border:1px solid var(--pa-line);border-radius:18px;background:var(--pa-soft)}
.pa-status-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:var(--pa-green);color:var(--pa-panel)}
.pa-status-card>div{min-width:0;flex:1}.pa-status-card strong{font-size:1.06rem;font-weight:800;line-height:1.3}.pa-status-card p{margin:.25rem 0 0;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.pa-primary-actions{display:flex;gap:.6rem;margin-top:.8rem;flex-wrap:wrap}.pa-primary-actions .pa-primary{flex:1}
.pa-primary,.pa-secondary,.pa-group-choice button,.pa-notice-actions button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:46px;padding:.6rem .8rem;border:1px solid var(--pa-green);border-radius:12px;font:750 .9375rem/1.4 var(--font-ui,system-ui);cursor:pointer;text-align:center;color:var(--pa-green);background:var(--pa-panel);max-width:100%}
.pa-primary{background:var(--pa-green);color:var(--pa-panel)}.pa-primary svg,.pa-secondary svg,.pa-notice-actions svg{flex:none}
.pa-secondary:disabled{opacity:.5;cursor:not-allowed}
.pa-help{font-size:.875rem;line-height:1.6;margin:.65rem 0;color:var(--muted,#627369);overflow-wrap:anywhere}
.pa-section{display:block;min-width:0;margin:1.2rem 0 0;padding:1rem 0 0;border:0;border-top:1px solid var(--pa-line)}
.pa-section legend{font-size:1.0625rem;line-height:1.4;font-weight:800;padding:0 .5rem 0 0;color:var(--pa-ink)}
.pa-field{display:block;font-size:.875rem;font-weight:700;margin:.3rem 0 .75rem;min-width:0}.pa-field>span{display:block;margin-bottom:.3rem}
.pa-field select,.pa-field input{display:block;width:100%;min-width:0;min-height:46px;border:1px solid var(--pa-line);border-radius:11px;padding:.6rem .75rem;background:var(--pa-panel);color:var(--pa-ink);font:500 1rem/1.4 var(--font-ui,system-ui)}
.pa-field select{appearance:none;padding-inline-end:2.6rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' stroke='%23345b48' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center}
[dir=rtl] .pa-field select{background-position:left .9rem center}
.pa-inline-actions{display:flex;gap:.6rem;flex-wrap:wrap}.pa-inline-actions>button{flex:1}
.pa-source{font-size:.8125rem;line-height:1.5;margin:.5rem 0 .8rem}.pa-source a,.pa-notes a{color:var(--pa-green);text-decoration:underline;text-underline-offset:.2em}
.pa-volume{display:flex;align-items:center;gap:.75rem;min-height:44px;font-size:.875rem;font-weight:650}.pa-volume input{flex:1;min-width:70px;accent-color:var(--pa-green);min-height:44px}.pa-volume output{min-width:3rem;text-align:end;font-variant-numeric:tabular-nums}
.pa-group-choice{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.4rem 0 .65rem}.pa-group-choice button{font-size:.875rem;border-color:var(--pa-line)}.pa-group-choice button[aria-pressed=true]{background:var(--pa-green);color:var(--pa-panel);border-color:var(--pa-green)}
.pa-prayer-list{display:grid;gap:.1rem;border:1px solid var(--pa-line);border-radius:14px;overflow:hidden}
.pa-prayer-row{display:flex;align-items:center;gap:.7rem;padding:.75rem .8rem;min-height:52px;cursor:pointer;background:var(--pa-panel);font-size:.9375rem;border-bottom:1px solid var(--pa-line)}.pa-prayer-row:last-child{border-bottom:0}
.pa-prayer-row input,.pa-toggle input{appearance:auto;flex:none;width:21px;height:21px;min-height:0;padding:0;margin:0;accent-color:var(--pa-green)}.pa-prayer-row>label{display:flex;gap:.7rem;align-items:center;align-self:stretch;flex:1;min-width:0;cursor:pointer}.pa-set-time{min-height:44px;border:0;border-radius:8px;background:var(--pa-soft);color:var(--pa-green);padding:.35rem .65rem;font:700 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}.pa-prayer-row{padding-block:0}.pa-prayer-row strong{font-size:.875rem;white-space:nowrap;font-variant-numeric:tabular-nums}.pa-prayer-row.is-unavailable strong{font-weight:500;color:var(--muted,#627369)}
.pa-toggle{display:flex;align-items:center;gap:.75rem;min-height:64px;padding:.65rem 0;cursor:pointer}.pa-toggle>span{flex:1;min-width:0}.pa-toggle strong{display:block;font-size:1rem;font-weight:750}.pa-toggle small{display:block;font-size:.875rem;line-height:1.5;margin-top:.15rem;color:var(--muted,#627369)}.pa-toggle>svg{flex:none;color:var(--pa-green)}
.pa-imsak-options{padding:.8rem;border:1px solid var(--pa-line);border-radius:14px;background:var(--pa-soft)}.pa-minute-field input{max-width:8rem;font-variant-numeric:tabular-nums}
.pa-warning{padding:.8rem .9rem;border:1px solid #b98548;border-radius:12px;background:#fff3df;color:#704315;font-size:.875rem;line-height:1.6;margin:.8rem 0}.pa-warning p{margin:.3rem 0 .6rem}.pa-warning .pa-secondary{background:#fff9ef;border-color:#b98548;color:#704315}
.pa-text-button{min-height:44px;padding:.3rem .15rem;border:0;background:none;color:var(--pa-green);font:750 .875rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.pa-notes{margin-top:1rem;border-top:1px solid var(--pa-line)}.pa-notes>summary{min-height:48px;padding:.8rem 0;font-size:.875rem;font-weight:750;color:var(--pa-green);cursor:pointer}.pa-notes p{font-size:.875rem;line-height:1.7;margin:.2rem 0 .8rem}
.prayer-alert-notice{position:fixed;z-index:12000;inset-inline:12px;bottom:calc(88px + env(safe-area-inset-bottom,0px));max-width:540px;margin-inline:auto;padding:.9rem 1rem;display:flex;align-items:center;gap:.8rem;border:1px solid var(--pa-green);border-radius:18px;background:var(--pa-panel);box-shadow:0 8px 35px #173a2830}
.pa-dialog-notice-slot{flex:none}.pa-dialog-notice-slot:empty{display:none}.pa-dialog-notice-slot>.prayer-alert-notice{position:static;max-width:none;max-height:min(30dvh,200px);overflow:auto;margin:.8rem 1.2rem 0;box-shadow:none}
.prayer-alert-notice>div:first-child{min-width:0;flex:1}.prayer-alert-notice strong{font-size:1rem;font-weight:800}.prayer-alert-notice p{font-size:.875rem;line-height:1.5;margin:.3rem 0 0;overflow-wrap:anywhere}.pa-notice-actions{display:flex;gap:.4rem;flex-wrap:wrap}.pa-notice-actions button{padding:.5rem .65rem;font-size:.875rem;min-height:44px}
.prayer-alert-settings :focus-visible,.prayer-alert-dialog :focus-visible,.prayer-alert-notice :focus-visible{outline:3px solid var(--pa-green);outline-offset:3px}
@media(max-width:380px){.pa-dialog-heading{padding:.9rem 1rem}.pa-dialog-body{padding:.8rem .9rem 1rem}.pa-status-card{padding:.8rem;gap:.65rem}.pa-status-icon{width:42px;height:42px}.pa-primary-actions{gap:.45rem}.prayer-alert-notice{align-items:flex-start;flex-direction:column}.pa-notice-actions{width:100%;justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.prayer-alert-dialog::backdrop{backdrop-filter:none}}

.pa-preference{border-block-end:1px solid var(--line,#c7d2ca)}
.pa-preference>summary{display:flex;gap:.75rem;align-items:center;min-block-size:52px;padding:.45rem .1rem;cursor:pointer;list-style:none}
.pa-preference>summary::-webkit-details-marker{display:none}
.pa-preference>summary strong{flex:1;color:var(--ink,#233d34)}
.pa-preference>summary span{font-size:.875rem;color:var(--muted,#4c6257);max-inline-size:45%;text-align:end;overflow-wrap:anywhere}
.pa-preference>summary::after{content:'';inline-size:.55rem;block-size:.55rem;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);margin-inline:.25rem}
.pa-preference[open]>summary::after{transform:rotate(225deg)}
.pa-preference .pa-section{padding:.5rem 0 1rem;margin:0;border:0;background:transparent}
.pa-dialog-body{scrollbar-gutter:stable}


/* /today-refinement.css */
/* Quran first. One day bar opens the related calendar, timetable and sound controls. */
.today-calendar-link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-inline-size:44px;min-block-size:44px;box-sizing:border-box;padding:.45rem .65rem;border:1px solid var(--line);border-radius:.7rem;background:var(--panel);color:var(--green);font:600 .875rem/1.4 var(--font-ui,system-ui,sans-serif);text-decoration:none;white-space:nowrap}
.today-calendar-link>span:first-child{display:flex;align-items:center}.today-calendar-link svg{inline-size:1.25rem;block-size:1.25rem;flex:none}.today-calendar-link.is-icon{inline-size:44px;padding:0}
.today-calendar-link:hover{background:var(--pale)}.today-calendar-link:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.folio-day-header>.today-calendar-link{justify-self:end}.routine-page-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-block:.5rem 1rem}.routine-page-heading h1{min-inline-size:0;margin:0}.routine-page-heading>.today-calendar-link{flex:none}
.today-day-card{margin:0 0 1rem;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink)}
.today-day-summary{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto auto;align-items:center;gap:1.15rem;min-height:86px;padding:.8rem 1rem;list-style:none;cursor:pointer;border-radius:inherit;box-sizing:border-box}
.today-day-summary::-webkit-details-marker{display:none}
.today-day-summary:hover{background:color-mix(in srgb,var(--green) 4%,transparent)}
.today-date-preview,.today-prayer-preview{display:flex;align-items:center;gap:.65rem;min-width:0}
.today-date-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:var(--pale);color:var(--green)}
.today-date-icon svg{width:22px;height:22px}
.today-date-copy{display:grid;gap:.2rem;min-width:0}
.today-date-copy strong{font-size:1rem;font-weight:800;line-height:1.35}
.today-date-occasion{font-size:.8125rem;font-weight:700;line-height:1.4;color:var(--green);overflow-wrap:anywhere}
.today-date-copy small{font-size:.8125rem;line-height:1.4;color:var(--muted)}
.today-peek-icon{display:grid;place-items:center;color:var(--green);flex:none}
.today-peek-icon svg{width:20px;height:20px}
.today-peek-copy{display:grid;grid-template-columns:auto auto;align-items:baseline;justify-content:start;column-gap:.5rem;row-gap:.2rem;min-width:0}
.today-peek-copy>span{font-size:.8125rem;font-weight:650;line-height:1.35}
.today-peek-copy>strong{font-size:1.15rem;font-weight:850;font-variant-numeric:tabular-nums;line-height:1.2;color:var(--green)}
.today-peek-copy>small{grid-column:1/-1;font-size:.75rem;line-height:1.4;color:var(--muted)}
.today-sound-preview{display:flex;align-items:center;gap:.4rem;font-size:.75rem;line-height:1.4;color:var(--muted);max-width:155px}
.today-sound-preview>span:first-child{display:grid;place-items:center;flex:none;color:var(--green)}
.today-sound-preview svg{width:18px;height:18px}.today-sound-preview strong{display:block;font-weight:700;color:var(--ink)}
.today-day-toggle{display:flex;align-items:center;gap:.4rem;color:var(--green);font-size:.75rem;font-weight:750}
.today-day-toggle svg{width:20px;height:20px;flex:none;transition:transform .16s ease}
.today-day-card[open]>.today-day-summary{border-radius:18px 18px 0 0;background:var(--pale)}
.today-day-card[open]>.today-day-summary .today-day-toggle svg{transform:rotate(180deg)}
.today-day-body{border-top:1px solid var(--line)}
.today-day-settings{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:1rem;padding:1rem}
.today-day-times{min-width:0}
.today-day-card .prayer-times{padding:0;margin:0;border:0;background:transparent;border-radius:0}
.today-day-card .prayer-times-heading{margin-bottom:.6rem}
.today-day-card .prayer-times-headline{font-size:1rem}
.today-day-card .prayer-times-setup{border:1px solid var(--line);padding:.45rem .65rem;background:var(--panel)}
.today-day-card .prayer-time-chip{min-height:68px}
.today-day-sounds{min-width:0;border-inline-start:1px solid var(--line);padding-inline-start:1rem}
.today-alert{display:flex;align-items:center;gap:.65rem;min-height:66px;width:100%;padding:.75rem;border:1px solid color-mix(in srgb,var(--green) 24%,var(--line));border-radius:13px;background:var(--pale);color:var(--ink);text-align:start;cursor:pointer}
.today-alert>span:nth-child(2){display:grid;gap:.2rem;flex:1}
.today-alert strong{font-size:.95rem;font-weight:800}
.today-alert small{font-size:.8125rem;color:var(--muted);line-height:1.4}
.today-alert-icon{display:grid;place-items:center;flex:none;color:var(--green)}
.today-alert-icon svg{width:24px;height:24px}.today-action-arrow svg{width:18px;height:18px}
.today-alert:hover{background:color-mix(in srgb,var(--green) 10%,var(--panel))}
.today-sound-hint{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:.55rem .1rem .75rem}
.today-day-card .amal-reminder-settings{margin:0;padding:.25rem 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.today-day-card .amal-reminder-settings>summary{font-size:.8125rem;min-height:44px;gap:.4rem;padding:.6rem .1rem;list-style:none}
.today-day-card .amal-reminder-settings>summary::-webkit-details-marker{display:none}
.today-day-card .amal-reminder-settings>summary::after{content:'';width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-inline-start:auto;margin-inline-end:.3rem}
.today-day-card .amal-reminder-settings[open]>summary::after{transform:rotate(225deg)}
.today-day-card .amal-reminder-settings>div{padding:.2rem 0 .5rem}
.today-date-part{border-top:1px solid var(--line)}
.today-day-card .cal-day-strip{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.today-day-card .cal-day-body{padding:1rem;border:0}
.today-day-card button:focus-visible,.today-day-card summary:focus-visible,.today-day-card a:focus-visible,.amal-recommendations button:focus-visible,.amal-recommendations a:focus-visible,.amal-recommendations summary:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
.today-practice-dashboard .amal-recommendations{margin:0 0 1rem;padding:1rem 1.15rem;border-radius:20px;background:var(--panel);border:1px solid var(--line)}
.amal-recommendations .ar-heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin:0 0 .75rem}
.amal-recommendations .ar-heading h2{font-size:1.1rem;line-height:1.35;margin:.1rem 0 0;font-weight:800;color:var(--ink)}
.amal-recommendations .ar-eyebrow{display:block;font-size:.6875rem;letter-spacing:.07em;font-weight:800;color:var(--green)}
.amal-recommendations .ar-after-prayer{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;flex-shrink:0;padding:.45rem .65rem;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--green);font:inherit;font-size:.875rem;font-weight:700;cursor:pointer}
.amal-recommendations .ar-after-prayer svg{width:18px;height:18px}
.amal-recommendations .ar-featured{background:var(--pale);border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));border-inline-start:4px solid var(--green);border-radius:14px;overflow:hidden}
.amal-recommendations .ar-reading{display:flex;align-items:center;gap:.75rem;min-height:58px;margin:0;padding:.75rem .85rem;border:0;color:var(--ink);text-decoration:none!important;background:transparent;border-radius:12px}
.amal-recommendations .ar-reading:hover{background:color-mix(in srgb,var(--green) 6%,transparent)}
.amal-recommendations .ar-choice-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--panel);color:var(--green)}
.amal-recommendations .ar-choice-icon svg{width:20px;height:20px}
.amal-recommendations .ar-choice-copy{display:grid;gap:.18rem;flex:1;min-width:0}
.amal-recommendations .ar-reading strong{font-size:1rem;font-weight:780;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}
.amal-recommendations .ar-date{font-size:.8125rem;line-height:1.35;color:var(--muted);font-weight:600}
.amal-recommendations .ar-open{flex-shrink:0;font-size:.8125rem;font-weight:750;color:var(--green);padding:.4rem .6rem;border-radius:8px;background:var(--panel)}
.amal-recommendations .ar-condition{font-size:.8125rem;color:var(--muted)}
.amal-recommendations .ar-evidence{margin:0 .85rem .5rem;border:0;padding:0}
.amal-recommendations .ar-evidence>summary{font-size:.875rem;min-height:36px;padding:.2rem 0;font-weight:550;color:var(--green)}
.amal-recommendations .ar-evidence>div{font-size:.875rem;line-height:1.55;padding:.3rem 0 .5rem;color:var(--muted)}
.amal-recommendations .ar-evidence p{margin:.25rem 0}
.amal-recommendations .ar-evidence a{font-size:.8125rem}
.amal-recommendations .ar-next{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:start;gap:.4rem;padding:.6rem 0 .25rem}
.amal-recommendations .ar-next-label{font-size:.6875rem;font-weight:850;letter-spacing:.05em;color:var(--muted);padding-top:1rem}
.amal-recommendations .ar-next-choice{min-width:0}
.amal-recommendations .ar-next .ar-reading{padding:.45rem .1rem;min-height:52px}
.amal-recommendations .ar-next .ar-choice-icon{display:none}
.amal-recommendations .ar-next .ar-reading strong{font-size:.9rem}
.amal-recommendations .ar-next .ar-evidence{margin:0 0 .25rem}
.amal-recommendations .ar-next .ar-evidence>summary{min-height:28px}
.amal-recommendations .ar-disclosures{border-top:1px solid var(--line);margin-top:.25rem}
.amal-recommendations .ar-more,.amal-recommendations .ar-controls{border:0;margin:0;padding:0}
.amal-recommendations .ar-controls{border-top:1px solid var(--line)}
.amal-recommendations .ar-more>summary,.amal-recommendations .ar-controls>summary{display:flex;align-items:center;gap:.5rem;list-style:none;min-height:44px;margin:0;padding:.6rem 0;font-size:.875rem;font-weight:700;color:var(--green);cursor:pointer}
.amal-recommendations .ar-more>summary::-webkit-details-marker,.amal-recommendations .ar-controls>summary::-webkit-details-marker{display:none}
.amal-recommendations .ar-more>summary:after,.amal-recommendations .ar-controls>summary:after{content:'';width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-inline-start:auto;margin-inline-end:.3rem}
.amal-recommendations .ar-more[open]>summary:after,.amal-recommendations .ar-controls[open]>summary:after{transform:rotate(225deg)}
.amal-recommendations .ar-more>summary>span{font-size:.75rem;font-weight:500;color:var(--muted)}
.amal-recommendations .ar-controls>summary svg{width:18px;height:18px}
.amal-recommendations .ar-list{display:grid;gap:.5rem;list-style:none;margin:0;padding:0}
.amal-recommendations .ar-list>.ar-choice{border:1px solid var(--line);border-radius:12px}
.amal-recommendations .ar-controls-body,.amal-recommendations .ar-more-body{padding:.2rem 0 .8rem}
.amal-recommendations .ar-moments{display:flex;flex-wrap:wrap;gap:.4rem;margin:.1rem 0 .8rem}
.amal-recommendations .ar-moments button{min-height:44px;padding:.45rem .75rem;border:1px solid var(--line);border-radius:20px;font:inherit;font-size:.875rem;font-weight:650;background:var(--panel);color:var(--ink);cursor:pointer}
.amal-recommendations .ar-moments button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
.amal-recommendations .ar-fields{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:.5rem 0}
.amal-recommendations .ar-fields label{display:grid;gap:.35rem;font-size:.875rem;font-weight:650;min-width:0;color:var(--ink)}
.amal-recommendations .ar-fields select,.amal-recommendations .ar-fields input{min-width:0;width:100%;min-height:44px;padding:.5rem .65rem;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font:inherit;font-size:1rem}
.amal-recommendations .ar-fields select{appearance:none;padding-inline-end:2rem;background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right .65rem center;background-size:12px}
.amal-recommendations[dir=rtl] .ar-fields select{background-position:left .65rem center}
.amal-recommendations .ar-date-options{margin:.6rem 0;padding:.25rem 0}
.amal-recommendations .ar-date-options>summary,.amal-recommendations .ar-upcoming>summary{min-height:44px;padding:.6rem 0;font-size:.875rem;color:var(--green);font-weight:650}
.amal-recommendations .ar-context,.amal-recommendations .ar-control-note{font-size:.8125rem;line-height:1.55;color:var(--muted);margin:.5rem 0}
.amal-recommendations .ar-selection{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin:0 0 .7rem;padding:.6rem .7rem;border:1px solid var(--line);border-radius:10px;background:var(--pale);font-size:.8125rem}
.amal-recommendations .ar-selection>span{display:flex;align-items:center;gap:.35rem}
.amal-recommendations .ar-selection svg{width:16px;height:16px}
.amal-recommendations .ar-selection button,.amal-recommendations .ar-setup-note button{min-height:44px;padding:.4rem .65rem;background:var(--panel);border:1px solid var(--line);border-radius:9px;font:inherit;font-size:.875rem;color:var(--green);font-weight:700;cursor:pointer}
.amal-recommendations .ar-setup-note{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-top:1px solid var(--line);padding:.5rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--muted)}
.amal-recommendations .ar-setup-note button{flex-shrink:0}
.amal-recommendations .ar-library{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.6rem}
.amal-recommendations .ar-library a,.amal-recommendations .ar-calendar-link{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:650;color:var(--green);padding:.45rem .6rem;border:1px solid var(--line);border-radius:9px;text-decoration:none!important}
.amal-recommendations .ar-empty{margin:.5rem 0;padding:1rem;border:1px dashed var(--line);border-radius:12px}
.amal-recommendations .ar-empty p{font-size:.875rem;line-height:1.55;margin:.4rem 0 0}
@media(max-width:540px){
  .today-day-summary{grid-template-columns:minmax(0,1fr) auto;gap:.7rem .5rem;padding:.8rem;min-height:0}
  .today-date-preview{grid-column:1;grid-row:1}.today-day-toggle{grid-column:2;grid-row:1;align-self:center}.today-day-toggle>span{display:none}
  .today-date-icon{width:32px;height:32px;border-radius:10px}.today-date-icon svg{width:20px;height:20px}.today-date-copy strong{font-size:.9rem}.today-date-copy small{font-size:.75rem}
  .today-prayer-preview{grid-column:1;grid-row:2;gap:.45rem}.today-peek-copy{column-gap:.35rem;row-gap:.15rem}.today-peek-copy>span{font-size:.75rem}.today-peek-copy>strong{font-size:1rem}.today-peek-copy>small{font-size:.75rem}
  .today-sound-preview{grid-column:2;grid-row:2;max-width:100px;font-size:.6875rem;gap:.3rem}.today-sound-preview svg{width:16px;height:16px}
  .today-day-settings{grid-template-columns:1fr;padding:.8rem;gap:.8rem}.today-day-sounds{border-inline-start:0;border-top:1px solid var(--line);padding-inline-start:0;padding-top:.8rem}
  .today-day-card .cal-day-body{padding:.8rem}.today-day-card .prayer-time-chip{min-height:66px}
  .today-practice-dashboard .amal-recommendations{padding:.85rem .8rem}.amal-recommendations .ar-eyebrow{font-size:.75rem}.amal-recommendations .ar-heading h2{font-size:1.05rem}
  .amal-recommendations .ar-after-prayer{padding:.4rem .5rem;font-size:.8125rem}.amal-recommendations .ar-after-prayer svg{display:none}
  .amal-recommendations .ar-reading{gap:.5rem;padding:.65rem}.amal-recommendations .ar-choice-icon{width:30px;flex-basis:30px;height:30px}
  .amal-recommendations .ar-next{grid-template-columns:52px minmax(0,1fr);gap:.35rem}.amal-recommendations .ar-next-label{font-size:.75rem}
  .amal-recommendations .ar-fields{grid-template-columns:1fr}.amal-recommendations .ar-open{padding:.3rem .4rem}.amal-recommendations .ar-more>summary>span{display:none}
}
@media(min-width:541px) and (max-width:800px){.today-day-summary{gap:.7rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.today-day-toggle>span{display:none}.today-sound-preview{grid-column:2;grid-row:2;max-width:none}.today-sound-preview strong{display:inline;margin-inline-start:.25rem}.today-date-preview{grid-row:1/3}.today-day-toggle{grid-column:3;grid-row:1/3}}
@media(prefers-reduced-motion:reduce){.today-day-card *,.amal-recommendations *{scroll-behavior:auto!important;transition:none!important}}

/* Keep Quran and the immediate suggestion visible together on wider screens. */
.today-focus-grid{display:grid;gap:1rem;align-items:start;margin-bottom:1rem}
.today-focus-grid>.daily-practice,.today-focus-grid>.amal-recommendations{margin:0}
.amal-recommendations .ar-next .ar-evidence{display:none}
.amal-recommendations .ar-disclosures{display:grid;grid-template-columns:1fr 1fr;column-gap:1rem}
.amal-recommendations .ar-disclosures>details[open]{grid-column:1/-1}
.amal-recommendations .ar-controls{border-top:0}
.amal-recommendations .ar-more>summary>span{display:none}
.amal-recommendations .ar-disclosures>details>summary{font-size:.8125rem;line-height:1.35;gap:.3rem}
.amal-recommendations .ar-disclosures>details>summary svg{display:none}
body.dark .amal-recommendations .ar-moments button[aria-pressed=true]{color:var(--bg)}
@media(min-width:1080px){.today-focus-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}.today-focus-grid>.daily-practice .daily-main{gap:.75rem}.today-focus-grid>.daily-practice .daily-topline{align-items:center}.today-focus-grid>.daily-practice .daily-week-strip{flex-wrap:wrap;gap:.45rem}.today-focus-grid>.daily-practice .daily-week{width:100%;flex:1}.today-focus-grid>.daily-practice .daily-streak{font-size:.75rem}}
/* One compact tools row, with the same direct actions and familiar symbols. */
body .today-practice-dashboard .today-quick-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:.35rem;border:1px solid var(--line);border-radius:16px;background:var(--panel);margin-block:0 1.25rem}
body .today-practice-dashboard .today-quick-tools :is(a,button){min-height:50px;gap:.45rem;padding:.4rem .6rem;border:0;border-radius:10px;background:transparent;justify-content:center}
body .today-practice-dashboard .today-quick-tools :is(a,button)>span{width:26px;height:26px;border-radius:0;background:transparent;color:var(--green)}
body .today-practice-dashboard .today-quick-tools :is(a,button)>span svg{width:21px;height:21px}
body .today-practice-dashboard .today-quick-tools :is(a,button)>strong{font-size:.8125rem;line-height:1.35;font-weight:700}
body .today-practice-dashboard .today-quick-tools :is(a,button):hover{background:var(--pale)}
@media(max-width:620px){body .today-practice-dashboard .today-quick-tools{grid-template-columns:repeat(3,minmax(0,1fr))}body .today-practice-dashboard .today-quick-tools :is(a,button){flex-direction:column;gap:.25rem;min-height:64px;padding:.4rem;text-align:center}body .today-practice-dashboard .today-quick-tools>:last-child:nth-child(5){grid-column:auto}body .today-practice-dashboard .today-quick-tools [data-today-tools=all]{grid-column:2/4;flex-direction:row;background:var(--pale)}}
@media(max-width:350px){.today-focus-grid .daily-quran-first .daily-ring{display:grid}.today-focus-grid .daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 68px}.today-focus-grid .daily-quran-first .daily-ring{width:68px;height:68px}.today-focus-grid .daily-quran-first .daily-primary{width:auto;padding-inline:.65rem;font-size:.8125rem}}

.today-occasion-actions{margin:1rem 1rem 0;padding:.8rem 1rem;border-inline-start:3px solid var(--green);border-radius:10px;background:var(--pale);color:var(--ink)}
.today-occasion-actions small{color:var(--green);font-size:.8125rem;font-weight:650}
.today-occasion-link{display:flex;align-items:center;gap:.5rem;min-height:42px;color:var(--ink);font-size:1rem;font-weight:750;line-height:1.4;text-decoration:none}
.today-occasion-link svg{flex:none;color:var(--green)}
.today-occasion-actions p{margin:.1rem 0 .6rem;font-size:.9375rem;line-height:1.55}
.today-occasion-buttons{display:flex;flex-wrap:wrap;gap:.35rem .65rem}
.cal-occasion-export,.cal-occasion-reading{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.4rem .7rem;border-radius:.6rem;border:1px solid var(--line);background:var(--panel);color:var(--green);font-size:.875rem;font-weight:650;line-height:1.35;text-decoration:none}
.cal-occasion-reading{background:var(--green);color:var(--panel);border-color:var(--green)}
.cal-occasion-export svg,.cal-occasion-reading svg{flex:none}

/* One surface for the recommendation, its add action and the resulting routine. */
.today-worship-stack { display:grid; gap:.65rem; min-inline-size:0; }
.today-worship-stack > [data-qada-today] { margin:0; }
.today-worship {
  min-inline-size:0; margin:0; padding:clamp(.9rem,2vw,1.2rem);
  color:var(--ink); background:var(--panel); border:1px solid var(--line);
  border-radius:1.15rem; text-align:start;
}
.today-worship > summary { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-block-size:44px; cursor:pointer; list-style:none; }
.today-worship > summary::-webkit-details-marker { display:none; }
.today-worship[open] > summary { margin-block-end:.55rem; }
.today-worship-chevron { display:grid; place-items:center; width:1.5rem; height:1.5rem; color:var(--green); }
.today-worship-chevron svg { width:1rem; height:1rem; }
.today-worship[open] > summary .today-worship-chevron { transform:rotate(180deg); }
.today-worship > summary h2 {
  display:flex; align-items:center; gap:.55rem; margin:0;
  font-size:clamp(1.06rem,1.6vw,1.25rem); line-height:1.45; color:var(--ink);
}
.today-worship > summary h2 > span {
  display:grid; place-items:center; inline-size:2rem; block-size:2rem; flex:none;
  border-radius:.65rem; background:var(--pale); color:var(--green);
}
.today-worship > summary h2 svg { inline-size:1.24rem; block-size:1.24rem; }
.today-worship .amal-recommendations[data-ar-embedded] {
  margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.today-worship > .today-worship-pins { margin:0; border-block-start:1px solid var(--line); }
.today-worship-pins[hidden] { display:none; }
.today-worship-pins > summary { min-block-size:44px; padding:.65rem 0; color:var(--green); cursor:pointer; font-weight:650; }
.today-worship-pins > summary span { color:var(--muted); font-variant-numeric:tabular-nums; }
.today-worship :is(button,summary):focus-visible,.today-worship a:focus-visible { outline:3px solid var(--green); outline-offset:2px; }
.today-prayer-tools { margin-block:.5rem 1rem; }
.today-explore-practices[open] > summary svg,.young-practice-drawer[open] .young-practice-plus { transform:rotate(180deg); }
.young-practice-plus svg { width:1.15rem; height:1.15rem; }
@media (min-width:900px) {
  .today-unified-grid { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
}
@media (max-width:600px) {
  .today-unified-grid { gap:.65rem; }
  .today-worship { padding:.85rem; }
  .today-worship[open] > summary { margin-block-end:.35rem; }
  .today-unified-grid > .daily-quran-first { padding-block-start:.8rem; }
  .today-unified-grid .daily-quran-first .daily-topline { margin-block-end:.5rem; }
}

/* The tabs navigate two views. The reading is the primary action in either view. */
.today-worship .today-worship-views {
  display:flex; align-items:stretch; flex-wrap:wrap; gap:.3rem 1rem;
  margin:0 0 .85rem; padding:0; border:0; border-block-end:1px solid var(--line);
  border-radius:0; background:transparent;
}
.today-worship-views [data-worship-tab] {
  display:inline-flex; align-items:center; justify-content:center; gap:.36rem;
  min-inline-size:44px; min-block-size:44px; padding:.25rem .24rem;
  border:0; border-block-end:2px solid transparent; border-radius:0; background:transparent;
  font:inherit; font-size:.94rem; font-weight:550; line-height:1.45;
  color:var(--muted); text-align:center; overflow-wrap:anywhere; cursor:pointer;
}
.today-worship-views [data-worship-tab][aria-selected=true] { color:var(--green); border-block-end-color:currentColor; font-weight:700; }
.today-worship-views [data-worship-tab] svg { inline-size:1rem; block-size:1rem; flex:none; }
.today-worship-views [data-worship-count] { color:var(--muted); font-size:.8em; font-variant-numeric:tabular-nums; }
.today-worship [data-worship-pane] { min-inline-size:0; }
.today-worship :is(.today-worship-views,[data-worship-pane],[data-worship-count],[data-worship-due])[hidden] { display:none; }
.today-worship [data-worship-due] {
  display:flex; align-items:center; gap:.55rem; min-inline-size:0; min-block-size:54px;
  margin:0; padding:.1rem .2rem .32rem 0; border:0; border-radius:0; background:transparent;
  color:var(--ink); font:inherit; line-height:1.45; text-align:start; text-decoration:none;
}
.today-worship [data-worship-due-copy] { display:grid; min-inline-size:0; flex:1; gap:.15rem; }
.today-worship [data-worship-due-copy] small { color:var(--gold-text,var(--green)); font-size:.84rem; font-weight:650; }
.today-worship [data-worship-due-title] { color:var(--ink); font-size:1.16rem; line-height:1.4; font-weight:700; overflow-wrap:anywhere; }
.today-worship [data-worship-due] > svg { flex:none; inline-size:1.15rem; block-size:1.15rem; color:var(--green); }
.today-worship [data-worship-due-estimate] { flex:none; }
.today-worship [data-worship-pane] > .today-worship-pins { margin:.5rem 0 0; border-block-start:1px solid var(--line); }
.today-worship :is([data-worship-tab],[data-worship-due]):focus-visible { outline:3px solid var(--focus-ring,var(--ink)); outline-offset:2px; }
.today-worship .ar-picker-heading { display:flex; align-items:center; gap:.25rem .65rem; flex-wrap:wrap; justify-content:space-between; }
.today-worship .ar-picker-heading h3 { margin:0; }
.today-worship .ar-picker-heading h3[hidden] { display:none; }
.today-worship .ar-budget-choice { display:inline-flex; width:auto; max-inline-size:100%; align-items:center; gap:.25rem; color:var(--muted); }
.today-worship .ar-budget-choice select {
  min-block-size:44px; min-inline-size:0; max-inline-size:100%; width:auto; field-sizing:content;
  border:0; border-radius:.3rem; padding:.25rem .15rem; background:var(--panel); color:var(--ink);
  font:inherit; font-size:.83rem; line-height:1.5; cursor:pointer;
}
.today-worship .ar-budget-idle select { inline-size:4.6rem; text-align:end; }
.today-worship .ar-picker-metadata { display:flex; align-items:center; flex-wrap:wrap; gap:.15rem .55rem; color:var(--muted); font-size:.83rem; }
.today-worship .ar-picker-metadata:empty {display:none}
.today-worship .ar-due-suggestions>summary { min-height:44px; align-content:center; color:var(--green); cursor:pointer; font-size:.9rem; }
.today-worship .rci-day-effort { display:inline-flex; align-items:center; flex-wrap:wrap; gap:.25rem; color:var(--muted); font-size:.85rem; }
.today-worship .rci-saved-head progress { display:none; }
@media (hover:hover) {
  .today-worship-views [data-worship-tab]:hover,.today-worship [data-worship-due]:hover [data-worship-due-title] { color:var(--green); }
}
@media (forced-colors:active) {
  .today-worship-views [data-worship-tab][aria-selected=true] { border-block-end-color:Highlight; }
  .today-worship :is([data-worship-tab],[data-worship-due]):focus-visible { outline-color:Highlight; }
}

/* Leave the first phone screen to the date, Quran and devotional work. */
@media(max-width:700px){
  body.home-page[data-profile="researcher"] .topbar {
    display:flex!important; flex-flow:row nowrap; align-items:center;
    height:auto!important; min-height:54px!important; gap:3px!important;
    padding:5px max(5px,env(safe-area-inset-right)) 5px max(5px,env(safe-area-inset-left))!important;
  }
  body.home-page[data-profile="researcher"] .topbar .top-right {display:contents!important}
  body.home-page[data-profile="researcher"] .topbar .top-brand,
  body.home-page[data-profile="researcher"] .topbar .top-right :is(.mushaf-explore-button,.pwa-install-trigger,#settingsButton) {
    flex:0 0 44px; width:44px!important; min-width:44px!important; height:44px!important;
    min-height:44px!important; padding:0!important; justify-content:center;
  }
  body.home-page[data-profile="researcher"] .topbar .top-brand>span,
  body.home-page[data-profile="researcher"] .topbar .top-right :is(.mushaf-explore-button,.pwa-install-trigger)>span {display:none!important}
  body.home-page[data-profile="researcher"] .topbar .top-right .pwa-install-trigger {
    background:transparent!important; color:var(--muted)!important; border-color:transparent!important; box-shadow:none!important;
  }
  body.home-page[data-profile="researcher"] .topbar .pwa-install-trigger svg {display:block!important; width:20px;height:20px}
  body.home-page[data-profile="researcher"] .topbar .profile-control {
    flex:1 1 auto; width:auto!important;max-width:none!important; min-width:44px; margin:0!important;
  }
  body.home-page[data-profile="researcher"] .topbar .profile-trigger {
    min-height:44px; padding:3px 5px; width:100%; gap:3px; font-size:.85rem;
  }
  body.home-page[data-profile="researcher"] .topbar .profile-trigger-label {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body.home-page[data-profile="researcher"] .topbar .language-button {width:auto!important;min-width:44px!important;min-height:44px;padding-inline:4px!important}
}
@media(max-width:360px){
  body.home-page[data-profile="researcher"] .topbar .profile-trigger .profile-icon {display:none}
}
@media(max-width:700px) and (max-height:420px){
  body.home-page[data-profile="researcher"] .topbar {position:relative!important;top:auto}
}

.ar-time-library{display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px;color:var(--green);font-weight:650;text-decoration:none}
.ar-time-library svg{inline-size:1em;block-size:1em;flex:none}
.ar-time-library:hover{text-decoration:underline;text-underline-offset:.2em}
.ar-picker-empty .ar-time-library{display:flex}


/* /today-agenda.css */
/* The date orientates the reader. Reading and Today's work carry the interactive weight. */
.today-practice-dashboard .today-heading{margin-block:0 .35rem}
.today-practice-dashboard .today-heading h1{font-size:clamp(1.65rem,3.4vw,2.2rem);letter-spacing:-.035em}
.today-practice-dashboard[dir=rtl] .today-heading h1,[dir=rtl] .today-practice-dashboard .today-heading h1{letter-spacing:normal}
.today-day-summary .today-only-at{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;margin:-1px}
.today-practice-dashboard .today-day-card{background:transparent;border:0;border-block-end:1px solid var(--line);border-radius:0;margin-block:0 .85rem}
.today-practice-dashboard .today-day-summary{grid-template-columns:minmax(0,1fr) auto auto;gap:.8rem;min-height:55px;padding:.35rem .1rem .65rem}
.today-practice-dashboard .today-date-preview{grid-column:1;grid-row:1;gap:.55rem}
.today-practice-dashboard .today-prayer-preview{grid-column:2;grid-row:1;align-items:center;gap:.35rem;justify-self:end}
.today-practice-dashboard .today-day-toggle{grid-column:3;grid-row:1;align-self:center}
.today-practice-dashboard .today-day-toggle>span{display:none}
.today-practice-dashboard .today-date-icon{width:25px;height:25px;border-radius:0;background:none}
.today-practice-dashboard .today-date-copy{gap:.1rem}
.today-practice-dashboard .today-date-copy>strong{font-size:1rem}
.today-practice-dashboard .today-date-occasion{font-size:.875rem;line-height:1.55;margin-top:.1rem}
.today-practice-dashboard .today-peek-copy{display:flex;align-items:baseline;gap:.33rem;flex-wrap:wrap}
.today-practice-dashboard .today-peek-copy>strong{font-size:1rem}
.today-practice-dashboard .today-day-card[open]>.today-day-summary{background:transparent}
.today-day-summary .today-occasion-preview{grid-column:1/-1;grid-row:2;font-size:.875rem;font-weight:650;color:var(--green);line-height:1.4}
.today-occasion-preview:empty{display:none}
.today-occasion-cue>span:first-child{color:var(--gold,#967429);font-size:.85em}
.today-occasion-cue.is-upcoming{font-weight:500}
.today-practice-dashboard .today-day-body{background:var(--panel);border:1px solid var(--line);border-radius:14px;margin:.2rem 0 .75rem}
.today-unified-grid>.daily-quran-first{padding:0;border:0;border-radius:18px;box-shadow:inset 0 0 0 1px var(--line)}
.today-practice-dashboard .daily-quran-focus{
 position:relative;isolation:isolate;overflow:hidden;padding:1.05rem 1.15rem 1.2rem;
 color:var(--hero-text);background:linear-gradient(118deg,var(--hero-start),var(--hero-end));
}
[dir=rtl] .today-practice-dashboard .daily-quran-focus{
 background:linear-gradient(242deg,var(--hero-start),var(--hero-end));
}
.today-practice-dashboard .daily-quran-first .daily-topline{margin-block:0 .32rem}
.today-practice-dashboard .daily-quran-first .daily-eyebrow h2{color:var(--hero-support);font-size:.9rem;font-weight:600;letter-spacing:normal;margin:0}
.today-practice-dashboard .daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem}
.today-practice-dashboard .daily-quran-first p.daily-reading-place{margin:0 0 .65rem;line-height:1.3;color:var(--hero-text)}
.daily-reading-place>strong{display:inline;font-size:clamp(1.35rem,3vw,1.8rem);font-weight:720}
.daily-reading-place>span{display:inline-block;color:var(--hero-support);font-size:.9rem;font-weight:500;white-space:nowrap;line-height:1.5}
.daily-reading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}
.daily-reading-actions .duration-badge[role=img]{align-self:center}
.today-practice-dashboard .daily-quran-first .daily-primary{
 min-height:44px;padding:.45rem .85rem;width:auto;border-radius:.78rem;
 background:var(--hero-action);border-color:var(--hero-action);color:var(--hero-action-ink);
}
.today-practice-dashboard .daily-primary:focus-visible{outline:3px solid var(--hero-text);outline-offset:3px}
@media(hover:hover){.today-practice-dashboard .daily-quran-first .daily-primary:hover{background:var(--hero-action-hover)}}
.today-practice-dashboard .daily-quran-first .daily-ring{
 position:relative;width:70px;height:70px;padding:4px;
 background:conic-gradient(var(--hero-progress) var(--daily-progress,0%),var(--hero-track) 0);
}
/* The outline belongs to the tracker. Its physical centre follows the grid cell in either direction. */
.today-practice-dashboard .daily-quran-first .daily-ring::before{
 content:"";position:absolute;pointer-events:none;inset:-.29rem;
 background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='m40 1 13.6 6.2 14 5.2 5.2 14L79 40l-6.2 13.6-5.2 14-14 5.2L40 79l-13.6-6.2-14-5.2-5.2-14L1 40l6.2-13.6 5.2-14 14-5.2Z' fill='none' stroke='%23c6efd2' stroke-opacity='.48' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.today-practice-dashboard .daily-quran-first .daily-ring>span{background:var(--hero-start)}
.today-practice-dashboard .daily-more .daily-week-strip{margin:1rem 0;padding:.9rem;border:0;border-radius:12px;background:#154c42}
.daily-plan-link{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:700;color:var(--green)}
.daily-plan-link svg{width:20px;height:20px}
.daily-more-inner>.daily-streak{display:inline-flex;margin-inline-start:.6rem;vertical-align:middle;color:var(--ink);background:var(--pale)}
.daily-more-inner>.daily-streak svg{color:var(--green)}
.today-practice-dashboard .daily-more>summary{font-size:.875rem;min-height:44px}
/* The recommendation name carries the decision. The active tab and the
   compact time control frame it without competing for the first reading. */
.today-worship .today-worship-views{margin-block-end:.4rem}
.today-worship .ar-picker-heading h3{font-size:.875rem;line-height:1.5;color:var(--muted);font-weight:650}
.today-worship .ar-picker-reading{
 display:block;align-content:center;padding-block:.28rem;text-align:start;
}
.today-worship [data-ar-lead] .ar-picker-reading{font-size:1.08rem;font-weight:710;line-height:1.46}
.today-worship [data-ar-lead] .ar-picker-add{
 border:1px solid var(--control-line);border-radius:100vmax;
 color:var(--green);background:var(--pale);font-weight:700;
}
@media(hover:hover){
 .today-worship [data-ar-lead] .ar-picker-add:hover{background:var(--green);color:var(--on-accent);border-color:var(--green)}
}
.today-worship .ar-picker-choice[data-ar-lead] .ar-picker-metadata{margin-block-start:.12rem}
@media(max-width:600px){
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar .top-right .pwa-install-trigger[data-install-app]{display:none!important}
 .main:has(.today-practice-dashboard) .topbar .profile-trigger{min-width:0}
 .today-practice-dashboard .today-day-summary{gap:.36rem}
 .today-practice-dashboard .today-date-preview{gap:.3rem}
 .today-practice-dashboard .today-date-icon{display:none}
 .today-practice-dashboard .today-date-copy>strong{font-size:.94rem}
 .today-practice-dashboard .today-peek-copy{display:grid;grid-template-columns:auto;justify-items:end;gap:.05rem;text-align:end}
 .today-practice-dashboard .today-peek-copy>span{font-size:.8rem}
 .today-practice-dashboard .daily-quran-focus{padding:.85rem 1rem 1rem}
 .today-practice-dashboard .daily-quran-first .daily-main{grid-template-columns:minmax(0,1fr) 66px}
 .today-practice-dashboard .daily-quran-first .daily-ring{width:66px;height:66px}
}
@media(forced-colors:active){
 .today-practice-dashboard .daily-quran-focus{border:1px solid CanvasText}
 .today-practice-dashboard .daily-quran-first .daily-ring::before{display:none}
 .daily-reading-place>span,.daily-reading-place strong{color:CanvasText}
 .today-practice-dashboard .daily-quran-first .daily-ring{border:2px solid CanvasText}
}
@media(max-width:700px){
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar .profile-control{order:1!important;flex:0 1 auto;inline-size:auto!important;margin-inline-end:auto!important}
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar .profile-trigger{justify-content:center;gap:.45rem;padding-inline:.6rem;border-radius:12px}
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar .profile-switch-icon{display:none}
 .main:has(.today-practice-dashboard) .profile-trigger::after{content:'';display:inline-block;width:.45rem;height:.45rem;margin-block-start:-.22rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar .mushaf-explore-button{order:2!important}
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar #languageButton{order:3!important}
 html body.home-page[data-profile] .main:has(.today-practice-dashboard) .topbar #settingsButton{order:4!important}
}

.ar-picker-pages{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding-block:.25rem}
.ar-picker-pages button{min-block-size:44px;padding:.25rem .65rem;border:0;border-radius:.45rem;background:transparent;color:var(--green,#176653);font:600 .9375rem/1.4 var(--font-ui,system-ui);cursor:pointer}
.ar-picker-pages button:disabled{opacity:.45;cursor:default}
.ar-picker-pages output{color:var(--muted,#52685e);font-variant-numeric:tabular-nums}
.ar-picker-pages button:focus-visible{outline:3px solid var(--focus-ring,#936500);outline-offset:2px}


/* /reading-type168.css */
/* Two local text faces for authored Arabic explanations. Edition-specific words
   and quotations keep the font matched to their text by the reader. */
body {--teaching-ar-face:"Noto Sans Arabic","Readex Pro",Tahoma,sans-serif;--teaching-ar-size:1.0625rem;--teaching-size-increase:max(0px,calc((var(--arabic-size,30px) - 30px) * .35))}
body[data-teaching-face="naskh"] {--teaching-ar-face:Amiri,"Noto Naskh Arabic",serif;--teaching-ar-size:1.25rem}
body:not([data-profile="researcher"]) :is([data-teaching-prose],.cp-question,.cp-argument li>p:not(.cp-step-sources),.cp-meaning,.cp-practice>p,#cp-answer>p,.cp-objection p,.cp-boundary p,.sp-question,.sp-model>p):lang(ar) {
 font-family:var(--teaching-ar-face);font-size:calc(var(--teaching-ar-size) + var(--teaching-size-increase));line-height:1.95;
 letter-spacing:normal;word-break:normal;text-align:start;font-synthesis:none;
}
.reader-type-sample {font-family:var(--quran-word-font,Amiri,serif);font-size:var(--arabic-size,30px);
 font-weight:400;font-synthesis:none;line-height:1.9;letter-spacing:normal;word-break:normal;
 text-align:center;color:var(--ink);background:var(--light);border-radius:.65rem;padding:.1em .55em;min-inline-size:0}
.teaching-type-choices {margin:.8rem 0 0;border:0;padding:0;min-width:0;font:inherit}
.teaching-type-choices legend {color:var(--ink);padding:0;font-size:.9375rem;font-weight:600;line-height:1.65}
.teaching-type-choices>div {display:flex;flex-wrap:wrap;gap:.4rem;margin-block:.3rem}
.teaching-type-choices button {display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.15rem .7rem;max-width:100%;
 color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:.6rem;
 font-family:var(--font-ui,system-ui);font-weight:500;font-size:.9375rem;line-height:1.5;cursor:pointer}
.teaching-type-choices button span {font:400 1.1rem/1.75 "Noto Sans Arabic",Tahoma,sans-serif;letter-spacing:normal}
.teaching-type-choices [data-reader-teaching-face="naskh"] span {font:400 1.35rem/1.55 Amiri,serif}
.teaching-type-choices button[aria-pressed="true"]{color:var(--green);border-color:currentColor;background:var(--pale)}
.teaching-type-choices button:focus-visible{outline:3px solid var(--focus-ring,var(--green));outline-offset:2px}
.reader-type-status{color:var(--muted);font-size:.875rem}.reader-type-status:empty{display:none}


/* /devotion-field-guide.css */
/* On Worship the real search field and the native filter summary share a row. */
html body .worship-folio .worship-search-surface {
  display:block; inline-size:100%; min-inline-size:0; padding:0; margin:.8rem 0;
  border:0; background:transparent; box-shadow:none;
}
.worship-search-surface .worship-inline-finder {max-inline-size:none; margin:0; padding:0;}
html body .worship-search-surface .worship-live-search {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:.2rem; align-items:start; margin:0;
}
.worship-search-surface .worship-live-search .worship-finder-input input {
  box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:48px;
  border:1px solid var(--muted);background:var(--panel);color:var(--ink);border-radius:.6rem;
}
.worship-search-surface input::placeholder {color:var(--muted);opacity:1;}
.worship-live-search .worship-search-filters,.worship-live-search .worship-filter-themes .devotion-theme-navigation {
  margin:0;padding:0;border:0;background:transparent;box-shadow:none;
}
.worship-live-search>.worship-search-filters>summary {
  display:inline-flex;align-items:center;gap:.4rem;min-block-size:44px;max-inline-size:100%;padding:0 .25rem;
  color:var(--folio-ink,var(--green));font-weight:650;cursor:pointer;list-style:none;
}
.worship-search-filters>summary::-webkit-details-marker {display:none;}
.worship-search-filters>summary svg {inline-size:1.1rem;block-size:1.1rem;flex:none;}
.worship-search-filters>summary svg:last-child {inline-size:.8rem;}
.worship-search-filters[open]>summary svg:last-child {transform:rotate(180deg);}
.worship-search-filters .worship-filter-fields {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.6rem 1rem;margin:.25rem 0 .6rem;
}
html body .worship-search-surface .worship-filter-fields label:has(select) {display:grid;gap:.2rem;align-items:start;}
.worship-search-surface .worship-filter-fields label span {font-size:.9rem;font-weight:600;color:var(--ink);}
.worship-search-surface .worship-filter-fields select {
  inline-size:100%;max-inline-size:100%;min-block-size:44px;background:var(--panel);color:var(--ink);border-color:var(--muted);
}
.worship-filter-themes {padding:.3rem 0 .5rem;border-block-end:1px solid var(--line);}
.worship-filter-themes h2 {margin:.1rem 0;font-size:1rem;color:var(--ink);}
.worship-filter-themes .devotion-tags {gap:0 .8rem;}
.worship-filter-themes .devotion-tags a {
  display:inline-flex;align-items:center;min-block-size:44px;padding:.2rem 0;border:0;border-radius:0;
  color:var(--folio-ink,var(--green));background:transparent;text-decoration:underline;text-underline-offset:.17em;
}
.worship-search-surface :is(input,select,summary,a,button):focus-visible {
  outline:2px solid var(--folio-ink,var(--green));outline-offset:2px;
}
@media(min-width:32rem) {
  /* The disclosure expands across the full row; its label stays beside the input. */
  .worship-live-search>.worship-search-field {margin-inline-end:12rem;}
  .worship-live-search>.worship-search-filters>summary {
    position:absolute;inset-inline-end:0;inset-block-start:0;min-block-size:48px;max-inline-size:11.5rem;
  }
}
#dua-reader .dua-tools-trigger .dua-settings-symbol {display:grid;place-items:center;line-height:1;}
#dua-reader .dua-tools-trigger .dua-settings-symbol svg {inline-size:1.3rem;block-size:1.3rem;}
#dua-reader .dua-head-actions button {min-block-size:44px;min-inline-size:44px;}
#dua-reader .dua-plan-more svg {inline-size:1rem;block-size:1rem;}
#dua-reader .dua-reader-bar .gesture-access-trigger.is-optional {border:0;background:transparent;color:var(--folio-ink,var(--green));min-block-size:44px;gap:.4rem;}
#dua-reader .dua-reader-bar .gesture-access-trigger.is-optional strong {font-size:.875rem;}
#dua-reader .dua-reader-bar .gesture-access-trigger.is-optional>svg {inline-size:1.25rem;block-size:1.25rem;}
#dua-reader .dua-reader-sheet,#dua-reader .dua-reader-scroll,.worship-search-surface [data-topic-results] {min-inline-size:0;max-inline-size:100%;}
mushaf-step-guide {display:block;min-inline-size:0;max-inline-size:100%;}
mushaf-step-guide[data-ready]>.guide-slide-track {
  display:flex;align-items:flex-start;gap:0;position:relative;inline-size:100%;max-inline-size:100%;
  margin:0;padding:0;list-style:none;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;
  border-radius:.85rem;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);
}
mushaf-step-guide[data-ready]>.guide-slide-track::-webkit-scrollbar {display:none;}
mushaf-step-guide[data-ready]>.guide-slide-track>* {
  box-sizing:border-box;flex:0 0 100%;inline-size:100%;min-inline-size:0;
  padding:.9rem;scroll-snap-align:start;overflow-wrap:anywhere;list-style:none;
}
mushaf-step-guide[data-ready]>.guide-slide-track>:not([data-current-step]) {block-size:1px;overflow:visible;}
mushaf-step-guide>.guide-slide-track:focus-visible {outline:2px solid var(--green);outline-offset:2px;}
.guide-slide-navigation {display:flex;align-items:center;justify-content:center;gap:1rem;margin:.25rem auto .55rem;color:var(--muted);}
html body .guide-slide-navigation button {
  min-inline-size:44px;min-block-size:44px;inline-size:44px;block-size:44px;
  display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--folio-ink,var(--green));padding:0;
}
.guide-slide-navigation button svg {width:18px;height:18px;}
.guide-slide-navigation button:disabled {opacity:.38;}
.guide-slide-navigation output {font-size:.875rem;line-height:1.6;font-variant-numeric:tabular-nums;}
.guide-step-object,.guide-step-writing,.aridha-book-steps .aridha-writing-image,.aridha-book-steps .aridha-method-picture img {
  display:block;width:100%;height:clamp(6.5rem,25vw,10rem);object-fit:contain;margin:0 auto .6rem;
}
.guide-step-seal {display:grid;place-items:center;font:5rem/1 Georgia,serif;color:var(--folio-copper,var(--green));}
.aridha-book-steps .paired-step-diagram {margin:0 0 .65rem;display:grid;text-align:center;justify-content:center;color:var(--muted);font-size:.875rem;}
.paired-step-diagram svg {display:block;margin:auto;width:min(100%,12rem);height:7.25rem;}
.paired-step-diagram text {fill:var(--ink);font:700 21px system-ui;}
.guide-slide-track.aridha-book-steps li::marker,.guide-slide-track.amal-gesture-steps>li>span:first-child {display:none;}
@media print {
  mushaf-step-guide[data-ready]>.guide-slide-track {display:block;overflow:visible;}
  mushaf-step-guide[data-ready]>.guide-slide-track>*,mushaf-step-guide[data-ready]>.guide-slide-track>:not([data-current-step]) {block-size:auto;overflow:visible;}
  .guide-slide-navigation {display:none;}
}
.amal-guide.purification-guide {max-inline-size:38rem;min-inline-size:0;margin-inline:auto;}
.purification-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-block-end:.75rem;}
.purification-heading h1 {margin:0;line-height:1.5;}
.purification-heading a {display:inline-flex;align-items:center;gap:.4rem;color:var(--green);min-block-size:44px;font-weight:650;}
.purification-method {color:var(--muted);font-size:1rem;margin:.1rem 0 .55rem;}
.purification-steps {padding-inline-start:1.4rem;}
.purification-steps h2 {font-size:1.22rem;line-height:1.6;margin:0 0 .5rem;}
.purification-steps p,.purification-note p {font-size:1rem;line-height:1.65;margin:.7rem 0;}
.purification-guide[lang=ar] :is(.purification-steps p,.purification-note p) {line-height:1.95;}
.purification-figure {display:grid;place-items:center;margin:0;background:var(--pale);border-radius:.65rem;overflow:hidden;}
.purification-figure:empty {display:none;}
.purification-figure svg {width:min(100%,22rem);height:clamp(8.5rem,33vw,12rem);display:block;}
.purification-note {padding:.18rem .35rem;border:0;border-block-start:1px solid var(--line);margin:0;}
.purification-note summary {display:list-item;align-content:center;min-block-size:44px;color:var(--green);font-size:.9375rem;font-weight:650;cursor:pointer;}
.purification-note small {display:block;color:var(--muted);line-height:1.65;margin-block-end:.6rem;}

[data-guide-swipe] {touch-action:pan-y pinch-zoom;min-inline-size:0;}
[data-guide-swipe]:focus-visible {outline:2px solid var(--focus-ring,var(--green));outline-offset:2px;}

.ghusl-guide-actions,.ghusl-related-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .85rem;}
.ghusl-guide-actions {justify-content:space-between;margin-block:.2rem .65rem;}
.purification-index-link,.ghusl-occasions li>a,.ghusl-related-actions>a {display:inline-flex;align-items:center;min-block-size:44px;gap:.4rem;color:var(--green);font-weight:650;text-underline-offset:.2em;}
.ghusl-occasions .ghusl-recommended {margin-block:1.3rem .25rem;}
.ghusl-occasions .ghusl-recommended>h2 {font-size:1.17rem;margin-block:0 .5rem;}
.ghusl-when-group>ul {list-style:none;padding:0;margin:.2rem 0 .75rem;}
.ghusl-when-group li {padding:.25rem .2rem .45rem;border-block-end:1px solid var(--line);}
.ghusl-when-group li:last-child {border:0;}
.ghusl-occasions .ghusl-when-group li p {margin:.1rem 0;}
.ghusl-when-group li>strong {display:block;margin-top:.45rem;}
.ghusl-occasions .ghusl-when-group>summary {font-size:1rem;}

mushaf-step-guide[data-choice-deck] .guide-slide-navigation{position:relative;gap:.3rem;min-height:44px;margin:.15rem auto}
.guide-choice-dots{display:flex;align-items:center;justify-content:center}
html body .guide-slide-navigation .guide-choice-dot{width:1.7rem;inline-size:1.7rem;min-inline-size:1.7rem;min-block-size:44px;height:44px;padding:0;border:0;background:transparent;box-shadow:none}
.guide-choice-dot::before{content:"";width:.46rem;height:.46rem;border-radius:1rem;background:var(--muted,#62746c)}
.guide-choice-dot[aria-pressed="true"]::before{width:1rem;background:var(--green,#126653)}
.guide-choice-status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
mushaf-step-guide[data-choice-deck][data-ready]>.guide-slide-track{display:flex;align-items:stretch;gap:0;scroll-padding:0;box-shadow:none;background:transparent;padding:0}
mushaf-step-guide[data-choice-deck][data-ready]>.guide-slide-track>:not([data-current-step]){block-size:auto;overflow:hidden}


/* /purification-plates173.css */
.purification-guide .purification-figure {display:block;inline-size:100%;justify-self:stretch;background:transparent;border-radius:.8rem}
.purification-plate-single,.ghusl-map-tile {margin:0;min-inline-size:0}
.purification-photo {position:relative;overflow:hidden;border-radius:.8rem;background:var(--light)}
.purification-guide .purification-photo img {display:block;inline-size:100%;max-inline-size:none;block-size:auto;aspect-ratio:3/2;object-fit:contain;transform:none}
.purification-guide .purification-figure .purification-direction {position:absolute;inset:0;inline-size:100%;block-size:100%;max-height:none;pointer-events:none;transform:none}
.purification-guide .purification-plate-single figcaption,.purification-guide .ghusl-map-tile figcaption {margin:0;color:var(--ink);font:inherit;font-size:.9rem;font-weight:600;line-height:1.5}
.purification-plate-single figcaption {padding:.45rem .2rem 0;text-align:start}
.ghusl-map {--map-paper:color-mix(in srgb,var(--green) 5%,var(--panel));--map-dry:color-mix(in srgb,var(--green) 11%,var(--panel));--map-ink:var(--green);box-sizing:border-box;inline-size:100%;max-inline-size:28rem;margin-inline:auto;display:flex;align-items:stretch;justify-content:center;background:var(--map-paper);border-radius:.75rem;padding:.65rem .4rem}
.ghusl-map-tile {flex:1;display:grid;justify-items:center;align-content:start;gap:.3rem;text-align:center}
.ghusl-map-tile + .ghusl-map-tile {border-inline-start:1px solid var(--line)}
.purification-guide .ghusl-map-tile svg {inline-size:auto;block-size:clamp(7rem,27vw,9rem);max-inline-size:100%;transform:none;overflow:visible}
.ghusl-map .map-region,.ghusl-map .map-skin,.ghusl-map .map-barrier {fill:var(--map-dry);stroke:var(--map-ink);stroke-width:1.7;stroke-linejoin:round}
.ghusl-map .is-washed,.ghusl-map .map-water {fill:var(--map-ink)}
.ghusl-map .map-stream {fill:none;stroke:var(--map-ink);stroke-width:3;stroke-linecap:round}
@media (max-width:23rem){.purification-guide mushaf-step-guide[data-ready]>.guide-slide-track>li{padding-inline:.52rem}}
@media(forced-colors:active){.ghusl-map{--map-ink:CanvasText;--map-dry:Canvas}.ghusl-map svg{forced-color-adjust:none}}


/* /together-today.css */
.together-today[hidden]{display:none!important}
.together-today{margin-block:1rem .25rem;padding:.65rem .9rem;border:1px solid var(--line,#b9cfc0);border-inline-start:3px solid var(--accent,#488069);border-radius:.85rem;color:var(--ink,inherit)}
.together-today h3,.community-help h2{display:flex;align-items:center;gap:.55rem;font-size:1rem;margin:.25rem 0 .4rem}
.together-today svg,.community-help h2 svg{width:1.15rem;height:1.15rem;flex-shrink:0}
.together-today ul,.community-help ul{list-style:none;margin:0;padding:0}
.together-today li{display:flex;align-items:center;gap:.4rem}
.together-today li+li,.community-help li+li{border-block-start:1px solid var(--line,#b9cfc0)}
.together-open{flex:1;min-width:0;display:grid;gap:.12rem;padding:.45rem .1rem;text-decoration:none!important;color:inherit;overflow-wrap:anywhere}
.together-open span{font-weight:500}
.together-open small,.community-help small{font-size:.875rem;color:var(--muted,inherit)}
.together-calendar{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line,#b9cfc0);border-radius:.7rem;background:transparent;color:inherit}
.together-today summary{padding:.55rem .1rem;cursor:pointer}
.community-help{margin-block:.8rem;padding:.8rem 1rem;border:1px solid var(--line,#b9cfc0);border-radius:1rem;overflow-wrap:anywhere}
.community-help li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center;padding:.6rem 0}
.community-help li>span{display:grid;gap:.2rem}
.community-help-actions{display:flex;gap:.4rem;flex-wrap:wrap}
@media(max-width:38rem){.community-help li{grid-template-columns:1fr}}

