/* لمسات هوية التجمع على لوحة Filament */
.fi-sidebar { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)) !important; border-inline-start: 4px solid; border-image: linear-gradient(180deg, var(--accent-500), var(--leaf-500)) 1; }
.fi-sidebar .fi-sidebar-header { background: transparent !important; box-shadow: none !important; border-color: rgb(255 255 255 / .08) !important; }
.fi-sidebar, .fi-sidebar .fi-sidebar-item-label, .fi-sidebar .fi-sidebar-group-label, .fi-sidebar .fi-logo { color: #e6edf3 !important; }
.fi-sidebar .fi-sidebar-item-icon, .fi-sidebar .fi-sidebar-group-icon { color: #9fb3c6 !important; }
.fi-sidebar .fi-sidebar-item-button:hover { background: rgb(255 255 255 / .07) !important; }
.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-button { background: rgb(255 255 255 / .12) !important; box-shadow: inset -3px 0 0 var(--leaf-500); }
.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-label, .fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-icon { color: #fff !important; }
.fi-sidebar .fi-sidebar-group-collapse-button { color: #9fb3c6 !important; }
.fi-sidebar nav { scrollbar-color: rgb(255 255 255 / .2) transparent; }
.fi-body { background: var(--sand, #EAE0D5); }
.dark .fi-body { background: #0b141d; }
.psa-hero { background: radial-gradient(90% 120% at 0% 100%, color-mix(in oklab, var(--leaf-600) 55%, transparent), transparent 60%), linear-gradient(135deg, var(--brand-500), var(--accent-700)); color: #fff; border-radius: 1rem; padding: 1.5rem; position: relative; overflow: hidden; }
.psa-bar { height: .55rem; border-radius: 9999px; background: rgb(0 0 0 / .07); overflow: hidden; }
.dark .psa-bar { background: rgb(255 255 255 / .08); }
.psa-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-400), var(--accent-600)); }
.psa-preview { border-radius: 1rem; overflow: hidden; border: 1px solid rgb(0 0 0 / .08); background: var(--sand, #EAE0D5); }
.psa-pdf { width: 100%; height: 75vh; border: 0; border-radius: .75rem; background: #fff; }

/* ── صفحة الإحصائيات ── (لون السلسلة الأولى/الثانية مُتحقق منه للوضعين) */
:root { --s1: #2a6aa3; --s2: #c2703d; }
.dark { --s1: #4a8bc8; --s2: #d47a40; }
.psa-muted { color: rgb(100 116 139); font-size: .8rem; }
.psa-link { color: var(--s1); font-weight: 700; font-size: .85rem; }
.psa-tabs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.psa-tab { padding: .6rem 1.1rem; border-radius: .8rem; font-weight: 700; font-size: .9rem; background: #fff; border: 1px solid rgb(0 0 0 / .08); }
.dark .psa-tab { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.psa-tab.is-on { background: var(--brand-500); color: #fff; border-color: transparent; }
.psa-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.psa-chip { padding: .35rem .8rem; border-radius: 9999px; font-size: .8rem; font-weight: 700; border: 1px solid rgb(0 0 0 / .1); }
.dark .psa-chip { border-color: rgb(255 255 255 / .15); }
.psa-chip.is-on { background: var(--accent-500); color: #fff; border-color: transparent; }
.psa-select { border-radius: .6rem; border: 1px solid rgb(0 0 0 / .15); padding: .4rem 2rem .4rem .8rem; font-size: .9rem; background-color: #fff; }
.dark .psa-select { background-color: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .15); color: #fff; }
.psa-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.psa-tile { background: #fff; border-radius: .9rem; padding: 1.1rem 1.2rem; border: 1px solid rgb(0 0 0 / .06); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.dark .psa-tile { background: rgb(24 24 27); border-color: rgb(255 255 255 / .08); }
.psa-tile-ic { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: color-mix(in oklab, var(--leaf-500) 14%, transparent); color: var(--leaf-700); }
.psa-tile-label { margin-top: .6rem; font-size: .82rem; color: rgb(100 116 139); }
.psa-tile-value { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.psa-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.psa-grid-2 > *, .psa-grid-map > *, .psa-kpis > * { min-width: 0; }
@media (min-width: 1024px) { .psa-span-2 { grid-column: span 2; } }
.psa-bars { display: grid; gap: .8rem; }
.psa-bars-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-bottom: .3rem; }
.psa-bars-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psa-bars-head b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.psa-track { height: .6rem; border-radius: 9999px; background: rgb(0 0 0 / .05); overflow: hidden; }
.dark .psa-track { background: rgb(255 255 255 / .07); }
.psa-track > span { display: block; height: 100%; border-radius: 4px; background: var(--s1); }
.psa-chart-legend { display: flex; gap: 1.2rem; align-items: center; font-size: .82rem; margin-bottom: .6rem; flex-wrap: wrap; }
.psa-chart-legend .psa-link { margin-inline-start: auto; }
.psa-key { display: inline-block; width: .8rem; height: .2rem; border-radius: 2px; margin-inline-end: .35rem; vertical-align: middle; }
.psa-key-1 { background: var(--s1); } .psa-key-2 { background: var(--s2); }
.psa-grid { stroke: rgb(0 0 0 / .07); stroke-width: 1; }
.dark .psa-grid { stroke: rgb(255 255 255 / .08); }
.psa-axis { font-size: 11px; fill: rgb(100 116 139); }
.psa-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.psa-line-1 { stroke: var(--s1); } .psa-line-2 { stroke: var(--s2); }
.psa-cross { stroke: rgb(100 116 139 / .5); stroke-dasharray: 3 3; }
.psa-dot { stroke: #fff; stroke-width: 2; } .dark .psa-dot { stroke: rgb(24 24 27); }
.psa-dot-1 { fill: var(--s1); } .psa-dot-2 { fill: var(--s2); }
.psa-tip { position: absolute; width: 10rem; background: #fff; border: 1px solid rgb(0 0 0 / .1); border-radius: .6rem; padding: .5rem .7rem; font-size: .78rem; box-shadow: 0 8px 24px rgb(0 0 0 / .12); pointer-events: none; }
.dark .psa-tip { background: rgb(39 39 42); border-color: rgb(255 255 255 / .1); }
.psa-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.psa-table th { text-align: start; font-weight: 700; color: rgb(100 116 139); padding: .5rem; border-bottom: 1px solid rgb(0 0 0 / .08); }
.psa-table td { padding: .55rem .5rem; border-bottom: 1px solid rgb(0 0 0 / .05); font-variant-numeric: tabular-nums; }
.dark .psa-table th, .dark .psa-table td { border-color: rgb(255 255 255 / .07); }
.psa-type-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.psa-type { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: .8rem; background: rgb(0 0 0 / .025); }
.dark .psa-type { background: rgb(255 255 255 / .04); }
.psa-type b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.psa-type p { font-size: .85rem; font-weight: 600; }
.psa-type-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; flex-shrink: 0; background: color-mix(in oklab, var(--s1) 14%, transparent); color: var(--s1); }
.psa-staff { display: grid; gap: .5rem; }
.psa-staff li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .7rem; border-radius: .6rem; background: rgb(0 0 0 / .025); font-size: .88rem; }
.dark .psa-staff li { background: rgb(255 255 255 / .04); }
.psa-badge { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 9999px; white-space: nowrap; }
.psa-ok { background: rgb(22 163 74 / .12); color: rgb(21 128 61); }
.psa-none { background: rgb(100 116 139 / .14); color: rgb(71 85 105); }
.psa-miss { background: rgb(217 119 6 / .14); color: rgb(180 83 9); }
.dark .psa-ok { color: rgb(134 239 172); } .dark .psa-none { color: rgb(203 213 225); } .dark .psa-miss { color: rgb(252 211 77); }

/* حجم أكبر لنصوص لوحة التحكم */
html { font-size: 106.25%; }

/* هوية الورق: بطاقات بلون الورق الفاتح على خلفية كريمية */
.fi-section, .fi-ta-ctn, .psa-tile { background-color: var(--paper) !important; }
.dark .fi-section, .dark .fi-ta-ctn, .dark .psa-tile { background-color: #1f1b17 !important; }

/* ═══════════ مركز الإحصائيات (ثلاثي الأبعاد) ═══════════ */
/* ألوان السلاسل مُتحقق منها (وضوح + عمى الألوان) للوضعين: s1 طيني، s2 أزرق */
:root { --s1: #b05c2e; --s2: #2a6aa3; --psa-bar: #b05c2e; --psa-card: var(--paper, #f6f1eb); --psa-line: color-mix(in oklab, var(--beige, #d4c4b0) 80%, transparent); }
.dark { --s1: #cf7442; --s2: #4a8bc8; --psa-bar: #cf7442; --psa-card: #1f1b17; --psa-line: rgb(255 255 255 / .08); }
.psa-dash { display: grid; gap: 1.5rem; }
[data-tips] { position: relative; }
.psa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ظهور متتابع بعمق */
.psa-anim { opacity: 0; transform: perspective(1000px) translateY(26px) rotateX(10deg); transform-origin: 50% 100%; }
.psa-anim.is-in { opacity: 1; transform: none; transition: opacity .8s ease var(--d, 0ms), transform 1s cubic-bezier(.16,.84,.24,1) var(--d, 0ms); }

/* الترويسة */
.psa-stage { position: relative; overflow: hidden; border-radius: 1.75rem; padding: 2rem; color: #fff; isolation: isolate;
    background: linear-gradient(135deg, var(--brand-500, #1a1a1a) 0%, color-mix(in oklab, var(--leaf-700, #745739) 70%, #000) 60%, var(--accent-700, #7b4020) 120%);
    box-shadow: 0 30px 60px -30px rgb(40 25 10 / .7), inset 0 1px 0 rgb(255 255 255 / .12); }
.psa-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.psa-aurora i { position: absolute; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(60px); opacity: .55; animation: psa-float 14s ease-in-out infinite alternate; }
.psa-aurora i:nth-child(1) { background: var(--accent-500, #b05c2e); top: -10rem; left: -6rem; }
.psa-aurora i:nth-child(2) { background: var(--leaf-500, #a67c52); bottom: -14rem; left: 35%; animation-duration: 18s; animation-delay: -6s; }
.psa-aurora i:nth-child(3) { background: #2a6aa3; top: -8rem; right: -8rem; opacity: .3; animation-duration: 22s; animation-delay: -10s; }
.psa-aurora::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
    background-size: 42px 42px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); animation: psa-grid 40s linear infinite; }
@keyframes psa-float { 0% { transform: translate(0, 0) scale(1) } 50% { transform: translate(60px, 30px) scale(1.15) } 100% { transform: translate(-40px, 50px) scale(.9) } }
@keyframes psa-grid { to { background-position: 42px 42px, 42px 42px } }
.psa-stage-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.psa-stage-kicker { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgb(255 255 255 / .7); }
.psa-live { width: .55rem; height: .55rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgb(74 222 128 / .7); animation: psa-live 2s infinite; }
@keyframes psa-live { 70% { box-shadow: 0 0 0 10px rgb(74 222 128 / 0) } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0) } }
.psa-stage-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.3; margin-top: .35rem;
    background: linear-gradient(120deg, #fff 30%, #f3d3bc 70%, #e8b48f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psa-stage-sub { color: rgb(255 255 255 / .75); max-width: 34rem; margin-top: .35rem; }
.psa-tabs3d { display: flex; flex-wrap: wrap; gap: .6rem; perspective: 600px; }
.psa-tabs3d button { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.15rem; border-radius: 1rem; font-weight: 800; font-size: .92rem; color: #fff;
    background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(10px);
    box-shadow: 0 6px 0 rgb(0 0 0 / .25); transform: translateY(-3px); transition: transform .25s, box-shadow .25s, background .25s; }
.psa-tabs3d button:hover { transform: translateY(-5px) rotateX(8deg); box-shadow: 0 9px 0 rgb(0 0 0 / .25); }
.psa-tabs3d button.is-on { background: linear-gradient(180deg, var(--accent-400, #c98a63), var(--accent-600, #964e27)); border-color: transparent; transform: translateY(1px); box-shadow: 0 2px 0 rgb(0 0 0 / .3), 0 0 30px color-mix(in oklab, var(--accent-500, #b05c2e) 60%, transparent); }
.psa-loading { position: absolute; top: 1rem; left: 1rem; align-items: center; gap: .5rem; font-size: .8rem; background: rgb(0 0 0 / .35); padding: .35rem .75rem; border-radius: 9999px; }
.psa-loading span { width: .9rem; height: .9rem; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* بطاقات المؤشرات */
.psa-kpis { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.psa-kpi { --tc: var(--accent-500, #b05c2e); position: relative; overflow: hidden; border-radius: 1.35rem; padding: 1.3rem 1.35rem 1rem; background: var(--psa-card);
    border: 1px solid var(--psa-line); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.16,.84,.24,1), box-shadow .35s;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 2px 0 var(--psa-line), 0 24px 44px -26px rgb(70 45 20 / .5); }
.dark .psa-kpi { box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 44px -26px rgb(0 0 0 / .8); }
.psa-kpi.tone-ink { --tc: #3a3530; } .dark .psa-kpi.tone-ink { --tc: #d8cfc5; }
.psa-kpi.tone-blue { --tc: var(--s2); } .psa-kpi.tone-brown { --tc: var(--leaf-600, #8d6946); } .dark .psa-kpi.tone-brown { --tc: var(--leaf-300, #c9b097); }
.psa-kpi::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .35), transparent 45%); }
.dark .psa-kpi::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .08), transparent 45%); }
.psa-kpi.is-tilt::after { opacity: 1; }
.psa-kpi.is-tilt { box-shadow: 0 34px 60px -28px rgb(70 45 20 / .6); }
.psa-kpi-glow { position: absolute; width: 9rem; height: 9rem; border-radius: 50%; top: -4rem; left: -3rem; background: var(--tc); opacity: .12; filter: blur(18px); }
.psa-kpi-head { display: flex; align-items: center; justify-content: space-between; transform: translateZ(40px); }
.psa-kpi-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; color: #fff;
    background: linear-gradient(145deg, color-mix(in oklab, var(--tc) 80%, #fff), var(--tc) 55%, color-mix(in oklab, var(--tc) 70%, #000));
    box-shadow: 0 12px 20px -10px var(--tc), inset 0 1px 0 rgb(255 255 255 / .4); }
.psa-delta { font-size: .75rem; font-weight: 800; padding: .2rem .55rem; border-radius: 9999px; }
.psa-delta.up { background: rgb(22 163 74 / .13); color: rgb(21 128 61); } .psa-delta.down { background: rgb(220 38 38 / .12); color: rgb(185 28 28); }
.dark .psa-delta.up { color: rgb(134 239 172); } .dark .psa-delta.down { color: rgb(252 165 165); }
.psa-kpi-label { margin-top: .9rem; font-size: .85rem; color: rgb(120 105 92); transform: translateZ(20px); }
.dark .psa-kpi-label { color: rgb(190 178 166); }
.psa-kpi-value { font-size: 2.1rem; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; transform: translateZ(30px); direction: ltr; text-align: right; }
.psa-kpi-sub { font-size: .78rem; color: rgb(140 125 112); transform: translateZ(15px); }
.psa-spark { display: block; width: 100%; height: 2.6rem; margin-top: .6rem; color: var(--tc); }
.psa-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.psa-kpi.is-in .psa-spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease .3s; }

/* اللوحات */
.psa-panel { position: relative; border-radius: 1.5rem; padding: 1.35rem; background: var(--psa-card); border: 1px solid var(--psa-line);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 26px 50px -34px rgb(70 45 20 / .45); }
.dark .psa-panel { box-shadow: 0 26px 50px -34px rgb(0 0 0 / .8); }
.psa-panel-head { margin-bottom: 1rem; }
.psa-panel-head h3 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .55rem; }
.psa-panel-head h3::before { content: ''; width: .35rem; height: 1.1rem; border-radius: 9999px; background: linear-gradient(var(--accent-500, #b05c2e), var(--leaf-500, #a67c52)); }
.psa-panel-head p { font-size: .8rem; color: rgb(140 125 112); margin-top: .2rem; }
.psa-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.psa-grid-2 > *, .psa-grid-map > *, .psa-kpis > * { min-width: 0; }
.psa-grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.psa-grid-map { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 1100px) { .psa-grid-map { grid-template-columns: 1fr; } }
.psa-gauges-col { display: grid; gap: 1.1rem; }

/* المؤشرات الدائرية */
.psa-gauge { position: relative; display: grid; place-items: center; padding: 1.1rem; border-radius: 1.35rem; background: var(--psa-card); border: 1px solid var(--psa-line);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 20px 40px -28px rgb(70 45 20 / .5); transition: transform .35s; }
.psa-gauge svg { width: 8.5rem; height: 8.5rem; filter: drop-shadow(0 8px 14px color-mix(in oklab, var(--accent-500, #b05c2e) 35%, transparent)); }
.psa-gauge .track { fill: none; stroke: var(--psa-line); stroke-width: 12; }
.psa-gauge .bar { fill: none; stroke: var(--psa-bar); stroke-width: 12; stroke-linecap: round; stroke-dashoffset: var(--c); }
.psa-gauge.is-in .bar { stroke-dashoffset: var(--off); transition: stroke-dashoffset 1.8s cubic-bezier(.16,.84,.24,1) calc(var(--d, 0ms) + .2s); }
.psa-gauge-in { position: absolute; top: 1.1rem; left: 0; right: 0; height: 8.5rem; display: grid; place-content: center; text-align: center; }
.psa-gauge-in b { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; direction: ltr; }
.psa-gauge-in span { font-size: .78rem; font-weight: 700; color: rgb(120 105 92); }
.psa-gauge-sub { margin-top: .3rem; text-align: center; }

/* الأعمدة ثلاثية الأبعاد */
.psa-iso { position: relative; }
.psa-iso svg { display: block; width: 100%; height: auto; }
.psa-iso-toggle { position: absolute; top: -2.6rem; left: 0; }
.psa-iso-floor { fill: color-mix(in oklab, var(--beige, #d4c4b0) 45%, transparent); }
.dark .psa-iso-floor { fill: rgb(255 255 255 / .04); }
.psa-iso-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; cursor: pointer; }
.psa-iso.is-in .psa-iso-bar { transform: scaleY(1); transition: transform 1.2s cubic-bezier(.2,.9,.25,1.05) var(--d, 0ms); }
.psa-iso-bar .front { fill: var(--c); }
.psa-iso-bar .side { fill: color-mix(in oklab, var(--c) 62%, #000); }
.psa-iso-bar .top { fill: color-mix(in oklab, var(--c) 65%, #fff); }
.psa-iso-bar:hover .front, .psa-iso-bar:hover .top { filter: brightness(1.12); }
.psa-iso-val { font-size: 17px; font-weight: 800; fill: currentColor; opacity: 0; }
.psa-iso.is-in .psa-iso-val { opacity: 1; transition: opacity .5s calc(var(--d, 0ms) + 1s); }
.psa-iso-lbl { font-size: 15px; fill: rgb(120 105 92); }
.dark .psa-iso-lbl { fill: rgb(190 178 166); }

/* المخطط المساحي */
.psa-stop-s1 { stop-color: var(--s1); } .psa-stop-s2 { stop-color: var(--s2); }
.psa-area .psa-draw { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 4px 6px color-mix(in oklab, var(--s1) 35%, transparent)); }
.psa-area.is-in .psa-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(.45,.05,.2,1) var(--d, 0ms); }
.psa-area .psa-area-fill { opacity: 0; }
.psa-area.is-in .psa-area-fill { opacity: 1; transition: opacity 1.2s ease var(--d, 0ms); }
.psa-line { stroke-width: 2.5; }

/* الأشرطة الأفقية */
.psa-bars .psa-track > span { width: 0; background: var(--psa-bar); box-shadow: 0 0 12px color-mix(in oklab, var(--psa-bar) 45%, transparent); }
.psa-bars.is-in .psa-track > span { width: var(--w); transition: width 1.3s cubic-bezier(.16,.84,.24,1) var(--d, 0ms); }
.psa-bars li { cursor: default; }

/* الخريطة */
.psa-map { position: relative; }
.psa-map svg { display: block; width: 100%; height: auto; cursor: grab; touch-action: pan-y; filter: drop-shadow(0 24px 30px rgb(60 40 20 / .25)); }
.psa-map svg:active { cursor: grabbing; }
.psa-map-tools { position: absolute; top: -3rem; left: 0; display: flex; gap: .35rem; }
.psa-map-tools button { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid var(--psa-line); background: var(--psa-card); transition: transform .2s; }
.psa-map-tools button:hover { transform: scale(1.1); color: var(--accent-600, #964e27); }
.psa-map .gz-region { cursor: pointer; }
.psa-map .gz-sea { fill: rgb(56 120 160 / .75); font-size: 13px; font-weight: 700; }
.psa-map .gz-labels { pointer-events: none; }
.psa-map .gz-name { fill: #fff; font-size: 11.5px; font-weight: 800; paint-order: stroke; stroke: rgb(0 0 0 / .45); stroke-width: 3px; }
.psa-map .gz-value { fill: #fff; font-size: 16px; font-weight: 900; paint-order: stroke; stroke: rgb(0 0 0 / .4); stroke-width: 3.5px; }
.psa-map .gz-north text { fill: var(--brand-500, #1a1a1a); font-size: 12px; font-weight: 900; }
.psa-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: rgb(140 125 112); }
.psa-map-legend i { width: 7rem; height: .5rem; border-radius: 9999px; background: linear-gradient(90deg, var(--beige, #d4c4b0), var(--accent-500, #b05c2e)); }
.psa-map-legend em { font-style: normal; margin-inline-start: auto; }

/* أكبر المشاريع */
.psa-top { display: grid; gap: .55rem; }
.psa-top-row { display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: 1rem; background: rgb(0 0 0 / .025); border: 1px solid transparent; transition: transform .25s, border-color .25s, background .25s; }
.dark .psa-top-row { background: rgb(255 255 255 / .04); }
.psa-top-row:hover { transform: translateX(-4px) scale(1.01); border-color: var(--psa-line); background: var(--psa-card); }
.psa-rank { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: .7rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent-400, #c98a63), var(--accent-600, #964e27)); }
.psa-top-t { flex: 1; min-width: 0; } .psa-top-t b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .psa-top-t small { font-size: .72rem; color: rgb(140 125 112); }
.psa-top-v { font-weight: 900; font-variant-numeric: tabular-nums; }

/* بطاقات أنواع الإنجاز */
.psa-type3d { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); perspective: 1000px; }
.psa-type-card { position: relative; padding: 1.1rem; border-radius: 1.2rem; background: linear-gradient(160deg, var(--psa-card), color-mix(in oklab, var(--beige, #d4c4b0) 30%, var(--psa-card)));
    border: 1px solid var(--psa-line); transform-style: preserve-3d; transition: transform .35s; box-shadow: 0 18px 30px -22px rgb(70 45 20 / .5); }
.dark .psa-type-card { background: linear-gradient(160deg, #221d19, #1a1714); }
.psa-type-card .psa-type-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .9rem; color: #fff; transform: translateZ(30px);
    background: linear-gradient(145deg, var(--leaf-400, #b8946e), var(--leaf-700, #745739)); box-shadow: 0 10px 16px -8px var(--leaf-700, #745739); }
.psa-type-card b { display: block; margin-top: .7rem; font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; transform: translateZ(24px); direction: ltr; text-align: right; }
.psa-type-card small { color: var(--accent-600, #964e27); font-weight: 800; }
.psa-type-card p { font-size: .85rem; font-weight: 700; margin-top: .2rem; }
.psa-type-card em { font-style: normal; font-size: .72rem; color: rgb(140 125 112); }

/* الموظفون */
.psa-avatar { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--leaf-500, #a67c52), var(--brand-500, #1a1a1a)); }
.psa-staff li { gap: .7rem; }
.psa-staff-n { flex: 1; }

/* التلميح */
.psa-tip { position: absolute; z-index: 30; min-width: 9rem; max-width: 16rem; padding: .5rem .75rem; border-radius: .75rem; font-size: .8rem; line-height: 1.5; pointer-events: none;
    background: color-mix(in oklab, var(--brand-500, #1a1a1a) 92%, transparent); color: #fff; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .5); backdrop-filter: blur(6px); }
.psa-tip .psa-key { box-shadow: 0 0 0 1px rgb(255 255 255 / .6); }

@media (prefers-reduced-motion: reduce) {
    .psa-anim, .psa-anim.is-in, .psa-iso-bar, .psa-iso-val, .psa-draw, .psa-area-fill, .psa-spark-line, .psa-bars .psa-track > span, .psa-gauge .bar { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
    .psa-bars .psa-track > span { width: var(--w); } .psa-gauge .bar { stroke-dashoffset: var(--off) !important; } .psa-aurora i, .psa-aurora::after, .psa-live { animation: none !important; }
}
.psa-chart-legend .psa-key { width: 1.1rem; height: .4rem; border-radius: 9999px; }
.psa-top > * { min-width: 0; }
.psa-top-row { overflow: hidden; }
