/* نسخه 1.109.0 (گام ۲ اذان، خواست مالک): صفحه‌های «تنظیمات برنامه»، «تنظیمات مکان» و «تنظیمات اذان و یادآور» در اندازه موبایل،
   با چیدمان نمونه‌هایی که مالک فرستاد و رنگ‌های خود آیات قرآنی (نشانه‌های ‎.pg‎: --pg-ac، --ink، --muted، --line، --surface، --surface-alt)
   تا در هر هفت پوسته درست باشد. برای کاربر سالمند: متن دست‌کم ۱۴ پیکسل، دکمه و کلید دست‌کم ۴۴ پیکسل. */
.pst {
  max-width: 560px;
  padding: 0 0 96px;
  font-size: 15px;
}
.pst svg { width: 24px; height: 24px; }

/* نوار بالا: بازگشت و عنوان */
.pst-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 12px;
  margin-bottom: 14px;
  background: var(--pg-ac);
  color: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
:root[data-theme="dark"] .pst-bar,
:root[data-theme="night"] .pst-bar { color: #102522; }
.pst-bar h1 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.pst-back {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: inherit;
}
.pst-back:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
html[dir="ltr"] .pst-back svg { transform: scaleX(-1); }

/* کارت‌ها و ردیف‌ها */
.pst-cards, .pst-list { list-style: none; margin: 0 12px; padding: 0; display: grid; gap: 12px; }
.pst-card, .pst-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.pst-card:focus-visible, .pst-item:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .pst-card:not(.is-soon):hover, .pst-item:hover { border-color: var(--pg-ac); }
}
.pst-card.is-soon { cursor: default; opacity: .72; }
.pst-ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-alt); color: var(--pg-ac); }
.pst-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pst-txt strong { font-size: 1rem; font-weight: 700; line-height: 1.6; }
.pst-txt small { font-size: .875rem; line-height: 1.7; color: var(--muted); }
.pst-txt .pst-now { color: var(--pg-ac); font-weight: 700; }
.pst-go { flex: none; color: var(--muted); }
html[dir="ltr"] .pst-go svg { transform: scaleX(-1); }
.pst-soon { flex: none; font-size: .8125rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.pst-box {
  margin: 14px 12px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.pst-h2 { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 800; }
.pst-help { margin: 8px 0 0; font-size: .875rem; line-height: 1.9; color: var(--muted); }
.pst-note { margin: 16px 12px 0; font-size: .875rem; color: var(--muted); text-align: center; }
.pst-status { margin: 8px 0 0; min-height: 1.5em; font-size: .875rem; color: var(--pg-ac); }
.pst-status.is-bad { color: #b42318; }
:root[data-theme="dark"] .pst-status.is-bad, :root[data-theme="night"] .pst-status.is-bad { color: #ff9b8f; }

.pst-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pst-row strong { font-size: 1rem; }
.pst select, .pst input[type="text"], .pst input[type="number"] {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.pst .pst-row select { flex: 1 1 200px; }
.pst select:focus-visible, .pst input:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 1px; }

/* مکان فعلی و برگزیده‌ها */
.pst-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px; }
.pst-empty { font-size: .9375rem; color: var(--muted); padding: 8px 2px; }
.pst-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
html[dir="rtl"] .pst-chip { padding: 0 14px 0 6px; }
.pst-chip[data-cur="1"] { background: var(--pg-ac); border-color: var(--pg-ac); color: #fff; }
:root[data-theme="dark"] .pst-chip[aria-pressed="true"], :root[data-theme="night"] .pst-chip[data-cur="1"] { color: #102522; }
.pst-chip-pick { border: 0; background: none; color: inherit; font: inherit; min-height: 44px; cursor: pointer; padding: 0 4px; }
.pst-chip-x { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.pst-chip-x svg { width: 18px; height: 18px; }
.pst-chip button:focus-visible { outline: 3px solid currentColor; outline-offset: -2px; }

.pst-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.pst-coords label { display: grid; gap: 4px; font-size: .875rem; color: var(--muted); }
.pst-coords .pst-wide { grid-column: 1 / -1; }
.pst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pg-ac);
  border-radius: 12px;
  background: var(--surface);
  color: var(--pg-ac);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pst-btn.is-main { background: var(--pg-ac); color: #fff; width: 100%; }
:root[data-theme="dark"] .pst-btn.is-main, :root[data-theme="night"] .pst-btn.is-main { color: #102522; }
.pst-btn:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 2px; }

.pst-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.pst-times li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.pst-times b { font-variant-numeric: tabular-nums; }

/* دکمه + (افزودن به برگزیده‌ها) */
.pst-fab {
  position: fixed;
  inset-inline-end: max(16px, calc(50% - 264px));
  bottom: 24px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--pg-ac);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  cursor: pointer;
}
/* سمت مقابل دکمه دستیار (as-fab در آغاز سطر)، مثل نمونه مالک: پایین چپ در فارسی. */
:root[data-theme="dark"] .pst-fab, :root[data-theme="night"] .pst-fab { color: #102522; }
.pst-fab svg { width: 28px; height: 28px; }
.pst-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* کلیدهای روشن/خاموش */
.pst-tgwrap + .pst-tgwrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pst-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.pst-tg strong { font-size: 1rem; line-height: 1.6; }
.pst-tg input[type="checkbox"] {
  appearance: none;
  flex: none;
  position: relative;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: background-color .2s ease-out;
}
.pst-tg input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease-out;
}
.pst-tg input[type="checkbox"]:checked { background: var(--pg-ac); border-color: var(--pg-ac); }
.pst-tg input[type="checkbox"]:checked::after { transform: translateX(22px); }
html[dir="rtl"] .pst-tg input[type="checkbox"]:checked::after { transform: translateX(-22px); }
.pst-tg input[type="checkbox"]:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .pst-tg input[type="checkbox"], .pst-tg input[type="checkbox"]::after { transition: none; }
}

/* اوقات قابل نمایش */
.pst-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; }
@media (max-width: 380px) { .pst-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pst-check { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9375rem; cursor: pointer; }
.pst-check input { width: 22px; height: 22px; accent-color: var(--pg-ac); }
.pst-check input:disabled + span { color: var(--muted); }

/* پنجره تنظیم هر وقت */
.pst-dlg {
  width: min(560px, 100vw);
  max-height: min(92dvh, 880px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  color: var(--ink);
}
@media (min-width: 600px) { .pst-dlg { margin: auto; border-radius: 18px; } }
.pst-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.pst-dlg-in { display: grid; gap: 14px; padding: 16px; }
.pst-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pst-dlg-head h2 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.pst-x { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-alt); color: var(--ink); cursor: pointer; }
.pst-dlg-foot { position: sticky; bottom: 0; padding-top: 4px; background: var(--surface); }
.pst-rem { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pst-sub { font-size: .9375rem; color: var(--muted); }
.pst-rem.is-off .pst-sub { opacity: .55; }
.pst-dlg input[type="range"] { flex: 1 1 200px; min-height: 44px; accent-color: var(--pg-ac); }

.pst-voices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pst-voices legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.pst-voice { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pst-voice:has(input:checked) { border-color: var(--pg-ac); background: var(--surface-alt); }
.pst-voice input { width: 22px; height: 22px; accent-color: var(--pg-ac); flex: none; }
.pst-voice img, .pst-voice .pst-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-alt); color: var(--pg-ac); display: inline-grid; place-items: center; }
.pst-voice .pst-vname { flex: 1; min-width: 0; font-weight: 700; }
.pst-play { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--pg-ac); cursor: pointer; }
.pst-play svg { width: 20px; height: 20px; }
.pst-play:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 2px; }
.pst-voicebox-off { opacity: .55; }

.pst-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 7;
  margin: 0;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  font-size: .9375rem;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}
.pst-toast.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pst-toast { transition: none; } }
/* مثل دکمه دستیار: تا نوار رضایت باز است دکمه + پنهان است تا زیر آن نماند. */
body:has(#ayat-consent:not([hidden])) .pst-fab { display: none; }
.pst-bar h1 { color: inherit; }
/* عنوان «مکان» فهرست مشترک اینجا تکراری است؛ فقط برای صفحه‌خوان می‌ماند. */
.pst .kh-place legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pst .kh-place-lbl { font-weight: 700; color: var(--ink); }

/* نسخه 1.109.0: صفحه هر وقت، مثل نمونه «تنظیمات اذان صبح». */
.pst-tg label { flex: 1; cursor: pointer; }
.pst-tg .pst-play { margin-inline-start: auto; }
.pst-tg .pst-play:disabled { opacity: .5; cursor: default; }
.pst-subs { display: grid; gap: 10px; margin-top: 12px; }
/* بخش خاموش: فقط کنترل‌ها کم‌رنگ (غیرفعال‌اند)؛ متن راهنما کنتراست کامل می‌ماند. */
.pst-subs.is-off select, .pst-subs.is-off input { opacity: .55; }
.pst-subs .pst-tg { margin-top: 4px; }
.pst-subs select { min-width: 0; }
.pst-subs .pst-row > span { font-size: .9375rem; }
.pst-range { display: grid; gap: 4px; }
.pst-range-row { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.pst-range-row input { flex: 1; min-height: 44px; accent-color: var(--pg-ac); }
/* مثل نمونه مالک: «کم» چپ و «زیاد» راست در هر زبان؛ نوار بلندی در صفحه راست‌به‌چپ وارونه نشود. */
.pst-range-row { direction: ltr; }
/* نسخه 1.110.0: انتخاب صدا با دکمه پیش‌شنود کنارش. */
.pst-sound { display: flex; align-items: center; gap: 10px; }
.pst-sound > .pst-row { flex: 1; min-width: 0; }
.pst-sound .pst-play:disabled { opacity: .5; cursor: default; }
.pst-sound[hidden] { display: none; }

/* نسخه 1.111.0: صفحه اصلی «اوقات شرعی» (شمارش معکوس، اوقات امروز، پخش اذان). */
.pt-main .pst-bar h1 { flex: 1; }
.pt-place { margin: 0 12px; width: auto; }
.pt-empty { text-align: center; display: grid; gap: 12px; justify-items: center; }
.pt-empty p { margin: 0; }
.pt-hero {
  margin: 14px 12px 0;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--pg-ac);
  color: #fff;
  text-align: center;
  display: grid;
  gap: 4px;
  justify-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
:root[data-theme="dark"] .pt-hero, :root[data-theme="night"] .pt-hero { color: #102522; }
.pt-hero-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.pt-hero-ic svg { width: 28px; height: 28px; }
.pt-hero p { margin: 0; }
.pt-hero-k { font-size: 1rem; line-height: 1.7; }
.pt-hero-k b { font-variant-numeric: tabular-nums; }
.pt-count { font-size: 2.5rem; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pt-hero-sub { font-size: .9375rem; }
.pt-bar { width: 100%; height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.pt-bar span { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .pt-bar span { transform-origin: left; }
.pt-day { padding: 6px 12px; }
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pt-list li:last-child { border-bottom: 0; }
.pt-list li.is-next { margin: 0 -8px; padding: 6px 12px; border-radius: 12px; background: var(--surface-alt); color: var(--pg-ac); font-weight: 700; border-bottom-color: transparent; }
.pt-ic { flex: none; display: inline-grid; place-items: center; color: var(--pg-ac); }
.pt-name { flex: 1; }
.pt-time { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.pt-bell { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--muted); }
.pt-bell.is-on { color: var(--pg-ac); }
.pt-bell:not(.is-on) svg { opacity: .55; }
.pt-bell:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: -3px; }
.pt-adhan-head { display: flex; gap: 12px; align-items: center; }
.pt-help { margin: 10px 0 12px; font-size: .875rem; line-height: 1.8; color: var(--muted); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-actions .pst-btn { flex: 1 1 180px; }
.pt-actions .pst-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pt-playing {
  position: fixed;
  inset-inline: 12px;
  bottom: 16px;
  z-index: 30;
  max-width: 536px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--pg-ac);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-weight: 700;
}
.pt-playing[hidden] { display: none; }
.pst-note.is-bad { color: #b3261e; }
:root[data-theme="dark"] .pst-note.is-bad, :root[data-theme="night"] .pst-note.is-bad { color: #ffb4ab; }
.pt-main .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pt-bell { position: relative; }

/* نسخه 1.113.2 (خواست مالک، تصویر صفحه اصلی المصلی): ردیف اوقات. اندازه‌ها از تصویر ۵۹۱ پیکسلی مالک به پهنای ۴۱۲ پیکسل
   برگردانده شده: نام ۱۵ و ساعت ۱۶ پیکسل با وزن معمولی (مالک ۱۴۰۵/۰۹/۰۶: «مثل المصلی»)، هر دو با وزن معمولی؛ آیکون ۳۰ پیکسل؛ AM/PM کوچک‌تر و بالاتر (۹ پیکسل، استثنای
   قاعده ۱۲ پیکسل به خواست صریح مالک). */
.pt-day { padding: 12px 6px; }
.pt-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--pt-cols, 6), minmax(0, 1fr)); gap: 2px; }
.pt-row li[hidden] { display: none; }
.pt-row a {
  display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border-radius: 12px;
  color: var(--ink); text-decoration: none; text-align: center; font-weight: 400;
}
.pt-row a:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: -3px; }
.pt-row .pt-n { font-size: 14px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.pt-row .pt-ic svg { width: 30px; height: 30px; }
.pt-row .pt-time { font-size: 15px; font-weight: 400; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* استثنای قاعده ۱۲ پیکسل به خواست صریح مالک («PM AM کوچک‌تر شود»)، نزدیک اندازه المصلی. */
.pt-ap { font-size: 9px; font-weight: 400; margin-inline-start: 2px; vertical-align: 4px; letter-spacing: .02em; }
/* نسخه 1.124.0: رنگ برجسته کمی به رنگ متن آمیخته شد (پوسته سپیا ۴٫۳۶ بود؛ اکنون بالای ۴٫۵ در هر هفت پوسته). */
.pt-row, .pt-night { --pt-hi: color-mix(in srgb, var(--pg-ac) 78%, var(--ink)); }
.pt-row li.is-next a { background: var(--surface-alt); color: var(--pt-hi); }
/* مالک (۱۴۰۵/۰۹/۰۶): اندازه‌ها «مثل المصلی»، اندازه‌گیری از اسکرین‌شات آن (۳۹۳dp): نام وقت ۱۴ و ساعت ۱۵ با وزن معمولی؛ «نیمه‌شب» و «یک‌سوم آخر» ۱۴ پررنگ با «:» و ساعت ۱۴ معمولی، بی AM/PM (مثل المصلی). */
.pt-night { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 12px 0 2px; font-size: 14px; font-weight: 700; }
.pt-night[hidden] { display: none; }
.pt-night > span:not(.pt-sep) { padding: 4px 14px; border-radius: 999px; background: var(--surface-alt); }
.pt-night .pt-time { font-size: 14px; font-weight: 400; color: var(--pt-hi); font-variant-numeric: tabular-nums; }
.pt-sep { color: var(--muted); }
.pt-hero-k b .pt-ap { vertical-align: 2px; }
.pt-row.is-dense .pt-ap { display: block; margin: 0; vertical-align: 0; line-height: 1.1; }
.pt-night .pt-ap { display: none; }
/* نسخه 1.123.0 (انتخاب مالک): «افزودن مکان فعلی به برگزیده‌ها» دکمه معمولی داخل صفحه است، نه شناور. */
.pst-fav-btn { display: inline-flex; align-items: center; gap: 8px; margin: 12px 12px 4px; min-height: 44px; padding: 0 16px; border: 1px solid var(--pg-ac); border-radius: 12px; background: transparent; color: var(--pg-ac); font: inherit; font-weight: 700; cursor: pointer; }
.pst-fav-btn svg { width: 20px; height: 20px; flex: none; }
.pst-fav-btn:focus-visible { outline: 3px solid var(--pg-ac); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pst-fav-btn:hover { background: color-mix(in srgb, var(--pg-ac) 10%, transparent); } }
