/* Stable loading/error shell for the dashboard list dialog. */
@media (min-width: 769px) {
    body.unified-page .dash-more-panel {
        height: min(720px, 82vh);
        height: min(720px, 82dvh);
        min-height: min(420px, 82vh);
        min-height: min(420px, 82dvh);
    }
}

body.unified-page .dash-more-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
}

body.unified-page .dash-more-body {
    min-height: 0;
    position: relative;
}

body.unified-page .dash-more-announcer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.unified-page .dash-more-state {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--color-text-secondary);
    text-align: center;
}

body.unified-page .dash-more-status {
    min-height: 24px;
    margin: 0;
    line-height: 1.5;
}

body.unified-page .dash-more-skeleton {
    width: min(720px, 88%);
    display: grid;
    gap: 12px;
}

body.unified-page .dash-more-skeleton span {
    display: block;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.14) 20%, rgba(148, 163, 184, 0.3) 50%, rgba(148, 163, 184, 0.14) 80%);
    background-size: 220% 100%;
    animation: dashMoreSkeleton 1.25s ease-in-out infinite;
}

body.unified-page .dash-more-skeleton span:nth-child(2),
body.unified-page .dash-more-skeleton span:nth-child(4) {
    width: 92%;
}

body.unified-page .dash-more-retry {
    min-width: 96px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--color-primary);
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body.unified-page .dash-more-retry:focus-visible,
body.unified-page .dash-more-close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 42%, transparent);
    outline-offset: 2px;
}

@keyframes dashMoreSkeleton {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

@media (max-width: 768px) {
    body.unified-page .dash-more-panel {
        --app-dialog-preferred-max: 82dvh;
        height: 82vh;
        height: 82dvh;
    }

    body.unified-page .dash-more-state {
        padding: 24px 16px;
    }

    body.unified-page .dash-more-skeleton {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.unified-page .dash-more-skeleton span {
        animation: none;
    }
}
