.loading-view{--skeleton-base:#e4ece7;--skeleton-shine:#f5f8f6;max-width:1200px;margin:auto;padding:24px;min-width:0}
[data-theme="dark"] .loading-view{--skeleton-base:#263e35;--skeleton-shine:#355146}
.loading-caption{margin:0 0 20px;color:var(--muted,#718378);font-size:14px}
.skeleton-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.skeleton-card{min-width:0;padding:22px;background:var(--panel,var(--surface,#fff));border:1px solid var(--line,#dce5df);border-radius:12px}
[data-theme="dark"] .skeleton-card{background:var(--panel,#14251e)}
.skeleton-line,.skeleton-donut,.skeleton-plot{background:var(--skeleton-base);position:relative;overflow:hidden}
.skeleton-line:after,.skeleton-donut:after,.skeleton-plot:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 15%,var(--skeleton-shine) 50%,transparent 85%);transform:translateX(-100%);animation:skeleton-shimmer 1.7s ease-in-out infinite}
.skeleton-line{display:block;height:12px;width:85%;border-radius:4px;margin:12px 0}
.skeleton-line.short{width:48%}.skeleton-line.heading{height:28px;width:min(65%,340px)}.skeleton-line.value{height:30px;width:65%;margin:22px 0}
.skeleton-charts{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:20px}
.skeleton-plot{height:220px;margin-top:24px;border-radius:6px;background:repeating-linear-gradient(to top,var(--skeleton-base) 0 1px,transparent 1px 44px);border-left:1px solid var(--skeleton-base);border-bottom:1px solid var(--skeleton-base)}
.skeleton-plot svg{width:100%;height:100%;padding:20px 10px;opacity:.6}.skeleton-plot path{fill:none;stroke:var(--skeleton-base);stroke-width:5}
.skeleton-donut{width:160px;height:160px;border-radius:50%;margin:35px auto;mask:radial-gradient(circle,transparent 44%,#000 45%)}
.skeleton-records>div{display:flex;justify-content:space-between;gap:30px;padding:12px 0;border-bottom:1px solid var(--line,#dce5df)}.skeleton-records>div:last-child{border:0}.skeleton-records .short{width:20%}
@keyframes skeleton-shimmer{to{transform:translateX(100%)}}
@media(max-width:700px){.loading-view{padding:16px 0}.loading-view:first-child{padding:20px 16px}.skeleton-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.skeleton-card{padding:16px}.skeleton-charts{grid-template-columns:1fr}.skeleton-plot{height:200px}}
@media(prefers-reduced-motion:reduce){.skeleton-line:after,.skeleton-donut:after,.skeleton-plot:after{animation:none;display:none}}

/* Auth skeleton follows the login card instead of the dashboard. */
.auth-loading{--skeleton-base:#e4ece7;--skeleton-shine:#f5f8f6}
[data-theme="dark"] .auth-loading{--skeleton-base:#263e35;--skeleton-shine:#355146}
.auth-card .auth-loading-caption{font-size:12px;margin:0 0 16px}
.auth-loading-brand{gap:13px}.auth-loading-brand .auth-logo{flex:0 0 52px;width:52px;height:52px;border-radius:18px;margin:0}
.auth-loading-brand .auth-wordmark-placeholder{width:130px;height:24px;margin:0}
.auth-loading .auth-title{height:30px;width:88%;margin:32px 0 14px}
.auth-loading .auth-subtitle{width:75%;height:13px;margin-bottom:26px}
.auth-loading-field{margin:20px 0}.auth-loading .auth-label{height:12px;width:35%;margin:0 0 9px}
.auth-loading .auth-input{width:100%;height:46px;margin:0;border-radius:7px}
.auth-loading .auth-help{width:72%;height:10px;margin:9px 0 30px}
.auth-loading .auth-submit{width:100%;height:48px;border-radius:8px;margin:0 0 22px}
.auth-loading-links{display:flex;gap:14px}.auth-loading-links .skeleton-line{height:10px;flex:1;min-width:0;margin:0}

.auth-loading-brand .skeleton-line{background:var(--skeleton-base);display:block}
