/* من نموذج العرض إلى تطبيق حقيقي: كل شاشة تملأ النافذة */
html,html body{margin:0;padding:0;height:100%}
body.live{overflow:hidden;background:#F2F7F8}
body.live.night{background:#051317}
body.live:not(.loaded) .gallery{visibility:hidden}
body.live .gallery,body.live.try.desk .gallery{display:block;max-width:none;margin:0;padding:0}
body.live figure{display:none;margin:0;width:100%;max-width:none}
body.live figure.current{display:block}
body.live .frame{height:100dvh!important;width:100%;border-radius:0;box-shadow:none}
body.live .phone{position:relative;width:100%;height:100%;transform:none!important}
html[data-sys=p] body.live .scr{width:100%;height:100dvh;border-radius:0}
/* شاشات الوسط (الأجهزة اللوحية): المحتوى في عمود مريح */
@media (min-width:600px) and (max-width:899px){
  html[data-sys=p] body.live .scr .scroll>*{max-width:560px;margin-left:auto;margin-right:auto}
}
html[data-sys=p] body.live.desk .scr{width:100%;height:100dvh}
html[data-sys=p] body.live.desk .scr .sheet{right:max(20px,calc(268px + (100vw - 828px)/2))}
html[data-sys=p] body.live.desk .scr:is(.s-visitors,.s-register,.s-login,.s-forgot,.s-reset,.s-terms) .sheet{right:max(20px,calc((100vw - 560px)/2))}
html[data-sys=p] body.live.desk .scr:has(.drawer) .toast{right:calc(268px + max(20px,(100vw - 720px)/2));left:max(20px,(100vw - 268px - 452px)/2)}
.scr [hidden]{display:none!important}
/* مراجعة محمد 2026-11-29: بعد حذف زر الصندوق الأخير لا يبقى فراغ تحت سطره */
html[data-sys=p] .scr.s-visitors .closing p{margin-bottom:4px}
/* مراجعة محمد 2026-11-29: الفئة العمرية تُقرأ من اليمين، الأصغر أولاً ثم الأكبر */
html[data-sys=p] body.live .scr .opts.ages button,html[data-sys=p] body.live .scr .mine [data-key=age] b{unicode-bidi:isolate;direction:rtl}
/* الزر أثناء انتظار الخادم: يبان إنه يشتغل */
.scr button[data-busy]{opacity:.55;cursor:progress;animation:waiting 1s ease-in-out infinite alternate}
@keyframes waiting{to{opacity:.85}}
/* ===== صفحة الزوار: أول شاشة بألوان التطبيق الأصلية (محمد 2026-11-29، لون سادة بدون سعف) ===== */
html[data-sys=p] body.live .scr.s-visitors .scroll>.welcome-screen{
  /* المسافة فوق الشعار تتبع ارتفاع الشاشة، حتى يبقى الزر ظاهراً على الجوال القصير */
  --lead:clamp(40px,calc(100dvh - 700px),150px);
  max-width:none;margin:0;min-height:100dvh;display:flex;flex-direction:column;align-items:center;text-align:center;padding-bottom:18px}
.welcome-screen .vtop{align-self:stretch;display:flex;justify-content:flex-end;padding:20px 22px 0}
html[data-sys=p] .scr .welcome-screen .vtop button{min-height:42px;padding:0 22px;border-radius:99px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--btn);color:var(--ink);font-size:15px;font-weight:600}
html[data-sys=p] .scr .welcome-screen .lockup.brand{display:flex;flex-direction:column;align-items:center;gap:4px;margin:var(--lead) 0 0}
html[data-sys=p] .scr .welcome-screen .lockup .logo{width:100px;height:100px}
html[data-sys=p] .scr .welcome-screen .lockup .wm{font-size:29px;letter-spacing:.07em}
html[data-sys=p] .scr .welcome-screen .vtitle{display:flex;flex-direction:column;line-height:1.46;margin:24px 20px 0;padding:0;font-weight:400}
html[data-sys=p] .scr .welcome-screen .vtitle span{font-size:28px;font-weight:300;color:var(--muted)}
html[data-sys=p] .scr .welcome-screen .vtitle strong{font-size:43px;font-weight:600;color:var(--ink)}
html[data-sys=p] .scr .welcome-screen .vsub{margin:12px 20px 0;font-size:15.5px;font-weight:300;line-height:2.1;color:var(--muted)}
.welcome-screen .vcta{align-self:stretch;margin-top:auto;padding:22px 24px 0}
html[data-sys=p] .scr .welcome-screen .vcta .btn{display:flex;align-items:center;justify-content:center;width:100%;max-width:420px;height:58px;margin:0 auto;background:var(--btn);color:var(--btnInk);font-size:17.5px;font-weight:600}
html[data-sys=p] .scr .welcome-screen .vcta .legal{max-width:420px;margin:12px auto 0;text-align:start}
@media (max-height:760px){
  html[data-sys=p] .scr .welcome-screen .lockup .logo{width:76px;height:76px}
  html[data-sys=p] .scr .welcome-screen .lockup .wm{font-size:24px}
  html[data-sys=p] .scr .welcome-screen .vtitle{margin-top:10px}
  html[data-sys=p] .scr .welcome-screen .vtitle span{font-size:23px}
  html[data-sys=p] .scr .welcome-screen .vtitle strong{font-size:36px}
  html[data-sys=p] .scr .welcome-screen .vsub{margin-top:6px;line-height:1.9}
}

/* ===== كلمة Liberaise بخط الشعار وألوانه (محمد 2026-11-29) ===== */
.scr .bw{font-family:"Marcellus",serif;font-weight:400;letter-spacing:.04em;unicode-bidi:isolate;white-space:nowrap}
.scr .bw .c1{color:#42987c}.scr .bw .c2{color:#3d91b8}.scr .bw .c3{color:#526ab3}.scr .bw .c4{color:#7c65af}
body.night .scr .bw .c1{color:#76bea8}body.night .scr .bw .c2{color:#72b8d7}body.night .scr .bw .c3{color:#8399d3}body.night .scr .bw .c4{color:#a396d0}
/* رسالة التنبيه العائمة أرضيتها معكوسة، فتأخذ ألوان الوضع الآخر لتبقى واضحة */
html body .scr .toast .bw .c1{color:#76bea8}html body .scr .toast .bw .c2{color:#72b8d7}html body .scr .toast .bw .c3{color:#8399d3}html body .scr .toast .bw .c4{color:#a396d0}
html body.night .scr .toast .bw .c1{color:#42987c}html body.night .scr .toast .bw .c2{color:#3d91b8}html body.night .scr .toast .bw .c3{color:#526ab3}html body.night .scr .toast .bw .c4{color:#7c65af}
/* تحت «صباح الخير»: الكلمة هي بطلة السطر */
html[data-sys=p] .scr .welcome .bw{font-size:1.55em;line-height:1;vertical-align:-.04em}

/* ===== بدون دوائر الأيقونات (محمد 2026-11-29، الاقتراح 1). أرقام «طريقة الجلسة» تبقى ===== */
html[data-sys=p] body.live .scr .dot:not(.steps .dot){display:none}
/* الخط الفاصل كان يترك مكاناً للدائرة، ويختفي على الكمبيوتر حيث البطاقتان متجاورتان */
html[data-sys=p] body.live .scr .list .item+.item::before{right:18px}
html[data-sys=p] body.live.desk .scr.s-home .scroll>.list .item::before{display:none}
html[data-sys=p] body.live .scr .item{grid-template-columns:minmax(0,1fr) auto;padding-inline-start:18px}
html[data-sys=p] body.live .scr .item.plain{grid-template-columns:minmax(0,1fr)}
html[data-sys=p] body.live .scr .feature,html[data-sys=p] body.live .scr button.wounds,html[data-sys=p] body.live .scr .wcard,html[data-sys=p] body.live .scr .emcard{grid-template-columns:minmax(0,1fr)}
html[data-sys=p] body.live .scr button.wounds{padding-inline-start:18px}
html[data-sys=p] body.live .scr.s-packages .emcard,html[data-sys=p] body.live .scr.s-childhood .emcard{grid-template-columns:minmax(0,1fr) auto;padding-inline-start:18px}
html[data-sys=p] body.live .scr:not(.s-packages,.s-childhood) .acts{padding-inline-start:0;margin-inline-start:-10px}

/* ===== مراجعة محمد 2026-11-29 (لوحة المراجعة) ===== */
/* «قبل أن نبدأ»: التعليمات نص مرقّم بلا مربع ولا خطوط ولا دوائر، حتى لا تبدو خيارات تُضغط */
html[data-sys=p] body.live .scr .steps{background:transparent;box-shadow:none;overflow:visible;gap:6px;margin-top:34px}
html[data-sys=p] body.live .scr .steps li{justify-content:flex-start;text-align:start;background:transparent;box-shadow:none;align-items:baseline;gap:10px;padding:9px 8px;font-size:15.5px;line-height:1.9}
html[data-sys=p] body.live .scr .steps li+li::before{display:none}
html[data-sys=p] body.live .scr .steps .dot{width:auto;height:auto;min-width:18px;background:transparent;border-radius:0;color:var(--hl)}
/* زر «تحميل الكشف» مخفي مؤقتاً بطلبه؛ لإرجاعه يُحذف هذا السطر */
html[data-sys=p] body.live .scr.s-progress .pad{display:none}

/* القياس (النموذج 1): خط ملوّن بدرجات خفيفة ونقطة تُسحب. «لا شيء» من اليمين */
html[data-sys=p] .scr.s-scale{--z-low:#2E8B5B;--z-mid:#B96A12;--z-high:#C2443E;--zc:var(--z-low)}
html[data-sys=p] body.night .scr.s-scale{--z-low:#8FD3A6;--z-mid:#F3BC7A;--z-high:#EF9A95}
html[data-sys=p] .scr.s-scale[data-zone=mid]{--zc:var(--z-mid)}html[data-sys=p] .scr.s-scale[data-zone=high]{--zc:var(--z-high)}
html[data-sys=p] body.live .scr.s-scale .val{color:var(--zc)}
html[data-sys=p] .scr .scalebox{margin:44px 30px 0;direction:rtl}
html[data-sys=p] .scr .srange{-webkit-appearance:none;appearance:none;display:block;width:100%;height:52px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}
html[data-sys=p] .scr .srange::-webkit-slider-runnable-track{height:10px;border-radius:99px;background:linear-gradient(to left,#8FD3A6 0%,#8FD3A6 18%,#F3BC7A 50%,#EF9A95 85%,#EF9A95 100%)}
html[data-sys=p] .scr .srange::-moz-range-track{height:10px;border-radius:99px;background:linear-gradient(to left,#8FD3A6 0%,#8FD3A6 18%,#F3BC7A 50%,#EF9A95 85%,#EF9A95 100%)}
html[data-sys=p] .scr .srange::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:34px;height:34px;margin-top:-12px;border-radius:50%;background:#fff;border:7px solid var(--zc);box-shadow:0 3px 12px rgba(0,0,0,.35)}
html[data-sys=p] .scr .srange::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:7px solid var(--zc);box-shadow:0 3px 12px rgba(0,0,0,.35)}

/* خط الأسئلة (الخيار أ): أصغر قليلاً وأوضح */
html[data-sys=p] body.live .scr:is(.s-question,.s-rq) .ask h2{font-size:28px;font-weight:400;line-height:1.95}
html[data-sys=p] body.live.desk .scr:is(.s-question,.s-rq) .ask h2{font-size:32px}

/* «خروج» في سطر وحده أعلى اليسار، وخط التقدّم تحته بعرض الشاشة (الخيار أ)، في كل صفحات الجلسة */
html[data-sys=p] body.live .scr .bar{flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:16px;height:auto;min-height:76px}
html[data-sys=p] body.live .scr .bar button{order:1;min-height:40px;padding:0 20px;border-radius:99px;box-shadow:inset 0 0 0 1px var(--line)}
html[data-sys=p] body.live .scr .bar .prog{order:2;flex:none;align-self:stretch;width:auto;margin:0}

/* الجوال القصير: نضيّق المسافات في القياس، وتنزل أزرار «ما لاحظته» تحت المحتوى بدل أن تغطيه */
@media (max-height:700px){
  html[data-sys=p] body.live .scr.s-scale h2.q{margin-top:18px}
  html[data-sys=p] body.live .scr.s-scale .val{margin-top:6px;font-size:84px}
  html[data-sys=p] body.live .scr .scalebox{margin-top:16px}
  html[data-sys=p] body.live .scr.s-body .yn{position:static;margin:18px 20px 22px}
}

/* الجلسة الخاصة: «هل تقصد؟» داخل الصندوق تحت ما كتبه، ورسالة السلامة تحته */
html[data-sys=p] body.live .scr .field.has-sug{border-radius:30px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
html[data-sys=p] body.live .scr .field.has-sug textarea{min-height:0;height:78px;padding:18px 18px 0;background:transparent;box-shadow:none}
html[data-sys=p] body.live .scr .field .sug{position:static;padding:4px 12px 14px;text-align:center}
html[data-sys=p] body.live .scr .field .sug>span{font-size:13.5px;margin-bottom:10px}
html[data-sys=p] body.live .scr .sug-list{gap:8px}
html[data-sys=p] body.live .scr .sug-list button{min-height:44px;padding:6px 18px;border-radius:99px;background:var(--wash);color:var(--ink);font-size:14.5px;line-height:1.7}
html[data-sys=p] body.live .scr .sug-list button.other{flex-basis:100%;max-width:260px;background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-size:13.5px}
html[data-sys=p] body.live .scr .pbody .soft{margin:14px 20px 0;padding:12px 16px;border-radius:18px;background:var(--wash);text-align:center;font-size:14.5px;line-height:1.95;color:var(--ink)}

/* سجل الجلسات: سلة صغيرة بلا دائرة في آخر السطر، وقائمة فارغة لا تترك خطاً */
html[data-sys=p] body.live .scr .item.log{grid-template-columns:minmax(0,1fr) auto auto;padding-inline-end:6px}
html[data-sys=p] body.live .scr .item.log .trash{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--muted)}
html[data-sys=p] body.live .scr .item.log .trash svg{width:19px;height:19px}
html[data-sys=p] body.live .scr .item.log .trash:hover{color:var(--ink);background:var(--wash)}
html[data-sys=p] body.live .scr.s-progress .list:empty{display:none}
html[data-sys=p] body.live .scr .confirm.logdel .box{width:min(330px,calc(100% - 32px))}
html[data-sys=p] body.live .scr .confirm.logdel .btn{display:flex;align-items:center;justify-content:center;width:100%;height:50px}
html[data-sys=p] body.live .scr .confirm.logdel p{margin:6px 0 16px}
html[data-sys=p] body.live .scr .confirm.logdel .btn.keep{background:var(--btn);color:var(--btnInk)}
html[data-sys=p] body.live .scr .item.log .again{display:inline-block;margin-top:6px;min-height:34px;padding:0 14px;border-radius:99px;background:var(--wash);color:var(--ink);font-size:12.5px}

/* سؤال حفظ الجلسة الخاصة تحت الكشف. معه تنزل أزرار «تم» و«إعادة» تحته بدل أن تطفو فوقه */
html[data-sys=p] body.live .scr .keepbox{margin:16px 20px 0;padding:16px;border-radius:24px;background:var(--wash);text-align:center}
html[data-sys=p] body.live .scr .keepbox b{display:block;font-size:15.5px;line-height:1.9}
html[data-sys=p] body.live .scr .keepbox small{display:block;margin-top:10px;font-size:12.5px;color:var(--muted)}
html[data-sys=p] body.live .scr .keeprow{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
html[data-sys=p] body.live .scr .keeprow .btn{display:flex;align-items:center;justify-content:center;height:48px;font-size:14.5px}
html[data-sys=p] body.live .scr .keeprow .btn.quiet{background:var(--card);box-shadow:0 0 0 1px var(--line)}
html[data-sys=p] body.live .scr.s-report.has-keep .yn{position:static;margin:16px 20px 22px}
html[data-sys=p] body.live.desk .scr.s-report .keepbox{max-width:620px;margin-inline:auto}

/* مربع الموافقة في التسجيل، ورابطا الشروط والخصوصية تحته متجاورين */
html[data-sys=p] body.live .scr .consent{display:flex;align-items:flex-start;gap:12px;margin:16px 2px 4px;text-align:start;font-size:13.5px;line-height:1.95;cursor:pointer}
html[data-sys=p] body.live .scr .consent input{flex:none;width:22px;height:22px;margin-top:3px;accent-color:var(--btn);cursor:pointer}
html[data-sys=p] body.live .scr .terms-link{display:inline-block;width:auto;margin:10px 6px 2px}
html[data-sys=p] body.live .scr form .terms-link,html[data-sys=p] body.live .scr .scroll>.terms-link{text-align:center}
html[data-sys=p] body.live .scr.s-account .scroll>.terms-link{display:block;width:max-content;margin:6px auto 0}

/* ===== شارك التطبيق ===== */
html[data-sys=p] body.live .scr.s-invite .lead{margin:2px 24px 0;font-size:19px;font-weight:500;line-height:1.8;text-align:center;color:var(--ink)}
html[data-sys=p] body.live .scr .invite{margin:18px 20px 0;text-align:center}
html[data-sys=p] body.live .scr .invite-card{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 0 0 1px var(--line),0 14px 34px rgba(0,20,25,.22)}
html[data-sys=p] body.live .scr .invite-msg{margin-top:16px;padding:16px 18px;border-radius:22px;background:var(--card);box-shadow:0 0 0 1px var(--line);user-select:text}
html[data-sys=p] body.live .scr .invite-text{font-size:15.5px;line-height:2}
html[data-sys=p] body.live .scr .invite-url{margin-top:6px;font-size:14px;color:var(--hl);unicode-bidi:isolate}
html[data-sys=p] body.live .scr .invite .btn{display:flex;align-items:center;justify-content:center;width:100%;height:54px;margin-top:16px}
html[data-sys=p] body.live .scr .invite-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-sys=p] body.live .scr .invite-two .btn{height:48px;margin-top:10px;font-size:14.5px}
html[data-sys=p] body.live .scr .invite-note{margin-top:14px;font-size:12.5px;line-height:1.9;color:var(--muted)}
html[data-sys=p] body.live.desk .scr.s-invite .scroll>.invite{max-width:520px;margin-inline:auto}
html[data-sys=p] body.live .scr .invite-row{margin-bottom:12px}

/* ===== نوافذ التعريف ===== */
html[data-sys=p] body.live .scr .info-body .info-safety{margin-top:16px;padding:12px 14px;border-radius:16px;box-shadow:inset 0 0 0 1.5px var(--hl);color:var(--ink);font-weight:500}
html[data-sys=p] body.live .scr .info-body .info-note{margin-top:14px;font-size:12.5px;text-align:center;color:var(--muted)}

html[data-sys=p] body.live .scr [data-act=howto-open][hidden]{display:none}

/* «قبل أن نبدأ»: الأرقام في عمود واحد، والمجموعة كلها في وسط الصفحة (النموذج ٣) */
html[data-sys=p] body.live .scr.s-start .steps{display:grid;width:max-content;max-width:calc(100% - 40px);margin:44px auto 0;gap:14px}
html[data-sys=p] body.live .scr.s-start .steps li{gap:16px;padding:10px 0;font-size:16.5px}
html[data-sys=p] body.live .scr.s-start .steps li p{font-size:16.5px}
html[data-sys=p] body.live .scr.s-start .steps .dot{min-width:20px;font-size:18px}


/* ===== المفاجأة بعد الجلسة ===== */
html[data-sys=p] body.live .scr .party{position:absolute;inset:0;z-index:40;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#051317;color:#E8F2F4}
html[data-sys=p] body.live .scr .party .fall{position:absolute;opacity:0;pointer-events:none;z-index:1}
html[data-sys=p] body.live .scr .party-text{position:relative;z-index:2;max-width:92%;padding:34px 22px;text-align:center;background:radial-gradient(closest-side,rgba(5,19,23,.94) 58%,rgba(5,19,23,0))}
html[data-sys=p] body.live .scr .party-head{display:block;font-size:31px;font-weight:700;line-height:1.8}
html[data-sys=p] body.live .scr .party-sub{display:block;margin-top:6px;font-size:20px;line-height:2;color:#BFE0E8}
html[data-sys=p] body.live .scr .party .party-go{position:absolute;z-index:3;left:20px;right:20px;bottom:calc(28px + env(safe-area-inset-bottom,0px));width:auto;max-width:420px;height:56px;margin:0 auto;background:#2C7989;color:#F7FDFE}

/* ===== صفحتا «تقدّمك» و«السجل» ===== */
html[data-sys=p] body.live .scr.s-progress .sum{margin:14px 20px 0;padding:8px 18px 12px;border-radius:26px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
html[data-sys=p] body.live .scr.s-progress .sum .byemo,html[data-sys=p] body.live .scr.s-progress .sum .list{margin:6px 0 0;padding-inline:0;background:transparent;box-shadow:none}
html[data-sys=p] body.live .scr.s-progress .sum .byemo li{padding-inline:0}
html[data-sys=p] body.live .scr.s-progress .sum .list .item{padding-inline:0}
html[data-sys=p] body.live .scr.s-progress .sum .list .item+.item::before{left:0;right:0}
/* ألوان الشعار: النهارية على الخلفية الفاتحة، والليلية على الداكنة */
html[data-sys=p] body.live .scr .tell{--logo:linear-gradient(100deg,#7c65af,#526ab3,#3d91b8,#42987c);margin:18px 20px 4px;padding:2px;border-radius:28px;background:var(--logo)}
html[data-sys=p] body.live.night .scr .tell{--logo:linear-gradient(100deg,#a396d0,#8399d3,#72b8d7,#76bea8)}
html[data-sys=p] body.live .scr .tell>div{padding:22px 20px 20px;border-radius:26px;background:var(--card);text-align:center}
html[data-sys=p] body.live .scr .tell h3{font-size:26px;font-weight:700;line-height:1.7;background:var(--logo);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-sys=p] body.live .scr .tell p{margin:4px 0 16px;font-size:15.5px;color:var(--ink)}
html[data-sys=p] body.live .scr .tell .btn{width:100%;height:52px;margin:0}
html[data-sys=p] body.live.desk .scr.s-progress .scroll>:is(.sum,.tell,.secs){max-width:720px;margin-left:auto;margin-right:auto}

/* ===== هوية واحدة للأقسام (النموذج ٣): بطاقة ناعمة، وخط رفيع بألوان الشعار، و«افتح القسم» في الطرف ===== */
html[data-sys=p] body.live .scr{--bar-a:linear-gradient(180deg,#7c65af,#526ab3);--bar-b:linear-gradient(180deg,#3d91b8,#42987c);--line-run:linear-gradient(270deg,#526ab3,#42987c)}
html[data-sys=p] body.live.night .scr{--bar-a:linear-gradient(180deg,#a396d0,#8399d3);--bar-b:linear-gradient(180deg,#72b8d7,#76bea8);--line-run:linear-gradient(270deg,#8399d3,#76bea8)}
html[data-sys=p] body.live .scr .secs{margin:14px 20px 0;display:flex;flex-direction:column;gap:12px}
html[data-sys=p] body.live .scr.s-home :is(.list,.packs){display:flex;flex-direction:column;gap:12px;background:transparent;box-shadow:none;overflow:visible;padding:0}
html[data-sys=p] body.live .scr.s-home .list+.list{margin-top:12px}
html[data-sys=p] body.live .scr :is(.secs .sec,.feature,.list .item,.packs .item,.packs .wounds):is(.sec,.s-home *){position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;margin-block:0;padding:19px 26px 19px 18px;border-radius:24px;background:var(--card);box-shadow:0 0 0 1px var(--line);color:var(--ink);text-align:start;overflow:hidden}
html[data-sys=p] body.live .scr.s-home .scroll>.feature{margin:0 20px 12px;width:calc(100% - 40px);min-height:0;box-sizing:border-box}
html[data-sys=p] body.live .scr.s-home :is(.list,.packs){margin-left:20px;margin-right:20px}
html[data-sys=p] body.live .scr.s-home :is(.list,.packs)>:is(.item,.wounds){margin:0;width:100%;box-sizing:border-box}
html[data-sys=p] body.live.desk .scr.s-home .scroll>:is(.feature,.list,.packs){width:100%;max-width:860px;margin-left:auto;margin-right:auto}
html[data-sys=p] body.live .scr :is(.secs .sec,.feature,.list .item,.packs .item,.packs .wounds):is(.sec,.s-home *)::before{content:none}
html[data-sys=p] body.live .scr :is(.secs .sec,.feature,.list .item,.packs .item,.packs .wounds):is(.sec,.s-home *)::after{content:"";position:absolute;inset:22px 10px 22px auto;width:4px;height:auto;border:0;border-radius:4px;background:var(--bar-a);box-shadow:none;opacity:1;transform:none}
html[data-sys=p] body.live .scr :is(.secs .sec-log,.s-home .list .item:first-child,.s-home .packs .item)::after{background:var(--bar-b)}
html[data-sys=p] body.live .scr .secs .sec[hidden]{display:none}
html[data-sys=p] body.live .scr :is(.secs .sec,.s-home .feature,.s-home .list .item,.s-home .packs .item,.s-home .packs .wounds) :is(.dot){display:none}
html[data-sys=p] body.live .scr :is(.secs .sec .txt,.s-home .feature .body,.s-home .list .body,.s-home .packs .body){flex:1;min-width:0;display:block;padding:0;margin:0}
html[data-sys=p] body.live .scr :is(.secs .sec b,.s-home .feature h3,.s-home .list h3,.s-home .packs h3){display:block;padding:0;margin:0;font-size:16.5px;font-weight:600;line-height:1.7;color:var(--ink)}
html[data-sys=p] body.live .scr :is(.secs .sec .sd,.s-home .feature p,.s-home .list p,.s-home .packs p){display:block;margin:0;font-size:13px;font-weight:400;line-height:1.8;color:var(--muted)}
html[data-sys=p] body.live .scr :is(.secs .sec,.s-home .feature,.s-home .list .item,.s-home .packs .item,.s-home .packs .wounds) .open{flex:none;display:flex;align-items:center;gap:8px;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:13px;font-weight:600;color:var(--hl);white-space:nowrap}
html[data-sys=p] body.live .scr :is(.secs .sec,.s-home .feature,.s-home .list .item,.s-home .packs .item,.s-home .packs .wounds) .open::after{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
/* البطاقة كلها تُضغط، لا الكلمة وحدها */
html[data-sys=p] body.live .scr.s-home :is(.feature,.list .item,.packs .item) button.open{position:static}
html[data-sys=p] body.live .scr.s-home :is(.feature,.list .item,.packs .item) button.open::before{content:"";position:absolute;inset:0;z-index:1}
/* صفحتا الباقات وجروح الطفولة: البطاقة والخط نفسهما */
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) :is(.emcard,.wcard){position:relative;padding-inline-start:26px;border-radius:24px;background:var(--card);box-shadow:0 0 0 1px var(--line);overflow:hidden}
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) :is(.emcard,.wcard)::after{content:"";position:absolute;inset:18px 10px 18px auto;width:4px;border-radius:4px;background:var(--bar-a)}
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) :is(.emcard:nth-child(even),.wcard)::after{background:var(--bar-b)}
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) .emlist{display:flex;flex-direction:column;gap:12px;background:transparent;box-shadow:none;overflow:visible;border:0}
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) .emcard{margin:0}
html[data-sys=p] body.live .scr:is(.s-packages,.s-childhood) .emcard::before{content:none}
html[data-sys=p] body.live .scr.s-packages .wcard{display:flex;align-items:center;gap:12px;margin-top:12px;padding:19px 26px 19px 18px;text-align:start}
html[data-sys=p] body.live .scr.s-packages .wcard .dot{display:none}
html[data-sys=p] body.live .scr.s-packages .wcard>div{flex:1;min-width:0}
html[data-sys=p] body.live .scr.s-packages .wcard h3{margin:0;font-size:16.5px;font-weight:600;line-height:1.7}
html[data-sys=p] body.live .scr.s-packages .wcard p{margin:0;font-size:13px;line-height:1.8;color:var(--muted)}
html[data-sys=p] body.live .scr.s-packages .wcard .btn{flex:none;display:flex;align-items:center;gap:8px;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:13px;font-weight:600;color:var(--hl);white-space:nowrap;position:static}
html[data-sys=p] body.live .scr.s-packages .wcard .btn::after{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
html[data-sys=p] body.live .scr.s-packages .wcard .btn::before{content:"";position:absolute;inset:0}
/* «تقدّمك في كل شعور»: اسم الشعور وتحته عدد الجلسات في شارة ناعمة */
html[data-sys=p] body.live .scr .byemo li{padding-top:16px;padding-bottom:16px}
html[data-sys=p] body.live .scr .byemo li>div:first-child>span{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:17px;font-weight:600}
html[data-sys=p] body.live .scr .byemo li>div:first-child{align-items:center}
html[data-sys=p] body.live .scr .byemo small{display:inline-flex;align-items:center;gap:7px;margin:0;padding:3px 13px;border-radius:99px;background:var(--wash);font-size:12.5px;font-weight:400;line-height:1.9;color:var(--muted)}
html[data-sys=p] body.live .scr .byemo small b{font-size:14px;font-weight:700;color:var(--hl)}

/* خط تقدّم الأسئلة (العامة والخاصة ومسار المقاومة) بتدرّج ألوان الشعار */
html[data-sys=p] body.live .scr .bar .prog i{background:var(--line-run)}

html[data-sys=p] body.live .scr.s-home .scroll>.packs{margin-top:12px;margin-bottom:12px}
/* البطاقة تستجيب للضغط، فيعرف المشترك أنها كلها زر */
html[data-sys=p] body.live .scr :is(.secs .sec,.s-home .feature,.s-home .list .item,.s-home .packs .item,.s-packages .wcard){transition:transform .12s ease,background-color .12s ease}
html[data-sys=p] body.live .scr .secs .sec:active,html[data-sys=p] body.live .scr.s-home :is(.feature,.list .item,.packs .item):has(button.open:active),html[data-sys=p] body.live .scr.s-packages .wcard:has(.btn:active){transform:scale(.985);background:var(--wash)}
@media (prefers-reduced-motion:reduce){html[data-sys=p] body.live .scr :is(.secs .sec,.s-home .feature,.s-home .list .item,.s-home .packs .item,.s-packages .wcard){transition:none}}

/* العرض المتوسط (بين الجوال والكمبيوتر): البطاقات و«رجوع» على استقامة باقي الصفحة */
@media (min-width:600px) and (max-width:899px){
  html[data-sys=p] body.live .scr.s-home .scroll>:is(.feature,.list,.packs),html[data-sys=p] body.live .scr.s-progress .scroll>:is(.sum,.tell,.secs){box-sizing:border-box;width:calc(100% - 40px);max-width:520px;margin-left:auto;margin-right:auto}
  html[data-sys=p] body.live .scr .scroll>button.back{display:block;width:max-content;margin-inline-start:max(24px,calc((100% - 560px)/2 + 24px));margin-inline-end:auto}
}
html[data-sys=p] body.live.desk .scr.s-sub .scroll>button.back{display:block;width:max-content;margin-inline-start:calc((100% - 720px)/2);margin-inline-end:auto}

/* ===== الشريط السفلي (nav-2، التصميم ٣): ثابت، وفوقه خط طويل بألوان الشعار، ونقطة تحت الصفحة الحالية ===== */
html[data-sys=p] body.live .scr{--logo-run:linear-gradient(270deg,#7c65af,#526ab3,#3d91b8,#42987c);--dot-now:#42987c}
html[data-sys=p] body.live.night .scr{--logo-run:linear-gradient(270deg,#a396d0,#8399d3,#72b8d7,#76bea8);--dot-now:#76bea8}
html[data-sys=p] body.live .scr .tabs{padding:10px 10px 12px;border-radius:0;background:var(--bg);box-shadow:none;border-top:0}
html[data-sys=p] body.live .scr .tabs::before{content:"";position:absolute;top:0;left:0;right:0;height:1.5px;background:var(--logo-run);opacity:.75}
html[data-sys=p] body.live .scr .tabs button{position:relative;height:58px;color:var(--muted)}
html[data-sys=p] body.live .scr .tabs .ic{width:26px;height:26px;padding:2px;border-radius:0}
html[data-sys=p] body.live .scr .tabs button.on{background:transparent;color:var(--ink);font-weight:700}
html[data-sys=p] body.live .scr .tabs button.on .ic{background:transparent;color:var(--hl)}
html[data-sys=p] body.live .scr .tabs button.on::after{content:"";position:absolute;bottom:-3px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background:var(--dot-now)}
/* ===== القائمة (nav-2، التصميم ٣): كل سطر بطاقة مثل الأقسام، بخط بألوان الشعار وسهم ===== */
html[data-sys=p] body.live .scr .drawer .brand{margin:0 4px 10px;padding-bottom:16px;position:relative}
html[data-sys=p] body.live .scr .drawer .brand::after{content:"";position:absolute;bottom:0;right:0;left:0;height:2px;border-radius:2px;background:var(--logo-run);opacity:.7}
html[data-sys=p] body.live .scr .drawer ul{gap:6px;margin-top:8px;flex:0 1 auto;min-height:0;overflow-y:auto;scrollbar-width:none;padding:2px}
html[data-sys=p] body.live .scr .drawer li button{position:relative;flex:none;min-height:46px;padding:0 22px 0 14px;border-radius:16px;background:var(--wash);font-size:14.5px}
html[data-sys=p] body.live .scr .drawer li button .ic{display:none}
html[data-sys=p] body.live .scr .drawer li button::after{content:"";position:absolute;right:9px;top:13px;bottom:13px;width:3.5px;border-radius:4px;background:var(--bar-a)}
html[data-sys=p] body.live .scr .drawer li:nth-child(even) button::after{background:var(--bar-b)}
html[data-sys=p] body.live .scr .drawer li button::before{content:"";order:3;margin-inline-start:auto;width:7px;height:7px;border-left:2px solid var(--hl);border-bottom:2px solid var(--hl);transform:rotate(45deg)}
html[data-sys=p] body.live .scr .drawer li button.on{box-shadow:inset 0 0 0 1.5px var(--hl);color:var(--ink);font-weight:700}
html[data-sys=p] body.live .scr .drawer li button.soon::before{content:none}
html[data-sys=p] body.live .scr .drawer .out{flex:none;margin-top:auto}
html[data-sys=p] body.live.desk .scr .drawer .brand{margin:0 8px 12px}

/* ===== أيقونة التطبيق: سطر في حسابي وشرح قصير ===== */
html[data-sys=p] body.live .scr .install-row{margin-bottom:12px}
html[data-sys=p] body.live .scr .install-row[hidden]{display:none}
html[data-sys=p] body.live .scr .confirm.install .install-lead{margin:2px 0 12px;font-size:14px;line-height:1.9;color:var(--muted)}
html[data-sys=p] body.live .scr .confirm.install .install-step{margin:0 0 10px;padding:12px 16px 12px 14px;border-radius:16px;background:var(--wash);font-size:14px;line-height:2;color:var(--ink);text-align:start}
html[data-sys=p] body.live .scr .confirm.install .btn[hidden]{display:none}
html[data-sys=p] body.live .scr .confirm.install .btn+.btn{margin-top:10px}
/* في التطبيق المثبّت على آيفون: الشريط السفلي فوق خط الإيماءات */
html[data-sys=p] body.live .scr .tabs{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}

/* ===== القياس بعد الجلسة (measure-1): ترتيب المنصة القديمة، والصفر على اليمين، والخطان أخضر ثم برتقالي ثم أحمر (محمد 2026-12-01) ===== */
html[data-sys=p] body.live .scr.s-scale.after{--rail:rgba(7,39,47,.1)}
html[data-sys=p] body.live.night .scr.s-scale.after{--rail:rgba(231,238,240,.13)}
html[data-sys=p] body.live .scr.s-scale.after .srange::-webkit-slider-runnable-track{height:8px}
html[data-sys=p] body.live .scr.s-scale.after .srange::-moz-range-track{height:8px}
html[data-sys=p] body.live .scr.s-scale .cmp,html[data-sys=p] body.live .scr.s-scale .ends-after{display:none}
html[data-sys=p] body.live .scr.s-scale.after h2.q{margin-top:40px;font-weight:700}
html[data-sys=p] body.live .scr.s-scale.after .val{margin-top:14px;font-size:80px;font-weight:700;line-height:1.2}
html[data-sys=p] body.live .scr.s-scale.after .cmp{display:block;margin:20px 28px 0}
html[data-sys=p] body.live .scr.s-scale .cmp-row{display:flex;justify-content:space-between;align-items:center;font-size:14.5px;color:var(--muted)}
html[data-sys=p] body.live .scr.s-scale .cmp-row b{font-size:16px;color:var(--ink)}
html[data-sys=p] body.live .scr.s-scale .cmp-before .prev{height:8px;margin-top:9px;border-radius:99px;background:var(--rail);overflow:hidden}
/* خط «قبل الجلسة» يمتلئ حتى رقمه، ولون كل موضع فيه مثل موضعه في خط «بعد الجلسة» */
html[data-sys=p] body.live .scr.s-scale .cmp-before .prev i{display:block;height:100%;border-radius:99px;background:linear-gradient(to left,#8FD3A6 0%,#8FD3A6 18%,#F3BC7A 50%,#EF9A95 85%,#EF9A95 100%) right center no-repeat}
html[data-sys=p] body.live .scr.s-scale .cmp-now{margin-top:24px}
html[data-sys=p] body.live .scr.s-scale .cmp-now :is(span,b){color:var(--zc);font-weight:700}
html[data-sys=p] body.live .scr.s-scale.after .scalebox{margin:2px 28px 0}
html[data-sys=p] body.live .scr.s-scale.after .srange::-webkit-slider-thumb{margin-top:-13px;border-width:4px}
html[data-sys=p] body.live .scr.s-scale.after .ends{display:none}
html[data-sys=p] body.live .scr.s-scale.after .ends-after{display:flex;margin:0 28px}
html[data-sys=p] body.live.desk .scr.s-scale.after .scroll>:is(.cmp,.scalebox,.ends){max-width:520px;margin-left:auto;margin-right:auto}
@media (max-height:700px){
  html[data-sys=p] body.live .scr.s-scale.after h2.q{margin-top:10px;font-size:20px}
  html[data-sys=p] body.live .scr.s-scale.after .val{margin-top:0;font-size:54px}
  html[data-sys=p] body.live .scr.s-scale.after .cmp{margin-top:6px}
  html[data-sys=p] body.live .scr.s-scale.after .cmp-now{margin-top:10px}
}

/* تحميل الكشف: يطبع صفحة إنجازاتي فقط */
@media print{
  body.live{overflow:visible}
  body.live .frame,html[data-sys=p] body.live .scr{height:auto!important;overflow:visible}
  html[data-sys=p] body.live .scr .scroll{position:static;height:auto;overflow:visible;margin:0}
  .scr .head,.scr .tabs,.scr .drawer,.scr .dscrim,.scr .toast,.scr .pad,.scr .share,.scr .link{display:none!important}
}
