/* ============ پوسته‌ی jalil22 — «OBSIDIAN FINANCE» (نسخه‌ی ۲: صحنه‌ی چندلایه) ============
   زبان بصری: یک صحنه‌ی معماری با یک منبع نور (بالا-راست)، کفِ پرسپکتیو در دوردست، و سطح‌هایی در عمق‌های مختلف:
     L0 چاهک‌ها (فرورفته)، L1 پنل‌ها، L2 کارت‌های کلیدی، L3 کارت سود — و ماژول‌هایی که از لبه‌ی کارت سود بیرون زده‌اند.
   طلایی: فلزِ برس‌خورده (چند لایه‌ی روشن/تیره)، نه زرد تخت. فیروزه‌ای فقط برای دلار، لینک و فوکوس.
   همه‌ی قانون‌ها فقط زیر :root[data-style='jalil22'] هستند؛ پوسته‌های دیگر هیچ تغییری نمی‌کنند.
   theme-jalil22.js: جابه‌جایی کارت سود به بالای خانه، نمودار، نشانگر منو، کج‌شدن ظریف و ورود پله‌ای. */

:root[data-style='jalil22'] {
  color-scheme: dark;
  /* ---- رنگ ---- */
  --obsidian: #050b09; --navy-0: #0b1713; --navy-1: #10211c; --navy-2: #172e27; --navy-3: #1f3d34;
  --champ: #d9b779; --champ-hi: #f3dcaa; --champ-lo: #a8834a; --cyan: #4fd6e8;
  --metal: linear-gradient(180deg, #fff3d8 0%, #ecd19a 18%, #c9a15f 44%, #f1dcab 58%, #b28945 78%, #7d5c2c 100%);
  --metal-x: linear-gradient(100deg, #8a6a35 0%, #d9b779 22%, #fff1cf 40%, #d9b779 58%, #a8834a 80%, #6f5226 100%);
  /* دکمه‌ها: طلایی شامپاینی مات (به‌جای --metal براق)؛ اصلی، روشن، سایه، متن روی دکمه */
  --btn-gold: #C5A46D; --btn-gold-hi: #E5D1A4; --btn-gold-lo: #967543; --on-btn-gold: #18251E; --btn-border: #A98854;
  /* رویه: درخشش ۲ پیکسلی بالا + بافت برس‌خورده‌ی بسیار کم‌رنگ + گرادیان نرم (بی نوارهای روشن و تیره‌ی تند) */
  --btn-face: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / 0) 2px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, rgb(255 255 255 / 0) 1px 3px),
    linear-gradient(180deg, #CFB27E 0%, #C5A46D 55%, #BD9C65 100%);
  --btn-face-hover: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 2px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, rgb(255 255 255 / 0) 1px 3px),
    linear-gradient(180deg, #D4B886 0%, #CAAA76 55%, #C3A26C 100%);
  --btn-face-active: linear-gradient(180deg, #B99860 0%, #C3A26B 70%);
  --btn-face-sel: linear-gradient(180deg, #CDAF7B, #C2A16A);           /* دکمه‌های انتخابی (بازه‌ی نمودار): تخت‌تر از دکمه‌ی اصلی */
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 0 rgb(150 117 67 / .55), 0 6px 14px -8px rgb(0 0 0 / .6);
  --page: var(--obsidian); --bg1: var(--obsidian); --bg2: var(--obsidian);
  --surface: var(--navy-1); --glass: var(--navy-1); --glass-strong: var(--navy-2); --field: #091411; --opt: var(--navy-1);
  --line: rgb(162 198 187 / .10); --glass-border: rgb(162 198 187 / .10);
  --text: #f0f4f3; --text-dim: #94a6a1; --tint: rgb(174 216 203 / .05);
  --accent: #f0f4f3; --accent-2: #d1dcd9; --on-accent: #0b1713; --blue: var(--cyan);
  --gold: var(--champ); --gold-2: var(--champ-hi); --on-gold: #1a1307;
  --hero: var(--navy-1); --hero-text: #f0f4f3; --hero-glass: rgb(174 216 203 / .05);
  --green: #62d6a0; --red: #ff7d8d; --warn: #e9b864;
  --radius: 22px; --r2: 16px;
  /* ---- نور و سایه (منبع نور: بالا-راست) ---- */
  --surf-1: linear-gradient(200deg, rgb(30 58 49 / .95) 0%, rgb(18 34 29 / .96) 48%, rgb(11 23 19 / .97) 100%);
  --surf-2: linear-gradient(200deg, #224238 0%, #152b24 50%, #0d1c17 100%);
  --rim: inset 0 1px 0 rgb(255 240 215 / .075), inset -1px 0 0 rgb(255 240 215 / .035);
  --cast-1: 0 1px 2px rgb(0 0 0 / .5), -12px 22px 40px -24px rgb(0 0 0 / .9);
  --cast-2: 0 2px 4px rgb(0 0 0 / .45), -18px 34px 60px -30px rgb(0 0 0 / .95);
  --cast-3: 0 3px 6px rgb(0 0 0 / .4), -30px 60px 110px -50px rgb(0 0 0 / 1), 0 40px 120px -70px rgb(79 214 232 / .22);
  --elev-1: var(--rim), var(--cast-1); --elev-2: var(--rim), var(--cast-2);
  --elev-3: inset 0 1px 0 rgb(255 240 215 / .12), 0 0 0 1px rgb(217 183 121 / .14), var(--cast-3);
  --shadow: var(--elev-1); --shadow-sm: var(--elev-1);
  --d3-hi: rgb(255 255 255 / .07); --d3-sh: rgb(0 0 0 / .85); --d3-light: rgb(243 220 170 / .16);
  /* ---- حرکت ---- */
  --j-ease: cubic-bezier(.2, .8, .2, 1); --j-spring: cubic-bezier(.3, 1.35, .5, 1); --j-fast: 140ms; --j-mid: 280ms; --j-slow: 640ms;
  /* ---- تصویرها ---- */
  --art-body: #c9a15f; --art-cab: #e2ece9; --art-dark: #040a08; --art-glass: #4fd6e8; --art-hub: #d9b779;
  scrollbar-color: rgb(174 216 203 / .16) transparent; scrollbar-width: thin;
}
:root[data-style='jalil22'] ::-webkit-scrollbar { width: 9px; height: 9px; }
:root[data-style='jalil22'] ::-webkit-scrollbar-thumb { background: rgb(174 216 203 / .14); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
:root[data-style='jalil22'] ::-webkit-scrollbar-thumb:hover { background-color: rgb(217 183 121 / .35); }
:root[data-style='jalil22'] ::-webkit-scrollbar-track { background: transparent; }
:root[data-style='jalil22'] ::selection { background: rgb(79 214 232 / .3); }

/* =====================================================================
   ۱. صحنه: نور کلیدی بالا-راست، مه گرم، کفِ پرسپکتیو در دوردست، دانه و حاشیه‌ی تاریک
   ===================================================================== */
:root[data-style='jalil22'] body {
  background:
    radial-gradient(70% 55% at 90% -12%, rgb(58 126 106 / .55), transparent 65%),
    radial-gradient(38% 28% at 72% 0%, rgb(217 183 121 / .10), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(79 214 232 / .06), transparent 70%),
    linear-gradient(180deg, #09110f, #050b09 60%) fixed !important;
  color: var(--text);
}
:root[data-style='jalil22'] body::before {          /* کفِ پرسپکتیو */
  content: ''; position: fixed; left: -60%; right: -60%; bottom: -12vh; height: 72vh; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(162 198 187 / .085) 1px, transparent 1px), linear-gradient(90deg, rgb(162 198 187 / .085) 1px, transparent 1px);
  background-size: 84px 84px; background-position: center bottom;
  transform: perspective(720px) rotateX(70deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .5) 40%, transparent 88%); mask-image: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .5) 40%, transparent 88%);
}
:root[data-style='jalil22'] body::after {           /* دانه‌ی ریز + حاشیه‌ی تاریک */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 95% at 55% 35%, transparent 55%, rgb(0 0 0 / .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   ۲. سطح‌ها
   ===================================================================== */
/* L1 پنل‌ها */
:root[data-style='jalil22'] :is(.panel, .stat, .rl-card, .fx-cards > div, .acts button, .card, .d-truck) {
  background: var(--surf-1) !important; border: 1px solid rgb(174 216 203 / .09) !important; box-shadow: var(--elev-1) !important;
}
:root[data-style='jalil22'] .panel { padding: 22px 24px !important; border-radius: 22px !important; }
:root[data-style='jalil22'] .panel h3 {
  font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px;
  padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid transparent;
  border-image: linear-gradient(270deg, rgb(243 220 170 / .28), rgb(174 216 203 / .07) 45%, transparent) 1;
}
:root[data-style='jalil22'] .panel h3 > .eic, :root[data-style='jalil22'] .goal-ic, :root[data-style='jalil22'] .ins > span:first-child {
  display: inline-grid !important; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; margin: 0;
  background: linear-gradient(180deg, #254d41, #142923) !important; border: 0 !important; color: var(--champ-hi) !important;
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .12), 0 2px 0 rgb(0 0 0 / .55), 0 6px 10px -6px #000 !important;
}
:root[data-style='jalil22'] .panel h3 > .eic .ic, :root[data-style='jalil22'] .goal-ic .ic, :root[data-style='jalil22'] .ins > span:first-child .ic { width: 16px; height: 16px; }
/* L0 چاهک‌ها: ردیف‌های داخل پنل‌ها */
:root[data-style='jalil22'] :is(.task, .act-item, .ins, .goal-x, .tk-oil, .tk-kpis > div, .total-bar, .pace-row) {
  background: linear-gradient(180deg, rgb(5 11 9 / .45), rgb(174 216 203 / .03)) !important; border: 1px solid rgb(174 216 203 / .07) !important;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .45), inset 0 -1px 0 rgb(255 255 255 / .025) !important;
}
:root[data-style='jalil22'] .pace-row { border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; }
/* L2 کارت‌های امروز */
:root[data-style='jalil22'] .today-grid .t-tile {
  background: radial-gradient(110% 90% at 100% 0%, rgb(57 111 95 / .45), transparent 60%), var(--surf-2) !important;
  border: 1px solid rgb(174 216 203 / .12) !important; box-shadow: var(--elev-2) !important; border-radius: 20px !important;
}
:root[data-style='jalil22'] .today-grid .t-tile b {
  background: linear-gradient(180deg, #ffffff, #bfd0cb); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  font-variant-numeric: tabular-nums; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .8)) drop-shadow(0 8px 12px rgb(0 0 0 / .5));
}
:root[data-style='jalil22'] .today-grid .t-tile .t-ic { color: var(--champ-hi); background: linear-gradient(180deg, #254d41, #142923); box-shadow: inset 0 1px 0 rgb(255 240 215 / .12), 0 4px 8px -4px #000; }
:root[data-style='jalil22'] .t-art .art, :root[data-style='jalil22'] .d-truck .art { filter: drop-shadow(-6px 10px 8px rgb(0 0 0 / .65)) drop-shadow(0 0 16px rgb(79 214 232 / .10)) !important; }
:root[data-style='jalil22'] .d-head h3 { font-weight: 800; }
/* حرکت عمودی ظریف هنگام اشاره (فقط داشبورد؛ فرم‌ها هنگام تایپ تکان نمی‌خورند) */
@media (hover: hover) and (pointer: fine) {
  :root[data-style='jalil22'] #dashboard :is(.panel, .d-truck) { transition: transform var(--j-mid) var(--j-ease), box-shadow var(--j-mid) ease, border-color var(--j-mid) ease; }
  :root[data-style='jalil22'] #dashboard :is(.panel, .d-truck):hover { transform: translateY(-3px); box-shadow: var(--rim), 0 2px 4px rgb(0 0 0 / .5), -16px 34px 56px -26px #000 !important; border-color: rgb(243 220 170 / .18) !important; }
  :root[data-style='jalil22'] .acts button:hover { border-color: rgb(243 220 170 / .3) !important; }
}
:root[data-style='jalil22'] :is(.panel, .hero, .t-tile, .rl-card, .acts button).d3-on { border-color: rgb(243 220 170 / .4) !important; }

/* =====================================================================
   ۳. کارت سود: صحنه‌ی اصلی
   ===================================================================== */
:root[data-style='jalil22'] .hero {
  isolation: isolate; overflow: visible !important; border-radius: 28px !important; padding: 30px 32px 26px !important; color: var(--text) !important;
  background:
    radial-gradient(55% 75% at 100% 0%, rgb(217 183 121 / .16), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgb(79 214 232 / .08), transparent 60%),
    linear-gradient(200deg, #204137 0%, #132922 45%, #0b1814 100%) padding-box,
    linear-gradient(200deg, rgb(255 236 200 / .65), rgb(162 198 187 / .10) 32%, rgb(162 198 187 / .06) 70%, rgb(79 214 232 / .35)) border-box !important;
  border: 1px solid transparent !important; box-shadow: var(--elev-3) !important;
}
/* کج‌شدن کارت بزرگ: یک‌سوم کارت‌های کوچک (depth.js همان متغیرها را می‌دهد) */
:root[data-style='jalil22'] .hero { transform: perspective(1600px) rotateX(calc(var(--rx, 0deg) * .4)) rotateY(calc(var(--ry, 0deg) * .4)); transform-style: preserve-3d; }
:root[data-style='jalil22'] .hero::before {          /* لبه‌ی بالا که نور کلیدی را می‌گیرد */
  content: ''; position: absolute; inset: 0 10% auto; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(160 235 245 / .45) 25%, rgb(255 238 205 / .9) 70%, transparent);
}
:root[data-style='jalil22'] .hero::after {           /* بازتاب مورب + سایه‌ی داخلی پایین */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, transparent 0 44%, rgb(255 255 255 / .03) 44% 54%, transparent 54%),
              radial-gradient(70% 45% at 50% 110%, rgb(0 0 0 / .5), transparent 70%);
}
:root[data-style='jalil22'] .hero > :not(.h-chart):not(.d3-light):not(.h-exc) { position: relative; z-index: 1; }
:root[data-style='jalil22'] .hero .h-lbl { font-size: 13px; font-weight: 600; color: var(--text-dim) !important; display: flex; align-items: center; gap: 8px; transform: translateZ(24px); }
:root[data-style='jalil22'] .hero .h-lbl .eic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; margin: 0;
  background: var(--btn-face); color: var(--on-btn-gold); box-shadow: var(--btn-shadow); }
:root[data-style='jalil22'] .hero .h-lbl .eic .ic { width: 15px; height: 15px; }
/* عدد سود: فلز برس‌خورده با لبه‌ی برجسته و سایه‌ی تماس */
:root[data-style='jalil22'] .hero > .value {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  font-weight: 800 !important; letter-spacing: -.5px; line-height: 1.12 !important; font-variant-numeric: tabular-nums; white-space: nowrap;
  filter: drop-shadow(0 1px 0 #8a6a35) drop-shadow(0 2px 0 #4d3818) drop-shadow(-4px 14px 14px rgb(0 0 0 / .65)) drop-shadow(0 0 30px rgb(217 183 121 / .16));
  transform: translateZ(48px);
}
:root[data-style='jalil22'] #dashboard .hero > .value { font-size: clamp(46px, 4.8vw, 88px) !important; margin: 14px 0 6px !important; }
:root[data-style='jalil22'] #truck .hero > .value { font-size: clamp(40px, 3.6vw, 60px) !important; }
:root[data-style='jalil22'] .hero > .value .unit { -webkit-text-fill-color: var(--text-dim); font-size: 16px; font-weight: 500; letter-spacing: normal; margin-inline-start: 10px; }
:root[data-style='jalil22'] .hero > .value.neg { background: linear-gradient(180deg, #ffc2ca, #ff7d8d 50%, #b33a4c); -webkit-background-clip: text; background-clip: text; }
:root[data-style='jalil22'] .hero .h-fx { font-size: 13.5px; color: var(--text-dim); transform: translateZ(30px); }
:root[data-style='jalil22'] .hero .h-fx b { color: var(--cyan); }
:root[data-style='jalil22'] .hero .trend { justify-self: start; margin-top: 12px; padding: 6px 13px !important; font-size: 12px !important; font-weight: 700 !important; transform: translateZ(30px);
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)) !important; border: 1px solid rgb(174 216 203 / .14); color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 8px 14px -8px #000; }
:root[data-style='jalil22'] .hero .trend.up { color: var(--green) !important; border-color: rgb(98 214 160 / .28); }
:root[data-style='jalil22'] .hero .trend.down { color: var(--red) !important; border-color: rgb(255 125 141 / .28); }
/* نمودار ساده‌ی قدیمی پنهان؛ «روند سود» (theme-jalil22.js) جایش است */
:root[data-style='jalil22'] .hero .h-chart { display: none !important; }
/* سه ماژول پایین: شیشه‌ی معلق در عمق‌های مختلف */
:root[data-style='jalil22'] .hero .split { gap: 14px !important; margin-top: 24px !important; transform-style: preserve-3d; }
:root[data-style='jalil22'] .hero .split > div {
  position: relative; padding: 15px 18px !important; border-radius: 18px !important;
  background: linear-gradient(200deg, rgb(37 71 61 / .62), rgb(13 28 23 / .72)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgb(174 216 203 / .13) !important;
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .1), inset -1px 0 0 rgb(255 240 215 / .04), 0 2px 3px rgb(0 0 0 / .55), -14px 26px 36px -20px rgb(0 0 0 / .95) !important;
  transition: transform var(--j-mid) var(--j-ease), box-shadow var(--j-mid) ease;
}
:root[data-style='jalil22'] .hero .split > div::before { content: ''; position: absolute; top: -1px; right: 18px; width: 38px; height: 2px; border-radius: 2px; background: var(--champ); box-shadow: 0 0 10px currentColor; color: var(--champ); }
:root[data-style='jalil22'] .hero .split > div:nth-child(1)::before { background: var(--green); color: var(--green); }
:root[data-style='jalil22'] .hero .split > div:nth-child(2)::before { background: var(--red); color: var(--red); }
:root[data-style='jalil22'] .hero .split small { font-size: 12px !important; color: var(--text-dim) !important; }
:root[data-style='jalil22'] .hero .split .value { font-size: 21px !important; font-weight: 800 !important; color: var(--text) !important; margin-top: 5px; font-variant-numeric: tabular-nums; }
:root[data-style='jalil22'] .hero .split .value .unit { font-size: 11px !important; color: var(--text-dim); font-weight: 500; margin-inline-start: 4px; }
/* بیل روی سکو */
:root[data-style='jalil22'] .hero .h-exc { width: 136px; top: 30px; left: 30px; transform: perspective(700px) rotateY(-18deg) rotateX(4deg) translateZ(70px); transform-origin: 50% 100%; }
:root[data-style='jalil22'][data-tone] :is(#dashboard, #truck) .hero .h-exc { display: block; }
:root[data-style='jalil22'] .hero .h-exc .art { filter: drop-shadow(-12px 10px 14px rgb(0 0 0 / .55)) !important; }
:root[data-style='jalil22'] .hero .h-exc .art3d { filter: drop-shadow(-14px 12px 16px rgb(0 0 0 / .5)) drop-shadow(0 0 26px rgb(79 214 232 / .08)) !important; }
:root[data-style='jalil22'] .hero .h-exc::before {   /* سکو: دیسک با لبه‌ی فلزی */
  content: ''; position: absolute; left: -8%; right: -8%; bottom: -20px; height: 34px; z-index: -2; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(9 19 16 / .95), rgb(16 33 28 / .85) 70%, rgb(16 33 28 / 0));
  border-top: 1px solid rgb(243 220 170 / .45); box-shadow: 0 -1px 18px -6px rgb(217 183 121 / .45), 0 18px 26px -10px rgb(0 0 0 / .9);
}

/* کامپیوتر: کارت سود تمام‌عرض بالای خانه، متن راست، بیل و نمودار چپ، ماژول‌ها از لبه‌ی پایین بیرون زده */
@media (min-width: 821px) {
  :root[data-style='jalil22'] #dashboard > .hero {
    grid-column: 1 / -1; display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-content: start;
    min-height: 330px; padding: 36px 40px 0 !important; margin-bottom: 58px;
  }
  :root[data-style='jalil22'] #dashboard > .hero > .h-lbl { grid-column: 1; grid-row: 1; }
  :root[data-style='jalil22'] #dashboard > .hero > .value { grid-column: 1; grid-row: 2; }
  :root[data-style='jalil22'] #dashboard > .hero > .h-fx { grid-column: 1; grid-row: 3; }
  :root[data-style='jalil22'] #dashboard > .hero > .trend { grid-column: 1; grid-row: 4; }
  :root[data-style='jalil22'] #dashboard > .hero > .h-exc { grid-column: 2; grid-row: 1 / 5; position: relative; top: auto; left: auto; justify-self: center; align-self: end; width: min(300px, 100%); margin: 0 0 -6px; }
  :root[data-style='jalil22'] #dashboard > .hero > .j22-chart { grid-column: 1 / -1; grid-row: 5; }
  :root[data-style='jalil22'] #dashboard > .hero > .split {
    grid-column: 1 / -1; grid-row: 6; margin: 22px 0 -50px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  :root[data-style='jalil22'] #dashboard > .hero > .split > div:nth-child(1) { transform: translateY(-8px) translateZ(46px); }
  :root[data-style='jalil22'] #dashboard > .hero > .split > div:nth-child(2) { transform: translateZ(30px); }
  :root[data-style='jalil22'] #dashboard > .hero > .split > div:nth-child(3) { transform: translateY(8px) translateZ(16px); }
    @media (hover: hover) and (pointer: fine) {
    :root[data-style='jalil22'] #dashboard > .hero > .split > div:hover { transform: translateY(-14px) translateZ(60px); box-shadow: inset 0 1px 0 rgb(255 240 215 / .14), 0 2px 3px rgb(0 0 0 / .5), -18px 40px 50px -22px #000 !important; }
  }
}

/* =====================================================================
   ۴. منوی کناری: پنل معماری‌شده با نشانگر فلزی لغزان
   ===================================================================== */
:root[data-style='jalil22'] .sidebar {
  background: linear-gradient(200deg, #1b372f 0%, #0f211b 52%, #0a1612 100%) !important; border: 1px solid rgb(174 216 203 / .1) !important; border-radius: 28px !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .08), inset 1px 0 0 rgb(255 255 255 / .025), 0 0 0 1px rgb(0 0 0 / .45), -26px 34px 70px -34px rgb(0 0 0 / .95) !important;
}
:root[data-style='jalil22'] .sidebar::after {        /* نوار نور روی لبه‌ی داخلی */
  content: ''; position: absolute; top: 10%; bottom: 10%; left: -1px; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(243 220 170 / .35) 30%, rgb(79 214 232 / .25) 70%, transparent);
}
:root[data-style='jalil22'] .brand { position: relative; padding: 6px 8px 18px !important; margin-bottom: 12px !important; }
:root[data-style='jalil22'] .brand::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px; background: linear-gradient(270deg, rgb(243 220 170 / .3), rgb(174 216 203 / .08) 60%, transparent); }
:root[data-style='jalil22'] .brand h1 { font-size: 16px; font-weight: 800; background: linear-gradient(180deg, #fff, #ccdad6); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-style='jalil22'] .brand-icon { border-radius: 14px !important; box-shadow: 0 0 0 1px rgb(243 220 170 / .35), 0 8px 18px -8px #000 !important; }
:root[data-style='jalil22'] .nav-btn { position: relative; z-index: 1; color: var(--text-dim); gap: 12px !important; padding: 7px 10px !important; border-radius: 14px !important; border: 1px solid transparent !important; background: none !important; box-shadow: none !important; transition: color var(--j-fast) ease; }
:root[data-style='jalil22'] .nav-btn .ico {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: #adc1bb;
  background: linear-gradient(180deg, #213f36, #132721); box-shadow: inset 0 1px 0 rgb(255 240 215 / .09), 0 2px 0 rgb(0 0 0 / .55), 0 6px 10px -6px #000;
  transition: color var(--j-mid) ease, background var(--j-mid) ease, box-shadow var(--j-mid) ease, transform var(--j-mid) var(--j-spring);
}
:root[data-style='jalil22'] .nav-btn .ico .ic { width: 17px; height: 17px; }
:root[data-style='jalil22'] .nav-btn:hover { color: var(--text); }
:root[data-style='jalil22'] .nav-btn:hover .ico { color: var(--champ-hi); transform: translateY(-1px); }
:root[data-style='jalil22'] .nav-btn.active { color: #fff; font-weight: 700; }
:root[data-style='jalil22'] .nav-btn.active .ico { background: var(--btn-face); color: var(--on-btn-gold); transform: translateZ(0) scale(1.04);
  box-shadow: var(--btn-shadow); }
/* بدون نشانگر (پیش از اجرای اسکریپت) */
:root[data-style='jalil22'] .sidebar:not(:has(.j22-ind)) .nav-btn.active { background: linear-gradient(270deg, rgb(197 164 109 / .16), transparent) !important; }
:root[data-style='jalil22'] .j22-ind {
  position: absolute; top: 0; right: 12px; left: 12px; height: 46px; z-index: 0; pointer-events: none; border-radius: 15px; opacity: 0;
  background: linear-gradient(270deg, rgb(197 164 109 / .20), rgb(197 164 109 / .06) 55%, rgb(197 164 109 / .02)),
              linear-gradient(180deg, rgb(255 255 255 / .04), transparent);
  border: 1px solid rgb(229 209 164 / .20);
  box-shadow: inset 0 1px 0 rgb(255 245 225 / .10), inset 0 -1px 0 rgb(0 0 0 / .35), 0 10px 18px -12px rgb(0 0 0 / .8);
  transition: transform 460ms var(--j-ease), height 300ms var(--j-ease), opacity 200ms ease;
}
:root[data-style='jalil22'] .j22-ind::before {        /* تیغه‌ی فلزی روی لبه */
  content: ''; position: absolute; right: -1px; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--btn-gold-hi), var(--btn-gold) 50%, var(--btn-gold-lo));
}
:root[data-style='jalil22'] .badge-soon { background: linear-gradient(180deg, #5a2230, #3a1520) !important; color: #ffb3bf !important; border: 1px solid rgb(255 125 141 / .35); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); }
/* دکمه‌ی ثبت جدید: کلید فلزی */
:root[data-style='jalil22'] .new-btn { border-radius: 16px !important; padding: 14px !important; font-weight: 800; }
:root[data-style='jalil22'] .new-btn kbd { background: rgb(24 37 30 / .12); color: var(--on-btn-gold); border: 1px solid rgb(24 37 30 / .2); border-radius: 6px; box-shadow: inset 0 -1px 0 rgb(0 0 0 / .2); }

/* =====================================================================
   ۵. سربرگ، دکمه‌ها، فرم‌ها، جدول‌ها
   ===================================================================== */
:root[data-style='jalil22'] .topbar h2 { background: linear-gradient(180deg, #ffffff, #bed0cb); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-style='jalil22'] .topbar .right > * { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)) !important; border: 1px solid rgb(174 216 203 / .12) !important; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 6px 12px -8px #000 !important; }
:root[data-style='jalil22'] :is(.btn-primary, .new-btn, .tabbar .tab-fab) {
  --j22-btn: var(--btn-face);                 /* Hover/Active فقط همین متغیر را عوض می‌کنند (بدون !important تازه) */
  background: var(--j22-btn) !important; color: var(--on-btn-gold) !important; border: 1px solid var(--btn-border);
  box-shadow: var(--btn-shadow) !important;
  transition: transform var(--j-fast) var(--j-ease), box-shadow var(--j-fast) ease, filter var(--j-fast) ease;
}
/* «ثبت جدید» کمی برجسته‌تر: سایه‌ی تماس بلندتر */
:root[data-style='jalil22'] .sidebar .new-btn { box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 1px 0 rgb(150 117 67 / .6), 0 10px 20px -10px rgb(0 0 0 / .75) !important; }
:root[data-style='jalil22'] :is(.btn-primary, .new-btn, .tabbar .tab-fab):not(:disabled):hover { --j22-btn: var(--btn-face-hover); }
:root[data-style='jalil22'] :is(.btn-primary, .new-btn, .tabbar .tab-fab):not(:disabled):active { --j22-btn: var(--btn-face-active); }
:root[data-style='jalil22'] :is(.btn-primary, .new-btn):active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgb(0 0 0 / .18), 0 1px 0 rgb(150 117 67 / .45) !important; }
:root[data-style='jalil22'] .btn-primary.danger { background: linear-gradient(180deg, #ffa3ae, #e2475c 55%, #a52a3b) !important; color: #fff !important; box-shadow: 0 2px 0 #6e1a26, 0 12px 22px -12px #000 !important; }
:root[data-style='jalil22'] :is(.btn-ghost, .stepper button, .month-bar button) {
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)) !important; color: var(--text) !important; border: 1px solid var(--line) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 2px 0 rgb(0 0 0 / .55) !important;
}
:root[data-style='jalil22'] :is(.btn-ghost, .stepper button, .month-bar button):hover { border-color: rgb(79 214 232 / .35) !important; }
:root[data-style='jalil22'] :is(.tabs, .shift-pick, .tk-tabs) button { color: var(--text-dim); }
:root[data-style='jalil22'] :is(.tabs, .shift-pick, .tk-tabs) button.active {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2)) !important; color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), inset 0 -2px 0 var(--btn-gold), 0 10px 18px -10px #000 !important;
}
:root[data-style='jalil22'] .chip { background: rgb(174 216 203 / .07) !important; color: var(--text); }
:root[data-style='jalil22'] .link-btn { color: var(--cyan) !important; text-decoration-color: rgb(79 214 232 / .35); }
:root[data-style='jalil22'] .del { color: var(--text-dim); }
:root[data-style='jalil22'] .del:hover { color: var(--cyan); }
:root[data-style='jalil22'] .del:not(.edit-btn):hover { color: var(--red); }
:root[data-style='jalil22'] :is(input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea) {
  background: var(--field) !important; color: var(--text) !important; border: 1px solid rgb(174 216 203 / .14) !important;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .55), inset 0 -1px 0 rgb(255 255 255 / .03) !important; transition: border-color var(--j-fast) ease, box-shadow var(--j-fast) ease;
}
:root[data-style='jalil22'] :is(input, select, textarea):focus { border-color: rgb(79 214 232 / .6) !important; box-shadow: inset 0 2px 5px rgb(0 0 0 / .55), 0 0 0 3px rgb(79 214 232 / .15) !important; outline: none; }
:root[data-style='jalil22'] ::placeholder { color: rgb(148 166 161 / .6); }
:root[data-style='jalil22'] .checks label, :root[data-style='jalil22'] .radio-pill { background: rgb(174 216 203 / .05) !important; border: 1px solid var(--line) !important; color: var(--text-dim); }
:root[data-style='jalil22'] .checks label:has(input:checked), :root[data-style='jalil22'] .radio-pill:has(input:checked), :root[data-style='jalil22'] .look-opt:has(input:checked) {
  border-color: var(--btn-gold) !important; color: var(--text); background: rgb(197 164 109 / .10) !important; box-shadow: inset 0 1px 0 rgb(255 240 215 / .08), 0 0 0 1px rgb(197 164 109 / .25) !important;
}
:root[data-style='jalil22'] .checks .cc-add {
  background: rgb(197 164 109 / .08) !important; border: 1.5px dashed var(--btn-gold) !important; color: var(--btn-gold) !important;
}
:root[data-style='jalil22'] .checks .cc-add:hover {
  background: rgb(197 164 109 / .18) !important; border-style: solid !important; border-color: var(--btn-gold-hi) !important; box-shadow: 0 0 12px rgb(197 164 109 / .3) !important;
}
:root[data-style='jalil22'] .cc-img.lg { border-color: var(--btn-gold) !important; }
:root[data-style='jalil22'] .ar-thumb-btn {
  background: rgb(174 216 203 / .06) !important; border-color: rgb(174 216 203 / .14) !important;
}
:root[data-style='jalil22'] .ar-thumb-btn:hover {
  border-color: var(--btn-gold) !important; box-shadow: 0 0 12px rgb(197 164 109 / .35) !important;
}
:root[data-style='jalil22'] .ar-thumb-badge {
  background: rgb(5 11 9 / .85) !important; color: var(--champ-hi) !important; border: 1px solid rgb(197 164 109 / .3) !important;
}
:root[data-style='jalil22'] :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
:root[data-style='jalil22'] table { border-color: var(--line); }
:root[data-style='jalil22'] thead th { background: rgb(174 216 203 / .06) !important; color: var(--text-dim) !important; font-weight: 600; border-color: var(--line) !important; }
:root[data-style='jalil22'] tbody td { border-color: rgb(174 216 203 / .07) !important; }
:root[data-style='jalil22'] tbody tr { transition: background-color var(--j-fast) ease; }
:root[data-style='jalil22'] tbody tr:hover { background: rgb(79 214 232 / .045) !important; }
:root[data-style='jalil22'] :is(.money, td, .value, .tk-kpis b, .goal-n b, .pace-row b) { font-variant-numeric: tabular-nums; }
:root[data-style='jalil22'] .usd { color: var(--cyan) !important; opacity: .85; }
:root[data-style='jalil22'] .c-ok { color: var(--green) !important; } :root[data-style='jalil22'] .c-late { color: var(--red) !important; }

/* =====================================================================
   ۶. پیشرفت (لوله‌ی فلزی در شیار)، هدف، روند ماه (ستون استوانه‌ای)، نکته‌ها
   ===================================================================== */
:root[data-style='jalil22'] :is(.progress, .goal-bar) {
  height: 12px !important; border-radius: 99px !important; overflow: visible !important; position: relative;
  background: linear-gradient(180deg, #060c0a, #132620) !important; border: 1px solid rgb(174 216 203 / .07);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .85), inset 0 -1px 0 rgb(255 255 255 / .05) !important;
}
:root[data-style='jalil22'] :is(.progress, .goal-bar) > i {
  position: relative; display: block; height: 100%; border-radius: 99px !important;
  background: linear-gradient(180deg, #fff1cf 0%, #e7c78a 30%, #b88c4b 66%, #74552a 100%) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .65), 0 0 16px -2px rgb(217 183 121 / .55), 0 3px 6px -2px #000 !important;
  transform-origin: 100% 50%;
}
:root[data-style='jalil22'] :is(.progress, .goal-bar) > i::after {   /* بازتاب براق روی لوله */
  content: ''; position: absolute; top: 2px; right: 6px; left: 6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent);
}
:root[data-style='jalil22'] .d-goal { gap: 18px; }
:root[data-style='jalil22'] .goal { display: grid; gap: 10px; }
:root[data-style='jalil22'] .goal + .goal { border-top: 1px solid rgb(174 216 203 / .07); padding-top: 16px; }
:root[data-style='jalil22'] .goal-h b { font-size: 14.5px; }
:root[data-style='jalil22'] .goal-p { font-size: 24px !important; font-weight: 800; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 1px 0 #4d3818) drop-shadow(0 6px 8px rgb(0 0 0 / .6)); }
:root[data-style='jalil22'] .goal-n b { font-size: 14px; color: var(--text); }
:root[data-style='jalil22'] .goal-x { border-radius: 12px; padding: 10px 12px; line-height: 1.95; }
:root[data-style='jalil22'] .pace-bars { gap: 12px !important; padding: 14px 4px 0; border-bottom: 1px solid rgb(174 216 203 / .1); perspective: 600px; }
:root[data-style='jalil22'] .pace-bars i {
  position: relative; overflow: visible !important; opacity: 1 !important; border-radius: 0 0 4px 4px !important;
  background: linear-gradient(90deg, #142923 0%, #30584c 38%, #1c372f 70%, #0f211b 100%) !important;
  box-shadow: 0 10px 16px -10px #000 !important; transform-origin: 50% 100%;
}
:root[data-style='jalil22'] .pace-bars i::before {   /* سطح بالای استوانه */
  content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, #4e8272, #30584c); box-shadow: inset 0 1px 0 rgb(255 255 255 / .15);
}
:root[data-style='jalil22'] .pace-bars i.cur { background: linear-gradient(90deg, #6f5226 0%, #d9b779 34%, #fff1cf 48%, #c9a15f 66%, #7d5c2c 100%) !important; box-shadow: 0 0 22px -4px rgb(217 183 121 / .55), 0 10px 16px -10px #000 !important; }
:root[data-style='jalil22'] .pace-bars i.cur::before { background: radial-gradient(closest-side, #fff6e0, #e6c98f); }
:root[data-style='jalil22'] .pace-bars i.neg { background: linear-gradient(90deg, #6e1a26, #ff7d8d 45%, #a52a3b) !important; }
:root[data-style='jalil22'] .pace-bars i.neg::before { background: radial-gradient(closest-side, #ffc2ca, #ff7d8d); }
:root[data-style='jalil22'] .pace-bars small { color: var(--text-dim) !important; font-size: 11px; }
:root[data-style='jalil22'] .ins { border-radius: 14px !important; padding: 11px 14px !important; line-height: 1.85; align-items: center !important; position: relative; }
:root[data-style='jalil22'] .ins::after { content: ''; position: absolute; right: -1px; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: rgb(174 216 203 / .3); }
:root[data-style='jalil22'] .ins-late::after { background: var(--red); box-shadow: 0 0 8px var(--red); }
:root[data-style='jalil22'] .ins-ok::after { background: var(--green); box-shadow: 0 0 8px var(--green); }
:root[data-style='jalil22'] .ins-near::after { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
:root[data-style='jalil22'] .ins-late > span:first-child { color: var(--red) !important; } :root[data-style='jalil22'] .ins-ok > span:first-child { color: var(--green) !important; }
:root[data-style='jalil22'] .tasks-row { -webkit-mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 56px), transparent); scrollbar-width: none; }
:root[data-style='jalil22'] .tasks-row::-webkit-scrollbar { display: none; }
:root[data-style='jalil22'] .d-truck { border-radius: 22px !important; }
:root[data-style='jalil22'] .d-truck .dt-go { color: var(--cyan); }
:root[data-style='jalil22'] .d-truck .dt-art { position: relative; }
:root[data-style='jalil22'] .d-truck .dt-art::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -4px; height: 10px; z-index: -1; background: radial-gradient(closest-side, rgb(0 0 0 / .8), transparent); }

/* =====================================================================
   ۷. پنجره‌ها و پیام‌ها
   ===================================================================== */
:root[data-style='jalil22'] .sheet, :root[data-style='jalil22'] .modal { background: linear-gradient(200deg, #1b372f, #0d1c17) !important; border: 1px solid rgb(174 216 203 / .14) !important; }
:root[data-style='jalil22'] .modal-bg { background: rgb(2 8 6 / .62) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); perspective: 1200px; }
:root[data-style='jalil22'] .modal-bg .modal { box-shadow: var(--elev-3) !important; border-color: rgb(243 220 170 / .22) !important; border-radius: 24px !important; }
:root[data-style='jalil22'] .toast { background: linear-gradient(200deg, #204137, #132620) !important; color: var(--text) !important; border: 1px solid rgb(243 220 170 / .25) !important; box-shadow: var(--elev-2) !important; }

/* =====================================================================
   ۸. حرکت: ورود سه‌بعدی پله‌ای، رشد ستون‌ها و لوله‌ها، جاافتادن عدد، باز شدن پنجره
   (یک بار و کوتاه؛ هیچ حرکت دائمی نیست؛ «کاهش حرکت» = بدون حرکت)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  :root[data-style='jalil22'] .section.active > :not(.sel-bar):not(:has(.sel-bar)) { animation: j22-in var(--j-slow) var(--j-ease) backwards; }
  :root[data-style='jalil22'] .section.active > :nth-child(2) { animation-delay: 70ms; }
  :root[data-style='jalil22'] .section.active > :nth-child(3) { animation-delay: 140ms; }
  :root[data-style='jalil22'] .section.active > :nth-child(4) { animation-delay: 200ms; }
  :root[data-style='jalil22'] .section.active > :nth-child(n+5) { animation-delay: 250ms; }
  :root[data-style='jalil22'] #dashboard.section.active > .hero { animation: j22-hero 900ms var(--j-ease) backwards; }
  :root[data-style='jalil22'] #dashboard.section.active > .hero > .split > div { animation: j22-pop 700ms var(--j-spring) backwards; }
  :root[data-style='jalil22'] #dashboard.section.active > .hero > .split > div:nth-child(1) { animation-delay: 380ms; }
  :root[data-style='jalil22'] #dashboard.section.active > .hero > .split > div:nth-child(2) { animation-delay: 460ms; }
  :root[data-style='jalil22'] #dashboard.section.active > .hero > .split > div:nth-child(3) { animation-delay: 540ms; }
  :root[data-style='jalil22'] .section.active :is(.progress, .goal-bar) > i { animation: j22-fill 1100ms var(--j-ease) 300ms backwards; }
  :root[data-style='jalil22'] .section.active .pace-bars i { animation: j22-grow 800ms var(--j-ease) backwards; }
  :root[data-style='jalil22'] .section.active .pace-bars > div:nth-child(2) i { animation-delay: 60ms; }
  :root[data-style='jalil22'] .section.active .pace-bars > div:nth-child(3) i { animation-delay: 120ms; }
  :root[data-style='jalil22'] .section.active .pace-bars > div:nth-child(4) i { animation-delay: 180ms; }
  :root[data-style='jalil22'] .section.active .pace-bars > div:nth-child(5) i { animation-delay: 240ms; }
  :root[data-style='jalil22'] .section.active .pace-bars > div:nth-child(n+6) i { animation-delay: 300ms; }
  :root[data-style='jalil22'] .modal-bg.show .modal { animation: j22-modal 420ms var(--j-ease) both; }
  :root[data-style='jalil22'] .j22-tick { animation: j22-tick 560ms var(--j-ease); }
}
@keyframes j22-in { from { opacity: 0; transform: perspective(1400px) translate3d(0, 28px, -90px) rotateX(8deg); } }
@keyframes j22-hero { 0% { opacity: 0; transform: perspective(1600px) translate3d(0, 40px, -160px) rotateX(14deg); } 60% { opacity: 1; } }
@keyframes j22-pop { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.94); } }
@keyframes j22-fill { from { transform: scaleX(0); } }
@keyframes j22-grow { from { transform: scaleY(0); } }
@keyframes j22-modal { from { opacity: 0; transform: translate3d(0, 24px, -120px) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes j22-tick { 0% { opacity: .3; transform: translateY(8px) translateZ(48px); filter: blur(4px); } 100% { opacity: 1; } }

/* =====================================================================
   ۹. اندازه‌های کوچک
   ===================================================================== */
@media (max-width: 820px) {
  :root[data-style='jalil22'] body::before { height: 50vh; background-size: 56px 56px; }
  :root[data-style='jalil22'] .hero { padding: 22px 18px 18px !important; }
  :root[data-style='jalil22'] .hero .h-exc { width: 84px; top: 10px; left: 12px; transform: perspective(700px) rotateY(-16deg) translateZ(30px); }
  :root[data-style='jalil22'] #dashboard .hero > .value { margin-top: 26px !important; }
  :root[data-style='jalil22'] .hero .h-exc::before { bottom: -12px; height: 20px; }
  :root[data-style='jalil22'] #dashboard .hero > .value { font-size: clamp(34px, 10vw, 46px) !important; }
  :root[data-style='jalil22'] .hero > .value { white-space: normal; }
  :root[data-style='jalil22'] .hero > .value .unit { white-space: nowrap; }
  :root[data-style='jalil22'] .hero .split > div { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(200deg, rgb(37 71 61 / .85), rgb(13 28 23 / .9)) !important; }
  :root[data-style='jalil22'] .hero .h-chart { height: 30% !important; overflow: hidden; }
  :root[data-style='jalil22'] .sidebar::after { display: none; }
}
@media print { :root[data-style='jalil22'] body::before, :root[data-style='jalil22'] body::after { display: none; } }

/* رسید و مدرک */
:root[data-style='jalil22'] .ph-chip { background: linear-gradient(180deg, rgb(98 214 160 / .18), rgb(98 214 160 / .06)); border-color: rgb(98 214 160 / .45); color: #c9f3de;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 6px 12px -8px #000; }
:root[data-style='jalil22'] tbody tr.has-doc td:first-child { box-shadow: inset -2px 0 0 rgb(98 214 160 / .55); }

/* نمونه‌ی رنگ در «ظاهر برنامه» */
:root .look-opt:has(input[value='jalil22']) .sw { background: linear-gradient(135deg, #060c0a, #162a24) !important; }
:root .look-opt:has(input[value='jalil22']) .sw i { background: linear-gradient(180deg, #fff3d8, #c9a15f 50%, #7d5c2c) !important; box-shadow: 0 0 8px rgb(79 214 232 / .5); }
:root .look-opt:has(input[value='jalil22']) .sw b { background: #1a362d !important; border: 1px solid rgb(243 220 170 / .4); }

/* =====================================================================
   ۱۰. «روند سود»: نمودار تعاملی با داده‌ی خود برنامه
   ===================================================================== */
:root[data-style='jalil22'] .j22-chart { margin-top: 20px; padding: 14px 16px 8px; border-radius: 18px; position: relative; z-index: 1;
  background: linear-gradient(180deg, rgb(5 11 9 / .5), rgb(5 11 9 / .2)); border: 1px solid rgb(174 216 203 / .08);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .55), inset 0 -1px 0 rgb(255 255 255 / .03); }
:root[data-style='jalil22'] .j22-ch-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
:root[data-style='jalil22'] .j22-ch-h > b { font-size: 14px; font-weight: 700; }
:root[data-style='jalil22'] .j22-ch-src { font-size: 11.5px; color: var(--text-dim); padding: 2px 8px; border-radius: 99px; border: 1px solid rgb(174 216 203 / .12); }
:root[data-style='jalil22'] .j22-ch-sum { font-size: 12.5px; color: var(--text-dim); }
:root[data-style='jalil22'] .j22-ch-sum b { color: var(--champ-hi); font-variant-numeric: tabular-nums; } :root[data-style='jalil22'] .j22-ch-sum b.neg { color: var(--red); }
:root[data-style='jalil22'] .j22-rng { display: inline-flex; gap: 2px; margin-inline-start: auto; padding: 3px; border-radius: 12px; background: rgb(5 11 9 / .55); box-shadow: inset 0 1px 2px rgb(0 0 0 / .6); }
:root[data-style='jalil22'] .j22-rng button { font: inherit; font-size: 12px; color: var(--text-dim); background: none; border: 0; border-radius: 9px; padding: 5px 11px; cursor: pointer; transition: color var(--j-fast) ease, background var(--j-fast) ease; }
:root[data-style='jalil22'] .j22-rng button:hover { color: var(--text); }
:root[data-style='jalil22'] .j22-rng button.on { color: var(--on-btn-gold); font-weight: 700; background: var(--btn-face-sel); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 3px rgb(0 0 0 / .45); }
:root[data-style='jalil22'] .j22-cust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 8px; font-size: 12.5px; color: var(--text-dim); }
:root[data-style='jalil22'] .j22-cust[hidden] { display: none; }
:root[data-style='jalil22'] .j22-cust input { width: 118px; padding: 6px 10px; border-radius: 10px; font: inherit; direction: ltr; text-align: center; }
:root[data-style='jalil22'] .j22-cust button { font: inherit; font-size: 12.5px; padding: 6px 14px; border-radius: 10px; border: 0; cursor: pointer; background: var(--btn-face-sel); color: var(--on-btn-gold); font-weight: 700; }
:root[data-style='jalil22'] .j22-plot { position: relative; height: 168px; outline: none; cursor: crosshair; touch-action: pan-y; }
:root[data-style='jalil22'] .j22-plot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
:root[data-style='jalil22'] .j22-svg { display: block; overflow: visible; direction: ltr; }
:root[data-style='jalil22'] .j22-svg .g { stroke: rgb(174 216 203 / .08); stroke-dasharray: 2 5; }
:root[data-style='jalil22'] .j22-svg .z { stroke: rgb(174 216 203 / .3); }
:root[data-style='jalil22'] .j22-svg .yl, :root[data-style='jalil22'] .j22-svg .xl { fill: var(--text-dim); font-family: inherit; font-size: 11px; }
:root[data-style='jalil22'] .j22-svg .yl { text-anchor: end; } :root[data-style='jalil22'] .j22-svg .xl:not([text-anchor]) { text-anchor: middle; }
:root[data-style='jalil22'] .j22-svg .a { fill: url(#j22-area); }
:root[data-style='jalil22'] .j22-svg .l { fill: none; stroke: var(--champ-hi); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px rgb(217 183 121 / .55)); }
:root[data-style='jalil22'] .j22-svg .d { fill: #0d1c17; stroke: var(--champ); stroke-width: 1.6; }
:root[data-style='jalil22'] .j22-svg .d.neg { stroke: var(--red); }
:root[data-style='jalil22'] .j22-svg .d.last { fill: #fff3d8; stroke: var(--champ); filter: drop-shadow(0 0 6px rgb(243 220 170 / .9)); }
:root[data-style='jalil22'] .j22-svg .cx { stroke: rgb(243 220 170 / .35); stroke-dasharray: 3 3; }
:root[data-style='jalil22'] .j22-svg .sel { fill: var(--champ-hi); stroke: #0d1c17; stroke-width: 2.5; filter: drop-shadow(0 0 8px rgb(243 220 170 / .9)); }
:root[data-style='jalil22'] .j22-svg .sel.neg { fill: var(--red); }
:root[data-style='jalil22'] .j22-tip { position: absolute; z-index: 4; pointer-events: none; display: grid; gap: 2px; min-width: 150px; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.7;
  background: linear-gradient(200deg, #224238, #132620); border: 1px solid rgb(243 220 170 / .3); box-shadow: 0 14px 28px -12px #000, inset 0 1px 0 rgb(255 255 255 / .08);
  transition: left 120ms ease, top 120ms ease; }
:root[data-style='jalil22'] .j22-tip[hidden] { display: none; }
:root[data-style='jalil22'] .j22-tip b { font-size: 12.5px; margin-bottom: 2px; }
:root[data-style='jalil22'] .j22-tip span { display: flex; justify-content: space-between; gap: 14px; color: var(--text-dim); }
:root[data-style='jalil22'] .j22-tip i { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
:root[data-style='jalil22'] .j22-tip .t-p i { color: var(--champ-hi); font-weight: 700; } :root[data-style='jalil22'] .j22-tip .t-p.neg i { color: var(--red); }
:root[data-style='jalil22'] .j22-tip .t-i i { color: var(--green); } :root[data-style='jalil22'] .j22-tip .t-c i { color: #ffb3bd; }
.j22-chart, .j22-grp { display: none; }
:root[data-style='jalil22'] .j22-chart { display: block; }

/* منو: عنوان گروه‌ها */
:root[data-style='jalil22'] .j22-grp { display: flex; align-items: center; gap: 8px; margin: 12px 12px 4px; font-size: 11px; font-weight: 600; color: rgb(148 166 161 / .75); }
:root[data-style='jalil22'] .j22-grp::after { content: ''; flex: 1; height: 1px; background: linear-gradient(270deg, rgb(174 216 203 / .14), transparent); }
@media (max-width: 820px) { :root[data-style='jalil22'] .j22-grp { display: none; } :root[data-style='jalil22'] .j22-plot { height: 140px; } :root[data-style='jalil22'] .j22-rng { margin-inline-start: 0; } }

/* گزارش‌ها: ستون‌های درآمد/هزینه با همان زبان فلزی */
:root[data-style='jalil22'] .b-track { background: linear-gradient(180deg, #060c0a, #132620) !important; box-shadow: inset 0 1px 3px rgb(0 0 0 / .8) !important; border-radius: 99px; }
:root[data-style='jalil22'] .b-track .b-inc, :root[data-style='jalil22'] .legend .b-inc { background: linear-gradient(180deg, #a9f0cb, #3fae78 60%, #23714b) !important; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); }
:root[data-style='jalil22'] .b-track .b-exp, :root[data-style='jalil22'] .legend .b-exp { background: linear-gradient(180deg, #ffc2ca, #e2475c 60%, #9c2a3a) !important; box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }

/* =====================================================================
   ۱۱. jalil22 روشن (گزینه‌ی jalil22-light ← data-style='jalil22' + data-tone='light')
   زمینه و پنل‌ها روشن و خوانا؛ منوی کناری، کارت سود و پیام‌ها «جزیره‌ی» سبز تیره‌ی همان پوسته می‌مانند.
   فقط بازنویسی رنگ‌ها؛ قانون‌های تیره‌ی بالا دست نخورده‌اند. !important فقط جایی که قانون تیره هم !important دارد.
   کنتراست متن‌ها روی سفید: متن ۱۶٫۵، کم‌رنگ ۷٫۷، سبز ۷٫۴، قرمز ۶٫۴، فیروزه‌ای ۷٫۳، طلایی متنی ۵٫۰ به ۱.
   ===================================================================== */
:root[data-style='jalil22'][data-tone='light'] {
  color-scheme: light;
  --obsidian: #F4F7F5;
  --champ: #A8834A; --champ-hi: #8A6A35; --champ-lo: #7A5B2A; --cyan: #0B5F6E;
  --page: #F4F7F5; --bg1: #F4F7F5; --bg2: #F4F7F5;
  --surface: #FFFFFF; --glass: #FFFFFF; --glass-strong: #F1F5F2; --field: #FFFFFF; --opt: #FFFFFF;
  --line: rgb(16 33 28 / .11); --glass-border: rgb(16 33 28 / .11);
  --text: #10211C; --text-dim: #435852; --tint: rgb(16 33 28 / .045);
  --accent: #10211C; --accent-2: #24423A; --on-accent: #FFFFFF;
  --gold: var(--btn-gold); --gold-2: var(--champ-lo); --on-gold: var(--on-btn-gold);
  --hero: #10211c; --hero-text: #f0f4f3; --hero-glass: rgb(16 33 28 / .045);
  --nav-bg: rgb(255 255 255 / .94);      /* نوار پایین گوشی (بی این، شفاف بود و برچسب‌ها روی کارت سود تیره گم می‌شدند) */
  --green: #125F3E; --red: #B42335; --warn: #8F5A00;
  --surf-1: linear-gradient(200deg, #FFFFFF 0%, #FCFDFC 50%, #F7FAF8 100%);
  --surf-2: linear-gradient(200deg, #FFFFFF 0%, #F3F7F4 100%);
  --rim: inset 0 1px 0 rgb(255 255 255 / .9);
  --cast-1: 0 1px 2px rgb(16 33 28 / .06), -8px 16px 30px -22px rgb(16 33 28 / .28);
  --cast-2: 0 2px 4px rgb(16 33 28 / .06), -12px 24px 44px -26px rgb(16 33 28 / .32);
  --cast-3: 0 3px 6px rgb(16 33 28 / .08), -24px 46px 80px -44px rgb(16 33 28 / .45);
  --elev-3: inset 0 1px 0 rgb(255 240 215 / .12), 0 0 0 1px rgb(197 164 109 / .25), var(--cast-3);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 0 rgb(150 117 67 / .45), 0 4px 10px -6px rgb(16 33 28 / .4);
  --d3-hi: rgb(255 255 255 / .8); --d3-sh: rgb(16 33 28 / .18); --d3-light: rgb(255 255 255 / .55);
  --art-dark: #10211C;
  scrollbar-color: rgb(16 33 28 / .22) transparent;
}
/* جزیره‌های سبز تیره: همان متغیرهای حالت تیره (منو، کارت سود، پیام، حالت تلویزیون که همیشه تیره است) */
:root[data-style='jalil22'][data-tone='light'] :is(.sidebar, .toast, #tv) {
  color-scheme: dark;
  --text: #f0f4f3; --text-dim: #C4D3CF; --line: rgb(162 198 187 / .10); --tint: rgb(174 216 203 / .05);   /* کم‌رنگ کمی روشن‌تر از حالت تیره تا روی برجستگی طلایی کارت سود هم ≥ ۴٫۵ بماند */
  --champ: #d9b779; --champ-hi: #f3dcaa; --champ-lo: #a8834a; --cyan: #4fd6e8;
  --green: #62d6a0; --red: #ff7d8d; --warn: #e9b864; --accent: #f0f4f3; --on-accent: #0b1713;
  --surface: var(--navy-1); --glass: var(--navy-1); --field: #091411;
  --rim: inset 0 1px 0 rgb(255 240 215 / .075), inset -1px 0 0 rgb(255 240 215 / .035);
  --cast-3: 0 3px 6px rgb(16 33 28 / .25), -24px 46px 80px -40px rgb(16 33 28 / .7);
  --elev-3: inset 0 1px 0 rgb(255 240 215 / .12), 0 0 0 1px rgb(217 183 121 / .14), var(--cast-3);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 0 rgb(150 117 67 / .55), 0 6px 14px -8px rgb(0 0 0 / .6);
  --d3-hi: rgb(255 255 255 / .07); --d3-sh: rgb(0 0 0 / .85); --d3-light: rgb(243 220 170 / .16);
  color: var(--text);
}
:root[data-style='jalil22'][data-tone='light'] ::-webkit-scrollbar-thumb { background: rgb(16 33 28 / .2); }
:root[data-style='jalil22'][data-tone='light'] ::selection { background: rgb(15 111 128 / .2); }

/* صحنه: نور سبز و طلایی ملایم، کف پرسپکتیو کم‌رنگ، بدون حاشیه‌ی تاریک */
:root[data-style='jalil22'][data-tone='light'] body {
  background:
    radial-gradient(70% 55% at 90% -12%, rgb(58 126 106 / .14), transparent 65%),
    radial-gradient(38% 28% at 72% 0%, rgb(197 164 109 / .14), transparent 70%),
    linear-gradient(180deg, #F7F9F7, #EEF3F0 60%) fixed !important;
}
:root[data-style='jalil22'][data-tone='light'] body::before { background-image: linear-gradient(rgb(16 33 28 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(16 33 28 / .055) 1px, transparent 1px); }
:root[data-style='jalil22'][data-tone='light'] body::after { background: radial-gradient(130% 95% at 55% 35%, transparent 60%, rgb(16 33 28 / .07) 100%); }

/* سطح‌ها */
:root[data-style='jalil22'][data-tone='light'] :is(.panel, .stat, .rl-card, .fx-cards > div, .acts button, .card, .d-truck) { border-color: rgb(16 33 28 / .09) !important; }
:root[data-style='jalil22'][data-tone='light'] :is(.panel h3 > .eic, .goal-ic, .ins > span:first-child, .today-grid .t-tile .t-ic) {
  background: linear-gradient(180deg, #EEF4F1, #E0EAE5) !important; color: var(--champ-lo) !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgb(16 33 28 / .14) !important;
}
:root[data-style='jalil22'][data-tone='light'] :is(.task, .act-item, .ins, .goal-x, .tk-oil, .tk-kpis > div, .total-bar, .pace-row) {
  background: linear-gradient(180deg, #F1F5F3, #F8FAF9) !important; border-color: rgb(16 33 28 / .08) !important;
  box-shadow: inset 0 1px 2px rgb(16 33 28 / .07) !important;
}
:root[data-style='jalil22'][data-tone='light'] .today-grid .t-tile {
  background: radial-gradient(110% 90% at 100% 0%, rgb(57 111 95 / .10), transparent 60%), var(--surf-2) !important; border-color: rgb(16 33 28 / .09) !important;
}
:root[data-style='jalil22'][data-tone='light'] .today-grid .t-tile b { background: linear-gradient(180deg, #10211C, #2F4A42); -webkit-background-clip: text; background-clip: text; filter: none; }
:root[data-style='jalil22'][data-tone='light'] :is(.t-art .art, .d-truck .art) { filter: drop-shadow(-4px 8px 6px rgb(16 33 28 / .22)) !important; }
@media (hover: hover) and (pointer: fine) {
  :root[data-style='jalil22'][data-tone='light'] #dashboard :is(.panel, .d-truck):hover { box-shadow: var(--rim), 0 2px 4px rgb(16 33 28 / .08), -12px 26px 44px -24px rgb(16 33 28 / .35) !important; }
}
:root[data-style='jalil22'][data-tone='light'] .d-truck .dt-art::after { background: radial-gradient(closest-side, rgb(16 33 28 / .25), transparent); }

/* کارت سود روی زمینه‌ی روشن: سایه‌ی سکو نرم‌تر؛ سه ماژول پایین که از لبه بیرون زده‌اند مات (شیشه‌ی نیمه‌شفاف روی زمینه‌ی روشن خاکستری می‌شد) */
:root[data-style='jalil22'][data-tone='light'] .hero .h-exc::before { box-shadow: 0 -1px 18px -6px rgb(217 183 121 / .45), 0 14px 20px -12px rgb(0 0 0 / .6); }
:root[data-style='jalil22'][data-tone='light'] .hero .split > div { background: linear-gradient(200deg, #1E3B32, #10211C) !important; box-shadow: inset 0 1px 0 rgb(255 240 215 / .1), 0 2px 3px rgb(16 33 28 / .25), -12px 22px 30px -18px rgb(16 33 28 / .55) !important; }

/* سربرگ و دکمه‌های ثانویه */
:root[data-style='jalil22'][data-tone='light'] .topbar h2 { background: linear-gradient(180deg, #10211C, #35554B); -webkit-background-clip: text; background-clip: text; }
:root[data-style='jalil22'][data-tone='light'] .topbar .right > * { background: linear-gradient(180deg, #FFFFFF, #F5F8F6) !important; border-color: rgb(16 33 28 / .12) !important; box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -8px rgb(16 33 28 / .4) !important; }
:root[data-style='jalil22'][data-tone='light'] :is(.btn-ghost, .stepper button, .month-bar button) {
  background: linear-gradient(180deg, #FFFFFF, #F4F7F5) !important; box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgb(16 33 28 / .12) !important;
}
:root[data-style='jalil22'][data-tone='light'] :is(.btn-ghost, .stepper button, .month-bar button):hover { border-color: rgb(15 111 128 / .45) !important; }
:root[data-style='jalil22'][data-tone='light'] :is(.tabs, .shift-pick, .tk-tabs) button.active {
  background: #FFFFFF !important; box-shadow: 0 1px 2px rgb(16 33 28 / .12), inset 0 -2px 0 var(--btn-gold-lo), 0 6px 12px -8px rgb(16 33 28 / .35) !important;   /* خط زیر: طلایی سایه (۴٫۳ به ۱ روی سفید) */
}
:root[data-style='jalil22'][data-tone='light'] .chip { background: rgb(16 33 28 / .06) !important; }

/* فرم‌ها */
:root[data-style='jalil22'][data-tone='light'] :is(input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea) {
  border-color: rgb(16 33 28 / .2) !important; box-shadow: inset 0 1px 2px rgb(16 33 28 / .08) !important;
}
:root[data-style='jalil22'][data-tone='light'] :is(input, select, textarea):focus { border-color: var(--cyan) !important; box-shadow: inset 0 1px 2px rgb(16 33 28 / .08), 0 0 0 3px rgb(15 111 128 / .18) !important; }
:root[data-style='jalil22'][data-tone='light'] ::placeholder { color: rgb(74 95 88 / .75); }
:root[data-style='jalil22'][data-tone='light'] :is(.checks label, .radio-pill) { background: #FFFFFF !important; }
:root[data-style='jalil22'][data-tone='light'] :is(.checks label, .radio-pill, .look-opt):has(input:checked) { border-color: var(--btn-gold-lo) !important; background: rgb(197 164 109 / .14) !important; box-shadow: 0 0 0 1px rgb(150 117 67 / .35) !important; }

/* جدول‌ها */
:root[data-style='jalil22'][data-tone='light'] thead th { background: #EEF3F0 !important; }
:root[data-style='jalil22'][data-tone='light'] tbody td { border-color: rgb(16 33 28 / .08) !important; }
:root[data-style='jalil22'][data-tone='light'] tbody tr:hover { background: rgb(15 111 128 / .05) !important; }

/* پیشرفت، هدف، ستون‌ها */
:root[data-style='jalil22'][data-tone='light'] :is(.progress, .goal-bar) { background: linear-gradient(180deg, #DDE6E1, #EDF2EF) !important; box-shadow: inset 0 1px 2px rgb(16 33 28 / .18) !important; }
:root[data-style='jalil22'][data-tone='light'] :is(.progress, .goal-bar) > i { box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 1px 3px rgb(16 33 28 / .3) !important; }
:root[data-style='jalil22'][data-tone='light'] .goal-p { background: linear-gradient(180deg, #A07A3E, #6E5124); -webkit-background-clip: text; background-clip: text; filter: none; }
:root[data-style='jalil22'][data-tone='light'] .pace-bars i { box-shadow: 0 6px 10px -8px rgb(16 33 28 / .5) !important; }
:root[data-style='jalil22'][data-tone='light'] .pace-bars i.cur { box-shadow: 0 0 14px -4px rgb(197 164 109 / .6), 0 6px 10px -8px rgb(16 33 28 / .5) !important; }
:root[data-style='jalil22'][data-tone='light'] .b-track { background: linear-gradient(180deg, #DDE6E1, #EDF2EF) !important; box-shadow: inset 0 1px 2px rgb(16 33 28 / .18) !important; }

/* پنجره‌ها */
:root[data-style='jalil22'][data-tone='light'] :is(.sheet, .modal) { background: linear-gradient(200deg, #FFFFFF, #F6F9F7) !important; border-color: rgb(16 33 28 / .12) !important; }
:root[data-style='jalil22'][data-tone='light'] .modal-bg { background: rgb(16 33 28 / .38) !important; }
:root[data-style='jalil22'][data-tone='light'] .modal-bg .modal { border-color: rgb(197 164 109 / .4) !important; }

/* رسید و مدرک */
:root[data-style='jalil22'][data-tone='light'] .ph-chip { color: var(--green); box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 6px -4px rgb(16 33 28 / .3); }

/* چاپ: مرورگر پس‌زمینه‌ها را چاپ نمی‌کند؛ متن‌های «گرادیان روی متن» ناپدید و متن روشن کارت سود روی کاغذ سفید کم‌رنگ می‌شد */
@media print {
  :root[data-style='jalil22'][data-tone] :is(.topbar h2, .hero > .value, .today-grid .t-tile b, .goal-p) { background: none !important; -webkit-text-fill-color: currentColor; color: #10211C !important; filter: none !important; }
  :root[data-style='jalil22'][data-tone] .hero > .value.neg { color: #B42335 !important; }
  :root[data-style='jalil22'][data-tone] .hero {
    --text: #10211C; --text-dim: #435852; --champ: #A8834A; --champ-hi: #8A6A35; --green: #125F3E; --red: #B42335; --cyan: #0B5F6E;
    background: #FFFFFF !important; border: 1px solid #D5DED9 !important; box-shadow: none !important; transform: none;
  }
  :root[data-style='jalil22'][data-tone] .hero::before, :root[data-style='jalil22'][data-tone] .hero::after { display: none; }
  :root[data-style='jalil22'][data-tone] .hero .split > div { background: #FFFFFF !important; border: 1px solid #D5DED9 !important; box-shadow: none !important; transform: none !important; }
  /* حالت تیره هم روی کاغذ با رنگ‌های روشن چاپ می‌شود (پس‌زمینه‌ها چاپ نمی‌شوند؛ متن روشن روی کاغذ سفید گم می‌شد) */
  :root[data-style='jalil22'][data-tone='dark'] {
    color-scheme: light; --text: #10211C; --text-dim: #435852; --champ: #A8834A; --champ-hi: #8A6A35; --champ-lo: #7A5B2A; --cyan: #0B5F6E;
    --green: #125F3E; --red: #B42335; --warn: #8F5A00; --surface: #FFFFFF; --glass: #FFFFFF; --field: #FFFFFF; --accent: #10211C;
    --line: rgb(16 33 28 / .11); --surf-1: #FFFFFF; --surf-2: #FFFFFF;
  }
  :root[data-style='jalil22'][data-tone='dark'] body { background: #FFFFFF !important; color: var(--text); }
}

/* نمونه‌ی رنگ در «ظاهر برنامه» */
:root .look-opt:has(input[value='jalil22-light']) .sw { background: linear-gradient(135deg, #FFFFFF, #E8EFEB) !important; }
:root .look-opt:has(input[value='jalil22-light']) .sw i { background: linear-gradient(180deg, #E5D1A4, #C5A46D 50%, #967543) !important; }
:root .look-opt:has(input[value='jalil22-light']) .sw b { background: #1a362d !important; border: 1px solid rgb(197 164 109 / .5); }

/* New JZ identity, limited to the jalil22 light and dark variants. */
:root[data-style='jalil22'] :is(.brand-icon.logo img, .top-logo) {
  content: url('img/jalil22-logo-jz.webp');
  object-fit: contain;
  border-radius: 24%;
  clip-path: inset(0 round 24%);
}
:root[data-style='jalil22'] #dashboard .hero .h-exc {
  transform: none;
}
:root[data-style='jalil22'] #dashboard .hero .h-exc::before {
  display: none;
}
:root[data-style='jalil22'] #dashboard .hero .h-exc .j22-real-exc {
  width: 100%; height: auto; object-fit: contain; border-radius: 12px;
}

/* ---------- کلید تغییر حالت روز و شب jalil22 (Stage 3) ---------- */
#j22-theme-toggle {
  display: none !important;
}
:root[data-style='jalil22'] #j22-theme-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--champ-hi);
  box-shadow: var(--rim), 0 2px 6px -2px rgb(0 0 0 / .3);
  transition: background var(--dur-fast, .2s), border-color var(--dur-fast, .2s), transform var(--dur-fast, .1s);
}
:root[data-style='jalil22'] #j22-theme-toggle:hover {
  border-color: var(--champ);
  transform: translateY(-1px);
}
:root[data-style='jalil22'] #j22-theme-toggle:active {
  transform: scale(0.96);
}
:root[data-style='jalil22'][data-tone='light'] #j22-theme-toggle {
  background: linear-gradient(180deg, #FFFFFF, #F5F8F6) !important;
  border-color: rgb(16 33 28 / .15) !important;
  color: #10211C !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -8px rgb(16 33 28 / .4) !important;
}
@media (max-width: 600px) {
  :root[data-style='jalil22'] #j22-theme-toggle .j22-t-lbl {
    display: none;
  }
}

/* جلوه‌های آرام‌تر؛ طلایی فقط برای اقدام‌ها و نمودارهای مهم */
:root[data-style='jalil22'] {
  --surf-1: linear-gradient(180deg, #1b342c, #142820);
  --surf-2: linear-gradient(180deg, #203a31, #172d25);
  --rim: inset 0 1px 0 rgb(255 255 255 / .045);
  --cast-1: 0 5px 16px -12px rgb(0 0 0 / .72);
  --cast-2: 0 8px 20px -14px rgb(0 0 0 / .76);
  --cast-3: 0 10px 24px -16px rgb(0 0 0 / .78);
  --elev-1: var(--rim), var(--cast-1);
  --elev-2: var(--rim), var(--cast-2);
  --elev-3: var(--rim), var(--cast-3);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 5px -3px rgb(0 0 0 / .42);
}

:root[data-style='jalil22'] body {
  background:
    radial-gradient(55% 42% at 90% -12%, rgb(58 126 106 / .32), transparent 68%),
    linear-gradient(180deg, #09110f, #050b09 60%) fixed !important;
}
:root[data-style='jalil22'] body::before { opacity: .38; }
:root[data-style='jalil22'] body::after {
  background: radial-gradient(130% 95% at 55% 35%, transparent 58%, rgb(0 0 0 / .28) 100%);
}
:root[data-style='jalil22'] :is(.panel, .stat, .rl-card, .fx-cards > div, .acts button, .card, .d-truck) {
  background: var(--surf-1) !important;
  box-shadow: var(--elev-1) !important;
}

:root[data-style='jalil22'] .hero {
  background:
    radial-gradient(55% 75% at 100% 0%, rgb(217 183 121 / .07), transparent 60%),
    linear-gradient(180deg, #1a342b, #10231d) padding-box,
    linear-gradient(180deg, rgb(174 216 203 / .22), rgb(174 216 203 / .08)) border-box !important;
  box-shadow: var(--elev-3) !important;
  transform: none !important;
}
:root[data-style='jalil22'] .hero::before {
  background: linear-gradient(90deg, transparent, rgb(243 220 170 / .32) 55%, transparent);
}
:root[data-style='jalil22'] .hero::after {
  background: radial-gradient(70% 35% at 50% 110%, rgb(0 0 0 / .18), transparent 70%);
}
:root[data-style='jalil22'] .hero .h-lbl .eic {
  background: rgb(174 216 203 / .08);
  color: var(--champ-hi);
  box-shadow: none;
}
:root[data-style='jalil22'] .hero > .value {
  background: none;
  -webkit-text-fill-color: var(--champ-hi);
  color: var(--champ-hi) !important;
  filter: none;
  transform: none;
}
:root[data-style='jalil22'] .hero > .value.neg {
  background: none;
  -webkit-text-fill-color: var(--red);
  color: var(--red) !important;
}
:root[data-style='jalil22'] #dashboard .hero > .value {
  font-size: clamp(40px, 4.2vw, 68px) !important;
}
:root[data-style='jalil22'] .hero .trend {
  box-shadow: none;
}
:root[data-style='jalil22'] .hero .split > div {
  background: linear-gradient(180deg, rgb(37 71 61 / .54), rgb(19 40 32 / .66)) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--elev-1) !important;
}
:root[data-style='jalil22'] .hero .split > div::before {
  box-shadow: none;
}
:root[data-style='jalil22'] .hero .h-exc .art,
:root[data-style='jalil22'] .hero .h-exc .art3d {
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / .3)) !important;
}
:root[data-style='jalil22'] .hero .h-exc::before {
  border-top-color: rgb(217 183 121 / .22);
  box-shadow: 0 10px 16px -12px rgb(0 0 0 / .65);
}
:root[data-style='jalil22'] .j22-chart {
  margin-top: 14px;
  background: rgb(5 11 9 / .28);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .32);
}
:root[data-style='jalil22'] .j22-plot { height: 148px; }
:root[data-style='jalil22'] .j22-svg .l { filter: none; }
:root[data-style='jalil22'] .j22-svg .d.last,
:root[data-style='jalil22'] .j22-svg .sel { filter: none; }
:root[data-style='jalil22'] .goal-p {
  background: none;
  -webkit-text-fill-color: var(--champ-hi);
  color: var(--champ-hi) !important;
  filter: none;
}
:root[data-style='jalil22'] .sidebar {
  box-shadow: 0 10px 24px -16px rgb(0 0 0 / .7) !important;
}

@media (min-width: 821px) {
  :root[data-style='jalil22'] #dashboard > .hero {
    min-height: 300px;
    padding: 30px 34px 0 !important;
    margin-bottom: 40px;
  }
  :root[data-style='jalil22'] #dashboard > .hero > .split {
    margin: 12px 0 -32px !important;
  }
  :root[data-style='jalil22'] #dashboard > .hero > .split > div {
    transform: none;
  }
  @media (hover: hover) and (pointer: fine) {
    :root[data-style='jalil22'] #dashboard > .hero > .split > div:hover {
      transform: translateY(-3px);
      box-shadow: var(--elev-2) !important;
    }
  }
  :root[data-style='jalil22'] .j22-plot { height: 132px; }
}

:root[data-style='jalil22'][data-tone='light'] #tv {
  --rim: inset 0 1px 0 rgb(255 255 255 / .045);
  --cast-1: 0 5px 16px -12px rgb(16 33 28 / .3);
  --cast-2: 0 8px 20px -14px rgb(16 33 28 / .36);
  --cast-3: 0 10px 24px -16px rgb(16 33 28 / .4);
  --elev-1: var(--rim), var(--cast-1);
  --elev-2: var(--rim), var(--cast-2);
  --elev-3: var(--rim), var(--cast-3);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 5px -3px rgb(16 33 28 / .3);
  box-shadow: var(--elev-3) !important;
}
:root[data-style='jalil22'][data-tone='light'] .hero > .value {
  -webkit-text-fill-color: #E5D1A4;
  color: #E5D1A4 !important;
}
:root[data-style='jalil22'][data-tone='light'] .goal-p {
  background: linear-gradient(180deg, #A07A3E, #6E5124);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}
:root[data-style='jalil22'][data-tone='light'] .hero > .value.neg {
  -webkit-text-fill-color: #FF7D8D;
  color: #FF7D8D !important;
}
:root[data-style='jalil22'][data-tone='light'] .hero .split > div {
  box-shadow: var(--elev-1) !important;
}
@media (max-width: 820px) {
  :root[data-style='jalil22'] .j22-plot { height: 132px; }
}

:root[data-style='jalil22'] .sel-add-btn {
  background: var(--navy-1);
  border-color: var(--glass-border);
  color: var(--champ-hi);
}
:root[data-style='jalil22'] .sel-add-btn:hover {
  background: rgb(217 183 121 / .14);
  border-color: var(--champ) !important;
  box-shadow: 0 4px 16px rgb(217 183 121 / .2);
}

/* ---------- خوانایی حالت تیره: متن کم‌رنگ روی کارت‌های روشن‌تر ≥ ۴٫۵ به ۱؛ عدد روی نشان قرمز تیره ---------- */
:root[data-style='jalil22'][data-tone='dark'] { --text-dim: #B2C1BC; }
:root[data-style='jalil22'][data-tone='dark'] i.dot { color: #2B0710; }

/* ---------- صفحه‌ی قفل و ورود با هویت jalil22: نور سبز و طلایی، کلیدهای شیشه‌ای با لبه‌ی شامپاینی ---------- */
:root[data-style='jalil22'] #lock-screen,
:root[data-style='jalil22'] #share-gate {
  background: radial-gradient(60% 45% at 50% 0%, rgb(58 126 106 / .45), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgb(197 164 109 / .12), transparent 70%), linear-gradient(180deg, #0b1713, #050b09) !important;
}
:root[data-style='jalil22'] .lock-box .lock-logo, :root[data-style='jalil22'] #share-gate .gate-logo {
  border-radius: 50%; box-shadow: 0 0 0 1px rgb(197 164 109 / .5), 0 0 34px -6px rgb(197 164 109 / .45), 0 14px 26px -12px #000;
}
:root[data-style='jalil22'] .lock-t { color: var(--champ-hi); font-weight: 700; letter-spacing: .2px; }
:root[data-style='jalil22'] .lock-dots i { border-color: rgb(197 164 109 / .55); }
:root[data-style='jalil22'] .lock-dots i.on { background: var(--btn-gold); border-color: var(--btn-gold); box-shadow: 0 0 10px -2px rgb(197 164 109 / .7); }
:root[data-style='jalil22'] .lock-keys button {
  background: linear-gradient(180deg, rgb(37 71 61 / .55), rgb(13 28 23 / .7)); border-color: rgb(197 164 109 / .22);
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .08), 0 8px 16px -10px #000; color: var(--text);
}
:root[data-style='jalil22'] .lock-keys button:active { background: linear-gradient(180deg, #CFB27E, #C5A46D); color: var(--on-btn-gold); }
/* حالت روشن: زمینه‌ی روشن با همان نور سبز و طلایی */
:root[data-style='jalil22'][data-tone='light'] #lock-screen,
:root[data-style='jalil22'][data-tone='light'] #share-gate {
  background: radial-gradient(60% 45% at 50% 0%, rgb(58 126 106 / .16), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgb(197 164 109 / .16), transparent 70%), linear-gradient(180deg, #F7F9F7, #EEF3F0) !important;
}
:root[data-style='jalil22'][data-tone='light'] .lock-keys button { background: linear-gradient(180deg, #FFFFFF, #F3F7F4); border-color: rgb(150 117 67 / .3); box-shadow: 0 2px 6px -3px rgb(16 33 28 / .3); }
:root[data-style='jalil22'][data-tone='light'] .lock-t { color: var(--champ-lo); }

/* ---------- نمودار گزارش‌ها با زبان «روند سود»: چاهک تیره، ستون‌های با عمق، روز انتخاب‌شده طلایی ---------- */
:root[data-style='jalil22'] .ch-scroll {
  background: linear-gradient(180deg, rgb(5 11 9 / .5), rgb(5 11 9 / .2)); border: 1px solid rgb(174 216 203 / .08);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .55); padding: 8px 4px 2px;
}
:root[data-style='jalil22'] .ch-inc { fill: #3fae78; filter: drop-shadow(0 0 4px rgb(98 214 160 / .35)); }
:root[data-style='jalil22'] .ch-exp { fill: #e2475c; opacity: .92; filter: drop-shadow(0 0 4px rgb(255 125 141 / .3)); }
:root[data-style='jalil22'] .ch-axis { stroke: rgb(197 164 109 / .35); }
:root[data-style='jalil22'] .ch-slot:hover .ch-hit { fill: rgb(174 216 203 / .06); }
:root[data-style='jalil22'] .ch-slot.pick .ch-hit { fill: rgb(197 164 109 / .14); }
:root[data-style='jalil22'] :is(.ch-slot.today, .ch-slot.pick) .ch-lbl { fill: var(--champ-hi); }
:root[data-style='jalil22'] .ch-nums div {
  background: linear-gradient(200deg, rgb(37 71 61 / .5), rgb(13 28 23 / .6)); border: 1px solid rgb(174 216 203 / .1);
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .06); position: relative;
}
:root[data-style='jalil22'] .ch-nums b { font-variant-numeric: tabular-nums; }
:root[data-style='jalil22'] .ch-zoom button { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)); border-color: rgb(174 216 203 / .14); }
:root[data-style='jalil22'][data-tone='light'] .ch-scroll { background: linear-gradient(180deg, #F1F5F3, #FAFCFB); border-color: rgb(16 33 28 / .08); box-shadow: inset 0 1px 2px rgb(16 33 28 / .08); }
:root[data-style='jalil22'][data-tone='light'] .ch-inc { fill: #1F8A5B; filter: none; }
:root[data-style='jalil22'][data-tone='light'] .ch-exp { fill: #C23A4C; filter: none; }
:root[data-style='jalil22'][data-tone='light'] .ch-nums div { background: linear-gradient(180deg, #FFFFFF, #F4F7F5); border-color: rgb(16 33 28 / .09); box-shadow: 0 1px 2px rgb(16 33 28 / .06); }
:root[data-style='jalil22'][data-tone='light'] .ch-zoom button { background: #FFFFFF; border-color: rgb(16 33 28 / .14); }

/* Day dashboard: sage surfaces, readable forest text and restrained brass accents. */
@media screen {
  :root[data-style='jalil22'][data-tone='light'] .hero {
    color-scheme: light;
    --text: #183c30; --text-dim: #496258;
    --champ: #8c692e; --champ-hi: #795923; --champ-lo: #6e5124;
    --green: #125f3e; --red: #b42335; --cyan: #0b5f6e;
    --line: #cddbd3; --tint: rgb(24 60 48 / .05);
    --surface: #ffffff; --glass: #ffffff; --field: #ffffff;
    --accent: #183c30; --on-accent: #ffffff;
    --hero-text: #183c30;
    --rim: inset 0 1px 0 #ffffff;
    --cast-1: 0 4px 14px -10px rgb(24 60 48 / .22);
    --cast-2: 0 8px 22px -14px rgb(24 60 48 / .25);
    --cast-3: 0 12px 30px -20px rgb(24 60 48 / .28);
    background: linear-gradient(120deg, #f9fbf8, #e7efe7) !important;
    border-color: #cddbd3 !important;
    color: var(--text);
  }
  :root[data-style='jalil22'][data-tone='light'] .hero::after { display: none; }
  :root[data-style='jalil22'][data-tone='light'] .hero > .value {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text);
  }
  :root[data-style='jalil22'][data-tone='light'] .hero > .value.neg {
    color: var(--red) !important;
    -webkit-text-fill-color: var(--red);
  }
  :root[data-style='jalil22'][data-tone='light'] .hero .h-lbl .eic {
    background: #dce7dd; color: #42634d;
  }
  :root[data-style='jalil22'][data-tone='light'] .hero .trend {
    background: #ffffff !important; border-color: var(--line);
  }
  :root[data-style='jalil22'][data-tone='light'] .hero .split > div {
    background: #ffffff !important; border-color: #d3dfd6 !important;
  }
  :root[data-style='jalil22'][data-tone='light'] .j22-chart {
    background: #fbfcfa; border-color: #d3dfd6;
    box-shadow: inset 0 1px 0 #ffffff;
  }
  :root[data-style='jalil22'][data-tone='light'] .j22-rng {
    background: #e8eee8; box-shadow: none;
  }
  :root[data-style='jalil22'][data-tone='light'] .j22-ch-src { border-color: #cddbd3; }
  :root[data-style='jalil22'][data-tone='light'] .j22-svg .g { stroke: #dce5de; }
  :root[data-style='jalil22'][data-tone='light'] .j22-svg .z { stroke: #a1b7a8; }
  :root[data-style='jalil22'][data-tone='light'] .j22-svg .cx { stroke: #8c692e; }
  :root[data-style='jalil22'][data-tone='light'] .j22-svg .d { fill: #ffffff; }
  :root[data-style='jalil22'][data-tone='light'] .j22-tip {
    background: #ffffff; border-color: #cddbd3;
    box-shadow: 0 6px 20px rgb(24 60 48 / .14);
  }
  :root[data-style='jalil22'][data-tone='light'] .j22-tip .t-c i { color: var(--red); }
  :root[data-style='jalil22'][data-tone='light'] .j22-rng button:focus-visible {
    outline: 2px solid var(--cyan); outline-offset: 2px;
  }
  @media (min-width: 821px) {
    :root[data-style='jalil22'][data-tone='light'] #dashboard > .hero {
      grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
      min-height: 0;
      padding: 24px !important; margin-bottom: 24px;
    }
    :root[data-style='jalil22'][data-tone='light'] #dashboard > .hero > .h-exc {
      width: min(220px, 100%); margin: 0; align-self: center;
    }
    :root[data-style='jalil22'][data-tone='light'] #dashboard .hero > .value {
      font-size: clamp(36px, 3.6vw, 56px) !important;
      margin: 10px 0 4px !important;
    }
    :root[data-style='jalil22'][data-tone='light'] #dashboard > .hero > .split {
      margin: 16px 0 0 !important;
    }
  }
  @media (max-width: 540px) {
    :root[data-style='jalil22'][data-tone='light'] .j22-rng { flex-wrap: wrap; }
    :root[data-style='jalil22'][data-tone='light'] .j22-chart { padding-inline: 10px; }
  }
}

/* جابه‌جایی نرم روز و شب (کلاس j22-fade فقط ۰٫۴۵ ثانیه پس از زدن ☀️/🌙؛ theme-jalil22.js) */
html.j22-fade, html.j22-fade *, html.j22-fade *::before, html.j22-fade *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease, box-shadow .4s ease !important;
}

/* آشنایی اول کار (ux.js tour): کاشی سبز تیره با لبه‌ی طلایی و لوگوی JZ */
:root[data-style='jalil22'] #tour { background: radial-gradient(120% 90% at 80% 0%, rgb(26 70 52 / .55), rgb(2 8 6 / .82) 60%); backdrop-filter: blur(10px); }
:root[data-style='jalil22'] .tour-card {
  background: var(--surf-2); color: var(--text); border: 1px solid rgb(217 183 121 / .28);
  box-shadow: inset 0 1px 0 rgb(255 240 215 / .12), 0 0 0 1px rgb(0 0 0 / .4), 0 40px 90px -30px rgb(0 0 0 / .95);
}
:root[data-style='jalil22'] .tour-card h3 { color: var(--champ-hi, #e5d1a4); letter-spacing: -.2px; }
:root[data-style='jalil22'] .tour-card p { color: var(--text-dim); }
:root[data-style='jalil22'] .tour-art { background: radial-gradient(circle at 70% 25%, rgb(217 183 121 / .22), rgb(217 183 121 / .05) 70%); color: var(--champ, #d9b779); border: 1px solid rgb(217 183 121 / .25); }
:root[data-style='jalil22'] .tour-art.logo { border: 0; background: none; }
:root[data-style='jalil22'] .tour-logo { content: url('img/jalil22-logo-jz.webp'); border-radius: 24%; clip-path: inset(0 round 24%); }
:root[data-style='jalil22'] .tour-dots i { background: rgb(162 198 187 / .18); }
:root[data-style='jalil22'] .tour-dots i.on { background: linear-gradient(90deg, #e5d1a4, #c5a46d); }
:root[data-style='jalil22'] #tour-next { background: var(--btn-face, linear-gradient(180deg, #e5d1a4, #c5a46d)); color: var(--on-gold, #1a1307); box-shadow: var(--btn-shadow); }
:root[data-style='jalil22'] .tour-art .ic { color: var(--champ-hi); filter: drop-shadow(0 4px 10px rgb(217 183 121 / .25)); }
