/* Desktop-only portfolio polish; the existing mobile layout is untouched. */
@media (min-width: 768px) {
    .app-detail {
        min-height: 430px;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(32px, 5vw, 76px) !important;
    }

    .app-detail > :first-child,
    .app-detail > :last-child {
        min-width: 0;
        width: 100%;
    }

    .app-detail-reverse > :first-child {
        grid-column: 2;
        grid-row: 1;
    }

    .app-detail-reverse > :last-child {
        grid-column: 1;
        grid-row: 1;
    }

    .app-detail img {
        display: block;
        width: 100%;
        max-height: 430px;
        object-fit: contain;
        background: #fff;
    }

    .app-preview-panel {
        min-height: 300px;
        padding: clamp(28px, 4vw, 56px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: linear-gradient(145deg, #fbfaff, #f0ebff);
    }

    .app-card-grid .font-title-lg.text-primary {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .app-card-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        align-items: stretch;
    }

    .app-card-grid > .glass-card {
        grid-column: span 2;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: clamp(22px, 2vw, 32px);
    }

    .app-card-grid > .glass-card > div:first-child {
        margin: 0;
        min-height: 64px;
    }

    .app-card-grid > .glass-card > p {
        margin: 0;
        min-height: 96px;
    }

    .app-card-grid > .glass-card > div.flex.items-center.justify-between {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        margin: auto 0 0;
    }

    .app-card-grid > .glass-card > div.flex.items-center.justify-between > a {
        font-size: 0.95rem;
    }

    .app-card-grid > .glass-card > div.flex.items-center.justify-between > span {
        display: inline-flex;
        padding: 7px 11px;
        border-radius: 999px;
        background: #eef3fb;
        color: #43536a;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .app-card-grid > .glass-card > a.bg-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        margin-top: 0;
        padding: 12px 16px;
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.25;
        border-radius: 16px;
    }

    .app-card-grid > .glass-card > a.mt-md {
        min-height: 24px;
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .app-card-grid > .glass-card > a:not(.bg-primary):last-child {
        margin-top: 0;
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .app-card-grid > .glass-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .app-card-grid > .glass-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}
