/* Mobile GUI standardization.
   Loaded last so these are cross-page guardrails, not page-specific chrome. */

@media (max-width: 1100px) {
    .main-content,
    .content-shell,
    .content-shell--mobile-app,
    .mob-ed,
    .mobile-settings-page {
        min-width: 0;
        overflow-x: clip;
    }

    .mobile-topbar-brand,
    .mobile-home-switch,
    .mobile-list-row-left,
    .mobile-list-row-body,
    .mob-ed-row-body,
    .mob-ed-strip-body,
    .mob-ed-profile-body {
        min-width: 0;
    }

    .mobile-topbar-kicker,
    .mobile-topbar-title,
    .mobile-home-switch-value,
    .mob-ed-row-title,
    .mob-ed-row-sub,
    .mob-ed-tile-label,
    .mob-ed-tile-sub,
    .mob-ed-profile-name,
    .mob-ed-profile-meta,
    .mob-ed-strip-title,
    .mob-ed-strip-sub {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar-kicker,
    .mobile-topbar-title,
    .mobile-home-switch-value,
    .mob-ed-row-title,
    .mob-ed-profile-name,
    .mob-ed-strip-title {
        white-space: nowrap;
    }

    .mob-ed-row,
    .mobile-list-row,
    .mob-ed-tile,
    .mob-ed-strip,
    .mobile-tabbar-item,
    .mobile-home-switch,
    .mobile-profile-link,
    .mobile-back-button {
        touch-action: manipulation;
    }

    .mob-ed-row-right,
    .mobile-list-row-right {
        min-width: 0;
        max-width: 44%;
        flex-shrink: 0;
    }

    .mobile-list-row-right--actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .mob-ed-row-val,
    .mobile-list-row-right,
    .profile-notif-chip {
        max-width: 100%;
    }

    .mob-ed-row-val,
    .profile-notif-chip {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mob-ed-hero-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mob-ed-hero-stat {
        min-width: 0;
    }

    .mob-ed-hero-stat .v {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .mob-ed-page-title {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 29px;
    }

    .mob-ed-eyebrow,
    .mob-ed-section-h,
    .mob-ed-row {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mob-ed-hero {
        margin-left: 12px;
        margin-right: 12px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .mob-ed-row-right,
    .mobile-list-row-right {
        max-width: 40%;
    }

    .mob-ed-hero-num {
        font-size: 52px;
    }

    .mob-ed-hero-stat .v {
        font-size: 16px;
    }
}
