/* تطبيق بالضبط: الألوان من lib/tokens.css (نفس هوية الموقع)، والخطوط من lib/fonts.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* حواف الجوال: Capacitor يضع --safe-area-inset-* حين يرسم التطبيق تحت شريط الحالة، والمتصفح يعطي env(). */
:root { --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); }
/* نص بلون العلامة فوق خلفية ملوّنة به (تنبيه المسودة، ورقم الآية المحددة): أغمق قليلًا في الفاتح ليصل تباينه 4.5 (axe). */
/* هوية «أجر» (26 نوفمبر): أخضر زمردي وذهبي على ورق دافئ، فوق ألوان lib/tokens.css (هوية الموقع). الشعار في js/ui.js (MARK). */
:root { --brand: #0E7A5F; --on-brand: #FFFFFF; --brand-text: #0B6650; --brand-on-tint: #095443; --gold: #A87A1F; --gold-soft: #F6DC9A; --emerald-deep: #06261F;
  --bg: #F6F3EC; --well: #F6F3EC; --surface-2: #ECE7DC; --line: #E2DBCC; --card-number: #0E7A5F; }
/* نص يقرؤه قارئ الشاشة (TalkBack) ولا يظهر: مثل «اضغط للعدّ» بعد العدد في السبحة. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:root[data-theme="night"] { --brand: #2FB487; --on-brand: #04140F; --brand-text: #4FD3A3; --brand-on-tint: var(--brand-text); --gold: #E2B95C;
  --bg: #07110E; --surface: #0F1A17; --surface-2: #15231F; --well: #15231F; --line: #FFFFFF14; --card: #0F1A17; --card-number: #4FD3A3; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font-body); overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* إحساس التطبيق: لا تظليل للنص بالضغط المطوّل إلا في الحقول، وكل زر يستجيب للمس. */
input, textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flip { transform: scaleX(-1); }

/* الهيكل */
.shell { min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: var(--sat) 0 calc(76px + var(--sab)); }
.has-bar .shell { padding-top: 0; }
/* غطاء شريط الحالة حين يمر المحتوى تحته، ويختفي فوق «السماء» قبل التمرير. */
.shell::before { content: ""; position: fixed; top: 0; inset-inline: 0; height: var(--sat); background: var(--bg); z-index: 8; transition: opacity .2s; pointer-events: none; }
.is-home:not(.scrolled) .shell::before { opacity: 0; }
.view { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; outline: none; animation: in .18s ease-out; zoom: var(--fs, 1); }
.bar { zoom: var(--fs, 1); }
/* «تقليل الحركة» من الإعدادات، فوق إعداد الجوال. */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

.bar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 6px; padding: calc(var(--sat) / var(--fs, 1) + 6px) 8px 6px; background: var(--bg); transition: box-shadow .2s; }
.scrolled .bar { box-shadow: 0 1px 0 var(--line); }
.bar__back { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.bar__title { margin: 0; font: 800 19px/1.3 var(--font-display); }

.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; padding: 6px 6px calc(6px + var(--sab)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.35); }
.tab { min-height: 56px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; border-radius: 14px; }
/* خط الجوال الكبير جدًا (200%): الاسم يُختصر بنقاط داخل خانته بدل ما يدفع الشاشة جانبًا، ويبقى كاملًا لقارئ الشاشة. */
.tab { min-width: 0; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab svg.i { width: 58px; height: 30px; padding: 3px 17px; border-radius: 99px; transition: background-color .2s, transform .12s; }
.tab[aria-current="page"] { color: var(--brand-text); font-weight: 700; }
.tab[aria-current="page"] svg.i { stroke: var(--brand); background: color-mix(in srgb, var(--brand) 15%, transparent); }
.tab:active svg.i { transform: scale(.9); }

/* عناصر عامة */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 16px; }
.card--flush { padding: 0; overflow: hidden; }
.h2 { margin: 0; font: 800 18px/1.4 var(--font-display); }
.h3 { margin: 0; font: 600 16px/1.5 var(--font-display); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; }
.note { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
/* مناطق اللمس 48×48 على الأقل (إرشاد أندرويد 48dp)، ويفحصها tools/ui-audit.mjs. */
.btn { overflow-wrap: anywhere; min-height: max(var(--button-h), 48px); padding: 0 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--well); color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-text); }
.btn--block { width: 100%; }
.icon-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--well); color: var(--muted); display: grid; place-items: center; flex: none; }
.icon-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn, .icon-btn, .chip, .tile, .bell, .skyhero__pill, .seg button { transition: transform .12s ease, background-color .15s, opacity .15s; }
.btn:active, .icon-btn:active, .chip:active, .tile:active, .bell:active, .skyhero__pill:active, .seg button:active { transform: scale(.96); }
a.item:active, button.item:active, a.ag:active, .ag__link:active, a.card:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.strip:active { background: rgba(6,10,28,.4); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--well); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
button.chip { min-height: 48px; min-width: 48px; justify-content: center; }
.chip svg.i { width: 18px; height: 18px; color: var(--brand); }
/* الأزرار بعرض متساوٍ، ومع الخط الكبير تنزل لسطر ثانٍ بدل ما تنقسم الكلمة («عاد/ي»): أقل عرض للزر أطول كلمة فيه. */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--well); border: 1px solid var(--line); }
.seg[data-lang] button { flex-basis: 56px; } /* خمس لغات: كل زر 48 على الأقل، وتنزل لسطر ثانٍ في الجوال الضيق */
.seg button { flex: 1 1 0; min-width: min-content; overflow-wrap: break-word; line-height: 1.25; padding: 4px 6px; min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.list { display: flex; flex-direction: column; }
/* نتائج بحث سابق والبحث الجديد لسه يجهز (الجولة 24): تبهت، فما تنقرأ كأنها للبحث الجديد. */
.list.is-stale { opacity: .5; transition: opacity .12s; }
.list > * + * { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; color: var(--ink); text-decoration: none; background: transparent; border: 0; width: 100%; text-align: start; }
.item__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--well); display: grid; place-items: center; color: var(--brand); flex: none; }
.item__go { color: var(--muted); }
.card.item { background: var(--surface); }
select, .field { width: 100%; min-height: var(--field-h); padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--field-line); background-color: var(--well); color: var(--ink); }
select { -webkit-appearance: none; appearance: none; padding-inline-end: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8D96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 18px; }
label.field-label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.switch input, input.sw { -webkit-appearance: none; appearance: none; margin: 0; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex: none; transition: background .15s; }
.switch input::after, input.sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: right .15s; }
.switch input:checked, input.sw:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after, input.sw:checked::after { right: 23px; }
/* أعمدة بعرض يكبر مع الخط (em): ثلاثة عادةً، واثنان بـ«كبير جدًا»، وواحد بخط الجوال 200%، فلا تنقسم الكلمة ولا تخرج من البطاقة. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(28%, 6.5em), 1fr)); gap: 10px; }
.tile__t { max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 6px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; text-align: center; line-height: 1.4; }
.tile .item__icon { width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); color: var(--c, var(--brand)); }
[data-theme="light"] .card, [data-theme="light"] .tile, [data-theme="light"] .dhikr { box-shadow: 0 1px 3px rgba(20,22,27,.06); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--well); color: var(--muted); font-size: 12px; font-weight: 600; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--well); border: 1px solid var(--line); }
.banner p { margin: 0; font-size: 14px; line-height: 1.7; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* الرئيسية */
.daybar { display: flex; align-items: center; gap: 4px; padding: 10px 8px; }
.daybar__text { flex: 1; text-align: center; line-height: 1.45; }
.daybar__hijri { font: 800 17px/1.4 var(--font-display); text-wrap: balance; }
.narrow .daybar__hijri { font-size: 15px; }
.daybar__greg { font-size: 13px; color: var(--muted); }
.icon-btn--plain { background: transparent; border-color: transparent; color: var(--ink); border-radius: 50%; }
.note.center { text-align: center; font-size: 13px; }

