/* ================================================================ نصيح — executive analytics (finance / patient affairs / forecast) */
.x-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@media (max-width:1180px){ .x-grid{grid-template-columns:minmax(0,1fr)} }
.x-hero{position:relative;overflow:hidden}
.x-hero::after{content:"";position:absolute;inset:auto -60px -90px auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(10,116,240,.10),transparent 70%);pointer-events:none}
.x-big{display:flex;align-items:baseline;gap:10px}
.x-big .unit{color:var(--muted);font-size:14px}
.x-k5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:900px){ .x-k5{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:560px){ .x-k5{grid-template-columns:repeat(2,minmax(0,1fr))} }
.x-head{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--soft);background:var(--gold-bg);border-radius:10px;padding:8px 12px}
.x-spk{color:var(--coral);font-weight:400}
.x-chg{display:inline-flex;align-items:center;gap:2px;font-size:11.5px;font-weight:600;padding:1px 7px;border-radius:999px;white-space:nowrap}
.x-chg.up{color:#08795F;background:var(--teal-bg)}.x-chg.down{color:#B42F28;background:var(--red-bg)}.x-chg.eq{color:var(--muted);background:#EEF3FA}
.x-tag{display:inline-block;font-size:10.5px;padding:1px 7px;border-radius:999px;background:#EEF3FA;color:var(--soft);margin-inline-start:6px}
.x-tag.cash{background:var(--teal-bg);color:#08795F;margin:0}
.x-note{padding:12px 16px;font-size:13px;color:var(--soft);background:#FFF8EC;border-color:#F6DFB5}
.x-leg{margin-top:8px}

/* ranking */
.x-rank{display:flex;flex-direction:column;gap:10px}
.xr{display:flex;gap:10px;align-items:flex-start}
.xr-n{flex:0 0 26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--gold-bg);color:var(--gold);font-weight:700;font-size:12.5px}
.xr:first-child .xr-n{background:linear-gradient(160deg,#1E88F7,#0A6BE0);color:#fff;box-shadow:0 4px 12px rgba(10,116,240,.25)}
.xr-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.xr-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.xr-top .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:13.5px}
.xr-top .v{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.xr-top .v i{font-style:normal;font-size:11.5px;color:var(--muted)}
.xr-s{font-size:11.5px;color:var(--dim)}

/* leaders */
.x-lead{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.xl{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:16px 8px 12px;border-radius:14px;background:linear-gradient(180deg,#F5FAFF,#fff);border:1px solid var(--line);animation:xpop .5s both}
.xl1{background:linear-gradient(180deg,#E8F2FE,#fff);border-color:#BFD9FA;transform:translateY(-6px);box-shadow:0 10px 26px rgba(10,116,240,.12)}
.xl2{animation-delay:.08s}.xl3{animation-delay:.16s}
.xl-medal{position:absolute;top:8px;inset-inline-start:10px;font-weight:700;color:var(--gold);font-size:13px}
.xl-av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(160deg,#1E88F7,#0A3B78);color:#fff;font-weight:700;font-size:14px}
.xl1 .xl-av{width:54px;height:54px;background:linear-gradient(160deg,#FD5F3A,#E3A33B)}
.xl-name{font-size:13px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xl-v{font-size:17px;font-weight:700;color:var(--text)}.xl-v small{font-size:11px;color:var(--muted);font-weight:400}
.xl-meta{font-size:11.5px;color:var(--muted)}
.x-rest{margin:12px 0 0;padding:0 18px 0 0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.x-rest li{display:flex;gap:8px;align-items:center}.x-rest li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes xpop{from{opacity:0;transform:translateY(10px) scale(.96)}}

/* split bar */
.x-split{display:flex;height:40px;border-radius:12px;overflow:hidden;gap:3px;min-width:220px;flex:1;max-width:460px}
.xs-seg{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 12px;color:#fff;font-size:12.5px;min-width:0;animation:xgrow .9s cubic-bezier(.2,.8,.2,1) both;transform-origin:right}
.xs-seg span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xs-seg b{font-size:14px}
.card .x-split{max-width:none;margin-bottom:12px}
@keyframes xgrow{from{transform:scaleX(0)}}

/* pyramid */
.x-pyr{display:flex;flex-direction:column;gap:7px}
.xp-h{display:grid;grid-template-columns:1fr 92px 1fr;font-size:12px;font-weight:600}
.xp-a{color:#0A74F0;text-align:center}.xp-b{color:#D9578C;text-align:center}
.xp-r{display:grid;grid-template-columns:1fr 92px 1fr;align-items:center;gap:6px}
.xp-l,.xp-rr{display:flex;align-items:center;gap:6px;min-width:0}
.xp-l{flex-direction:row-reverse}
.xp-l i,.xp-rr i{display:block;height:20px;width:0;border-radius:6px;transition:width 1s cubic-bezier(.2,.8,.2,1)}
.xp-l i{background:linear-gradient(270deg,#0A74F0,#5B9BE6)}
.xp-rr i{background:linear-gradient(90deg,#D9578C,#F08DB2)}
.xp-l b,.xp-rr b{font-size:11.5px;color:var(--soft);flex:0 0 auto}
.xp-m{text-align:center;font-size:12px;color:var(--muted)}

/* stacked age bands */
.x-stack{display:flex;flex-direction:column;gap:8px}
.xk-leg{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11.5px;color:var(--muted);margin-bottom:4px}
.xk-leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:4px;vertical-align:-1px}
.xk-r{display:grid;grid-template-columns:minmax(90px,170px) 1fr 52px;gap:10px;align-items:center;font-size:12.5px}
.xk-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xk-bar{display:flex;height:16px;border-radius:6px;overflow:hidden;background:#EEF3FA;animation:xgrow 1s both;transform-origin:right}
.xk-bar i{display:block;height:100%}
.xk-r b{text-align:left;color:var(--soft)}
.x-ins td,.x-ins th{white-space:nowrap}

/* year × month matrix */
.x-mx{display:flex;flex-direction:column;gap:4px;overflow-x:auto}
.xm-r{display:grid;grid-template-columns:52px repeat(12,minmax(44px,1fr));gap:4px;min-width:640px}
.xm-h span{font-size:11px;color:var(--muted);text-align:center}
.xm-y{font-weight:700;font-size:12.5px;align-self:center}
.xm-c{height:34px;border-radius:7px;display:grid;place-items:center;font-size:10.5px;font-variant-numeric:tabular-nums;animation:xfade .6s both}
.xm-c.none{background:repeating-linear-gradient(45deg,#F3F7FC,#F3F7FC 4px,#fff 4px,#fff 8px)}
@keyframes xfade{from{opacity:0;transform:scale(.85)}}

/* yearly columns */
.x-yrs{display:flex;align-items:flex-end;gap:12px;height:250px;padding-top:6px}
.xy{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%}
.xy > b{font-size:12px;color:var(--soft)}
.xy-bar{position:relative;flex:1;width:100%;max-width:64px;display:flex;align-items:flex-end;justify-content:center}
.xy-bar i{position:absolute;bottom:0;width:100%;height:0;border-radius:10px 10px 4px 4px;transition:height 1.1s cubic-bezier(.2,.8,.2,1)}
.xy-bar i.real{background:linear-gradient(180deg,#2D8DFA,#0A3B78)}
.xy-bar i.real.part{background:linear-gradient(180deg,#9CC3F2,#5B9BE6)}
.xy-bar i.ghost{background:repeating-linear-gradient(135deg,rgba(14,159,126,.18),rgba(14,159,126,.18) 6px,rgba(14,159,126,.06) 6px,rgba(14,159,126,.06) 12px);border:1.5px dashed #0E9F7E}
.xy > span.num{font-size:12.5px;font-weight:700}

/* seasonality */
.x-season{width:100%;max-width:300px;display:block;margin:0 auto}
.x-season path{transition:opacity .2s}.x-season path:hover{opacity:1 !important}

/* dark projection hero */
.x-dark{background:linear-gradient(135deg,#0A3B78 0%,#0A5BC4 60%,#1E88F7 100%);border:0;color:#fff}
.x-dark .label,.x-dark .sub,.x-dark .muted{color:rgba(255,255,255,.75)}
.x-dark .big,.x-dark .kpi b{color:#fff}
.x-dark .kpi{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.14)}
.x-dark .kpi small{color:rgba(255,255,255,.7)}
.x-dark::after{background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%)}
.x-proj{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-end}
.x-proj > div:first-child{display:flex;flex-direction:column;gap:6px}
.x-scen{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.x-scen > .label{width:100%}
.xsc{min-width:96px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.10);display:flex;flex-direction:column;gap:2px;animation:xpop .5s both}
.xsc span{font-size:11.5px;opacity:.8}.xsc b{font-size:18px}.xsc small{font-size:11px;opacity:.85}
.xsc.b{background:#fff;color:var(--text);box-shadow:0 10px 24px rgba(0,0,0,.18);transform:translateY(-4px)}
.xsc.b span{color:var(--muted);opacity:1}.xsc.b small{color:#08795F}
.xsc.c{animation-delay:.05s}.xsc.o{animation-delay:.12s}

/* tab homes */
.x-home-h{margin-bottom:10px}
.x-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.x-chips button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);background:#fff;border-radius:999px;padding:7px 14px;font-size:12.5px;color:var(--soft);transition:all .2s}
.x-chips button svg{width:15px;height:15px;fill:none;stroke:var(--gold);stroke-width:1.9;stroke-linecap:round}
.x-chips button:hover{background:var(--gold-bg);border-color:var(--gold);transform:translateY(-1px)}
.x-home-body{display:flex;flex-direction:column;gap:14px}
.x-home-body > div{display:flex;flex-direction:column;gap:14px}

@media (prefers-reduced-motion:reduce){
  .xl,.xsc,.xm-c,.xs-seg,.xk-bar{animation:none}
  .xy-bar i,.xp-l i,.xp-rr i{transition:none}
}

/* ================================================================ Agent Hub («محاكاة وكيل ذكي») */
.hb{display:flex;flex-direction:column;gap:14px}
.hb-hero{position:relative;border-radius:20px;overflow:hidden;padding:22px 22px 16px;color:#fff;
  background:radial-gradient(900px 380px at 50% 55%,rgba(30,136,247,.35),transparent 70%),linear-gradient(160deg,#061A3A 0%,#0A2C5E 55%,#082247 100%);box-shadow:0 18px 40px rgba(6,26,58,.25)}
.hb-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);pointer-events:none}
.hb-hero-top{position:relative;display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.hb-kicker{font:700 10.5px/1 Arial,sans-serif;letter-spacing:2px;color:#7CC0FF}
.hb-hero h2{font-size:24px;margin:8px 0 6px}
.hb-hero p{max-width:620px;color:rgba(255,255,255,.75);font-size:13.5px}
.hb-status{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;font-size:12.5px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);white-space:nowrap}
.hb-led{width:9px;height:9px;border-radius:50%;background:#F5B841;box-shadow:0 0 0 0 rgba(245,184,65,.6);animation:hbLed 2s infinite}
.hb-status.on .hb-led{background:#21D19F;box-shadow:0 0 0 0 rgba(33,209,159,.6)}
@keyframes hbLed{70%{box-shadow:0 0 0 9px rgba(33,209,159,0)}100%{box-shadow:0 0 0 0 rgba(33,209,159,0)}}
.hb-net{position:relative;display:block;width:100%;height:auto;max-height:420px;margin:8px auto 4px}
.hb-grid circle{fill:none;stroke:rgba(124,192,255,.08)}
.hb-link{fill:none;stroke:rgba(124,192,255,.22);stroke-width:1.4;stroke-dasharray:4 6}
.hb-link.live{stroke:rgba(124,192,255,.55);stroke-dasharray:none}
.hb-link.flash{stroke:#21D19F;stroke-width:3;filter:drop-shadow(0 0 6px #21D19F)}
.hb-pkt{fill:#7CC0FF;filter:drop-shadow(0 0 5px #7CC0FF)}.hb-pkt.back{fill:#21D19F;filter:drop-shadow(0 0 5px #21D19F)}
.hb-pkt.idle{opacity:.35}
.hb-proto rect{fill:rgba(10,116,240,.25);stroke:rgba(124,192,255,.5)}
.hb-proto text{fill:#BFE0FF;font:700 11px Arial,sans-serif;letter-spacing:1px}
.hb-core .hb-ring{fill:none;stroke:rgba(124,192,255,.45);transform-origin:center;animation:hbRing 3s ease-out infinite}
.hb-core .hb-ring.r2{animation-delay:1.5s}
@keyframes hbRing{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.35);opacity:0}}
.hb-core-t{fill:#fff;font:700 20px Tahoma,sans-serif}.hb-core-s{fill:#BFE0FF;font:600 10px Arial,sans-serif;letter-spacing:1px}
.hb-node .hb-halo{fill:rgba(124,192,255,.08);stroke:rgba(124,192,255,.25)}
.hb-node .hb-dot{fill:#0E3A73;stroke:#5FB2FF;stroke-width:1.5}
.hb-node .hb-ic{fill:none;stroke:#BFE0FF;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hb-node.ghost .hb-dot{fill:rgba(14,58,115,.55);stroke-dasharray:3 4;stroke:rgba(124,192,255,.6)}
.hb-node.ghost .hb-ic{opacity:.7}
.hb-node.live .hb-halo{animation:hbHalo 2.4s ease-in-out infinite}
.hb-node.flash .hb-halo{fill:rgba(33,209,159,.35);stroke:#21D19F}
@keyframes hbHalo{50%{fill:rgba(124,192,255,.18)}}
.hb-name{fill:#fff;font:600 12.5px Tahoma,sans-serif}.hb-sub{fill:rgba(191,224,255,.7);font:11px Tahoma,sans-serif}
.hb-stats{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:6px}
.hb-stats div{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.hb-stats b{font-size:22px;font-weight:700}.hb-stats b small{font-size:11px;opacity:.7;margin-inline-start:2px}
.hb-stats span{font-size:11.5px;color:rgba(255,255,255,.7)}
@media (max-width:820px){ .hb-stats{grid-template-columns:repeat(2,minmax(0,1fr))} .hb-node .hb-sub{display:none} }
.hb-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@media (max-width:1180px){ .hb-grid2{grid-template-columns:minmax(0,1fr)} }
.hb-card{padding:16px;display:flex;flex-direction:column;gap:12px}
.hb-card header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.hb-card h3{font-size:15px}
.hb-console{display:flex;flex-direction:column;gap:10px}
.hb-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hb-row label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:var(--muted)}
.hb-row select{border:1px solid var(--line2);border-radius:10px;padding:7px 8px;background:#fff;font-size:12.5px;color:var(--text)}
#hbArgs{unicode-bidi:plaintext;width:100%;border:1px solid var(--line2);border-radius:12px;padding:10px;font-size:12px;background:#F7FAFE;color:#0B2A6B;resize:vertical;direction:ltr;text-align:left}
.hb-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:10px 16px;font-weight:600}
.hb-send svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hb-send:disabled{opacity:.6}
.hb-flow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:12.5px}
.hb-flow .hb-a,.hb-flow .hb-b{padding:6px 12px;border-radius:999px;background:var(--gold-bg);color:var(--gold);font-weight:600;white-space:nowrap}
.hb-flow .hb-b{background:#0A3B78;color:#fff}
.hb-line{position:relative;height:4px;border-radius:4px;background:#E6F0FC;overflow:hidden}
.hb-line i{position:absolute;top:0;width:28%;height:100%;border-radius:4px;background:linear-gradient(90deg,transparent,#0A74F0,transparent)}
.hb-flow.go .hb-line i{animation:hbGo 1s linear infinite}
.hb-flow.back .hb-line i{animation:hbBack .9s ease-out 1 forwards;background:linear-gradient(90deg,transparent,#0E9F7E,transparent)}
.hb-flow.bad .hb-line i{background:linear-gradient(90deg,transparent,#E0413A,transparent)}
@keyframes hbGo{from{right:-30%}to{right:100%}}
@keyframes hbBack{from{right:100%}to{right:-30%}}
.hb-out{unicode-bidi:plaintext;margin:0;max-height:300px;overflow:auto;background:#061A3A;color:#BFE0FF;border-radius:12px;padding:12px;font-size:11.5px;direction:ltr;text-align:left;white-space:pre-wrap;animation:xfade .4s both}
.hb-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:420px;overflow:auto}
.hb-log li{display:grid;grid-template-columns:62px 52px minmax(0,1fr) minmax(0,1.2fr) 62px 16px;gap:8px;align-items:center;font-size:12px;padding:8px 10px;border-radius:10px;background:#F7FAFE;border:1px solid var(--line);animation:xfade .4s both}
.hb-log li b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-log li .hb-tool{color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:right}
.hb-log li i{font-style:normal;font-weight:700}.hb-log li.ok i{color:#0E9F7E}.hb-log li.bad i{color:#E0413A}
.hb-log .hb-empty{display:block;color:var(--muted);text-align:center;background:none;border:1px dashed var(--line2)}
.hb-t{color:var(--muted)}.hb-ms{color:var(--muted);text-align:left}
.hb-p{font:700 10px Arial,sans-serif;letter-spacing:.5px;padding:3px 6px;border-radius:6px;text-align:center;background:#E8F2FE;color:#0A74F0}
.hb-p.p-a2a{background:#F1ECFD;color:#7B55D6}.hb-p.p-rest{background:#E3F8F3;color:#08795F}
.hb-tabs{display:flex;gap:6px;flex-wrap:wrap}
.hb-tabs button{border:1px solid var(--line2);background:#fff;border-radius:999px;padding:5px 12px;font-size:12px;color:var(--soft)}
.hb-tabs button.on{background:#0A3B78;color:#fff;border-color:#0A3B78}
.hb-snip{position:relative}
.hb-snip pre{margin:0;background:#061A3A;color:#BFE0FF;border-radius:12px;padding:14px;font-size:11.5px;direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-all}
.hb-snip button{position:absolute;top:8px;left:8px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}
.hb-ep{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.hb-ep li{display:flex;gap:10px;align-items:center;font-size:12px}
.hb-ep li span{flex:0 0 74px;color:var(--muted)}
.hb-ep code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#F3F7FC;border-radius:8px;padding:5px 8px;direction:ltr;text-align:left}
.hb-warn{font-size:12.5px;padding:10px 12px;border-radius:10px;background:#FFF8EC;border:1px solid #F6DFB5;color:#7A5513}
.hb-skills{display:flex;flex-wrap:wrap;gap:8px}
.hb-skills span{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:#F3F7FC;border:1px solid var(--line);font:12px ui-monospace,Consolas,monospace;direction:ltr;animation:xpop .45s both}
.hb-skills span i{width:7px;height:7px;border-radius:50%;background:#21D19F;box-shadow:0 0 0 3px rgba(33,209,159,.15)}
.hb-sec{font-size:12.5px;background:#F7FAFE;border-radius:12px;padding:10px 14px}
.hb-sec ul{margin:6px 0 0;padding-inline-start:18px;color:var(--soft);display:flex;flex-direction:column;gap:3px}
@media (prefers-reduced-motion:reduce){ .hb-core .hb-ring,.hb-node.live .hb-halo,.hb-led{animation:none} .hb-pkt{display:none} }

/* ================================================================ loading skeleton */
.sk{display:flex;flex-direction:column;gap:14px}
.sk-hero,.sk-card{padding:18px;display:flex;flex-direction:column;gap:12px;overflow:hidden;position:relative}
.sk-hero::after,.sk-card::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%);transform:translateX(100%);animation:skSh 1.4s ease-in-out infinite}
@keyframes skSh{to{transform:translateX(-100%)}}
.sk-top{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.sk-step{font-size:13px;color:var(--gold);font-weight:600}
.sk-step.in{animation:xfade .45s both}
.sk-orb{display:inline-flex;gap:4px}.sk-orb i{width:7px;height:7px;border-radius:50%;background:var(--gold);animation:skDot 1s ease-in-out infinite}
.sk-orb i:nth-child(2){animation-delay:.15s;background:var(--teal)}.sk-orb i:nth-child(3){animation-delay:.3s;background:var(--coral)}
@keyframes skDot{50%{transform:translateY(-5px);opacity:.5}}
.sk-line,.sk-big,.sk-kpis i,.sk-bar,.sk-ring{background:#EAF2FC;border-radius:8px}
.sk-line{height:12px}.sk-line.w40{width:40%}.sk-line.w30{width:30%}
.sk-big{height:44px;width:55%}
.sk-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sk-kpis i{height:62px;border-radius:12px}
.sk-bar{height:14px}.sk-bar:nth-child(3){width:86%}.sk-bar:nth-child(4){width:70%}.sk-bar:nth-child(5){width:52%}.sk-bar:nth-child(6){width:38%}
.sk-ring{width:150px;height:150px;border-radius:50%;margin:6px auto;background:radial-gradient(circle,#fff 52%,#EAF2FC 53%)}
@media (prefers-reduced-motion:reduce){ .sk-hero::after,.sk-card::after,.sk-orb i{animation:none} }
.x-fl{display:flex;flex-wrap:wrap;gap:6px}
.x-fl .x-tag{margin:0;background:var(--gold-bg);color:var(--gold)}
.x-heat td.xh{text-align:center;font-size:12px;transition:transform .15s}
.x-heat td.xh:hover{transform:scale(1.06);box-shadow:0 4px 12px rgba(10,116,240,.25)}
.x-heat th{font-size:11.5px;white-space:nowrap}
.x-aging{display:flex;align-items:flex-end;gap:14px;height:230px}
.xa{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;min-width:0}
.xa > b{font-size:13px}
.xa-bar{flex:1;width:100%;max-width:70px;position:relative;display:flex;align-items:flex-end}
.xa-bar i{display:block;width:100%;height:0;border-radius:10px 10px 4px 4px;transition:height 1s cubic-bezier(.2,.8,.2,1)}
.xa > span{font-size:12px;text-align:center}.xa small{font-size:11px;color:var(--muted)}
.hb-hero.demo .hb-link{stroke:rgba(33,209,159,.7);stroke-dasharray:6 6;animation:hbDash 1s linear infinite}
.hb-hero.demo .hb-core .hb-ring{animation-duration:1.2s}
@keyframes hbDash{to{stroke-dashoffset:-24}}
body.bye{opacity:0;transition:opacity .4s}

/* rail — equal-height items that always fit; logout + settings share one footer row */
@media (min-width:601px){
  .rail{gap:12px;padding:16px 8px 12px}
  .rail .nav{flex:1 1 0;min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);align-content:stretch;gap:4px;margin-top:4px}
  .rail .nav button{min-height:0;height:100%;max-height:92px;padding:4px 2px;gap:5px;justify-content:center;font-size:11.5px;line-height:1.25;overflow:hidden}
  .rail .nav button svg{width:clamp(20px,3.1vh,26px);height:clamp(20px,3.1vh,26px);flex:none}
  .rail-foot{width:100%;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:2px;border-top:1px solid var(--line);padding-top:8px}
  .rail-foot .settings{margin:0;border:0;padding:6px 0;border-radius:10px;font-size:10.5px;gap:3px;color:#4A5F7D}
  .rail-foot .settings svg{width:20px;height:20px}
  .rail-foot .settings:hover{background:var(--gold-bg);color:var(--gold)}
  .rail-foot .settings.logout:hover{background:#FDEEEC;color:#C53B3B}
}
@media (max-width:600px){ .rail-foot{display:none} }

/* header without the Dentech mark: a compact bar, date + data freshness grouped on the left */
.shell .top{min-height:84px;padding-top:10px;padding-bottom:10px}
.top-meta{gap:14px}
.top-meta .fresh{order:2;padding-inline-start:14px;border-inline-start:1px solid var(--line)}
.top-meta .date-chip{order:1}
@media (min-width:1100px) and (max-height:820px){ .shell .top{min-height:74px} }
@media (max-width:800px){ .shell .top{min-height:0} }
