/* =====================================================================
   تمام — الوضع الداكن (v1.66). الجزء الأوسط مولَّد آليًا من ملفات التصميم (mkdark.py) بتحويل الألوان الثابتة؛
   وده الرأس (متغيرات الثيم) والذيل (استثناءات يدوية: الورق الأبيض وأزرار وحقول).
   ===================================================================== */
html[data-theme="dark"] { color-scheme: dark;
  --pl-bg: #121212; --pl-surface: #1c1c1c; --pl-surface-2: #232323; --pl-border: #2e2e2e; --pl-border-2: #292929;
  --pl-input-border: #5a5a5a; --pl-text: #ececec; --pl-text-2: #a8a8a8; --pl-text-3: #7d7d7d;
  --pl-primary: #ececec; --pl-primary-hover: #ffffff; --pl-focus: #5aa9ff; --pl-side: #0d0d0d; --pl-side-hover: #1c1c1c; --pl-side-active: #262626;
  --pl-shadow-card: 0 1px 0 0 rgba(0, 0, 0, .5); --pl-shadow-pop: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  --canvas: #121212; --surface: #1c1c1c; --line: #2e2e2e; --ink: #ececec; --ink-2: #a8a8a8; --ink-3: #7d7d7d; --side-bg: #0d0d0d;
  --brand: #5fd3a0; --brand-dark: #3fb584; --brand-tint: #232323; --brand-light: #2c2c2c; --link: #7cc4ff;
  --ok: #7be0aa; --ok-bg: #12301f; --warn: #f5d37a; --warn-bg: #3a2e0c; --danger: #ff9b8a; --danger-bg: #3b1713; --info: #8ccaff; --info-bg: #0f2a40;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, .5); --shadow-md: 0 4px 16px rgba(0, 0, 0, .45); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] body, html[data-theme="dark"] { background: #121212; color: #ececec; }

/* ---- app.css ---- */
html[data-theme="dark"] .alert--success { border-color: #365144; }
html[data-theme="dark"] .alert--error { border-color: #512d2d; }
html[data-theme="dark"] .alert--info { border-color: #30414f; }
html[data-theme="dark"] .viewer__frame { background: #1d1d1d; }
html[data-theme="dark"] .compare-slider__handle { background: #1d1d1d; }
html[data-theme="dark"] .compare-slider__grip { background: #1d1d1d; }
html[data-theme="dark"] .pin { border: 2px solid #333333; }
html[data-theme="dark"] .tile__pending { color: #ffc869; }
html[data-theme="dark"] .badge--ok { color: #5edea8; }
html[data-theme="dark"] .badge--danger { color: #ee7c64; }
html[data-theme="dark"] .mock { background: #1d1d1d; }
html[data-theme="dark"] .mock__pin { background: #962f1b; }
html[data-theme="dark"] .mock__row b { background: #962f1b; }
html[data-theme="dark"] .land-sec--alt { background: #1d1d1d; }
html[data-theme="dark"] .land-card { background: #1d1d1d; }
html[data-theme="dark"] .land-cycle button { background: #1d1d1d; }
html[data-theme="dark"] .land-plan { background: #1d1d1d; }
html[data-theme="dark"] .brand-slot__box { background: #1d1d1d; }
html[data-theme="dark"] .brand-slot__box--icon { background: repeating-conic-gradient(#2f2c22 0% 25%, #1d1d1d 0% 50%) 50% / 16px 16px; }
html[data-theme="dark"] .alert--warning { border-color: #5e5330; }
html[data-theme="dark"] .legal__tabs a { background: #1d1d1d; }
html[data-theme="dark"] .legal__doc { background: #1d1d1d; }
html[data-theme="dark"] .land-vs__col--bad { background: #1d1d1d; }
html[data-theme="dark"] .land-chips span { background: #1d1d1d; }
html[data-theme="dark"] .land-swap__tool { background: #1d1d1d; }
html[data-theme="dark"] .swatch { border: 2px solid #333333; }
html[data-theme="dark"] .land-plan--free { background: #1d1d1d; }
html[data-theme="dark"] .tour__modal { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tour__step { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__skip,
html[data-theme="dark"] .tour__off { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__bar { background: var(--line, #3b362a); }
html[data-theme="dark"] .tour__text { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__list { background: var(--paper, #2f2a1e); }
html[data-theme="dark"] .tour__time { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__foot { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__pop { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tour__pop p { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__count { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .tour__x { color: var(--muted, #b3bab7); }
html[data-theme="dark"] .pj-tree__row:hover { background: var(--bg, #2d291d); }
html[data-theme="dark"] .file-card__more { background: rgba(29,29,29,.92); }
html[data-theme="dark"] .cp-chip--review { background: color-mix(in srgb, var(--accent) 45%, #1d1d1d); }
html[data-theme="dark"] .cp-chip--changes_requested { background: #4b3a13; color: #ffbf3d; }
html[data-theme="dark"] .cp-chip--date { background: #12253b; }
html[data-theme="dark"] .cp-status { background: var(--info-bg, #12253b); }
html[data-theme="dark"] .cp-chip--idea { background: #4e410e; color: #ffcc3d; }
html[data-theme="dark"] .app-card__icon--logo { background: #1d1d1d; }
html[data-theme="dark"] .cp-present iframe { background: #1d1d1d; }
html[data-theme="dark"] .mk-card,
html[data-theme="dark"] .mk-phone { color: #e4e4e4; background: #1d1d1d; border: 1px solid #3b3e3c; }
html[data-theme="dark"] .mk-head small { color: #adb2b0; }
html[data-theme="dark"] .mk-more { color: #bebebe; }
html[data-theme="dark"] .mk-slot { background: #252927; }
html[data-theme="dark"] .mk-slot .cp-gallery img,
html[data-theme="dark"] .mk-slot .cp-gallery video { background: #252927; }
html[data-theme="dark"] .mk-slot--x { border: 1px solid #3b3e3c; }
html[data-theme="dark"] .mk-empty { color: #a5a9a7; }
html[data-theme="dark"] .mk-actions--x { color: #b1b8be; }
html[data-theme="dark"] .mk-muted { color: #adb2b0; }
html[data-theme="dark"] .mk-react { color: #b3b4b5; border-bottom: 1px solid #3b3e3c; }
html[data-theme="dark"] .mk-btns { color: #b3b4b5; }
html[data-theme="dark"] .mk-bars i:first-child { background: #1d1d1d; }
html[data-theme="dark"] .file-card__hidden { color: var(--danger, #e79b93); }
@media (max-width: 768px) {
  html[data-theme="dark"] .mobbar__btn:focus-visible,
  html[data-theme="dark"] .mobbar__brand:focus-visible { outline: 2px solid var(--accent, #333333); }
}
html[data-theme="dark"] .cp-chip--ad { color: #b096e8; }
html[data-theme="dark"] .shr-top { background: rgba(29,29,29,.92); }
html[data-theme="dark"] .shr-frame { background: linear-gradient(135deg, var(--brand-tint), #1d1d1d); }
html[data-theme="dark"] .shr-modal__x { background: rgba(29,29,29,.9); }
html[data-theme="dark"] .shr-present iframe { background: #1d1d1d; }
html[data-theme="dark"] .shr-present__x { background: rgba(29,29,29,.92); }
html[data-theme="dark"] .sl-stage { background: color-mix(in srgb, var(--c) 14%, #1d1d1d); border: 1px solid color-mix(in srgb, var(--c) 35%, #333333); }
html[data-theme="dark"] .sl-history--customer { border-color: #375244; }
html[data-theme="dark"] .sl-history--known { border-color: #5e522f; }
html[data-theme="dark"] .sl-history--platform { border-color: #33414f; }
html[data-theme="dark"] .sl-stagebtn { border: 1.5px solid color-mix(in srgb, var(--c) 45%, #333333); background: #1d1d1d; }
html[data-theme="dark"] .sl-stagebtn:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 10%, #1d1d1d); }
html[data-theme="dark"] .sl-head__brand h1 span,
html[data-theme="dark"] .sl-logo-chip span { background: #30198e; }
html[data-theme="dark"] .sl-next--danger { border-color: #58362d; }
html[data-theme="dark"] .sl-next--warn { border-color: #5e522f; }
html[data-theme="dark"] .umenu__item--out { color: var(--danger, #e87e78); }
html[data-theme="dark"] .ads-grid .ad-card { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .ads-grid .ad-card__nums { background: var(--bg, #202023); }
html[data-theme="dark"] .dpub__decide { background: #1d1d1d; }
@media print {
  html[data-theme="dark"] body { background: #1d1d1d !important; }
}
html[data-theme="dark"] .rp-bar i { background: color-mix(in srgb, var(--info) 28%, #1d1d1d); }
html[data-theme="dark"] .rp-bar--ok i { background: color-mix(in srgb, var(--ok) 30%, #1d1d1d); }
html[data-theme="dark"] .up-list { border: 1px solid var(--line, #373a3f); }
html[data-theme="dark"] .up-list li { border-bottom: 1px solid var(--line, #33373d); }
html[data-theme="dark"] .up-list li.is-ok .up-list__state { color: #5ee992; }
html[data-theme="dark"] .up-list li.is-bad .up-list__state { color: #ef9e9e; }
html[data-theme="dark"] .pj-noclient { color: var(--brand, #98b5f6); }
html[data-theme="dark"] .sh-nav { background: var(--bg, #2f2a1e); }
html[data-theme="dark"] .sh-nav a { background: var(--card, #1d1d1d); }
html[data-theme="dark"] .sh-del { color: var(--danger, #ef9e9e); }
html[data-theme="dark"] .sp-paper { background: #1d1d1d; }
html[data-theme="dark"] .ex-good { color: #5ee992; }
html[data-theme="dark"] .ex-bad { color: #ef9e9e; }
html[data-theme="dark"] .sl-strip .is-bad b { color: #ef9e9e; }
html[data-theme="dark"] .hr-card { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .hr-avatar { color: #def796; }
html[data-theme="dark"] .hr-dot { background: #4d5159; border: 2px solid #333333; }
html[data-theme="dark"] .hr-kpis div { background: var(--canvas, #212421); }
html[data-theme="dark"] .hr-kpis span { color: var(--ink-2, #a8abb1); }
html[data-theme="dark"] .hr-stat { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .hr-stat span { color: var(--ink-2, #a8abb1); }
html[data-theme="dark"] .hr-stat.is-ok b { color: #5ee992; }
html[data-theme="dark"] .hr-stat.is-warn b { color: #fbbc73; }
html[data-theme="dark"] .ac-source { background: var(--canvas, #212421); }
html[data-theme="dark"] .ac-source span { color: var(--ink-2, #a8abb1); }
html[data-theme="dark"] .att-pill { background: var(--surface-2, #202722); }
html[data-theme="dark"] .att-pill__dot.is-off { background: #525a56; }
html[data-theme="dark"] .att-pill__btn { color: #def796; }
html[data-theme="dark"] .kpi-total__n { background: var(--surface-2, #202722); }
html[data-theme="dark"] .kpi-total__n.is-ok { background: #193823; color: #57e590; }
html[data-theme="dark"] .kpi-total__n.is-mid { background: #44340c; color: #ffc33d; }
html[data-theme="dark"] .kpi-total__n.is-low { background: #3c130f; color: #e87e78; }
html[data-theme="dark"] .kpi-bar { background: #272e2a; }
html[data-theme="dark"] .kpi-bar i { background: linear-gradient(90deg, #1fb26b, #718d22); }
html[data-theme="dark"] .tr-card { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tr-card__bal.is-neg { color: #e87e78; }
html[data-theme="dark"] .ps-table tfoot td { background: #202722; }
html[data-theme="dark"] .ps-net { background: #202722; }
@media print {
  html[data-theme="dark"],
  html[data-theme="dark"] body { background: #1d1d1d !important; color: #ededed !important; }
  html[data-theme="dark"] .print-head__date { color: #bebebe; }
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .ex-card,
  html[data-theme="dark"] .pr-slip,
  html[data-theme="dark"] .ps-paper { border-color: #454545 !important; background: #1d1d1d !important; }
}
html[data-theme="dark"] .pay-sum > div { background: var(--surface-2, #202523); }
html[data-theme="dark"] .pay-sum span { color: var(--muted, #b2b7b5); }
html[data-theme="dark"] .pay-ok { color: #61dba6; }
html[data-theme="dark"] .pay-due { color: #ed927f; }
html[data-theme="dark"] .pay-inst__row { background: var(--surface-2, #202523); }
html[data-theme="dark"] .pay-inst__row em { color: var(--muted, #b2b7b5); }
html[data-theme="dark"] .pay-inst__row--paid em { color: #61dba6; }
html[data-theme="dark"] .pay-inst__row--late { background: #3a1a13; }
html[data-theme="dark"] .pay-inst__row--late em { color: #ed927f; }
html[data-theme="dark"] .pay-inst__n { color: var(--muted, #b2b7b5); }
html[data-theme="dark"] .pl-radio:has(input:checked) { background: color-mix(in srgb, var(--brand, #0F5C4A) 8%, #1d1d1d); }
html[data-theme="dark"] .inst-row__n { color: var(--muted, #b2b7b5); }
html[data-theme="dark"] .my-inv:hover { background: var(--surface-2, #202523); }
html[data-theme="dark"] .pt-dock { background: rgba(29,29,29,.92); }
html[data-theme="dark"] .pt-notch__ag--chip { background: #1d1d1d; }
html[data-theme="dark"] .lang-switch { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .lang-switch:hover { border-color: var(--brand-light, #495959); }
html[data-theme="dark"] .ct-ticks span { background: #242926; color: #9ca19e; }
html[data-theme="dark"] .ct-ticks span.is-on { background: #1d3a2b; color: #61dba6; }
html[data-theme="dark"] .ct-langpick__opt:hover { border-color: var(--brand-light, #495959); }
html[data-theme="dark"] .ct-langpick__opt.is-active { color: #def796; }
html[data-theme="dark"] .ct-var { background: var(--brand-tint, #1d2d25); color: var(--brand, #58e4c3); }
html[data-theme="dark"] .ct-cl__n { color: var(--brand, #58e4c3); }
html[data-theme="dark"] .ct-steps li { color: var(--ink-3, #9ca19e); }
html[data-theme="dark"] .ct-log small { color: var(--ink-3, #9ca19e); }
html[data-theme="dark"] .sigpad__tab.is-active { color: #7ac2ab; }
html[data-theme="dark"] .sigpad__stage { border: 1.5px dashed #4c524f; background: #1d1d1d; }
html[data-theme="dark"] .sigpad__stage::after { border-bottom: 1px solid #3d4440; }
html[data-theme="dark"] .sigpad__hint { color: #87928d; }
html[data-theme="dark"] .vis-masked { color: var(--ink-3, #9ca19e); }
html[data-theme="dark"] .pt-hero { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent, #718d22) 22%, transparent), transparent 55%), var(--brand-strong, #10231D); }
html[data-theme="dark"] .pt-hero__logo--chip { background: #1d1d1d; }
html[data-theme="dark"] .pt-hero__mono { background: var(--accent, #718d22); color: var(--on-accent, #7ac2ab); }
html[data-theme="dark"] .pt-hero__cta { background: var(--accent, #718d22); color: var(--on-accent, #7ac2ab); }
html[data-theme="dark"] .theme-prev__side i.is-on { background: var(--p-acc, #718d22); }
html[data-theme="dark"] .theme-prev__chip { background: var(--p-acc, #718d22); color: #7ac2ab; }
html[data-theme="dark"] .fnav { background: rgba(29,29,29,.92); color: #7ac2ab; }
html[data-theme="dark"] .ig__phone { background: #1d1d1d; color: #ededed; border: 1px solid #404040; }
html[data-theme="dark"] .ig__chev { color: #bebebe; }
html[data-theme="dark"] .ig__avatar { background: conic-gradient(#785e16, #FA7E1E, #D62976, #962FBF, #363d87, #785e16); }
html[data-theme="dark"] .ig__avatar span { border: 3px solid #333333; color: var(--accent, #def796); }
html[data-theme="dark"] .ig__stats span { color: #d8d8d8; }
html[data-theme="dark"] .ig__cat { color: #aeaeae; }
html[data-theme="dark"] .ig__meta { color: #3da1ff; }
html[data-theme="dark"] .ig__btns span { background: #272727; }
html[data-theme="dark"] .ig__hl-c { border: 1px solid #404040; background: #1d1d1d; }
html[data-theme="dark"] .ig__hl-c i { color: #909090; }
html[data-theme="dark"] .ig__tabs { border-top: 1px solid #404040; color: #9f9f9f; }
html[data-theme="dark"] .ig__tabs .is-on { color: #ededed; }
html[data-theme="dark"] .ig__tile { background: #272727; }
html[data-theme="dark"] .ig__idea { color: #c8c8c8; background: repeating-linear-gradient(45deg, #232323 0 10px, #202020 10px 20px); }
html[data-theme="dark"] .ig__st { border: 2px solid #333333; background: #565656; }
html[data-theme="dark"] .ig__empty { color: #9f9f9f; }
html[data-theme="dark"] .land-trust { background: #1d1d1d; }
html[data-theme="dark"] .land-mod { background: #1d1d1d; }
html[data-theme="dark"] .ct-seal { background: #1d1d1d; }
html[data-theme="dark"] .ct-seal b { color: #7ac2ab; }
html[data-theme="dark"] .ct-seal span { color: #bcc4c1; }
html[data-theme="dark"] .ct-seal small { color: #abb1af; }
html[data-theme="dark"] .ct-verified { background: #425116; color: #7ac2ab; }
html[data-theme="dark"] .adw__kpi { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .adw__kpi.is-warn { background: var(--warn-bg, #3f2e0b); }
html[data-theme="dark"] .apf-logo { background: #1d1d1d; }
html[data-theme="dark"] .stars i.on { color: #ffde86; }
html[data-theme="dark"] .apf-stats > div { background: #1d1d1d; }
html[data-theme="dark"] .apf-box { background: #1d1d1d; }
html[data-theme="dark"] .rate-input label { color: #837e72; }
html[data-theme="dark"] .rate-input label:hover,
html[data-theme="dark"] .rate-input label:hover ~ label,
html[data-theme="dark"] .rate-input input:checked ~ label { color: #ffde86; }
html[data-theme="dark"] .land-integ__logo { background: #1d1d1d; }
html[data-theme="dark"] .land-integ h4 em { background: #425116; }
html[data-theme="dark"] .land-partner { background: #1d1d1d; }
html[data-theme="dark"] .sp-item__logo { background: #1d1d1d; }
html[data-theme="dark"] .pl { background: #1d1d1d; }
html[data-theme="dark"] .acct__card { background: #1d1d1d; }
html[data-theme="dark"] .acct__opt input:checked + .acct__card { background: #2a3111; }
html[data-theme="dark"] .land-hubsec { background: linear-gradient(180deg, #1c271f 0%, var(--canvas) 100%); }
html[data-theme="dark"] .hub__lines line { stroke: #9bddc6; }
html[data-theme="dark"] .hub__app { background: #212421; border: 1.5px solid #404241; }
html[data-theme="dark"] .att-confirm { background: #3f2e0b; border: 1px solid #5f4e2b; }
html[data-theme="dark"] .att-ask__box { background: #1d1d1d; }
html[data-theme="dark"] .att-tag--0 { background: #0a1b3b; color: #8fade2; }
html[data-theme="dark"] .att-tag--2,
html[data-theme="dark"] .att-tag--4 { background: #1a3223; color: #64d895; }
html[data-theme="dark"] .att-tag--3 { background: #43300c; color: #ffb13d; }
html[data-theme="dark"] .hr-insights li.is-ok { background: #1a3223; }
html[data-theme="dark"] .hr-insights li.is-warn { background: #3f2d0b; }
html[data-theme="dark"] .hr-insights li.is-bad { background: #380f0f; }
html[data-theme="dark"] .hr-insights li.is-info { background: #0a1b3b; }
html[data-theme="dark"] .ac-io__card--in { background: #153020; border-color: #345140; }
html[data-theme="dark"] .ac-io__card--out { background: #341610; border-color: #55312b; }
html[data-theme="dark"] .ac-io__sum { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .ac-io__sum .is-in b { color: #69e19d; }
html[data-theme="dark"] .ac-io__sum .is-out b { color: #e7a49b; }
html[data-theme="dark"] .ac-num--in { color: #69e19d; }
html[data-theme="dark"] .ac-num--out { color: #e7a49b; }
html[data-theme="dark"] .ac-treas-pick a { background: #1d1d1d; }
html[data-theme="dark"] .ac-flowsum div { background: #1d1d1d; }
html[data-theme="dark"] .ac-flowsum .is-in { background: #153020; }
html[data-theme="dark"] .ac-flowsum .is-in b { color: #69e19d; }
html[data-theme="dark"] .ac-flowsum .is-out { background: #341610; }
html[data-theme="dark"] .ac-flowsum .is-out b { color: #e7a49b; }
html[data-theme="dark"] .ac-ent__explain { background: #0a1b3b; }
html[data-theme="dark"] .ac-kpi { background: #1d1d1d; }
html[data-theme="dark"] .ac-kpi--in b { color: #69e19d; }
html[data-theme="dark"] .ac-kpi--out b { color: #e7a49b; }
html[data-theme="dark"] .ac-kpi--ok { background: #153020; }
html[data-theme="dark"] .ac-kpi--bad { background: #341610; }
html[data-theme="dark"] .ac-bars__exp,
html[data-theme="dark"] .ac-legend .ac-bars__exp { background: #783527; }
html[data-theme="dark"] .ac-age--bad i { background: #783527; }
html[data-theme="dark"] .ap-x__logo { background: #212421; border: 1.5px solid #404241; }
html[data-theme="dark"] .rl-card { background: #1d1d1d; }
html[data-theme="dark"] .rl-colors span { border: 3px solid #333333; }
html[data-theme="dark"] .rl-app { background: #1d1d1d; }
html[data-theme="dark"] .rl-app.is-on { border-color: color-mix(in srgb, var(--ok) 45%, #333333); }
html[data-theme="dark"] .rl-app.is-on .rl-app__head { background: #153020; }
html[data-theme="dark"] .rl-switch { background: #373e3a; }
html[data-theme="dark"] .rl-switch::after { background: #1d1d1d; }
html[data-theme="dark"] .rl-bar { background: #1d1d1d; }
html[data-theme="dark"] .ac-auto { color: var(--primary, #58e4c3); }
html[data-theme="dark"] .sp-prof__av { color: #97dcf7; }
html[data-theme="dark"] .mg-drop__zone:hover,
html[data-theme="dark"] .mg-drop__zone.is-over { border-color: #37634f; }
html[data-theme="dark"] .mg-drop__name { color: #a6e7ca; }
/* ---- polish.css ---- */
html[data-theme="dark"] img[loading=lazy] { background: linear-gradient(90deg,#242926,#1e2522,#242926); }
html[data-theme="dark"] .cl-accts { border-top: 1px dashed var(--line,#3a3e3b); background: var(--canvas,#1e231e); }
html[data-theme="dark"] .cl-accts>summary { color: var(--ink-2,#b6b6be); }
html[data-theme="dark"] .cl-accts>summary b { background: var(--brand-tint,#1f3029); }
html[data-theme="dark"] .cl-acct { border-bottom: 1px solid var(--line,#393939); }
html[data-theme="dark"] .dc-img__pick { border: 1px dashed var(--border,#434745); color: var(--muted,#adadb4); background: var(--bg,#202020); }
html[data-theme="dark"] .table-wrap--shadow,
html[data-theme="dark"] .tabs.hr-tabs { background: linear-gradient(to right, var(--surface, #1d1d1d) 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
  linear-gradient(to left, var(--surface, #1d1d1d) 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0)) left center / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0)) right center / 12px 100% no-repeat scroll; }
html[data-theme="dark"] .ex-table--sticky th:first-child,
html[data-theme="dark"] .ex-table--sticky td:first-child { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .ex-table--sticky thead th { background: var(--pl-surface-2, #222222); }
html[data-theme="dark"] .hr-attn__row.is-info { border-inline-start-color: #29527c; }
html[data-theme="dark"] .pr-add { border: 1px dashed var(--line,#3b3e44); }
html[data-theme="dark"] .xl thead th { background: var(--canvas,#1f2225); }
html[data-theme="dark"] .xl__n { background: var(--canvas,#1f2225) !important; }
html[data-theme="dark"] .xl td:nth-child(2),
html[data-theme="dark"] .xl th:nth-child(2) { background: var(--surface,#1d1d1d); }
html[data-theme="dark"] .xl thead th:nth-child(2) { background: var(--canvas,#1f2225); }
html[data-theme="dark"] .xl tbody tr:nth-child(even) td:nth-child(2) { background: var(--surface,#1d1d1d); }
html[data-theme="dark"] .table thead th { background: var(--canvas,#1f2225); }
html[data-theme="dark"] .st-table .st-open td,
html[data-theme="dark"] .st-table .st-close td { background: var(--canvas,#1f2225) !important; }
html[data-theme="dark"] .au-ic { color: #43f9c5; }
html[data-theme="dark"] .au-row--warn .au-ic { color: #f79b55; }
html[data-theme="dark"] .au-row--bad .au-ic { color: #ec786f; }
html[data-theme="dark"] .exp-receipt { background: #1d1d1d; }
html[data-theme="dark"] .drawer__on { color: #43f9c5; }
html[data-theme="dark"] .news__text li::before { color: #43f9c5; }
/* ---- polaris.css ---- */
html[data-theme="dark"] .nav__count,
html[data-theme="dark"] .nav__count--new { background: #2e2e2e; color: #dfdfdf; }
html[data-theme="dark"] .user-chip__role { color: #8a8a8a; }
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .btn--light { background: #1f1f1f; border: 1px solid #414141; }
html[data-theme="dark"] .btn--ghost:hover,
html[data-theme="dark"] .btn--light:hover { background: #222222; border-color: #464646; }
html[data-theme="dark"] .btn--danger { background: #1f1f1f; color: #f1644b; border: 1px solid #563a37; }
html[data-theme="dark"] .btn--danger:hover { background: #3a0d0a; }
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea { background: #1d1d1d; }
html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .textarea::placeholder { color: #a1a1a1; }
html[data-theme="dark"] .badge { background: #2e2e2e; color: #c4c4c4; }
html[data-theme="dark"] .badge--ok { background: #0f4b27; color: #56e6a5; }
html[data-theme="dark"] .badge--warn { background: #603d11; color: #ffb53d; }
html[data-theme="dark"] .badge--danger { background: #49110e; color: #f1644b; }
html[data-theme="dark"] .badge--info { background: #0e334d; color: #3dbaff; }
html[data-theme="dark"] .badge--muted { background: #2e2e2e; color: #c4c4c4; }
html[data-theme="dark"] .badge--new { background: #0c2742; color: #3dbaff; }
html[data-theme="dark"] .tabs__item:hover { background: #292929; }
html[data-theme="dark"] .tabs__item.is-active { background: #2e2e2e; }
html[data-theme="dark"] .tabs__item b { background: #292929; }
html[data-theme="dark"] .tabs__item.is-active b { background: #1d1d1d; }
html[data-theme="dark"] .table tr:hover td { background: #202020; }
html[data-theme="dark"] .dc-row:hover { background: #222222; }
html[data-theme="dark"] .sl-strip > div { background: #1d1d1d; }
html[data-theme="dark"] .sl-filter .input { background: #1d1d1d; }
html[data-theme="dark"] .alert--success { background: #0f4b27; color: #56e6a5; border-color: #325b43; }
html[data-theme="dark"] .alert--error { background: #49110e; color: #f1644b; border-color: #5d2f2b; }
html[data-theme="dark"] .alert--info { background: #0c2742; color: #3dbaff; border-color: #204260; }
html[data-theme="dark"] .alert--warning { background: #5e4b11; color: #ffc53d; border-color: #71612d; }
html[data-theme="dark"] .dash-chip--plan { background: #2e2e2e; color: #dfdfdf; }
html[data-theme="dark"] .dc-link .input { background: #222222; }
html[data-theme="dark"] .avatar--light { background: #2e2e2e; color: #d3d3d3; }
html[data-theme="dark"] ::selection { background: #0e334d; }
html[data-theme="dark"] .app-ver { color: #a1a1a1; }
html[data-theme="dark"] .auth2__form { background: #1d1d1d; }
html[data-theme="dark"] .auth2__tick,
html[data-theme="dark"] .auth2__mock-ok { background: #1d1d1d; color: #dfdfdf; }
@media print {
  html[data-theme="dark"] body,
  html[data-theme="dark"] { background: #1d1d1d !important; }
}
html[data-theme="dark"] .tabs__item.is-active,
html[data-theme="dark"] .tabs__item.is-active:hover { background: #2e2e2e !important; color: #d3d3d3 !important; }
html[data-theme="dark"] .tabs__item.is-active b { background: #1d1d1d !important; color: #d3d3d3 !important; }
html[data-theme="dark"] .co-av--plus { background: #2e2e2e !important; color: #d3d3d3; }
html[data-theme="dark"] .co-card { background: #1d1d1d; }
html[data-theme="dark"] .co-card--add { background: #202020; }
html[data-theme="dark"] .co-dd__btn { background: #1d1d1d; border: 1px solid #414141; }
html[data-theme="dark"] .co-dd__menu { background: #1d1d1d; }
html[data-theme="dark"] .co-dd__item:hover,
html[data-theme="dark"] .co-dd__item.is-on { background: #262626; }
html[data-theme="dark"] .co-dd__item i { color: #56e6a5; }
html[data-theme="dark"] .co-dd__all { color: #63a6ff; }
html[data-theme="dark"] .sl-head__brand h1:not(.mod-brand) span,
html[data-theme="dark"] .sl-head__brand h1:not(.mod-brand) span.ct-chip { background: #2e2e2e !important; color: #d3d3d3 !important; }
html[data-theme="dark"] .tpl-card__go { color: #63a6ff !important; }
html[data-theme="dark"] .badge--new { background: #0c2742 !important; color: #3dbaff !important; }
html[data-theme="dark"] .nav__item--soon .soon-tag,
html[data-theme="dark"] .soon-tag { background: #2e2e2e; color: #c4c4c4; }
html[data-theme="dark"] .pj-tree__row.is-active,
html[data-theme="dark"] .fmenu > summary.is-on,
html[data-theme="dark"] .iconbtn:hover { background: #292929; border-color: #464646; }
html[data-theme="dark"] .update.is-new { border-color: #204260; }
html[data-theme="dark"] .choice__option:has(input:checked),
html[data-theme="dark"] .pm-chip.is-on,
html[data-theme="dark"] .dropzone:hover,
html[data-theme="dark"] .version.is-current { background: #222222; }
html[data-theme="dark"] .btn--ghost:hover:not(:disabled) { background: #222222; border-color: #464646; }
html[data-theme="dark"] .avatar--light { background: #2e2e2e; color: #d3d3d3; }
html[data-theme="dark"] .nav__count--new { background: #2e2e2e; color: #dfdfdf; }
html[data-theme="dark"] .pt-frame { background: #1d1d1d; }
html[data-theme="dark"] .pt-dock { background: #1d1d1d; }
html[data-theme="dark"] .pt-tile,
html[data-theme="dark"] .pt-brandcard { background: #222222; }
html[data-theme="dark"] .pt-hero__cta { background: #1d1d1d !important; color: #dfdfdf !important; }
html[data-theme="dark"] .pt-hero__mono { background: #1d1d1d; color: #dfdfdf; }
html[data-theme="dark"] .pt-bell { background: #1d1d1d; }
/* ---- tamam-ai.css ---- */
html[data-theme="dark"] .tai__fab { background: linear-gradient(135deg, var(--brand, #0F5C4A), #442f8b); }
html[data-theme="dark"] .tai__panel { background: var(--surface, #1d1d1d); color: var(--text, #dedede); border: 1px solid var(--border, #3d3d3d); }
html[data-theme="dark"] .tai__head { background: linear-gradient(135deg, var(--brand, #0F5C4A), #442f8b); }
html[data-theme="dark"] .tai__body { background: var(--bg, #232323); }
html[data-theme="dark"] .tai__hello { background: var(--surface, #1d1d1d); border: 1px solid var(--border, #3d3d3d); }
html[data-theme="dark"] .tai__chips button { border: 1px solid var(--border, #3f3f3f); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tai__msg--ai { background: var(--surface, #1d1d1d); border: 1px solid var(--border, #3d3d3d); }
html[data-theme="dark"] .tai__msg--err { background: #3a0d0a; color: #f7465b; border: 1px solid #662522; }
html[data-theme="dark"] .tai__typing i { background: #5b5b5b; }
html[data-theme="dark"] .tai__form { border-top: 1px solid var(--border, #3d3d3d); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tai__form textarea { border: 1px solid var(--border, #3f3f3f); background: var(--bg, #202020); }
html[data-theme="dark"] .tai__foot { color: var(--muted, #a2a2a2); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tai__sel option { color: #e4e4e4; }
html[data-theme="dark"] .tai__ic--dark { background: var(--bg, #262626); border: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .tai__files { background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tai__file { background: var(--bg, #262626); border: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .tai__file button { color: #ff3d3d; }
html[data-theme="dark"] .tai-code { border: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .tai-tablewrap th,
html[data-theme="dark"] .tai-tablewrap td { border: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .tai__msg a { color: var(--brand, #58e4c3); }
html[data-theme="dark"] .aip { border: 1px solid var(--border, #3d3d3d); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .aip__side { border-inline-end: 1px solid var(--border, #3d3d3d); background: var(--bg, #222222); }
html[data-theme="dark"] .aip__new { background: linear-gradient(135deg, var(--brand, #0F5C4A), #442f8b); }
html[data-theme="dark"] .aip__search { border: 1px solid var(--border, #3f3f3f); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .aip__item.is-on { background: var(--brand-tint, #20332c); }
html[data-theme="dark"] .aip__none { color: var(--muted, #a2a2a2); }
html[data-theme="dark"] .aip__sidefoot { border-top: 1px solid var(--border, #3d3d3d); color: var(--muted, #a2a2a2); }
html[data-theme="dark"] .aip__top { border-bottom: 1px solid var(--border, #3d3d3d); }
html[data-theme="dark"] .aip__ib { border: 1px solid var(--border, #3f3f3f); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .aip__empty p { color: var(--muted, #b5b5b5); }
html[data-theme="dark"] .aip__sug button { border: 1px solid var(--border, #3f3f3f); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .aip__m--ai .aip__bub { background: var(--bg, #232323); border: 1px solid var(--border, #3d3d3d); }
html[data-theme="dark"] .aip__bub a { color: var(--brand, #58e4c3); }
html[data-theme="dark"] .aip__bub hr { border-top: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .aip__bub .tai-tablewrap th,
html[data-theme="dark"] .aip__bub .tai-tablewrap td { border: 1px solid var(--border, #3f3f3f); }
html[data-theme="dark"] .aip__err { background: #3a0d0a; color: #f7465b; border: 1px solid #662522; }
html[data-theme="dark"] .aip__composer { border-top: 1px solid var(--border, #3d3d3d); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .aip__composer textarea { border: 1px solid var(--border, #3f3f3f); background: var(--bg, #202020); }
html[data-theme="dark"] .aip__foot { color: var(--muted, #a2a2a2); }
html[data-theme="dark"] .aip__dlg { border: 1px solid var(--border, #3f3f3f); background: var(--surface, #1d1d1d); }
html[data-theme="dark"] .tai-studio { background: var(--surface-2,#1f2522); border: 1px solid var(--border,#393f3b); }
html[data-theme="dark"] .tai-studio__frame { background: #1d1d1d; }
html[data-theme="dark"] .tai-studio__dim { color: var(--muted,#9ca19e); }
html[data-theme="dark"] .tai-studio__err { color: #f7465b; }
/* ---- catalog.css ---- */
html[data-theme="dark"] .cg-card { background: var(--surface,#1d1d1d); border: 1px solid var(--border,#3a3e3b); }
html[data-theme="dark"] .cg-img { background: linear-gradient(135deg,var(--cg-tint,#1f3029),#212421); }
html[data-theme="dark"] .cg-desc { color: var(--muted,#adadb4); }
html[data-theme="dark"] .cg-price small { color: var(--muted,#adadb4); }
html[data-theme="dark"] .cg-tag { background: var(--cg-tint,#1f3029); color: var(--cg-strong,#58e4c3); }
html[data-theme="dark"] .cg-tag--pkg { background: #47360c; color: #ffbc3d; }
html[data-theme="dark"] .cg-tag--prod { background: #111d39; color: #7a95da; }
html[data-theme="dark"] .cg-tag--star { background: #40150b; color: #e98c75; }
html[data-theme="dark"] .cg-tabs a { border: 1px solid var(--border,#323246); }
html[data-theme="dark"] .cp { background: #202523; color: #dae3e0; }
html[data-theme="dark"] .cp-hero img.cp-logo { background: #1d1d1d; }
html[data-theme="dark"] .cp-sec { background: #1d1d1d; }
html[data-theme="dark"] .cp-foot { color: #a4a4ab; }
@media print {
  html[data-theme="dark"] .cp { background: #1d1d1d; }
  html[data-theme="dark"] .cp-sec { border: 1px solid #3f3f3f; }
}
html[data-theme="dark"] .cg-main-tabs { border-bottom: 2px solid var(--border,#3a3e3b); }
html[data-theme="dark"] .cg-main-tabs button { color: var(--muted,#adadb4); }
html[data-theme="dark"] .cg-main-tabs button.is-on { color: var(--primary,#58e4c3); }
html[data-theme="dark"] .cg-count { background: var(--cg-tint,#1f3029); }

/* ---- استثناءات يدوية ---- */
html[data-theme="dark"] .avatar { background: #3a3a3a; color: #ececec; }
html[data-theme="dark"] .ex-bar i, html[data-theme="dark"] progress { background: #5fd3a0; }
html[data-theme="dark"] .btn--primary, html[data-theme="dark"] .btn--accent { background: #ececec; color: #121212; border-color: #ececec; box-shadow: none; }
html[data-theme="dark"] .btn--primary:hover:not(:disabled), html[data-theme="dark"] .btn--accent:hover:not(:disabled) { background: #fff; border-color: #fff; }
html[data-theme="dark"] .btn--ghost, html[data-theme="dark"] .btn--light { background: #242424; color: #ececec; border-color: #3a3a3a; box-shadow: none; }
html[data-theme="dark"] .btn--ghost:hover:not(:disabled) { background: #2c2c2c; border-color: #4a4a4a; }
html[data-theme="dark"] .btn--danger { background: #2a1512; color: #ff9b8a; border-color: #5a2a22; }
html[data-theme="dark"] .input, html[data-theme="dark"] .select, html[data-theme="dark"] .textarea, html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #181818; color: #ececec; border-color: #4a4a4a; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #777; }
html[data-theme="dark"] .topbar { background: #121212; }
html[data-theme="dark"] .card, html[data-theme="dark"] .stat, html[data-theme="dark"] .app-card, html[data-theme="dark"] .co-card { background: #1c1c1c; border-color: #2e2e2e; }
html[data-theme="dark"] .co-card--add { background: #181818; }
html[data-theme="dark"] .dash-hero, html[data-theme="dark"] .mg-hero, html[data-theme="dark"] .ads-hero, html[data-theme="dark"] .pt-hero { background-color: #0d0d0d !important; border: 1px solid #2a2a2a; }
html[data-theme="dark"] .tabs__item.is-active, html[data-theme="dark"] .tabs__item.is-active:hover { background: #2e2e2e !important; color: #ececec !important; }
html[data-theme="dark"] .tabs__item b { background: #2a2a2a; color: #a8a8a8; }
html[data-theme="dark"] .tabs__item.is-active b { background: #1c1c1c !important; color: #ececec !important; }
html[data-theme="dark"] .badge { background: #2c2c2c; color: #cfcfcf; }
html[data-theme="dark"] .badge--ok { background: #12301f; color: #7be0aa; }
html[data-theme="dark"] .badge--warn { background: #3a2e0c; color: #f5d37a; }
html[data-theme="dark"] .badge--danger { background: #3b1713; color: #ff9b8a; }
html[data-theme="dark"] .badge--info { background: #0f2a40; color: #8ccaff; }
html[data-theme="dark"] .alert--success { background: #12301f; color: #7be0aa; border-color: #1f5a38; }
html[data-theme="dark"] .alert--error { background: #3b1713; color: #ff9b8a; border-color: #6b2a22; }
html[data-theme="dark"] .alert--info { background: #0f2a40; color: #8ccaff; border-color: #1c4a70; }
html[data-theme="dark"] .alert--warning, html[data-theme="dark"] .alert--warn { background: #3a2e0c; color: #f5d37a; border-color: #6a5416; }
html[data-theme="dark"] .alert--update { background: #262626; color: #fff; border-color: #333; }
html[data-theme="dark"] .modal__box { background: #1c1c1c; color: #ececec; }
html[data-theme="dark"] .co-dd__btn, html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .lang-switch, html[data-theme="dark"] .umenu__btn { background: #1c1c1c; color: #ececec; border-color: #3a3a3a; }
html[data-theme="dark"] .co-dd__menu { background: #1c1c1c; }
html[data-theme="dark"] .co-dd__item:hover, html[data-theme="dark"] .co-dd__item.is-on { background: #2a2a2a; }
html[data-theme="dark"] .co-av--plus { background: #2e2e2e !important; color: #ececec; }
html[data-theme="dark"] .tai__fab { background: #ececec !important; color: #121212 !important; }
html[data-theme="dark"] .tai__spark { color: #121212; }
html[data-theme="dark"] .table th, html[data-theme="dark"] .dc-row--head { background: #232323; color: #a8a8a8; }
html[data-theme="dark"] .table tr:hover td, html[data-theme="dark"] .dc-row:hover, html[data-theme="dark"] a.dc-row:hover { background: #242424; }
html[data-theme="dark"] .sl-strip { background: #2e2e2e; border-color: #2e2e2e; }
html[data-theme="dark"] .sl-strip > div { background: #1c1c1c; }
html[data-theme="dark"] .pt-notch { background: #0d0d0d; }
html[data-theme="dark"] .mod-brand__name { color: #fff !important; }
html[data-theme="dark"] img.logo-on-light { display: none; }
html[data-theme="dark"] .auth2 { background: #121212; }
html[data-theme="dark"] .auth2__form { background: #1c1c1c; border-color: #2e2e2e; }
html[data-theme="dark"] .auth2__aside { background: #0d0d0d; }
html[data-theme="dark"] .co-pick { background: #121212; }

/* الورق (عروض/فواتير/عقود/إيصالات) يفضل أبيض زي الطباعة حتى في الدارك */
html[data-theme="dark"] .dp, html[data-theme="dark"] .ct-paper, html[data-theme="dark"] .vc-paper, html[data-theme="dark"] .rcpt, html[data-theme="dark"] .slip,
html[data-theme="dark"] .pr-sheet, html[data-theme="dark"] .dc-show__paper .dp {
  color-scheme: light; --ink: #10231D; --ink-2: #4B5A54; --ink-3: #7C8C86; --line: #E4DFD3; --surface: #fff; --canvas: #F4F1EA;
  --brand-tint: #F5FBE3; --brand-light: #E9F8BC; --pl-text: #303030; --pl-text-2: #616161; --pl-border: #e3e3e3; --pl-surface: #fff; --pl-surface-2: #f7f7f7;
  background: #fff; color: #10231D;
}
html[data-theme="dark"] .dp a { color: inherit; }

/* الصفحة الرئيسية: --ink فيها بيستخدم كخلفية داكنة (ناف/هيرو/فوتر/بطاقات) فنثبّتها داكنة بدل ما تنقلب فاتحة */
html[data-theme="dark"] .land-nav, html[data-theme="dark"] .land-hero, html[data-theme="dark"] .land-foot,
html[data-theme="dark"] .land-vs__col--good, html[data-theme="dark"] .land-swap__new, html[data-theme="dark"] .land-brandbox,
html[data-theme="dark"] .land-pill--dark, html[data-theme="dark"] .land-plan__tag, html[data-theme="dark"] .land-cycle button.is-on { background: #0b1511; }
html[data-theme="dark"] .land-hero { background: radial-gradient(1200px 500px at 70% -10%, #17301f 0%, #0b1511 60%); }
html[data-theme="dark"] .land-cycle button.is-on { border-color: var(--accent); }
html[data-theme="dark"] .land-vs__col--good { border: 1px solid #25402f; }
html[data-theme="dark"] .land-vs__col--good h3 { color: var(--accent); }
html[data-theme="dark"] .land-nav__links a, html[data-theme="dark"] .land-nav__cta a:not(.btn) { color: rgba(255,255,255,.82); }
html[data-theme="dark"] .land-nav__links a:hover { color: var(--accent); }
html[data-theme="dark"] .land-hero h1, html[data-theme="dark"] .land-hero p, html[data-theme="dark"] .land-hero a:not(.btn) { color: #fff; }
html[data-theme="dark"] .land-hero p { color: rgba(255,255,255,.78); }
html[data-theme="dark"] .land-hero a.btn--ghost, html[data-theme="dark"] .land-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
html[data-theme="dark"] .land-nav .btn--primary, html[data-theme="dark"] .land-hero .btn--primary { background: var(--accent); color: #10231D; border-color: var(--accent); }
html[data-theme="dark"] .land-plan.is-hot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,242,74,.18); }
html[data-theme="dark"] .land-nav .btn--ghost, html[data-theme="dark"] .land-nav .btn--link { color: rgba(255,255,255,.85); }
html[data-theme="dark"] .land-foot a { color: rgba(255,255,255,.7); }
html[data-theme="dark"] .ag-row__av, html[data-theme="dark"] .cl-logo { background: #2e2e2e; color: #ececec; }
html[data-theme="dark"] .content a:not([class]), html[data-theme="dark"] .small a:not([class]) { color: var(--link); }
html[data-theme="dark"] .cl-mini b, html[data-theme="dark"] a.cl-mini { color: var(--pl-text); }
html[data-theme="dark"] .to-top { background: #1c1c1c; border-color: #2e2e2e; color: #ececec; }
html[data-theme="dark"] .topbar.is-scrolled { box-shadow: 0 1px 0 #2e2e2e, 0 8px 24px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .card__head a.small { color: var(--link); }
html[data-theme="dark"] .table-wrap--shadow, html[data-theme="dark"] .tabs.hr-tabs { background:
  linear-gradient(to right, #1c1c1c 30%, rgba(28, 28, 28, 0)) left center / 28px 100% no-repeat local,
  linear-gradient(to left, #1c1c1c 30%, rgba(28, 28, 28, 0)) right center / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)) left center / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)) right center / 12px 100% no-repeat scroll; }
html[data-theme="dark"] .ex-table--sticky th:first-child, html[data-theme="dark"] .ex-table--sticky td:first-child { background: #1c1c1c; }
html[data-theme="dark"] .ex-table--sticky thead th { background: #232323; }
html[data-theme="dark"] .hr-attn__row { background: #1c1c1c; border-color: #2e2e2e; }
html[data-theme="dark"] .hr-attn__tag { background: #2a2a2a; }
html[data-theme="dark"] .pd-kpi > div { background: #232323; border-color: #2e2e2e; }
html[data-theme="dark"] .pd-pay { border-color: #2e2e2e; }
[data-theme="dark"] .pr-add{border-color:rgba(255,255,255,.16)}
[data-theme="dark"] .pd-edit__net{background:rgba(16,185,129,.16)}
[data-theme="dark"] .xl thead th,[data-theme="dark"] .xl__n,[data-theme="dark"] .xl thead th:nth-child(2){background:#1d2420!important}
[data-theme="dark"] .xl td:nth-child(2),[data-theme="dark"] .xl tbody tr:nth-child(even) td:nth-child(2){background:#161b18}
[data-theme="dark"] .xl tbody tr:nth-child(even) td{background:rgba(255,255,255,.03)}
[data-theme="dark"] .ads-open{background:#161b18;border-color:rgba(255,255,255,.16)}
[data-theme="dark"] .table thead th{background:#1d2420}
[data-theme="dark"] .table tbody tr:nth-child(even) td{background:rgba(255,255,255,.03)}
html[data-theme="dark"] .dx-act__row--bad .dx-act__ico{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.3)}
html[data-theme="dark"] .dx-act__row--warn .dx-act__ico{background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.3)}
html[data-theme="dark"] .dx-act__row--info .dx-act__ico{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.3)}

/* الباقات في الصفحة الرئيسية (دارك): شارات الأسماء والكارت المميّز وقوائم المميزات */
html[data-theme="dark"] .pl { background: #1a1d1b; border-color: #2c312e; box-shadow: none; }
html[data-theme="dark"] .pl:hover { border-color: #3d4440; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .pl--free { background: transparent; border-style: dashed; border-color: #3a403c; }
html[data-theme="dark"] .pl.is-hot { background: linear-gradient(180deg, rgba(198, 242, 74, .10), transparent 42%), #1a1d1b; border: 2px solid #C6F24A; color: #fff; box-shadow: 0 0 0 4px rgba(198, 242, 74, .14), 0 26px 60px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .pl__tag { background: #C6F24A; color: #10231D; box-shadow: 0 4px 14px rgba(198, 242, 74, .35); }
html[data-theme="dark"] .pl__name { background: rgba(198, 242, 74, .12); color: #C6F24A; border: 1px solid rgba(198, 242, 74, .30); }
html[data-theme="dark"] .pl.is-hot .pl__name { background: #C6F24A; color: #10231D; border-color: #C6F24A; }
html[data-theme="dark"] .pl__tamam { color: #f2f4f2; }
html[data-theme="dark"] .pl__price { color: #fff; }
html[data-theme="dark"] .pl__price small { color: #a9b2ae; }
html[data-theme="dark"] .pl__limits span { background: #242826; color: #d3d9d6; }
html[data-theme="dark"] .pl.is-hot .pl__limits span { background: rgba(198, 242, 74, .08); color: #e9efe9; }
html[data-theme="dark"] .pl__sec { color: #7ee2a0; }
html[data-theme="dark"] .pl.is-hot .pl__sec { color: #C6F24A; }
html[data-theme="dark"] .pl__sec--off { color: #8d9792 !important; }
html[data-theme="dark"] .pl__on li { color: #eef1ef; }
html[data-theme="dark"] .pl__on li small { color: #98a29d; }
html[data-theme="dark"] .pl__off span { border-color: #3a403c; color: #98a29d; }
html[data-theme="dark"] .pl.is-hot .pl__off span { border-color: rgba(198, 242, 74, .25); color: #b4beb8; }
html[data-theme="dark"] .pl__ic--sm img, html[data-theme="dark"] .pl__ic--sm svg { opacity: .75; }
html[data-theme="dark"] .pl.is-hot .pl__cta { background: #C6F24A; color: #10231D; border-color: #C6F24A; font-weight: 800; }
html[data-theme="dark"] .pl:not(.is-hot) .pl__cta.btn--primary { background: transparent; color: #f2f4f2; border: 1px solid #4a514d; }
html[data-theme="dark"] .pl:not(.is-hot) .pl__cta.btn--primary:hover { border-color: #C6F24A; color: #C6F24A; }
/* شريط المنصات في الدارك */
html[data-theme="dark"] .land-plat__rail { background: linear-gradient(#181b19, #181b19) padding-box, linear-gradient(90deg, #8a4a6e, #8a7a2e) border-box; }
html[data-theme="dark"] .land-plat__s { color: #aab3af; }
html[data-theme="dark"] .land-plat__i { border-color: #2c312e; box-shadow: none; }