/* جدول اليوم: الصلوات، والفترات بينها، وأجراسها */
.ag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "icon name tm act"; align-items: center; column-gap: 12px; min-height: 60px; padding: 8px 12px 8px 14px; color: var(--ink); text-decoration: none; }
/* سطر جدول اليوم بشبكة ثابتة (الأيقونة، والاسم، والوقت، والجرس): ما يلتصق الاسم بالوقت ولا ينزل الجرس لسطر لحاله مهما كبر الخط. */
.ag > .ag__icon { grid-area: icon; }
.ag > .ag__name, .ag > .ag__link { grid-area: name; min-width: 0; }
.ag > .tm { grid-area: tm; }
.ag > :last-child:not(.ag__icon):not(.ag__name):not(.ag__link):not(.tm) { grid-area: act; }
.agenda > .ag + .ag { border-top: 1px solid var(--line); }
.ag__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--well); color: var(--muted); flex: none; }
.ag__icon svg.i { width: 21px; height: 21px; }
.ag__name { display: flex; flex-direction: column; font-weight: 700; line-height: 1.35; }
.ag__sub { margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ag__link { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; min-height: 48px; align-self: stretch; }
.ag__go { width: 18px; height: 18px; color: var(--muted); }
/* شارة «الآن»: لون الفترة مغمّقًا 30% حتى يبلغ النص الأبيض تباين 4.5 مع كل الألوان (الفيروزي والعنبري كانا 3 تقريبًا). */
.ag__live { display: inline-block; vertical-align: 2px; margin-inline-start: 6px; padding: 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--brand)) 70%, #000); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; }
.tm { display: inline-flex; align-items: baseline; gap: 4px; min-width: 76px; }
.tm .num { font: 800 18px/1 var(--font-display); }
.tm small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ag--prayer.is-next { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.ag--prayer.is-next .ag__icon { background: var(--brand); color: var(--on-brand); }
.ag--prayer.is-next .ag__name, .ag--prayer.is-next .tm .num { color: var(--brand-text); }
.ag--period { min-height: 56px; background: color-mix(in srgb, var(--c) 5%, transparent); }
.ag--period .ag__icon { background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.ag--period .ag__name { font-weight: 600; font-size: 15px; }
.ag--period.is-live { background: color-mix(in srgb, var(--c) 12%, transparent); }
.ag--night .ag__name { font-weight: 600; }
.bell { width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; opacity: .75; }
.bell svg.i { width: 21px; height: 21px; }
.bell[aria-pressed="true"] { color: var(--brand-text); background: color-mix(in srgb, var(--brand) 13%, transparent); opacity: 1; }
span.bell { visibility: hidden; }
.ag--info { min-height: 56px; }
.ag--all { cursor: pointer; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.ag--all .ag__icon { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-text); }
.ag--all .sw { margin-inline-end: 4px; }
.ag--info .ag__icon { color: var(--brand-text); background: color-mix(in srgb, var(--brand) 11%, transparent); }
.ag--info .ag__name { font-weight: 600; }

/* القبلة */
.compass { width: min(80vw / var(--fs, 1), 300px); display: block; margin: 0 auto; }
/* دقة البوصلة وشرح المعايرة */
.qacc { display: flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 6px 14px; min-height: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--well); color: var(--ink); font-size: 14px; font-weight: 600; }
.qacc[hidden] { display: none; }
.qacc__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.qacc__bars i { width: 4px; border-radius: 2px; background: var(--line); }
.qacc__bars i:nth-child(1) { height: 6px; } .qacc__bars i:nth-child(2) { height: 10px; } .qacc__bars i:nth-child(3) { height: 14px; }
.qacc--ok .qacc__bars i.on { background: #2E9E6A; }
.qacc--warn .qacc__bars i.on { background: #D98A00; }
.qacc--bad { border-color: color-mix(in srgb, #D64545 40%, transparent); background: color-mix(in srgb, #D64545 10%, transparent); }
.qacc--bad .qacc__bars i.on { background: #D64545; }
.qcal summary { cursor: pointer; font-weight: 600; padding: 11px 0; }
.qcal[open] summary { margin-bottom: 10px; }
.qcal__fig { display: block; width: min(100%, 260px); margin: 0 auto 8px; }
.qcal__path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; opacity: .55; }
.qcal__phone rect { fill: var(--ink); }
.qcal__phone .scr { fill: var(--surface); }
.qcal__steps { margin: 0 0 8px; padding-inline-start: 20px; }
.qcal__metal { color: var(--ink); background: color-mix(in srgb, #D64545 10%, transparent); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.compass .face { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.compass .ring { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.compass .tick { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1.4; }
.compass .tick--m { stroke-opacity: .9; stroke-width: 2.4; }
.compass .lbl { fill: var(--muted); font: 600 14px var(--font-body); text-anchor: middle; dominant-baseline: central; }
.compass .lbl--n { fill: var(--brand-text); font-weight: 800; }
.compass .arrow { fill: var(--brand); }
.compass .arrow-tail { fill: var(--ink); fill-opacity: .2; }
.compass .top { fill: var(--ink); }
.compass .kaaba { fill: var(--ink); }
.compass.is-aligned .ring { stroke: var(--brand); stroke-opacity: .5; }
/* بوصلة غير معايرة (الجولة 24): السهم والوردة يبهتان، فما يُتبعان كأنهما دقيقان. */
.compass.is-unreliable #rose { opacity: .3; transition: opacity .2s; }
.qstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qstats .card { padding: 12px 14px; }
.qstats b { display: block; font: 800 22px/1.3 var(--font-display); }

/* السبحة */
.beads { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.counter { width: min(70vw / var(--fs, 1), 250px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.counter:active { transform: scale(.985); }
.counter svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; } /* توهج الحلقة يطلع برّا مربع الرسم بدل ما ينقص من الجهات الأربع (ملاحظة سعود بعد تجربة 4 ديسمبر) */
.counter .track { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.counter .prog { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .15s; }
.counter__n { font: 800 64px/1 var(--font-display); }
.counter__t { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* الأذكار والدعاء */
.dhikr { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); text-align: start; width: 100%; color: var(--ink); }
.dhikr__text { font-size: 19px; line-height: 2.05; white-space: pre-line; }
.dhikr__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dhikr__src { font-size: 13px; color: var(--muted); line-height: 1.6; }
.dhikr__count { min-width: 64px; height: 48px; padding: 0 12px; border-radius: 99px; background: var(--well); display: inline-flex; align-items: center; justify-content: center; font: 800 16px var(--font-display); }
.dhikr.is-done { opacity: .55; }
.dhikr.is-done .dhikr__count { background: var(--brand); color: var(--on-brand); }
.dhikr__fadl { font-size: 14px; line-height: 1.8; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
/* دليل الحج والعمرة */
.hstep__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hstep__n { flex: none; }
.hstep__day { margin-inline-start: auto; }
.hstep__body { margin: 0; line-height: 1.9; }
.hstep__list { margin: 0; padding-inline-start: 20px; line-height: 1.9; color: var(--muted); }
.hq { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--well); }
.hq .dhikr__text { font-size: 18px; line-height: 1.95; }
.hq__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hdates b { font-weight: 600; }
.about-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.draft { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-on-tint); }
:root { --font-quran: "Amiri Quran", "Amiri", var(--font-body); }
[data-qfont="madina"] { --font-quran: "Old Madina", "Amiri Quran", "Amiri", var(--font-body); }
.ayah { font-family: var(--font-quran); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

/* المصحف: كل صفحة ورقة بإطار مزدوج مثل المصحف المطبوع، في رأسها السورة والجزء وفي أسفلها رقم الصفحة (quran.js). */
.mushaf { --paper: #FFFDF6; --frame: #B8975A; --frame-soft: #E6D8B4; line-height: 2.2; overflow-wrap: break-word; }
[data-theme="night"] .mushaf { --paper: #17181E; --frame: #8F7748; --frame-soft: #3B3528; }
.mushaf p { margin: 0; }
#ayat { display: flex; flex-direction: column; gap: 14px; }
/* صفحة من صفحات المصحف: لا يُرتَّب منها إلا القريب من الشاشة، والارتفاع المقدَّر للبقية يُحفظ بعد أول عرض. */
.mpage { position: relative; content-visibility: auto; contain-intrinsic-size: auto 640px; padding: 12px 10px 10px; background: var(--paper); border: 1px solid var(--frame); border-radius: 8px; box-shadow: 0 1px 4px rgba(20,22,27,.08); }
.mpage::before { content: ""; position: absolute; inset: 5px; border: 2px solid var(--frame-soft); border-radius: 4px; pointer-events: none; }
.mpage__head { position: relative; display: flex; justify-content: space-between; gap: 8px; margin: 0 8px 6px; padding: 0 6px 2px; border-bottom: 1px solid var(--frame-soft); font: 400 15px/2 var(--font-quran); color: var(--muted); }
.mpage__text { position: relative; padding: 2px 10px; text-align: justify; }
.mpage__num { position: relative; text-align: center; margin-top: 6px; }
.mpage__num span { display: inline-block; min-width: 38px; padding: 0 10px; border: 1px solid var(--frame); border-radius: 99px; font: 400 15px/30px var(--font-quran); color: var(--muted); }
/* لوحة اسم السورة في أول صفحاتها، ثم البسملة. */
.surah-head { position: relative; margin: 6px 10px 4px; padding: 4px 10px; text-align: center; border: 2px solid var(--frame); border-radius: 6px; outline: 1px solid var(--frame-soft); outline-offset: 3px; background: color-mix(in srgb, var(--frame) 14%, var(--paper)); font: 400 clamp(22px, .9em, 32px)/2 var(--font-quran); color: var(--ink); }
/* زخرفة رأس السورة (طلب سعود، 26 نوفمبر): نجمة ثمانية في كل طرف كما في رأس السورة بمصحف المدينة، ومثل صورة المشاركة. */
.surah-head { padding-inline: 52px; }
.surah-head::before, .surah-head::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23B8975A' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='22' height='22'/%3E%3Crect x='9' y='9' width='22' height='22' transform='rotate(45 20 20)'/%3E%3Ccircle cx='20' cy='20' r='5'/%3E%3C/svg%3E") center / contain no-repeat; }
.surah-head::before { inset-inline-start: 10px; }
.surah-head::after { inset-inline-end: 10px; }
.basmala { position: relative; text-align: center; margin: 8px 0 2px; color: var(--brand-text); }
.mpage--blank { display: none; content-visibility: visible; contain-intrinsic-size: none; }
/* الجهاز اللوحي بالعرض والشاشات الكبيرة: صفحتان متقابلتان مثل المصحف المفتوح، الفردية يمين والزوجية يسار، بينهما ظل الكعب.
   الجوال بالعرض قصير (يلزم تمرير طويل بين الصفحتين)، فيبقى صفحة وحدة عريضة. */
@media (orientation: landscape) and (min-width: 900px) and (min-height: 600px) {
  #ayat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; row-gap: 16px; align-items: stretch; }
  .mpage--r { grid-column: 1; border-start-end-radius: 0; border-end-end-radius: 0; box-shadow: inset 14px 0 14px -14px rgba(20,22,27,.22), 0 1px 4px rgba(20,22,27,.08); }
  .mpage--blank { display: block; min-height: 120px; }
  .mpage--l { grid-column: 2; border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 0; box-shadow: inset -14px 0 14px -14px rgba(20,22,27,.22), 0 1px 4px rgba(20,22,27,.08); }
}
.aya { border-radius: 8px; transition: background .15s; cursor: pointer; }
.aya.is-sel, .aya.is-hl { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.aya-n { color: var(--brand-on-tint); font-size: .8em; white-space: nowrap; }
.sheet-menu { position: fixed; inset-inline: 12px; bottom: calc(84px + var(--sab)); z-index: 7; max-width: 536px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5em), 1fr)); gap: 8px; padding: 12px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.sheet-menu b { grid-column: 1 / -1; }
/* أعمدة لا تضيق عن الكلمة (بالإنجليزي «Bookmark» كانت تنقسم سطرين)، والكلمة نفسها ما تنكسر. */
.sheet-menu .btn { padding: 0 8px; font-size: 14px; overflow-wrap: normal; word-break: normal; hyphens: none; }

/* التقويم */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-h { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 0; }
/* min-width: 0: اسم الشهر في أول يوم لا يعرّض العمود؛ رؤوس الأيام (cal-h) هي اللي تحدد العرض. */
.cal-d { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: var(--well); line-height: 1.2; }
.cal-d b { font: 800 16px var(--font-display); }
.cal-d small { font-size: 10px; color: var(--muted); }
.cal-d.is-today { background: var(--brand); color: var(--on-brand); }
.cal-d.is-today small { color: inherit; }
/* الأيام أزرار (تختار يومًا وتضيف له حدثًا لتقويم الجوال، 4 ديسمبر). */
button.cal-d { border: 0; font: inherit; color: inherit; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-d.is-sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-d:active { transform: scale(.95); }


/* الرئيسية: «السماء» (من تطبيق الصلاة). بلا backdrop-filter، لأن محاكي أندرويد البرمجي طاح معه.
   تمتد تحت شريط الجوال العلوي إذا رسم التطبيق تحته (--sat من Capacitor أو env)، وإلا تبدأ تحته كما كانت. */
.skyhero { --s1: #05070F; --s2: #0D1430; --s3: #1A2550; --stars: 1; position: relative; margin: calc(-14px - var(--sat) / var(--fs, 1)) -16px 0; min-height: calc((min(60svh, 560px) + var(--sat)) / var(--fs, 1)); padding: calc(12px + var(--sat) / var(--fs, 1)) 16px 14px; display: flex; flex-direction: column; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); background: linear-gradient(rgba(6,10,28,.2), rgba(6,10,28,.2)), linear-gradient(180deg, var(--s1), var(--s2) 55%, var(--s3)); border-radius: 0 0 30px 30px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0,0,0,.55); }
.skyhero__stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars); pointer-events: none; background-image:
  radial-gradient(1.6px 1.6px at 8% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 30%, #fff 50%, transparent 52%),
  radial-gradient(1.8px 1.8px at 35% 8%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 48% 22%, #fff 50%, transparent 52%),
  radial-gradient(1.5px 1.5px at 63% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 77% 34%, #fff 50%, transparent 52%),
  radial-gradient(1.7px 1.7px at 90% 10%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 14% 52%, #fff 50%, transparent 52%),
  radial-gradient(1.3px 1.3px at 41% 44%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 70% 56%, #fff 50%, transparent 52%),
  radial-gradient(1.4px 1.4px at 86% 46%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 56% 64%, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 4% 38%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 29% 60%, #fff 50%, transparent 52%),
  radial-gradient(1px 1px at 96% 28%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 53% 4%, #fff 50%, transparent 52%); }
.skyhero__stars::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.9px 1.9px at 18% 18%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 72% 24%, #fff 50%, transparent 52%), radial-gradient(1.7px 1.7px at 44% 36%, #fff 50%, transparent 52%); animation: twinkle 4.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skyhero__stars::after { animation: none; } }
.skyhero__top { position: relative; display: flex; align-items: center; gap: 8px; order: -1; } /* أول في الشكل، وبعد الصلاة القادمة في قارئ الشاشة */
.skyhero__top #sky-date { margin-inline-start: auto; text-wrap: balance; }
/* زجاج داكن: الفاتح كان يضعف تباين النص الأبيض نهارًا (tools/ui-audit.mjs، سماء الرئيسية). */
.chip--glass { background: rgba(6,10,28,.24); border-color: rgba(255,255,255,.24); color: #fff; }
.chip--glass svg.i { color: #fff; }
.icon-btn--glass { background: rgba(6,10,28,.24); border-color: rgba(255,255,255,.24); color: #fff; border-radius: 50%; }
.skyhero__mid { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 22px 0 18px; }
.skyhero__lbl { font-size: 18px; font-weight: 600; opacity: .95; }
.skyhero__big { display: flex; justify-content: center; align-items: baseline; gap: 16px; min-height: 1.15em; font: 800 clamp(44px, 15vw / var(--fs, 1), 68px)/1.15 var(--font-display); }
.cd { display: inline-flex; align-items: baseline; gap: 6px; }
.cd b { font: inherit; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.cd i { font: 600 18px/1 var(--font-body); font-style: normal; opacity: .92; }
.skyhero__when { font-size: 17px; font-weight: 600; opacity: 1; }
.skyhero__pill { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 18px; border-radius: 99px; background: rgba(6,10,28,.26); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.skyhero__pill svg.i { width: 18px; height: 18px; }

/* شريط اليوم: محطات متساوية المسافة، والفترات ملوّنة بينها، والشمس أو الهلال في موضع الآن. */
.fs-xl .strip { zoom: calc(1.3 / var(--fs, 1)); }
.strip { position: relative; height: 100px; border-radius: 22px; background: rgba(6,10,28,.5); border: 1px solid rgba(255,255,255,.13); cursor: pointer; text-shadow: none; }
.strip__line { position: absolute; inset-inline: 0; top: 37px; height: 6px; }
.strip__track, .strip__done, .strip__seg, .strip__rest { position: absolute; top: 0; height: 6px; border-radius: 6px; }
.strip__track { inset-inline: 10px; top: 1px; height: 4px; background: rgba(255,255,255,.24); }
.strip__done { inset-inline-start: 10px; top: 1px; height: 4px; max-width: calc(100% - 20px); background: rgba(255,255,255,.6); }
.strip__seg { background: var(--c); opacity: .95; }
.strip__rest { inset-inline-end: 10px; background: rgba(8,12,32,.5); }
.st { position: absolute; top: 10px; width: 58px; margin-inline-start: -29px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.st b { font-size: 12px; font-weight: 600; line-height: 16px; opacity: .95; white-space: nowrap; }
.st i { width: 12px; height: 12px; border-radius: 50%; background: #18204a; border: 2px solid rgba(255,255,255,.75); }
.st .num { font: 700 13px/16px var(--font-body); opacity: 1; }
.st.done i { background: #fff; border-color: #fff; }
.st.on b { opacity: 1; font-weight: 800; color: #FFE1A1; }
.st.on .num { opacity: 1; color: #FFE1A1; }
.st.on i { background: #FFD27A; border-color: #FFF3D6; box-shadow: 0 0 0 4px rgba(255,210,122,.25); }
.strip__periods { position: absolute; inset-inline: 0; top: 78px; height: 16px; }
.pl { position: absolute; width: 74px; margin-inline-start: -37px; text-align: center; font-size: 11px; font-weight: 700; line-height: 16px; color: var(--c); white-space: nowrap; }
.pl.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 4px; border-radius: 50%; background: var(--c); vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.strip__now { position: absolute; top: 30px; width: 20px; height: 20px; margin-inline-start: -10px; border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 0 4px 1px rgba(255,214,140,.6); z-index: 1; pointer-events: none; }
.strip__now.moon { background: transparent; box-shadow: inset -6px 3px 0 0 #F4F1E6, 0 0 20px 2px rgba(220,225,255,.35); }

/* جولة «الإحساس الفاخر»: عناوين الشاشات، وأرقام السور في نجمة ثمانية، وألوان الأقسام، والحقول بوحداتها. */
.view > h1.h2:first-child { font-size: 25px; line-height: 1.3; padding-top: 10px !important; letter-spacing: -.2px; }
.item--c .item__icon { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.item--c.is-live { background: color-mix(in srgb, var(--c) 8%, transparent); }
.item--c .ag__live { background: color-mix(in srgb, var(--c) 70%, #000); }
.done-tag { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); color: var(--c, var(--brand)); flex: none; }
.done-tag svg.i { width: 16px; height: 16px; stroke-width: 3; }
.snum { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; font: 700 13px/1 var(--font-body); color: var(--brand-text); }
.snum::before { content: ""; position: absolute; inset: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23FF5A1F' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='24' height='24' rx='2'/%3E%3Crect x='8' y='8' width='24' height='24' rx='2' transform='rotate(45 20 20)'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .85; }
.fs { width: auto; min-width: 48px; padding: 0 10px; gap: 1px; display: inline-flex; align-items: baseline; justify-content: center; color: var(--ink); font-weight: 700; font-size: 15px; }
.field-wrap { position: relative; display: block; }
.field-wrap.has-unit .field { padding-right: 82px; }
.unit { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
.field::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.logo { display: block; flex: none; border-radius: 22%; box-shadow: 0 8px 22px -10px rgba(10,15,39,.6); }
/* شاشة الترحيب: نفس سماء الرئيسية، فأول ما يراه المستخدم يشبه التطبيق. */
.welcome-sky { --stars: 1; position: relative; overflow: hidden; margin: calc(-14px - var(--sat) / var(--fs, 1)) -16px 0; padding: calc((12vh + var(--sat)) / var(--fs, 1)) 22px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: #fff; background: linear-gradient(180deg, #05070F, #0D1430 55%, #1A2550); border-radius: 0 0 30px 30px; }
.welcome-sky > * { position: relative; }
.welcome-sky .skyhero__stars { position: absolute; }
/* أول تشغيل: نقاط التقدم، وأيقونة الخطوة، وشكل سؤال الجوال، ومواقيت اليوم للتأكيد. */
/* اختيار اللغة في أعلى الترحيب، داخل السطر لا فوق الشعار (تجربة المحاكي 27 نوفمبر: الخمس لغات تنزل لسطرين فتغطي الشعار). */
.welcome-sky { padding-top: calc((16px + var(--sat)) / var(--fs, 1)); }
.welcome-sky .seg--sky { position: relative; align-self: stretch; margin-bottom: 4vh; width: auto; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.seg--sky button { min-height: 48px; padding: 0 12px; font-size: 13px; color: rgba(255,255,255,.75); }
.seg--sky button[aria-pressed="true"] { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s ease, background .25s ease; }
.dots i.past { background: color-mix(in srgb, var(--brand) 45%, transparent); }
.dots i.on { width: 22px; background: var(--brand); }
.fr { padding-top: calc(5vh / var(--fs, 1)); gap: 16px; }
.fr__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.fr__icon .i { width: 30px; height: 30px; }
.fr__icon--ok { background: color-mix(in srgb, #2E9E6A 16%, transparent); color: #2E9E6A; }
.fr__msg { color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 12px; padding: 10px 12px; }
.fr-mock { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.45); }
.fr-mock__head { font-weight: 600; margin-bottom: 4px; line-height: 1.6; }
.fr-mock span { display: block; padding: 10px 14px; border-radius: 14px; color: var(--muted); font-size: 14px; border: 1px solid var(--line); }
.fr-mock span.pick { color: var(--ink); font-weight: 700; border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.fr-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.fr-times > div > small { display: block; color: var(--muted); font-size: 12px; }
.fr-times b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.fr-times b { font-size: 14px; font-weight: 700; }
.fr-mock__sw { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.fr-mock__sw i { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--brand); position: relative; }
.fr-mock__sw i::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.hrow__l { display: flex; align-items: center; gap: 10px; }
.hs { width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; font-size: 14px; }
.hs .i { width: 14px; height: 14px; stroke-width: 3; }
.hs--ok { background: color-mix(in srgb, #2E9E6A 18%, transparent); color: #2E9E6A; }
.hs--bad { background: color-mix(in srgb, #D64545 16%, transparent); color: #D64545; }
.hs--warn { background: color-mix(in srgb, #D98A00 18%, transparent); color: #C27A00; }
.fr-steps ol { margin: 0; padding-inline-start: 20px; line-height: 1.8; }

/* رمضان: الإمساكية، وأيام الصيام */
.imsak__row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 10px 12px; font-size: 14px; line-height: 1.35; }
.imsak__row + .imsak__row { border-top: 1px solid var(--line); }
.imsak__row > span:not(:first-child) { text-align: center; }
.imsak__row small { font-size: 11px; color: var(--muted); }
.imsak__row .num { font: 700 15px/1 var(--font-display); }
.imsak__head { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--well); }
.imsak__row.is-today { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.imsak__row.is-today b { color: var(--brand-text); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.fday { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--well); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0; }
.fday b { font: 700 15px/1 var(--font-display); }
.fday small { height: 16px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.fday small svg.i { width: 15px; height: 15px; stroke-width: 3; }
.fday.is-f { background: color-mix(in srgb, #0E9F8E 16%, transparent); border-color: color-mix(in srgb, #0E9F8E 45%, transparent); color: #0E9F8E; }
.fday.is-x { background: color-mix(in srgb, #E0457B 13%, transparent); border-color: color-mix(in srgb, #E0457B 40%, transparent); color: #E0457B; }
.fday.is-today { box-shadow: 0 0 0 2px var(--brand); }
/* أسماء الله الحسنى */
.names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.name { min-height: 74px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; text-align: center; }
.name small { font-size: 11px; color: var(--muted); }
.name b { font: 700 17px/1.4 "Amiri Quran", "Amiri", var(--font-display); color: var(--brand-text); }
/* سجل صلواتي: آخر سبعة أيام نقاطًا بلا أرقام */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week__day small { font-size: 11px; color: var(--muted); }
.week__day i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.week__day i.on { background: #2E8B57; }
/* الواجهة الإنجليزية: اتجاه من اليسار، والأسهم والمفاتيح والوحدات تنقلب معه. */
html[dir="ltr"] .item__go, html[dir="ltr"] .ag__go, html[dir="ltr"] .daybar .icon-btn svg, html[dir="ltr"] .tile svg.i.flip, html[dir="ltr"] .oops [data-oops="back"] svg { transform: scaleX(-1); }
html[dir="ltr"] .bar__back svg.flip { transform: none; }
/* سهما الشهر في التقويم: في الإنجليزي والبنغالي والإندونيسي السابق يسار فيشير لليسار. */
html[dir="ltr"] .arr { display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] .switch input::after, html[dir="ltr"] input.sw::after { right: auto; left: 3px; transition: left .15s; }
html[dir="ltr"] .switch input:checked::after, html[dir="ltr"] input.sw:checked::after { left: 23px; }
html[dir="ltr"] select { background-position: right 14px center; }
html[dir="ltr"] .unit { inset-inline-start: auto; inset-inline-end: 14px; }
html[lang="en"] body { font-family: var(--font-body); }

/* نسخة المتصفح: لا أجراس ولا مفاتيح تذكير (main.js يضع web-app) */
.web-app .bell, .web-app .ag--all, .web-app [data-notif] { display: none !important; }

/* الأجهزة اللوحية والشاشات الكبيرة (Play يفضّل التطبيقات اللي تتكيّف معها):
   من 720px شريط تنقّل جانبي بدل السفلي ومحتوى أعرض، ومن 1100px الرئيسية عمودان: السماء ثابتة بجانب جدول اليوم. */
@media (min-width: 720px) {
  body { padding-inline-start: 96px; }
  body:has(#tabs[hidden]) { padding-inline-start: 0; }
  .shell { max-width: 880px; padding-bottom: calc(24px + var(--sab)); }
  .tabs { inset-inline-start: 0; inset-inline-end: auto; top: 0; bottom: 0; width: 96px; max-width: none; margin: 0; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: center; gap: 6px; padding: calc(var(--sat) + 12px) 8px calc(var(--sab) + 12px); border-top: 0; border-inline-end: 1px solid var(--line); box-shadow: none; }
  .sheet-menu { bottom: calc(16px + var(--sab)); inset-inline-start: 112px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skyhero { border-radius: 0 0 34px 34px; }
}
@media (min-width: 1100px) {
  .shell { max-width: 1180px; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.is-home .view { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; column-gap: 22px; }
  body.is-home .view > * { grid-column: 2; }
  body.is-home .view > .skyhero { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: calc(var(--sat) + 14px); margin: 0; border-radius: 32px; min-height: calc((100dvh - 28px - var(--sat)) / var(--fs, 1)); }
}

/* التفسير الميسّر تحت الآية (quran.js) */
.tafsir { display: block; margin: 10px 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); font: 400 16px/1.9 var(--font-body); color: var(--ink); text-align: start; }
.tafsir__head { display: flex; align-items: center; justify-content: space-between; color: var(--brand-text); font-size: 14px; }
.tafsir__head .icon-btn { width: 36px; height: 36px; }
.tafsir__text { display: block; font-size: 17px; white-space: pre-line; }
.tafsir__src { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* نسخة المتصفح: خطوات «أضف إلى الشاشة الرئيسية» */
.isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.istep { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.istep__n { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 700 12px/1 var(--font-body); flex: none; }
.istep__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--well); color: var(--brand-text); flex: none; }
.istep__ic .i { width: 18px; height: 18px; }


/* رسالة قصيرة (ui.js notice)، مثل «هذا الرابط يحتاج إنترنت» */
.notice { position: fixed; inset-inline: 16px; bottom: calc(92px + var(--sab)); z-index: 9; max-width: 520px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--card-ink); font-weight: 600; font-size: 15px; text-align: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
@media (min-width: 720px) { .notice { bottom: calc(24px + var(--sab)); } }

/* شاشة طاحت (js/oops.js) */
.oops { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 18px; }
.oops__icon svg.i { width: 40px; height: 40px; color: var(--brand-text); }

/* هيكل التحميل (main.js: أي شاشة تتأخر ملفاتها أو بياناتها): أشرطة باهتة تنبض (تقليل الحركة يوقفها، السطر 32). */
.skel .item { pointer-events: none; }
.skel .snum { background: var(--line); }
.skel__bar { display: block; height: 12px; width: 46%; border-radius: 6px; background: var(--line); margin: 4px 0 8px; animation: skel 1.2s ease-in-out infinite alternate; }
.skel__bar--short { width: 28%; height: 10px; }
@keyframes skel { from { opacity: .45; } to { opacity: 1; } }

/* «narrow» (الجولة 27): عرض المحتوى بعد تكبير الخط أقل من 280 (جوال 320 مع «كبير جدًا»). الخط يبقى كما اختاره المستخدم،
   والأسطر المزدحمة تنزل تحت بعض: الوقت وجرسه تحت اسم الصلاة، والأسبوع في سجل الصلاة صفّين، والإمساكية اليوم فوق أوقاته. */
/* الشاشة الضيقة بالخط الكبير: الوقت ينزل تحت اسم الصلاة، والجرس يبقى على الجنب بطول السطرين. */
.narrow .ag { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name act" "icon tm act"; row-gap: 2px; }
.narrow .ag > .tm { justify-self: start; min-width: 0; }
.narrow .strip { zoom: calc(1 / var(--fs, 1)); }
.narrow .st b { font-size: 11px; }
.narrow .week { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
.narrow .imsak__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2px; }
.narrow .imsak__row > :first-child { grid-column: 1 / -1; }
.narrow .dhikr__meta { flex-wrap: wrap; }
.narrow .dhikr__meta > .row { margin-inline-start: auto; }
.narrow .qstats { grid-template-columns: minmax(0, 1fr); }
.narrow .row--between { flex-wrap: wrap; }
/* رؤوس أيام التقويم (الأردو بأسمائها الكاملة): بحجمها العادي، لأن العمود 21 فقط بعد التكبير. أرقام الأيام تبقى كبيرة. */
.narrow .cal-h { zoom: calc(1 / var(--fs, 1)); font-size: 10px; }
.narrow .banner > .grow { min-width: 0; }
.narrow .banner { gap: 8px; padding-inline: 12px; }
.calnav > div { flex: 1 1 0; min-width: 0; }
.narrow .calnav > div { flex-basis: 100%; order: -1; }

/* الوصول السريع تحت المواقيت (هوية «أجر»): ثمانية أقسام في صفين، أيقونة بلون القسم فوق اسمه. */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.quick__a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 6px 2px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.quick__a:active { background: var(--well); }
.quick__i { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
:root[data-theme="night"] .quick__i { color: color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
.quick__a { min-width: 0; }
.quick__t { max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
/* الشاشة الضيقة بالخط الكبير: اثنان في الصف بدل أربعة، والأيقونة أصغر، فتبقى الكلمة كاملة. */
.narrow .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 2px; }
.narrow .quick__i { width: 38px; height: 38px; border-radius: 13px; }
.narrow .quick__a { font-size: 11.5px; }

/* التبرع (منصة إحسان): شريط خفيف بلون ذهبي، لا إعلان ولا لون صارخ. */
.donate { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: var(--radius-xl); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface)); color: var(--ink); text-align: start; }
.donate b { display: block; font: 700 15px/1.4 var(--font-display); }
.donate__q { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.donate__i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* إحصائياتي: بطاقة اليوم بلون الهوية، ثم شبكة الأرقام، ثم أعمدة آخر سبعة أيام. */
.stat-hero { border-radius: var(--radius-xl); padding: 18px 16px 16px; color: #FFF6E2; background: radial-gradient(120% 90% at 80% 0%, #1B7A62 0%, transparent 60%), linear-gradient(135deg, #0F5A48, #06261F); box-shadow: inset 0 0 0 1px rgba(246,220,154,.18); }
.stat-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stat-hero__lbl { font: 700 15px/1.4 var(--font-display); color: #F6DC9A; }
.stat-hero__streak { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(246,220,154,.14); color: #F6DC9A; }
.stat-hero__streak svg.i { width: 16px; height: 16px; }
.stat-hero__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; text-align: center; }
.stat-hero__row b { display: block; font: 800 30px/1.1 var(--font-display); }
.stat-hero__row b small { font-size: 15px; opacity: .7; }
.stat-hero__row span { font-size: 12.5px; opacity: .85; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat__i { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); align-self: start; }
:root[data-theme="night"] .stat__i { color: color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
.stat b { font: 800 22px/1.2 var(--font-display); }
.stat__n { font-weight: 700; font-size: 14px; }
.stat__u { font-size: 12px; color: var(--muted); }
.narrow .stat-grid { grid-template-columns: minmax(0, 1fr); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; margin-top: 12px; }
.bars__col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bars__stack { flex: 1; width: 100%; max-width: 26px; display: flex; flex-direction: column-reverse; gap: 2px; justify-content: flex-start; }
.bars__stack i { display: block; width: 100%; border-radius: 6px; min-height: 0; }
.bars__d { background: var(--brand); }
.bars__a { background: var(--gold); }
.bars__n { font-size: 11px; color: var(--muted); min-height: 15px; }
.bars__day { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars__col.is-today .bars__day { color: var(--brand-text); font-weight: 700; }
.bars__key { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.bars__key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

/* صورة للمشاركة: المعاينة بعرض الشاشة، وألوان القوالب دوائر. */
.card-preview { display: grid; place-items: center; }
.card-canvas { width: 100%; max-width: 420px; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 12px; min-height: 48px; }
.swatch::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 3px var(--c), 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"]::before { box-shadow: inset 0 0 0 3px var(--c), 0 0 0 3px var(--brand); }
.swatch span { max-width: 100%; overflow-wrap: break-word; text-align: center; line-height: 1.3; }
.narrow .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* معاني الآيات (الواجهات غير العربية): كل آية في سطرها، وتحتها النطق ثم المعنى بخط الواجهة. */
.with-meaning .aya { display: block; margin-top: 10px; }
.mean { display: block; margin: 4px 2px 12px; padding: 8px 12px; border-inline-start: 3px solid var(--frame, var(--brand)); background: color-mix(in srgb, var(--frame, var(--brand)) 7%, transparent); border-radius: 8px; font: 400 15px/1.7 var(--font-body); color: var(--ink); }
.mean:empty { display: none; }
.mean__tr { display: block; font-style: italic; color: var(--brand-text); margin-bottom: 4px; }
.mean__t { display: block; }
.mean__n { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: pre-line; }
.mean__n summary { cursor: pointer; color: var(--brand-text); font-weight: 600; min-height: 48px; display: flex; align-items: center; white-space: normal; }
/* نطق الذكر ومعناه تحت النص العربي (الواجهات غير العربية). */
.dmean { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.dmean p { margin: 0; font: 400 14.5px/1.7 var(--font-body); }
.dmean__tr { font-style: italic; color: var(--brand-text); }
.dmean__t { color: var(--ink); margin-top: 4px !important; }
.invite { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.invite .row svg.i { color: var(--gold); }
.invite__q { margin: 0; font: 400 18px/1.9 "Amiri Quran", "Amiri", var(--font-body); color: var(--ink); }
.invite__q .muted { font: 400 13px/1.6 var(--font-body); }
/* تخصيص أيقونات الرئيسية: المختار بإطار بلون الهوية ورقم ترتيبه، و«المزيد» بإطار متقطع لأنه ثابت. */
.tile--pick { position: relative; border: 1px solid var(--line); font: inherit; color: var(--ink); }
.tile--pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.tile--fixed { border-style: dashed; cursor: default; }
.tile__n { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--brand); color: var(--on-brand); }
/* ثلاثة أزرار في سطر الذكر (صورة، ومشاركة، والعدّاد): تنزل لسطر ثانٍ لما يضيق السطر أو يكبر الخط. */
.dhikr__meta { flex-wrap: wrap; }
.dhikr__meta > .row { flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
/* «المواقيت فقط» في جدول اليوم: الصلوات والشروق، بلا الأذكار والضحى والليل وسطر التذكيرات. */
.agenda.is-compact > .ag--period, .agenda.is-compact > .ag--night, .agenda.is-compact > .ag--all, .agenda.is-compact > .ag--info { display: none; }
.agenda.is-compact > .ag:not([hidden]) ~ .ag { border-top: 1px solid var(--line); }
/* نوع التنبيه لكل صلاة: اسم الصلاة واختيارها في سطر. */
.alerts { display: grid; gap: 6px; }
.alerts__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.alerts__row > span { font-weight: 600; }
.alerts__row select { width: auto; min-width: 0; flex: 0 1 70%; }
.narrow .alerts__row { flex-wrap: wrap; }
.narrow .alerts__row select { flex-basis: 100%; }
/* الرئيسية بشكل «المختصرة» (طلب سعود 27 نوفمبر): نفس السماء وعدّادها وشريط اليوم، بارتفاع قصير. */
.skyhero--list { min-height: 0; }
.skyhero--list .skyhero__mid { padding: 12px 0 14px; gap: 2px; }
.skyhero--list .skyhero__lbl { font-size: 16px; }
.skyhero--list .skyhero__big { font-size: clamp(34px, calc(11vw / var(--fs, 1)), 48px); }
.skyhero--list .skyhero__when { font-size: 15px; }
.skyhero--list .skyhero__pill { margin-top: 8px; min-height: 48px; }
/* التاريخ في الرئيسية يفتح التقويم (طلب سعود 27 نوفمبر)، والتقويم بالميلادي أول يوم الشهر الهجري فيه ملوّن. */
button.daybar__text { display: flex; flex-direction: column; align-items: center; min-height: 48px; justify-content: center; border: 0; background: transparent; color: inherit; font: inherit; border-radius: 12px; }
button.daybar__text:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.cal-d.is-first:not(.is-today) small { color: var(--brand-text); font-weight: 700; }
/* تمييز التبويب (طلب سعود 27 نوفمبر): حبة واحدة خلف الأيقونة والكتابة معًا، تنزلق للتبويب المختار. --tab-i رقمه (main.js). */
.tabs { --tab-i: 0; }
.tabs::before { content: ""; position: absolute; top: 6px; bottom: calc(6px + var(--sab)); inset-inline-start: calc(6px + var(--tab-i) * ((100% - 12px) / 5)); width: calc((100% - 12px) / 5); border-radius: 16px; background: color-mix(in srgb, var(--brand) 15%, transparent); transition: inset-inline-start .28s cubic-bezier(.3, .8, .3, 1); pointer-events: none; }
.tab { position: relative; }
.tab[aria-current="page"] svg.i { background: transparent; }
@media (prefers-reduced-motion: reduce) { .tabs::before { transition: none; } }
.reduce-motion .tabs::before { transition: none; }
@media (min-width: 720px) {
  .tabs::before { inset-inline-start: 8px; width: auto; inset-inline-end: 8px; bottom: auto; height: 76px; top: calc(50% - (5 * 76px + 4 * 6px) / 2 + var(--tab-i) * 82px + (var(--sat) - var(--sab)) / 2); transition: top .28s cubic-bezier(.3, .8, .3, 1); }
}

/* الترحيب: خلفية الصفحة تحت شريط الحالة بلون سماء الترحيب (onboard.css --sky-a)، بدل لون الثيم الفاتح. */
body.is-welcome { background: #050B14; }

/* تخصيص أيقونات الرئيسية (1 ديسمبر): صف الرئيسية فوق بترتيبه ويُسحب، وباقي الأقسام تحت بزر +. */
.qe-on { padding: 12px; }
.qe-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.qe-head--rest { margin: 6px 2px 0; }
.qe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qe-grid .tile { min-height: 92px; padding: 10px 4px 8px; }
.qe-grid .item__icon { width: 42px; height: 42px; }
.qe-grid .tile__t { font-size: 12.5px; }
.qe-tile { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); transition: box-shadow .15s; }
.qe-tile.is-drag { z-index: 5; cursor: grabbing; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); transition: none; }
.qe-tile.is-target { box-shadow: inset 0 0 0 2px var(--brand); }
.qe-tile .tile__n { top: 5px; inset-inline-end: 5px; width: 19px; height: 19px; font-size: 11px; }
.qe-x { position: absolute; top: -7px; inset-inline-start: -7px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font: 700 15px/1 var(--font-body); box-shadow: 0 0 0 2px var(--surface); }
.qe-mv { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; opacity: 0; pointer-events: none; }
.qe-mv button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--brand); color: var(--on-brand); font: 700 15px/1 var(--font-body); }
.qe-mv:focus-within { opacity: 1; pointer-events: auto; }
.qe-mv button:disabled { opacity: .3; }
.qe-add { position: relative; border-style: dashed; }
.qe-add[aria-disabled="true"] { opacity: .45; }
.qe-plus { position: absolute; top: 6px; inset-inline-end: 8px; font: 700 16px/1 var(--font-body); color: var(--brand); }

.support-row { padding: 12px 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--gold, #C59A2E) 14%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--gold, #C59A2E) 35%, var(--line)); }
.support-row .item__icon { color: var(--gold, #C59A2E); background: color-mix(in srgb, var(--gold, #C59A2E) 16%, transparent); }

/* «الآن» في شريط اليوم (1 ديسمبر، الاقتراح الأول): الماضي ذهبي، والصلوات اللي فاتت بنقطة ذهبية، و«الآن» دائرة فاتحة بإطار ذهبي، وتحت الشريط سطر الوقت. */
.strip { height: 122px; }
.strip__done { background: #E2B95C; box-shadow: 0 0 10px rgba(226, 185, 92, .45); z-index: 1; }
.st.done i { background: #E2B95C; border-color: #E2B95C; }
.st.done b, .st.done .num { opacity: .7; }
.strip__now, .strip__now.moon { top: 33px; width: 16px; height: 16px; margin-inline-start: -8px; background: #FFF6D8; box-shadow: 0 0 0 3px #E2B95C, 0 0 14px 3px rgba(226, 185, 92, .45); z-index: 2; }
.strip__note { position: absolute; inset-inline: 14px; top: 97px; margin: 0; font-size: 12.5px; line-height: 18px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__note b { color: #FFD27A; font-weight: 800; }
.strip__note .num { font-weight: 700; color: #FFF6D8; }
.strip__note small { font-size: 11px; }
.strip__sep { opacity: .5; padding: 0 2px; }

/* محرر الأيقونات (1 ديسمبر، ملاحظات سعود): بلا تظليل لما يمتلي، والعدّاد أحمر ويهتز، وزر × أكبر وأحمر في زاويته لحاله. */
.qe-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.qe-count.is-full { color: #E5484D; }
.qe-count.is-shake { animation: qe-shake .4s; }
@keyframes qe-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.qe-x { top: -9px; left: -9px; right: auto; inset-inline-start: auto; width: 28px; height: 28px; background: #D93C3C; color: #fff; font-size: 18px; box-shadow: 0 0 0 2px var(--surface); }
.qe-tile .tile__n { top: 6px; right: 6px; left: auto; inset-inline-end: auto; }
.reduce-motion .qe-count.is-shake { animation: none; }

/* الصلاة الجاية نقطتها حلقة ذهبية فاضية (ما دخلت بعد)، والفائتة ذهبية ممتلئة، و«الآن» دائرة فاتحة. */
.st.on i { background: #24203f; border: 2.5px solid #FFD27A; box-shadow: 0 0 0 4px rgba(255, 210, 122, .18); }

/* القوائم المنسدلة: لمسها يفتح ورقة التطبيق (js/picker.js) بدل قائمة أندرويد. */
select { pointer-events: none; }
.pk { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); animation: pk-in .18s ease-out both; }
.pk.is-out { animation: pk-out .18s ease-in both; }
.pk__sheet { width: min(100%, 560px); max-height: 72vh; display: flex; flex-direction: column; padding: 8px 12px calc(14px + var(--sab, 0px)); border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -16px 40px -20px rgba(0, 0, 0, .6); animation: pk-up .22s cubic-bezier(.2, .9, .3, 1) both; }
.pk__grip { width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: var(--line); }
.pk__t { padding: 0 6px 8px; font: 800 16px/1.4 var(--font-display); }
.pk__list { overflow-y: auto; display: grid; gap: 4px; }
.pk__o { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: 600 15.5px/1.3 var(--font-body); text-align: start; }
.pk__o:active { background: var(--surface-2); }
.pk__o[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-text, var(--brand)); }
.pk__dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.pk__o[aria-selected="true"] .pk__dot { border-color: var(--brand); background: var(--brand); color: var(--on-brand, #fff); }
.pk__dot .i { width: 14px; height: 14px; }
.pk__o:disabled { opacity: .4; }
@keyframes pk-in { from { opacity: 0; } }
@keyframes pk-out { to { opacity: 0; } }
@keyframes pk-up { from { transform: translateY(40px); } }
.reduce-motion .pk, .reduce-motion .pk__sheet { animation: none; }
.btn:disabled { opacity: .45; pointer-events: none; }
