/*
 * Scoped to pages containing the NewEdge app shell.
 * Keeps the original design; only removes the 520/620/720px desktop cap.
 */
html:has(body .ned-app),
body:has(.ned-app) {
    width: 100%;
    max-width: 100%;
}

body:has(.ned-app) .ned-app,
body:has(.ned-app) .ned-app-shell {
    box-sizing: border-box;
    width: 100% !important;
    max-width: min(100%, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:has(.ned-app) .ned-app *,
body:has(.ned-app) .ned-app *::before,
body:has(.ned-app) .ned-app *::after {
    box-sizing: border-box;
}

body:has(.ned-app) .ned-app-shell > *,
body:has(.ned-app) .ned-app .ned-page,
body:has(.ned-app) .ned-app .ned-section-card,
body:has(.ned-app) .ned-app .ned-hero-card,
body:has(.ned-app) .ned-app .ned-engine-card,
body:has(.ned-app) .ned-app .ned-product-card,
body:has(.ned-app) .ned-app .ned-stat-panel,
body:has(.ned-app) .ned-app .ned-metric-box {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    body:has(.ned-app) .ned-app,
    body:has(.ned-app) .ned-app-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
}
