body[data-dp-auth="checking"] #authView,body[data-dp-auth="checking"] #authWrapper,
body[data-dp-auth="error"] #authView,body[data-dp-auth="error"] #authWrapper,
body:not([data-dp-auth="ready"]) #appView,body:not([data-dp-auth="ready"]) #dashboardShell,
body:not([data-dp-auth="ready"]) #subscriptionGate,body:not([data-dp-auth="ready"]) #logoutTop,
body:not([data-dp-auth="ready"]) [id^="dp"][id$="Launcher"],
body:not([data-dp-auth="ready"]) [id^="dp"][id$="Overlay"]{display:none!important}
body[data-dp-auth="ready"] #authView,body[data-dp-auth="ready"] #authWrapper{display:none!important}
#dpSessionGate{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;color:#12365b;background:#f5f9ff}
#dpSessionGate[hidden]{display:none!important}
#dpSessionGate .dp-mark{background:#0964cf;color:#fff;border-radius:20px;padding:18px;font-size:32px;font-weight:800}
#dpSessionGate button{border:0;border-radius:10px;padding:12px 24px;background:#0964cf;color:#fff;font:inherit;cursor:pointer}
#dpSessionGate .dp-gate-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
#dpSessionGate .dp-recovery-btn{background:#fff!important;color:#0964cf!important;border:1px solid #0964cf!important}
#dpSessionGate .dp-recovery-btn:hover{background:#f0f7ff!important}
#dpSessionGate button:disabled{opacity:0.6;cursor:not-allowed}

/* Clinical Loading Bar & Branded Transition */
.dp-clinical-bar{width:220px;max-width:80vw;height:4px;background:#e2e8f0;border-radius:999px;overflow:hidden;position:relative;margin:6px 0}
.dp-clinical-bar-fill{height:100%;width:25%;background:linear-gradient(90deg,#0284c7 0%,#06b6d4 100%);border-radius:999px;transition:width 0.4s ease-out;position:relative}
.dp-clinical-bar-fill::after{content:'';position:absolute;top:0;left:0;bottom:0;right:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.7),transparent);animation:dpBarShimmer 1.8s infinite}
@keyframes dpBarShimmer{0%{transform:translateX(-100%)}100%{transform:translateX(200%)}}
@media (prefers-reduced-motion: reduce){.dp-clinical-bar-fill::after{animation:none!important}}

/* Smart Skeleton Loaders */
.dp-skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);background-size:200% 100%;animation:dpSkeletonWave 1.6s ease-in-out infinite;border-radius:6px}
@keyframes dpSkeletonWave{0%{background-position:200% 0}100%{background-position:-200% 0}}
.dp-skeleton-text{height:14px;margin-bottom:8px;border-radius:4px}
.dp-skeleton-title{height:22px;width:60%;margin-bottom:12px;border-radius:4px}
.dp-skeleton-stat{min-height:75px;border-radius:10px}
@media (prefers-reduced-motion: reduce){.dp-skeleton{animation:none!important;background:#e2e8f0}}

/* Button pending state */
.dp-ui-pending{pointer-events:none;opacity:0.75;position:relative}
.dp-ui-pending::after{content:'';display:inline-block;width:14px;height:14px;margin-left:8px;vertical-align:middle;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:dpBtnSpin 0.75s linear infinite}
@keyframes dpBtnSpin{to{transform:rotate(360deg)}}
