/* Delve skeleton loading — shared across dashboard pages */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes delve-skel-shine {
    100% {
        transform: translateX(100%);
    }
}

.delve-skel {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 8px;
}

.delve-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    animation: delve-skel-shine 1.15s ease-in-out infinite;
}

body.theme-dark .delve-skel {
    background: #334155;
}

body.theme-dark .delve-skel::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
}

@media (prefers-reduced-motion: reduce) {
    .delve-skel::after {
        animation: none;
    }
}

.delve-skel--h8 { height: 8px; }
.delve-skel--h10 { height: 10px; }
.delve-skel--h12 { height: 12px; }
.delve-skel--h14 { height: 14px; }
.delve-skel--h18 { height: 18px; }
.delve-skel--h22 { height: 22px; }
.delve-skel--h28 { height: 28px; }
.delve-skel--h72 { height: 72px; }
.delve-skel--h88 { height: 88px; }

.delve-skel--w30 { width: 30%; }
.delve-skel--w40 { width: 40%; }
.delve-skel--w45 { width: 45%; }
.delve-skel--w55 { width: 55%; }
.delve-skel--w65 { width: 65%; }
.delve-skel--w72 { width: 72%; }
.delve-skel--w80 { width: 80%; }
.delve-skel--w88 { width: 88%; }
.delve-skel--w100 { width: 100%; }

.delve-skel--h180 { height: 180px; }

.delve-skel--mb6 { margin-bottom: 6px; }
.delve-skel--mb8 { margin-bottom: 8px; }
.delve-skel--mb10 { margin-bottom: 10px; }
.delve-skel--mb12 { margin-bottom: 12px; }
.delve-skel--mb16 { margin-bottom: 16px; }
.delve-skel--mb20 { margin-bottom: 20px; }
.delve-skel--mb24 { margin-bottom: 24px; }

.delve-skel-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.delve-skel-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.delve-skel-row .delve-skel {
    flex: 1;
    min-width: 0;
}

.delve-skel-row .delve-skel--narrow {
    flex: 0 0 52px;
}

.delve-skel-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0 28px;
}

@media (max-width: 900px) {
    .delve-skel-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.delve-skel-card {
    border-radius: 12px;
}

.delve-skel-site-report {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.delve-skel-compliance-page {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.delve-skel-inline {
    padding: 4px 0 8px;
}

.delve-skel-device {
    max-width: 720px;
}

.delve-skel-ai {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.dash-loading.dash-loading--skeleton {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 0 40px;
}

.dash-loading.compliance-inline-loading.dash-loading--skeleton {
    padding: 12px 0 16px;
    align-items: stretch;
}

.loading.loading--skeleton {
    text-align: left;
    padding: 8px 0 24px;
    color: inherit;
}

.delve-skel-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.delve-skel-modal-list .delve-skel {
    height: 48px;
    border-radius: 10px;
}
