@media (max-width: 780px) {
    .profile-shell > .page-title {
        margin-bottom: 12px;
    }

    .profile-shell .profile-heading h1 {
        font-size: 22px;
    }

    .profile-shell .profile-heading p,
    .profile-shell .account-nav-full,
    .profile-shell .account-favorites-metric,
    .profile-shell .account-fact-duplicate,
    .profile-shell .account-sidebar > .logout-button,
    .profile-shell .vip-overview h2,
    .profile-shell .quota-disabled,
    .profile-shell .account-metrics.no-limited-quota {
        display: none;
    }

    .profile-shell .account-nav-short {
        display: inline;
    }

    .profile-shell .account-layout,
    .profile-shell .account-content {
        gap: 12px;
    }

    .profile-shell .account-sidebar,
    .profile-shell .account-section,
    .profile-shell .account-metric {
        padding: 14px;
        border-radius: 10px;
    }

    .profile-shell .account-identity {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 0;
    }

    .profile-shell .large-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 19px;
    }

    .profile-shell .account-identity h2 {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 16px;
    }

    .profile-shell .account-identity .pill {
        margin: 0;
        font-size: 11px;
        white-space: nowrap;
    }

    .profile-shell .account-sidebar nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .profile-shell .account-sidebar nav a {
        min-width: 0;
        justify-content: center;
        padding: 8px 2px;
        font-size: 12px;
        border-radius: 6px;
    }

    .profile-shell .account-sidebar nav .icon {
        display: none;
    }

    .profile-shell .vip-overview {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin-top: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .profile-shell .vip-overview p {
        font-size: 11px;
        line-height: 1.65;
        grid-row: 1;
    }

    .profile-shell .vip-overview time {
        display: inline;
        font-size: 12px;
        color: var(--text);
    }

    .profile-shell .vip-overview .button {
        grid-row: 1;
        min-height: 34px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .profile-shell .vip-overview .button .icon {
        display: none;
    }

    .profile-shell .section-heading {
        margin-bottom: 10px;
        gap: 8px;
    }

    .profile-shell .account-section h2 {
        font-size: 15px;
    }

    .profile-shell .invitation-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        border-color: var(--blue);
        background: linear-gradient(120deg, var(--blue-soft), var(--surface));
    }

    .profile-shell .invitation-panel .section-heading {
        grid-column: 1 / -1;
        margin: 0;
    }

    .profile-shell .invitation-panel .section-heading > span {
        font-size: 12px;
    }

    .profile-shell .invitation-actions,
    .profile-shell .invitation-panel .invite-link-row {
        display: contents;
    }

    .profile-shell .invitation-actions p {
        grid-column: 1 / -1;
        margin: 0 0 4px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .profile-shell .invitation-panel [data-invite-link] {
        display: none;
    }

    .profile-shell .invitation-panel .button {
        min-width: 0;
        min-height: 36px;
        padding: 7px 5px;
        font-size: 12px;
        gap: 5px;
    }

    .profile-shell .invitation-panel [data-copy-invite] {
        grid-column: 1;
        grid-row: 3;
        background: var(--blue);
        color: var(--surface);
    }

    .profile-shell [data-invite-reward-open] {
        grid-column: 2;
        grid-row: 3;
    }

    .profile-shell .account-metrics {
        display: block;
    }

    .profile-shell .account-metrics[hidden] {
        display: none;
    }

    .profile-shell .account-quota-card > span:first-child {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
    }

    .profile-shell .account-quota-reset {
        display: inline;
        float: right;
        font-size: 11px;
    }

    .profile-shell .account-quota-row {
        margin: 10px 0 6px;
        gap: 10px;
    }

    .profile-shell .single-limited-quota .account-quota-row {
        grid-template-columns: 1fr;
    }

    .profile-shell .account-quota-item {
        gap: 6px;
    }

    .profile-shell .account-quota-item strong {
        margin: 0;
        font-size: 18px;
        line-height: 1.5;
        color: var(--blue);
    }

    .profile-shell .account-quota-item .quota-kind,
    .profile-shell .account-quota-card p {
        font-size: 11px;
    }

    .profile-shell .account-quota-card p {
        margin: 0;
    }

    .profile-shell .account-info-section .section-heading {
        margin: 0;
    }

    .profile-shell .account-info-section .pill {
        display: none;
    }

    .profile-shell .account-info-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 28px;
        padding: 0 4px;
        color: var(--blue);
        background: transparent;
        font-size: 12px;
    }

    .profile-shell .account-info-toggle .icon {
        width: 12px;
        height: 12px;
    }

    .profile-shell [data-info-expanded="true"] .account-info-toggle .icon {
        transform: rotate(90deg);
    }

    .profile-shell [data-info-expanded="false"] .account-facts {
        display: none;
    }

    .profile-shell .account-facts > div {
        padding: 10px 0 0;
        border: 0;
        font-size: 12px;
    }

    .profile-shell .account-content > .logout-button {
        justify-content: center;
        min-height: 40px;
        margin: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--red);
    }
}
