.desktop-age-dashboard {
    display: none;
    --desktop-preview-width: 390px;
    --desktop-preview-height: 844px;
}

@media (min-width: 1040px) {
    body[data-layout="desktop"] .app-shell {
        width: min(calc(100% - 24px), 1700px);
        min-height: 100dvh;
        padding: 12px 12px 18px;
        border-right: 1px solid rgba(203, 221, 232, 0.64);
        border-left: 1px solid rgba(203, 221, 232, 0.64);
    }

    body[data-layout="desktop"].has-desktop-age-dashboard .layout-switcher,
    body[data-layout="desktop"].has-desktop-age-dashboard .bottom-nav,
    body[data-layout="desktop"].has-desktop-age-dashboard .aimom-feedback-fab {
        display: none !important;
    }

    body[data-layout="desktop"].has-desktop-age-dashboard .app-main {
        padding: 0;
        overflow: auto;
        overscroll-behavior: contain;
    }

    body[data-layout="desktop"].has-desktop-age-dashboard .app-view[data-view="home"].is-active > :not(.desktop-age-dashboard) {
        display: none !important;
    }

    body[data-layout="desktop"] .desktop-age-dashboard:not([hidden]) {
        display: grid;
        grid-template-columns: 188px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        min-width: 0;
        min-height: calc(100dvh - 36px);
    }

    .desktop-age-dashboard__controls {
        position: sticky;
        top: 0;
        display: grid;
        gap: 10px;
        padding: 8px 2px 8px 0;
    }

    .desktop-age-dashboard__control-head {
        display: grid;
        gap: 3px;
        padding: 3px 4px 5px;
        color: #173b57;
    }

    .desktop-age-dashboard__control-head strong {
        font-size: 0.95rem;
        font-weight: 950;
        line-height: 1.1;
    }

    .desktop-age-dashboard__control-head span {
        color: #6a8192;
        font-size: 0.72rem;
        font-weight: 850;
        line-height: 1.25;
    }

    .desktop-age-dashboard__viewport-list {
        display: grid;
        gap: 7px;
        padding-right: 8px;
    }

    .desktop-age-dashboard__viewport-button {
        min-height: 48px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 2px;
        border: 1px solid rgba(172, 205, 222, 0.9);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.82);
        color: #294b64;
        padding: 8px 10px;
        font: inherit;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(46, 80, 105, 0.08);
    }

    .desktop-age-dashboard__viewport-button span {
        font-size: 0.78rem;
        font-weight: 950;
        line-height: 1.1;
    }

    .desktop-age-dashboard__viewport-button em {
        color: #70889a;
        font-size: 0.72rem;
        font-style: normal;
        font-weight: 850;
        line-height: 1.1;
    }

    .desktop-age-dashboard__viewport-button:hover,
    .desktop-age-dashboard__viewport-button:focus-visible {
        border-color: rgba(67, 147, 194, 0.82);
        background: #ffffff;
        outline: none;
    }

    .desktop-age-dashboard__viewport-button.is-active {
        border-color: rgba(36, 142, 123, 0.82);
        background: #e9fbf5;
        color: #0f6c60;
        box-shadow: 0 10px 24px rgba(36, 142, 123, 0.14);
    }

    .desktop-age-dashboard__viewport-button.is-active em {
        color: #2d8a7b;
    }

    .desktop-age-dashboard__stage {
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .desktop-age-dashboard__grid {
        display: grid;
        grid-template-columns: repeat(3, var(--desktop-preview-width));
        gap: 14px;
        align-items: start;
        width: max-content;
        min-width: calc((var(--desktop-preview-width) * 3) + 28px);
    }

    .desktop-age-phone {
        min-width: 0;
        width: var(--desktop-preview-width);
        min-height: var(--desktop-preview-height);
        display: grid;
        justify-items: center;
        align-items: start;
        border: 1px solid rgba(177, 207, 221, 0.82);
        border-radius: 18px;
        background: #f9fcff;
        box-shadow: 0 18px 46px rgba(57, 86, 112, 0.12);
        overflow: hidden;
    }

    .desktop-age-phone__frame {
        display: block;
        width: var(--desktop-preview-width);
        height: var(--desktop-preview-height);
        min-height: 0;
        border: 0;
        background: #f7fcff;
    }
}

@media (min-width: 1040px) and (max-width: 1450px) {
    body[data-layout="desktop"] .desktop-age-dashboard:not([hidden]) {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 10px;
    }

    .desktop-age-dashboard__viewport-list {
        padding-right: 4px;
    }

    .desktop-age-dashboard__viewport-button {
        padding-inline: 8px;
    }
}
