.mobile-menu-toggle,
.mobile-menu-backdrop {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .game-shell {
        --mobile-scroll-cue-size: 34px;
        --mobile-scroll-cue-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M15.5 9 7 18l8.5 9' fill='none' stroke='%23ef7d24' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        --mobile-scroll-cue-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='m8.5 9 8.5 9-8.5 9' fill='none' stroke='%23ef7d24' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .game-shell.app-scale-page {
        overflow-x: hidden;
    }

    .game-shell.app-scale-page [hidden] {
        display: none !important;
    }

    html,
    body,
    html:has(.game-shell.app-scale-page),
    body:has(.game-shell.app-scale-page) {
        overflow-x: hidden;
    }

    .game-shell.app-scale-page .app-scale-viewport {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 8px;
        height: auto !important;
    }

    .game-shell.app-scale-page .app-scale-stage {
        width: 100% !important;
        max-width: none;
        transform: none !important;
        will-change: auto;
    }

    .game-shell.app-scale-page .app-scale-stage > .page {
        width: 100% !important;
        max-width: none;
        margin: 0;
        padding: 8px 0 42px;
    }

    .game-shell.app-scale-page .topbar {
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        overflow: hidden;
    }

    .game-shell.app-scale-page .topbar-upper {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
    }

    .game-shell.app-scale-page .brand-block {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page .brand-logo {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .game-shell.app-scale-page .brand {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page .brand-kicker {
        max-width: none;
        font-size: 0.86rem;
    }

    .game-shell.app-scale-page .brand-admin-shortcut {
        display: none;
    }

    .game-shell.app-scale-page .header-stats {
        grid-column: 1 / -1;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page .header-stat {
        flex: 0 0 136px;
        min-height: 70px;
        scroll-snap-align: start;
        border-radius: 12px;
    }

    .game-shell.app-scale-page .header-stat-money {
        flex-basis: 196px;
    }

    .game-shell.app-scale-page .header-stat-level {
        flex-basis: 226px;
    }

    .game-shell.app-scale-page .header-stat small,
    .game-shell.app-scale-page .header-stat-level .menu-progress-label strong,
    .game-shell.app-scale-page .header-stat-level .menu-progress-label span {
        white-space: normal;
    }

    .game-shell.app-scale-page .nav-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .game-shell.app-scale-page .nav-main,
    .game-shell.app-scale-page .nav-sub {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page .topbar-lower {
        display: none;
    }

    .game-shell.app-scale-page .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 38px;
        padding: 8px 10px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.36);
        border-radius: 10px;
        background: linear-gradient(180deg, var(--action), var(--action-strong));
        color: #fff8ef;
        box-shadow: 0 8px 18px rgba(var(--action-rgb), 0.16);
        font: inherit;
        font-size: 0.86rem;
        font-weight: 900;
        line-height: 1;
    }

    .game-shell.app-scale-page .mobile-menu-toggle-caret,
    .game-shell.app-scale-page .mobile-menu-caret {
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        flex: 0 0 auto;
    }

    .game-shell.app-scale-page .mobile-menu-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 500;
        display: block;
        padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        background: rgba(42, 31, 22, 0.42);
    }

    .game-shell.app-scale-page .mobile-menu-panel {
        display: block;
        width: 100%;
        height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
        max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(var(--theme-border-rgb), 0.28);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(250, 241, 228, 0.99));
        box-shadow: 0 18px 50px rgba(var(--theme-shadow-rgb), 0.26);
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--action-rgb), 0.58) rgba(255, 248, 239, 0.86);
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page .mobile-menu-panel::-webkit-scrollbar {
        width: 8px;
    }

    .game-shell.app-scale-page .mobile-menu-panel::-webkit-scrollbar-track {
        background: rgba(255, 248, 239, 0.86);
        border-radius: 999px;
    }

    .game-shell.app-scale-page .mobile-menu-panel::-webkit-scrollbar-thumb {
        background: rgba(var(--action-rgb), 0.58);
        border-radius: 999px;
    }

    .game-shell.app-scale-page .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px;
        border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.16);
    }

    .game-shell.app-scale-page .mobile-menu-head strong {
        display: block;
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page .mobile-menu-close {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.26);
        border-radius: 10px;
        background: rgba(255, 247, 236, 0.92);
        color: var(--accent);
        font: inherit;
        font-size: 1.4rem;
        font-weight: 900;
        line-height: 1;
    }

    .game-shell.app-scale-page .mobile-menu-admin-link {
        position: relative;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin: 12px 12px 0;
        min-height: 54px;
        padding: 9px 12px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.22);
        border-radius: 10px;
        background: rgba(255, 248, 239, 0.86);
        color: var(--text);
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }

    .game-shell.app-scale-page .mobile-menu-admin-link.is-active {
        border-color: rgba(var(--action-rgb), 0.42);
        background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
        color: var(--selected-text);
    }

    .game-shell.app-scale-page .mobile-menu-admin-icon {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.24);
        border-radius: 10px;
        background: rgba(255, 252, 247, 0.92);
        color: var(--accent);
    }

    .game-shell.app-scale-page .mobile-menu-admin-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .game-shell.app-scale-page .mobile-menu-admin-copy {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .game-shell.app-scale-page .mobile-menu-admin-copy > span {
        font-size: 0.98rem;
        font-weight: 950;
        line-height: 1.05;
    }

    .game-shell.app-scale-page .mobile-menu-admin-copy > small {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .game-shell.app-scale-page .mobile-menu-admin-badge {
        min-width: 26px;
        height: 26px;
        padding: 0 7px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(214, 231, 247, 0.9);
        color: #2d5b88;
        font-size: 0.78rem;
        font-weight: 950;
        line-height: 1;
    }

    .game-shell.app-scale-page .mobile-menu-admin-badge[hidden] {
        display: none;
    }

    .game-shell.app-scale-page .mobile-menu-sections {
        display: grid;
        align-content: start;
        gap: 8px;
        overflow: visible;
        padding: 12px;
    }

    .game-shell.app-scale-page .mobile-menu-section {
        border: 1px solid rgba(var(--theme-border-rgb), 0.18);
        border-radius: 10px;
        background: rgba(255, 248, 239, 0.76);
        overflow: hidden;
    }

    .game-shell.app-scale-page .mobile-menu-section > summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 12px;
        color: var(--text);
        cursor: pointer;
        list-style: none;
        font-weight: 900;
    }

    .game-shell.app-scale-page .mobile-menu-section > summary::-webkit-details-marker {
        display: none;
    }

    .game-shell.app-scale-page .mobile-menu-section[open] > summary {
        color: var(--accent-strong);
        border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.14);
    }

    .game-shell.app-scale-page .mobile-menu-section[open] .mobile-menu-caret {
        transform: rotate(225deg);
    }

    .game-shell.app-scale-page .mobile-menu-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
    }

    .game-shell.app-scale-page .mobile-menu-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 38px;
        padding: 8px 9px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.18);
        border-radius: 8px;
        background: rgba(255, 252, 247, 0.92);
        color: var(--text);
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.1;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page .mobile-menu-link.is-active {
        background: linear-gradient(180deg, var(--action), var(--action-strong));
        border-color: rgba(var(--action-rgb), 0.46);
        color: #fff8ef;
    }

    .game-shell.app-scale-page .mobile-menu-link.is-locked {
        opacity: 0.58;
    }

    .game-shell.app-scale-page .mobile-menu-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px 12px;
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.16);
        background: rgba(255, 248, 239, 0.8);
    }

    .game-shell.app-scale-page .mobile-menu-actions .language-switcher,
    .game-shell.app-scale-page .mobile-menu-logout-form {
        width: 100%;
    }

    .game-shell.app-scale-page .mobile-menu-actions .language-switcher {
        justify-content: center;
    }

    .game-shell.app-scale-page .mobile-menu-action {
        border-radius: 8px;
        font: inherit;
        cursor: pointer;
    }

    .game-shell.app-scale-page .mobile-menu-logout-button {
        width: 100%;
        color: var(--accent);
    }

    .game-shell .topbar-upper .guest-actions {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: stretch;
        align-items: stretch;
    }

    .game-shell .guest-actions .button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        padding-inline: 10px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell .guest-actions .language-switcher {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .game-shell .legal-tabs,
    .game-shell .support-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin !important;
        -webkit-overflow-scrolling: touch !important;
        background-image:
            var(--mobile-scroll-cue-left),
            var(--mobile-scroll-cue-right),
            linear-gradient(90deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)),
            linear-gradient(270deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)) !important;
        background-position:
            left 5px center,
            right 5px center,
            left center,
            right center !important;
        background-repeat: no-repeat !important;
        background-size:
            20px 30px,
            20px 30px,
            var(--mobile-scroll-cue-size) 100%,
            var(--mobile-scroll-cue-size) 100% !important;
        background-origin: border-box !important;
        background-clip: border-box !important;
        box-sizing: border-box !important;
        border-inline: var(--mobile-scroll-cue-size) solid transparent !important;
        padding-inline: 4px !important;
        scroll-padding-inline: calc(var(--mobile-scroll-cue-size) + 8px) !important;
        box-shadow:
            inset 1px 0 0 rgba(var(--action-rgb), 0.22),
            inset -1px 0 0 rgba(var(--action-rgb), 0.22) !important;
    }

    .game-shell .legal-tabs > *,
    .game-shell .support-tabs > * {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page .nav-main .nav-tab,
    .game-shell.app-scale-page .nav-main .nav-tab:has(.nav-badge),
    .game-shell.app-scale-page .nav-sub .nav-tab {
        flex: 0 0 auto;
        min-width: 112px;
        min-height: 42px;
        padding-inline: 12px;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page .nav-tool-stack,
    .game-shell.app-scale-page .nav-account-stack {
        grid-column: auto;
        grid-row: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 8px;
        padding-left: 0;
    }

    .game-shell.app-scale-page .nav-tool-stack::before {
        display: none;
    }

    .game-shell.app-scale-page .content {
        gap: 10px;
        margin-top: 10px;
    }

    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid,
    .game-shell.app-scale-page .home-active-car-panel .car-panel-full-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid .dealership-summary-card,
    .game-shell.app-scale-page .home-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6),
    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11) {
        grid-column: 1 !important;
    }

    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6),
    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(7),
    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11),
    .game-shell.app-scale-page .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(12) {
        margin-top: 12px !important;
    }

    .game-shell.app-scale-page .panel {
        padding: 14px;
        border-radius: 12px;
    }

    .game-shell.app-scale-page :where(
        .panel,
        .ui-row-card,
        .row-card,
        .catalog-card,
        .resource-card,
        .daily-gift-card,
        .achievement-card,
        .friend-gift-card,
        .garage-repair-card,
        .garage-history-card,
        .cup-card,
        .dealership-summary-card,
        .profile-progress-card,
        .team-kpi-card,
        .team-hero-helper,
        .team-upgrade-card,
        .team-sponsor-card,
        .resource-preview-item,
        .opponent-card
    ) {
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page :where(
        .team-two-column,
        .team-title-row.is-dashboard-hero,
        .team-dashboard-main-row,
        .team-active-upgrade-row,
        .team-member-row,
        .team-member-stats,
        .team-form-grid,
        .team-logo-grid,
        .team-radio-grid,
        .auth-layout,
        .auth-layout-login,
        .home-summary-grid,
        .home-active-summary-grid,
        .home-race-summary-grid,
        .card-grid-four,
        .catalog-card-meta,
        .stats-grid,
        .stats-strip,
        .dealership-summary-grid,
        .dealership-active-body,
        .dealership-active-stats,
        .race-item-toggle-grid,
        .race-item-selected-grid,
        .race-item-stat-grid,
        .launch-summary-grid,
        .opponent-summary-grid,
        .opponent-card-meta,
        .profile-identity-grid,
        .account-security-grid,
        .profile-week-stat-grid,
        .profile-week-detail-grid,
        .profile-showcase-grid,
        .profile-showcase-metrics,
        .profile-public-stat-grid,
        .mission-grid,
        .achievement-grid,
        .achievement-row,
        .scene-theme-grid,
        .scene-theme-target-panel
    ) {
        grid-template-columns: 1fr !important;
    }

    .game-shell.app-scale-page :where(
        .row-layout,
        .row-layout-visual,
        .row-main-visual,
        .race-row,
        .dealership-row,
        .table-row,
        .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card,
        .garage-index-upgrade-grid.is-row-layout .garage-preview-card,
        .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card,
        .mission-grid.is-row-layout .mission-card,
        .city-job-grid.is-row-layout .city-job-card,
        .city-job-shop-grid.is-row-layout .city-job-shop-card
    ) {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }

    .game-shell.app-scale-page :where(
        .mission-grid.is-row-layout .mission-card,
        .city-job-grid.is-row-layout .city-job-card,
        .city-job-shop-grid.is-row-layout .city-job-shop-card,
        .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card
    ) > * {
        grid-area: auto !important;
    }

    .game-shell.app-scale-page :where(
        .garage-detail-tabs,
        .garage-index-tabs,
        .dealership-tabs,
        .fan-club-tabs,
        .unlock-roadmap-tabs,
        .legal-tabs,
        .support-tabs,
        .friends-tabs,
        .team-tabs,
        .flow-filter-tabs,
        .team-member-sort-tabs,
        .team-leaderboard-sort-tabs,
        .team-history-filter-tabs,
        .achievement-filter-tabs,
        .city-jobs-tabs,
        .reward-tabs,
        .reward-filter-tabs,
        .mission-tabs,
        .profile-tabs,
        .profile-capacity-tabs,
        .home-tabs,
        .race-index-tabs,
        .tour-city-tabs,
        .appearance-tab-nav,
        .scene-theme-tab-nav,
        .cups-year-tabs,
        .madness-tabs,
        .upgrade-star-cycle-tabs,
        .race-pager,
        .race-pager-actions,
        .race-panel-toolbar,
        .race-track-toolbar,
        .race-track-nav-top,
        .team-upgrade-toolbar,
        .team-upgrade-pagination,
        .team-upgrade-nav,
        .section-footer-pager
    ) {
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page :where(
        .garage-detail-tabs,
        .garage-index-tabs,
        .dealership-tabs,
        .fan-club-tabs,
        .unlock-roadmap-tabs,
        .legal-tabs,
        .support-tabs,
        .friends-tabs,
        .team-tabs,
        .flow-filter-tabs,
        .team-member-sort-tabs,
        .team-leaderboard-sort-tabs,
        .team-history-filter-tabs,
        .achievement-filter-tabs,
        .city-jobs-tabs,
        .reward-tabs,
        .reward-filter-tabs,
        .mission-tabs,
        .profile-tabs,
        .profile-capacity-tabs,
        .home-tabs,
        .race-index-tabs,
        .tour-city-tabs,
        .appearance-tab-nav,
        .scene-theme-tab-nav,
        .cups-year-tabs,
        .madness-tabs,
        .upgrade-star-cycle-tabs
    ) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 8px;
    }

    .game-shell.app-scale-page :where(
        .garage-detail-tabs,
        .garage-index-tabs,
        .dealership-tabs,
        .fan-club-tabs,
        .unlock-roadmap-tabs,
        .legal-tabs,
        .support-tabs,
        .friends-tabs,
        .team-tabs,
        .flow-filter-tabs,
        .team-member-sort-tabs,
        .team-leaderboard-sort-tabs,
        .team-history-filter-tabs,
        .achievement-filter-tabs,
        .city-jobs-tabs,
        .reward-tabs,
        .reward-filter-tabs,
        .mission-tabs,
        .profile-tabs,
        .profile-capacity-tabs,
        .home-tabs,
        .race-index-tabs,
        .tour-city-tabs,
        .appearance-tab-nav,
        .scene-theme-tab-nav,
        .cups-year-tabs,
        .madness-tabs,
        .upgrade-star-cycle-tabs
    ) > * {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page :where(
        .card-actions,
        .actions-row,
        .race-hero-actions,
        .race-list-actions,
        .opponent-card-actions,
        .garage-detail-head-buttons,
        .dealership-catalog-actions,
        .home-notice-actions
    ) {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page .race-index-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        justify-content: stretch;
        justify-self: stretch;
        gap: 8px;
        width: 100%;
    }

    .game-shell.app-scale-page .race-index-hero-actions .race-active-car-switcher {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        height: auto;
    }

    .game-shell.app-scale-page .race-index-hero-actions .race-active-car-switcher form {
        display: flex;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions .race-active-car-switcher {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions .race-active-car-switcher form {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .game-shell.app-scale-page .race-index-hero-actions .button,
    .game-shell.app-scale-page .race-index-hero-actions .race-active-car-switch-button {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        height: auto;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 0.88rem;
        line-height: 1.1;
        white-space: normal;
    }

    .game-shell.app-scale-page .race-index-hero-actions .button .button-action-icon,
    .game-shell.app-scale-page .race-index-hero-actions .race-active-car-switch-button .button-action-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .game-shell.app-scale-page .race-index-hero-actions .race-active-car-switch-button span:last-child {
        overflow-wrap: normal;
        word-break: normal;
    }

    .game-shell.app-scale-page .race-index-hero-actions > .button:nth-of-type(n + 3):last-child {
        grid-column: 1 / -1;
    }

    .game-shell.app-scale-page :where(
        .button,
        .card-actions > *,
        .actions-row > *,
        .race-hero-actions > *,
        .race-list-actions > *,
        .opponent-card-actions > *,
        .garage-detail-head-buttons > *,
        .dealership-catalog-actions > *,
        .home-notice-actions > *
    ) {
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page .button {
        white-space: normal;
    }

    .game-shell.app-scale-page.app-compact-viewport .home-pinned-notices-strip,
    .game-shell.app-scale-page .app-compact-viewport .home-pinned-notices-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .game-shell.app-scale-page.app-compact-viewport .home-pinned-notice,
    .game-shell.app-scale-page .app-compact-viewport .home-pinned-notice {
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page :where(.badge, .action-pill, .filter-pill, .pill) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page :where(img, .car-visual, .upgrade-visual, .race-item-visual, .collection-part-visual) {
        max-width: 100%;
    }

    .game-shell.app-scale-page .page-scroll-actions {
        top: auto !important;
        right: max(10px, calc(env(safe-area-inset-right) + 10px)) !important;
        bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px)) !important;
        transform: none !important;
        gap: 8px;
        z-index: 60;
    }

    .game-shell.app-scale-page :where(
        .section-footer-pager,
        .reward-bottom-pager,
        .team-catalog-pager,
        .fan-club-rank-pager,
        .cups-archive-top-pager,
        .cups-archive-actions,
        .profile-cup-actions
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: start !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page .race-pager {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        justify-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        background-image: none !important;
        border-inline: 0 !important;
        padding: 0 !important;
        scroll-padding-inline: 0 !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page .race-pager-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-self: start !important;
        min-height: 34px !important;
        max-width: 100% !important;
        padding: 7px 10px !important;
        border: 1px solid rgba(var(--theme-border-rgb), 0.22) !important;
        border-radius: 10px !important;
        background: rgba(255, 252, 247, 0.9) !important;
        color: var(--accent-strong) !important;
        font-size: 0.88rem !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .race-pager-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 2px !important;
        background-image: none !important;
        border-inline: 0 !important;
        scroll-padding-inline: 0 !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page .race-pager-actions::-webkit-scrollbar {
        display: none !important;
    }

    .game-shell.app-scale-page .race-pager-number-set {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
    }

    .game-shell.app-scale-page .race-pager-number.is-mobile-extra-page {
        display: none !important;
    }

    .game-shell.app-scale-page .race-pager-actions > .race-pager-button,
    .game-shell.app-scale-page .race-pager-actions > a.race-pager-button,
    .game-shell.app-scale-page .race-pager-actions > span.race-pager-button,
    .game-shell.app-scale-page .race-pager-number {
        display: inline-grid !important;
        place-items: center !important;
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        gap: 0 !important;
        white-space: nowrap !important;
    }

    .game-shell.app-scale-page .race-pager-actions > .race-pager-button > span:not(.race-pager-icon),
    .game-shell.app-scale-page .race-pager-actions > a.race-pager-button > span:not(.race-pager-icon),
    .game-shell.app-scale-page .race-pager-actions > span.race-pager-button > span:not(.race-pager-icon) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .game-shell.app-scale-page .race-pager-icon,
    .game-shell.app-scale-page .race-pager-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .game-shell.app-scale-page .section-title-row:has(.mission-panel-actions) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .game-shell.app-scale-page .mission-panel-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .game-shell.app-scale-page .mission-bulk-claim-form,
    .game-shell.app-scale-page .mission-panel-actions .button,
    .game-shell.app-scale-page .mission-panel-actions .race-pager {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .panel-title-row:has(> .action-pill),
        .panel-title-row:has(> .is-status-pill),
        .panel-title-row:has(> .garage-detail-status-pill),
        .panel-title-row:has(> .badge),
        .section-title-row:has(> .action-pill),
        .section-title-row:has(> .is-status-pill),
        .section-title-row:has(> .garage-detail-status-pill),
        .section-title-row:has(> .badge)
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .panel-title-row:has(> .action-pill),
        .panel-title-row:has(> .is-status-pill),
        .panel-title-row:has(> .garage-detail-status-pill),
        .panel-title-row:has(> .badge),
        .section-title-row:has(> .action-pill),
        .section-title-row:has(> .is-status-pill),
        .section-title-row:has(> .garage-detail-status-pill),
        .section-title-row:has(> .badge)
    ) > * {
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .panel-title-row:has(> .action-pill),
        .panel-title-row:has(> .is-status-pill),
        .panel-title-row:has(> .garage-detail-status-pill),
        .panel-title-row:has(> .badge),
        .section-title-row:has(> .action-pill),
        .section-title-row:has(> .is-status-pill),
        .section-title-row:has(> .garage-detail-status-pill),
        .section-title-row:has(> .badge)
    ) :where(.eyebrow, .panel-title, h1, h2, p, .muted) {
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page :where(
        .panel-title-row,
        .section-title-row
    ) > :where(.action-pill, .is-status-pill, .garage-detail-status-pill, .badge) {
        justify-self: start !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        text-align: left !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page :where(
        .race-section-head,
        .team-catalog-head,
        .garage-panel-title-row,
        .car-panel-full-head-actions
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .race-section-head,
        .team-catalog-head,
        .garage-panel-title-row,
        .car-panel-full-head-actions
    ) > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .race-section-head,
        .team-catalog-head,
        .garage-panel-title-row,
        .car-panel-full-head-actions
    ) :where(.eyebrow, h1, h2, .panel-title, p, .muted, .section-head-copy) {
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page :where(
        .garage-contracts-head-actions,
        .garage-detail-head-actions,
        .car-panel-full-actions,
        .profile-panel-actions
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
        margin-left: 0 !important;
    }

    .game-shell.app-scale-page :where(
        .garage-contracts-head-actions,
        .garage-detail-head-actions,
        .car-panel-full-actions,
        .profile-panel-actions
    ) :where(.button, .action-pill, .is-status-pill, .garage-detail-status-pill, .badge, form) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-table-wrap {
        box-sizing: border-box !important;
        display: block !important;
        width: min(100%, calc(100vw - 42px)) !important;
        max-width: min(100%, calc(100vw - 42px)) !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-panel,
    .game-shell.app-scale-page .garage-upgrade-guide-panel > *,
    .game-shell.app-scale-page .garage-upgrade-guide-stack,
    .game-shell.app-scale-page .garage-upgrade-guide-card,
    .game-shell.app-scale-page .garage-upgrade-guide-card > *,
    .game-shell.app-scale-page .garage-upgrade-guide-card summary,
    .game-shell.app-scale-page .garage-upgrade-guide-card .team-member-time-content,
    .game-shell.app-scale-page .profile-capacity-guide,
    .game-shell.app-scale-page .profile-capacity-guide > *,
    .game-shell.app-scale-page .profile-capacity-guide .garage-accordion-content {
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-panel,
    .game-shell.app-scale-page .garage-upgrade-guide-card,
    .game-shell.app-scale-page .garage-upgrade-guide-card .team-member-time-content,
    .game-shell.app-scale-page .profile-capacity-guide {
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-panel > .panel-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-panel > .panel-title-row > div,
    .game-shell.app-scale-page .garage-upgrade-guide-panel > .panel-title-row .muted {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill,
    .game-shell.app-scale-page .garage-upgrade-guide-panel > .panel-title-row .badge {
        justify-self: start !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        text-align: left !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card summary {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 38px !important;
        gap: 8px !important;
        align-items: start !important;
        padding: 10px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-title-row {
        display: grid !important;
        grid-template-columns: 74px minmax(0, 1fr) !important;
        gap: 9px !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-visual,
    .game-shell.app-scale-page .garage-upgrade-guide-card .team-upgrade-image {
        width: 74px !important;
        max-width: 74px !important;
        min-width: 0 !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 3px !important;
        border-radius: 8px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-title-row > span:last-child,
    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-title-row strong,
    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-title-row small {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card summary > span:last-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card summary > .upgrade-guide-bonus-line {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-guide-bonus-label,
    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-guide-bonus-stats {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-guide-bonus-stats {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card .upgrade-guide-bonus-stats::-webkit-scrollbar {
        display: none !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-card summary::after {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-table {
        width: max-content !important;
        min-width: 620px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-table th,
    .game-shell.app-scale-page .garage-upgrade-guide-table td {
        padding: 8px 7px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 0.86rem !important;
        line-height: 1.18 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-table th:first-child,
    .game-shell.app-scale-page .garage-upgrade-guide-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        min-width: 86px !important;
        background: rgba(255, 251, 246, 0.98) !important;
        box-shadow:
            1px 0 0 rgba(var(--theme-border-rgb), 0.18),
            8px 0 14px rgba(47, 37, 30, 0.08) !important;
    }

    .game-shell.app-scale-page .garage-upgrade-guide-table th:first-child {
        z-index: 4 !important;
        background: #fff7ec !important;
    }

    .game-shell.app-scale-page [data-star-guide] .upgrade-star-cycle-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: min(100%, calc(100vw - 42px)) !important;
        max-width: min(100%, calc(100vw - 42px)) !important;
        min-width: 0 !important;
        overflow: visible !important;
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        box-shadow: none !important;
        scroll-padding-inline: 0 !important;
    }

    .game-shell.app-scale-page [data-star-guide] .upgrade-star-cycle-tabs > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: initial !important;
    }

    .game-shell.app-scale-page [data-star-guide] .upgrade-star-cycle-tab.button {
        min-height: 38px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }

    .game-shell.app-scale-page .profile-background-options {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .game-shell.app-scale-page .profile-background-option {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
    }

    .game-shell.app-scale-page .profile-background-preview {
        width: 72px !important;
        max-width: 72px !important;
        min-width: 0 !important;
        border-radius: 7px !important;
    }

    .game-shell.app-scale-page .profile-background-option-body {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .profile-background-option-body strong,
    .game-shell.app-scale-page .profile-background-option-body span {
        font-size: 0.9rem !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .profile-background-option-form {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .unlock-roadmap-head {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .unlock-roadmap-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .unlock-roadmap-summary-card {
        min-width: 0 !important;
        min-height: 62px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .unlock-roadmap-summary-card span,
    .game-shell.app-scale-page .unlock-roadmap-summary-card strong {
        font-size: 1rem !important;
        line-height: 1.1 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .flow-hero-actions {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page .race-page-hero.flow-hero,
    .game-shell.app-scale-page .flow-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .flow-hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    .game-shell.app-scale-page .flow-hero-copy .eyebrow,
    .game-shell.app-scale-page .flow-hero-copy h1,
    .game-shell.app-scale-page .flow-hero-copy p,
    .game-shell.app-scale-page .flow-hero .resources-lead {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .game-shell.app-scale-page .flow-hero-copy h1 {
        font-size: 1.28rem !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page .flow-hero-actions .badge.badge--count {
        width: auto !important;
        max-width: 100% !important;
        justify-self: start !important;
    }

    .game-shell.app-scale-page .notifications-summary-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: start !important;
        gap: 8px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .notifications-summary-badge {
        justify-self: start !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .upgrade-stars {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .upgrade-star {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .game-shell.app-scale-page .upgrade-star img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .game-shell.app-scale-page .garage-car-heading-actions,
    .game-shell.app-scale-page .garage-display-order-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .game-shell.app-scale-page .garage-detail-head-buttons .garage-detail-car-nav-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-detail-head-buttons .garage-detail-car-nav-actions > .button:only-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .garage-detail-head-buttons .garage-detail-car-nav-actions > .button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-inline: 10px !important;
    }

    .game-shell.app-scale-page .garage-car-heading {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .garage-display-order-actions form,
    .game-shell.app-scale-page .garage-display-order-actions .garage-order-button {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-heading-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px 46px !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-active-car-form,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-active-car-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-display-order-actions {
        display: contents !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-display-order-actions form,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-order-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-order-button > span:not(.button-action-icon) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-media {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-media .car-visual.is-featured {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: 0 !important;
        aspect-ratio: 16 / 10 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-media-action,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-media-action form,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-run-now-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-controls,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .stacked-upgrade-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-label {
        white-space: normal !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-position-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-position-choice,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-position-choice span {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-position-choice span {
        height: 100% !important;
        min-height: 38px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
        font-size: 0.86rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-row > .button,
    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-multi-row > .garage-details-inline-button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 40px !important;
        margin-left: 0 !important;
        padding-block: 8px !important;
    }

    .game-shell.app-scale-page .garage-summary-panel {
        gap: 12px !important;
        padding: 14px !important;
    }

    .game-shell.app-scale-page .garage-summary-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-summary-head > *,
    .game-shell.app-scale-page .garage-summary-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-summary-head h1,
    .game-shell.app-scale-page .garage-summary-head .muted,
    .game-shell.app-scale-page .garage-summary-actions p {
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-summary-panel .garage-next-slot-box {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .game-shell.app-scale-page .garage-summary-panel .garage-next-slot-box > *,
    .game-shell.app-scale-page .garage-summary-panel .garage-next-slot-box form,
    .game-shell.app-scale-page .garage-summary-panel .garage-unlock-slot-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-summary-panel .garage-next-slot-box strong {
        margin-bottom: 4px !important;
        font-size: 1rem !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-summary-panel .garage-next-slot-box p {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-info > .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: visible !important;
    }

    .game-shell.app-scale-page .garage-grid.is-row-layout .car-card .garage-car-info > .stats-grid > .dealership-summary-card {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 62px !important;
        padding: 8px 9px !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-balance-head,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-jobs-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 12px !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-balance-head > .panel-title,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-jobs-title-row > .panel-title {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-balance-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-hourglass-stock-pill,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-balance-pill,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-balance-actions > .garage-detail-status-pill {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .garage-job-meta-card.is-job-completion strong {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .garage-job-meta-card.is-job-completion .garage-remaining-time-line {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 3px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-repair-panel > .panel-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-repair-panel > .panel-title-row > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-panel-pill-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-stock-pill-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-panel-pill-stack .garage-hourglass-stock-pill,
    .game-shell.app-scale-page .garage-repair-panel .garage-panel-pill-stack .badge {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .garage-history-panel {
        gap: 12px !important;
    }

    .game-shell.app-scale-page .garage-history-panel > .panel-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-history-panel > .panel-title-row > div,
    .game-shell.app-scale-page .garage-history-panel > .panel-title-row .muted {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-history-panel > .panel-title-row .garage-detail-status-pill {
        justify-self: start !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .game-shell.app-scale-page .garage-history-stat-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-history-stat-grid .profile-stat-card {
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .garage-history-stat-grid .profile-stat-card span,
    .game-shell.app-scale-page .garage-history-stat-grid .profile-stat-card strong {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page .garage-history-stat-grid .profile-stat-card span {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page .garage-history-highlight-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-history-card {
        min-width: 0 !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .garage-history-card span,
    .game-shell.app-scale-page .garage-history-card strong,
    .game-shell.app-scale-page .garage-history-card p {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-history-card span,
    .game-shell.app-scale-page .garage-history-card strong {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page .garage-history-row {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 8px 10px !important;
        align-items: start !important;
        padding: 10px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-history-row .car-visual,
    .game-shell.app-scale-page .garage-history-row .ui-row-media {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 72px !important;
        max-width: 72px !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
    }

    .game-shell.app-scale-page .garage-history-opponent {
        grid-column: 2 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-history-row > span:not(.garage-history-opponent),
    .game-shell.app-scale-page .garage-history-row > small {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-history-stats {
        font-size: 0.92rem !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-condition-forecast-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-condition-forecast-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-condition-forecast-cards .profile-stat-card {
        min-width: 0 !important;
        min-height: 72px !important;
        padding: 10px 12px !important;
    }

    .game-shell.app-scale-page .garage-repair-panel .garage-condition-forecast-cards .profile-stat-card:nth-child(3) {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-stat-grid,
    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card,
    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-grid .profile-stat-card {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 72px !important;
        padding: 10px 12px !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card span,
    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card strong,
    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-grid .profile-stat-card span,
    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-grid .profile-stat-card strong {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-panel {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .garage-mastery-panel .garage-mastery-next-panel > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel,
    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-toggle,
    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-content {
        box-sizing: border-box !important;
        width: min(100%, calc(100vw - 10px)) !important;
        max-width: min(100%, calc(100vw - 10px)) !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-toggle {
        position: relative !important;
        display: block !important;
        min-height: 0 !important;
        padding: 16px 16px 14px !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-content {
        padding: 0 16px 16px !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-icon {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        z-index: 2 !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-toggle > div,
    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-accordion-toggle .muted {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-upgrade-guide-table-wrap {
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .upgrade-star-cycle-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: min(100%, calc(100vw - 42px)) !important;
        max-width: min(100%, calc(100vw - 42px)) !important;
        min-width: 0 !important;
        overflow: visible !important;
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        box-shadow: none !important;
        scroll-padding-inline: 0 !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .upgrade-star-cycle-tabs > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: initial !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .upgrade-star-cycle-tab.button {
        min-height: 38px !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-upgrade-guide-table-wrap {
        box-sizing: border-box !important;
        width: min(100%, calc(100vw - 42px)) !important;
        max-width: min(100%, calc(100vw - 42px)) !important;
        min-width: 0 !important;
        background-image:
            var(--mobile-scroll-cue-left),
            var(--mobile-scroll-cue-right),
            linear-gradient(90deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)),
            linear-gradient(270deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)) !important;
        background-position:
            left 5px center,
            right 5px center,
            left center,
            right center !important;
        background-repeat: no-repeat !important;
        background-size:
            20px 30px,
            20px 30px,
            var(--mobile-scroll-cue-size) 100%,
            var(--mobile-scroll-cue-size) 100% !important;
        background-origin: border-box !important;
        background-clip: border-box !important;
        border-inline: var(--mobile-scroll-cue-size) solid transparent !important;
        padding-inline: 4px !important;
        scroll-padding-inline: calc(var(--mobile-scroll-cue-size) + 8px) !important;
        box-shadow:
            inset 1px 0 0 rgba(var(--action-rgb), 0.22),
            inset -1px 0 0 rgba(var(--action-rgb), 0.22) !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-upgrade-guide-table th:nth-child(1),
    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-upgrade-guide-table td:nth-child(1) {
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        min-width: 86px !important;
        background: rgba(255, 251, 246, 0.98) !important;
        box-shadow:
            1px 0 0 rgba(var(--theme-border-rgb), 0.18),
            8px 0 14px rgba(47, 37, 30, 0.08) !important;
    }

    .game-shell.app-scale-page .garage-mastery-scale-panel .garage-upgrade-guide-table th:nth-child(1) {
        z-index: 4 !important;
        background: #fff7ec !important;
    }

    .game-shell.app-scale-page .race-track-mastery-progress-panel .garage-upgrade-guide-table th:first-child {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        z-index: 1 !important;
        min-width: 190px !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page .race-track-mastery-progress-panel .garage-upgrade-guide-table td:first-child {
        position: static !important;
        left: auto !important;
        z-index: auto !important;
        min-width: 190px !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page .race-track-mastery-progress-panel .garage-upgrade-guide-table td:first-child small.muted {
        display: block !important;
        margin-top: 2px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row {
        display: grid !important;
        grid-template-columns: minmax(118px, 140px) minmax(0, 1fr) !important;
        grid-auto-rows: auto !important;
        align-items: start !important;
        gap: 8px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > .upgrade-visual {
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        width: 100% !important;
        max-width: 140px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div {
        display: contents !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > strong,
    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > p,
    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta > .badge {
        grid-column: 2 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta {
        display: contents !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta > .upgrade-stars {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        padding-top: 2px !important;
    }

    .game-shell.app-scale-page .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta > small {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .resource-preview-item {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .resource-preview-item.is-bonus {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .resource-preview-item.is-compact {
        min-height: 72px !important;
        padding: 10px 12px !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .resource-preview-item > strong,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .resource-preview-item > span {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        justify-content: stretch !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .resource-preview-item {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 72px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid .garage-infrastructure-current-time {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 72px !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .resource-preview-item:nth-child(4),
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .resource-preview-item:nth-child(7) {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .resource-preview-item > strong,
    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .resource-preview-item > span {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page :where(
        .header-stats,
        .nav-main,
        .nav-sub,
        .garage-detail-tabs,
        .garage-index-tabs,
        .dealership-tabs,
        .fan-club-tabs,
        .unlock-roadmap-tabs,
        .legal-tabs,
        .support-tabs,
        .friends-tabs,
        .team-tabs,
        .flow-filter-tabs,
        .team-member-sort-tabs,
        .team-leaderboard-sort-tabs,
        .team-history-filter-tabs,
        .achievement-filter-tabs,
        .city-jobs-tabs,
        .reward-tabs,
        .reward-filter-tabs,
        .mission-tabs,
        .profile-tabs,
        .profile-capacity-tabs,
        .home-tabs,
        .race-index-tabs,
        .tour-city-tabs,
        .appearance-tab-nav,
        .scene-theme-tab-nav,
        .cups-year-tabs,
        .madness-tabs,
        .garage-upgrade-guide-table-wrap,
        .race-multi-lineup-format-table-wrap,
        .opponent-summary-format-table-wrap
    ) {
        background-image:
            var(--mobile-scroll-cue-left),
            var(--mobile-scroll-cue-right),
            linear-gradient(90deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)),
            linear-gradient(270deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size));
        background-position:
            left 5px center,
            right 5px center,
            left center,
            right center;
        background-repeat: no-repeat;
        background-size:
            20px 30px,
            20px 30px,
            var(--mobile-scroll-cue-size) 100%,
            var(--mobile-scroll-cue-size) 100%;
        background-origin: border-box;
        background-clip: border-box;
        box-sizing: border-box;
        border-radius: 10px;
        border-inline: var(--mobile-scroll-cue-size) solid transparent;
        padding-inline: 4px !important;
        scroll-padding-inline: calc(var(--mobile-scroll-cue-size) + 8px);
        box-shadow:
            inset 1px 0 0 rgba(var(--action-rgb), 0.22),
            inset -1px 0 0 rgba(var(--action-rgb), 0.22);
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-selected-summary-toggle-stats,
        .race-selected-summary-meta-grid,
        .race-selected-summary-grid,
        .race-selected-setup-format-grid,
        .race-active-car-compact-summary,
        .race-active-car-compact-breakdown,
        .car-panel-full-breakdown-grid,
        .race-multi-lineup-compact-grid,
        .race-multi-lineup-breakdown-grid,
        .race-multi-lineup-total-grid,
        .opponent-summary-grid,
        .race-multi-lineup-analysis-toolbar,
        .race-multi-lineup-analysis-counts
    ) {
        background-image:
            var(--mobile-scroll-cue-left),
            var(--mobile-scroll-cue-right),
            linear-gradient(90deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size)),
            linear-gradient(270deg, rgba(var(--action-rgb), 0.18) 0 var(--mobile-scroll-cue-size), rgba(255, 248, 239, 0) var(--mobile-scroll-cue-size));
        background-position:
            left 5px center,
            right 5px center,
            left center,
            right center;
        background-repeat: no-repeat;
        background-size:
            20px 30px,
            20px 30px,
            var(--mobile-scroll-cue-size) 100%,
            var(--mobile-scroll-cue-size) 100%;
        background-origin: border-box;
        background-clip: border-box;
        box-sizing: border-box;
        border-radius: 10px;
        border-inline: var(--mobile-scroll-cue-size) solid transparent;
        padding-inline: 4px !important;
        scroll-padding-inline: calc(var(--mobile-scroll-cue-size) + 8px);
        box-shadow:
            inset 1px 0 0 rgba(var(--action-rgb), 0.22),
            inset -1px 0 0 rgba(var(--action-rgb), 0.22);
    }

    .game-shell.app-scale-page .header-stats {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow: visible !important;
        padding: 0 !important;
        scroll-snap-type: none !important;
        scrollbar-width: none !important;
        background-image: none !important;
        border-inline: 0 !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page .header-stats::-webkit-scrollbar {
        display: none;
    }

    .game-shell.app-scale-page .header-stat,
    .game-shell.app-scale-page .header-stat-money,
    .game-shell.app-scale-page .header-stat-level {
        flex: initial !important;
        grid-column: span 2;
        min-width: 0 !important;
        min-height: 62px !important;
        padding: 8px !important;
        scroll-snap-align: none !important;
    }

    .game-shell.app-scale-page .header-stat-money,
    .game-shell.app-scale-page .header-stat-level {
        grid-column: span 3;
    }

    .game-shell.app-scale-page .header-stat span {
        font-size: 0.72rem;
    }

    .game-shell.app-scale-page .header-stat strong,
    .game-shell.app-scale-page .header-stat-money strong {
        font-size: 0.94rem;
    }

    .game-shell.app-scale-page .header-stat small {
        font-size: 0.64rem;
        line-height: 1.15;
    }

    .game-shell.app-scale-page .garage-detail-tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        gap: 8px !important;
        overflow: visible !important;
        padding-inline: 10px !important;
        scroll-snap-type: none !important;
        scrollbar-width: none !important;
        background-image: none !important;
        border-inline: 0 !important;
        scroll-padding-inline: 0 !important;
        box-shadow: var(--shadow-card) !important;
    }

    .game-shell.app-scale-page .garage-detail-tabs::-webkit-scrollbar {
        display: none;
    }

    .game-shell.app-scale-page .garage-detail-tabs > * {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    .game-shell.app-scale-page .garage-detail-tabs .garage-detail-tab,
    .game-shell.app-scale-page .garage-detail-tabs :where(a, button, label) {
        justify-content: flex-start;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .garage-detail-tabs .garage-detail-tab {
        position: relative;
        min-height: 46px !important;
        padding: 10px 14px 10px 18px !important;
        border-radius: 10px !important;
        background: rgba(255, 253, 249, 0.9) !important;
        border-color: rgba(var(--theme-border-rgb), 0.22) !important;
        color: var(--muted) !important;
        box-shadow: inset 4px 0 0 rgba(var(--theme-border-rgb), 0.18) !important;
        text-align: left;
    }

    .game-shell.app-scale-page .garage-detail-tabs .garage-detail-tab.is-active {
        background: rgba(var(--action-rgb), 0.1) !important;
        border-color: rgba(var(--action-rgb), 0.42) !important;
        color: var(--action-strong) !important;
        box-shadow:
            inset 5px 0 0 var(--action),
            0 8px 16px rgba(var(--action-rgb), 0.08) !important;
    }

}

@media (max-width: 560px) {
    .game-shell.app-scale-page .app-scale-viewport {
        padding-inline: 5px;
    }

    .game-shell.app-scale-page .topbar {
        padding: 10px;
        border-radius: 14px;
    }

    .game-shell.app-scale-page .panel {
        padding: 12px;
    }

    .game-shell.app-scale-page :where(
        .button,
        .card-actions > *,
        .actions-row > *,
        .race-list-actions > *,
        .opponent-card-actions > *,
        .garage-detail-head-buttons > *,
        .dealership-catalog-actions > *,
        .home-notice-action-button
    ) {
        width: 100%;
    }

    .game-shell.app-scale-page :where(
        .stats-grid,
        .stats-strip,
        .home-summary-grid,
        .card-grid-four,
        .catalog-card-meta,
        .resource-preview-list-compact,
        .daily-gift-reward-list
    ) {
        grid-template-columns: 1fr !important;
    }

    .game-shell.app-scale-page .cup-summary-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .cup-summary-strip > .cup-stat-box {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .cup-summary-strip > .cup-stat-box:first-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .dealership-catalog .dealership-mini-stats,
    .game-shell.app-scale-page .dealership-preview-catalog .dealership-mini-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .dealership-catalog .dealership-mini-stats > div,
    .game-shell.app-scale-page .dealership-preview-catalog .dealership-mini-stats > div {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 760px) {
    .game-shell.app-scale-page.race-scale-page .race-page-hero {
        gap: 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-page-hero .resources-lead {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-active-car-accordion,
        .race-setup-accordion,
        .race-options-accordion,
        .race-multi-lineup-accordion,
        .race-latest-accordion
    ) {
        padding: 0 !important;
        gap: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-page-hero h1,
        .race-page-hero .resources-lead,
        .race-active-car-summary-copy strong,
        .race-active-car-summary-copy .muted,
        .race-active-car-summary-bar-label span,
        .race-active-car-summary-bar-label small,
        .race-active-car-summary-bar-label b,
        .race-active-car-summary-stats .dealership-chip span,
        .race-active-car-summary-stats .dealership-chip strong,
        .race-mode-summary-copy strong,
        .race-track-summary-copy strong,
        .race-track-location-line,
        .race-mode-card h3,
        .race-mode-card p,
        .race-mode-stat-box span,
        .race-mode-stat-box strong,
        .race-track-stat-box span,
        .race-track-stat-box strong,
        .race-track-title,
        .race-track-title-location,
        .race-sidebar-copy,
        .race-track-mastery-card .label-row span,
        .race-track-mastery-footer strong,
        .race-track-mastery-footer small,
        .race-selected-summary-toggle-copy strong,
        .race-selected-summary-toggle-copy small,
        .race-selected-summary-toggle-score span,
        .race-selected-summary-toggle-score small,
        .race-selected-summary-toggle-score strong,
        .race-summary-card > strong,
        .race-summary-card-head > strong,
        .race-summary-card-head > span,
        .race-summary-values > span,
        .race-summary-values b,
        .race-summary-card-meta span,
        .race-summary-card-meta strong,
        .home-race-summary-card strong,
        .home-race-summary-line span,
        .home-race-summary-line b,
        .opponent-single-info strong,
        .opponent-single-info p,
        .opponent-winrate,
        .opponent-card-meta > * > span,
        .opponent-card-meta > * > strong,
        .opponent-summary-card > strong,
        .opponent-summary-card-head strong,
        .opponent-summary-card-head small,
        .opponent-summary-values > span,
        .opponent-summary-values > span > span,
        .opponent-summary-values b,
        .button,
        .chip,
        .action-pill
    ) {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-active-car-summary-stats .dealership-chip,
        .race-mode-stat-box,
        .race-track-stat-box,
        .race-selected-summary-toggle-score,
        .race-summary-card,
        .home-race-summary-card,
        .opponent-card-meta > *,
        .opponent-summary-card
    ) {
        align-content: start;
        height: auto;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "main"
            "bars"
            "stats";
        gap: 10px;
        padding: 12px;
        align-items: start;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-main {
        grid-area: main;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 10px;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-visual.car-visual {
        width: 86px;
        min-width: 86px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-copy strong,
    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-copy .muted,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-summary-copy strong,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-summary-copy .muted {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bars {
        grid-area: bars;
        grid-column: auto;
        grid-row: auto;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bar-label {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bar-label small,
    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bar-label b {
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-stats {
        grid-area: stats;
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-stats .dealership-chip {
        min-height: 54px;
        padding: 8px 9px;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary .race-accordion-icon {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 38px !important;
        height: 38px !important;
        align-self: auto !important;
        justify-self: auto !important;
        z-index: 2;
    }

    .game-shell.app-scale-page.race-scale-page .race-accordion-toggle,
    .game-shell.app-scale-page.race-scale-page .race-mode-summary-toggle,
    .game-shell.app-scale-page.race-scale-page .race-track-summary-toggle {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        gap: 10px;
        padding: 12px;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-active-car-summary-main,
        .race-mode-summary-copy,
        .race-track-summary-copy,
        .race-multi-lineup-summary-copy
    ) {
        padding-right: 48px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-accordion-toggle > .race-accordion-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 38px !important;
        height: 38px !important;
        align-self: auto !important;
        justify-self: auto !important;
        z-index: 2;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-selected-stats,
    .game-shell.app-scale-page.race-scale-page .race-track-selected-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box,
    .game-shell.app-scale-page.race-scale-page .race-track-stat-box {
        min-height: 56px;
        padding: 8px 9px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box span,
    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box strong,
    .game-shell.app-scale-page.race-scale-page .race-track-stat-box span,
    .game-shell.app-scale-page.race-scale-page .race-track-stat-box strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page .race-accordion-content {
        padding: 10px 12px 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-panel {
        padding: 10px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        grid-template-areas:
            "copy icon"
            "stats stats";
        align-items: start;
        gap: 10px;
        padding: 12px;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-copy {
        grid-area: copy;
        gap: 3px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle .race-accordion-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        grid-area: auto !important;
        width: 38px !important;
        height: 38px !important;
        align-self: auto !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats.has-weather-preview,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats:has(> :nth-child(2):last-child) {
        grid-area: stats;
        grid-column: auto;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(118px, 42vw);
        grid-template-columns: none !important;
        gap: 8px !important;
        width: 100% !important;
        justify-self: stretch !important;
        justify-content: start !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-weather-cover {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        align-self: stretch;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score {
        min-height: 54px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
        gap: 4px !important;
        justify-items: start !important;
        text-align: left !important;
        align-content: start !important;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score span,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score small,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score strong {
        font-size: 0.78rem !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score.is-final-score > span:first-child,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score strong {
        font-size: 0.86rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-title {
        margin-top: 8px;
        font-size: 1.05rem;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-subtitle {
        margin-top: 6px;
        text-align: left;
        justify-self: start;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-selected-summary-meta-grid,
        .race-selected-summary-grid,
        .race-multi-lineup-format-tables-grid,
        .race-selected-setup-format-grid,
        .race-active-car-compact-summary,
        .race-active-car-compact-breakdown,
        .car-panel-full-breakdown-grid,
        .race-multi-lineup-compact-grid,
        .race-multi-lineup-breakdown-grid,
        .race-multi-lineup-total-grid,
        .opponent-summary-grid
    ) {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 74vw);
        grid-template-columns: none !important;
        gap: 8px !important;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-selected-summary-meta-grid,
        .race-selected-summary-grid
    ) {
        margin-top: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-summary-card,
        .home-race-summary-card,
        .race-multi-lineup-format-table-card,
        .opponent-summary-card
    ) {
        min-width: 0;
        min-height: 0 !important;
        padding: 10px 11px !important;
        border-radius: 10px !important;
        gap: 7px !important;
        scroll-snap-align: start;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .car-panel-breakdown-card-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start !important;
        gap: 7px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head-meta,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-card-head-meta {
        justify-content: end !important;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-values,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-values,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-lines {
        gap: 4px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-values > span,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-values > span,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-line {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(56px, auto) !important;
        gap: 8px !important;
        align-items: start !important;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-values b,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-values b,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-line b {
        justify-self: end !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-card-meta {
        align-content: start !important;
        justify-items: start !important;
        text-align: left !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-multi-lineup-format-table-wrap,
        .opponent-summary-format-table-wrap
    ) {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-multi-lineup-format-table,
        .opponent-summary-format-table
    ) {
        width: max-content;
        min-width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) !important;
        grid-template-areas:
            "media main"
            "meta meta"
            "actions actions" !important;
        gap: 10px;
        padding: 10px;
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-image {
        grid-area: media;
        width: 92px;
        max-width: none;
        min-height: 74px;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-head {
        grid-area: main;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-grid {
        grid-area: meta;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card > form {
        grid-area: actions;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card > form .button {
        width: 100%;
        min-height: 42px;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-showcase.has-track-image {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-image {
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-copy .race-track-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-mastery-card .label-row,
    .game-shell.app-scale-page.race-scale-page .race-track-mastery-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        grid-template-areas:
            "media info"
            "winrate winrate"
            "actions actions" !important;
        gap: 8px 10px;
        align-items: start;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-info {
        padding-right: 44px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-info > div {
        display: grid;
        gap: 2px;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-info strong,
    .game-shell.app-scale-page.race-scale-page .opponent-single-info p {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-info strong {
        font-size: 0.98rem;
        line-height: 1.12;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-info p {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-media {
        width: 82px !important;
        min-width: 0;
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-winrate {
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.8rem;
        line-height: 1.1;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-single-actions-row .opponent-card-actions,
    .game-shell.app-scale-page.race-scale-page .opponent-card-actions {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-card-actions .button {
        min-width: 0;
        min-height: 42px;
        height: auto;
        padding: 9px 12px;
        justify-content: center;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-action-weather-preview {
        width: 42px;
        height: 42px;
        min-height: 42px;
        border-radius: 8px;
        align-self: stretch;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-icon {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        align-self: auto !important;
        z-index: 2;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-card > summary {
        position: relative !important;
        padding-right: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-content {
        padding: 10px 10px 10px;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-right: 0;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-values > span {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-summary-values b {
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-accordion-content .opponent-summary-grid,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 74vw);
        grid-template-columns: none !important;
        margin-right: 0 !important;
        padding-top: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-values > span {
        grid-template-columns: minmax(0, 1fr) minmax(56px, auto) !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-summary-values b {
        text-align: right;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-summary-values > span > span,
    .game-shell.app-scale-page.race-scale-page .race-summary-values > span > span:first-child,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-line span {
        display: block !important;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "main"
            "bars"
            "stats" !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-main {
        grid-area: main !important;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bars {
        grid-area: bars !important;
        grid-column: 1 / -1 !important;
        min-width: 0;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-stats {
        grid-area: stats !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-copy .active-pill {
        min-width: 0 !important;
        min-height: 34px !important;
        max-width: 100% !important;
        padding: 7px 11px !important;
        font-size: 0.82rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-panel-toolbar,
        .race-track-toolbar,
        .race-list-actions,
        .section-footer-pager
    ) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 0;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-pager,
        .race-pager-actions,
        .race-track-nav-top,
        .race-track-toolbar-side
    ) {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto;
        width: auto !important;
        max-width: none;
        min-height: 0;
        height: auto;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-panel-toolbar,
        .race-track-toolbar,
        .race-list-actions,
        .section-footer-pager,
        .race-pager,
        .race-pager-actions,
        .race-track-nav-top,
        .race-track-toolbar-side
    ) > * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none;
        min-height: 34px;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-image,
    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-image img {
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats.has-weather-preview,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats:has(> :nth-child(2):last-child),
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-meta-grid,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-format-tables-grid,
    .game-shell.app-scale-page.race-scale-page .race-selected-setup-format-grid,
    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-summary,
    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-breakdown,
    .game-shell.app-scale-page.race-scale-page .car-panel-full-breakdown-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-compact-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-breakdown-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-total-grid,
    .game-shell.app-scale-page.race-scale-page .opponent-accordion-content .opponent-summary-grid,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-grid {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-weather-cover {
        justify-self: center !important;
        width: min(84px, 28vw) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        max-height: none !important;
        padding: 0 !important;
        border-radius: 12px !important;
        background: color-mix(in srgb, var(--surface) 82%, var(--accent) 18%) !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-weather-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score,
    .game-shell.app-scale-page.race-scale-page .race-summary-card,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-card,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-format-table-card,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-card {
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats.has-weather-preview,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats:has(> :nth-child(2):last-child),
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-meta-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-compact-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-breakdown-grid,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-total-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-breakdown,
    .game-shell.app-scale-page.race-scale-page .car-panel-full-breakdown-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats > .race-selected-summary-weather-cover {
        position: absolute !important;
        top: 56px !important;
        right: 14px !important;
        grid-column: auto !important;
        z-index: 1;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        grid-template-areas:
            "copy icon"
            "stats stats" !important;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle:has(.race-selected-summary-weather-cover) .race-selected-summary-toggle-copy {
        min-height: calc(min(84px, 28vw) + 28px);
        padding-right: calc(min(84px, 28vw) + 16px);
        padding-bottom: 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats.has-weather-preview,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats:has(> :nth-child(2):last-child) {
        grid-area: stats !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats.has-weather-preview {
        margin-top: 6px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-breakdown .home-race-summary-card,
    .game-shell.app-scale-page.race-scale-page .car-panel-full-breakdown-grid .home-race-summary-card,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-meta-grid .race-summary-card-meta,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score {
        min-height: 78px !important;
        padding: 9px 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-selected-summary-toggle-stats,
        .race-selected-summary-meta-grid,
        .race-selected-summary-grid,
        .race-selected-setup-format-grid,
        .race-multi-lineup-analysis-toolbar,
        .race-multi-lineup-analysis-counts,
        .race-multi-lineup-format-table-wrap,
        .opponent-summary-format-table-wrap,
        .race-active-car-compact-summary,
        .race-active-car-compact-breakdown,
        .car-panel-full-breakdown-grid,
        .race-multi-lineup-compact-grid,
        .race-multi-lineup-breakdown-grid,
        .race-multi-lineup-total-grid,
        .opponent-accordion-content .opponent-summary-grid,
        .opponent-summary-grid
    ) {
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        scroll-padding-inline: 0 !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score span,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score small,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score strong {
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score.is-final-score > span:first-child,
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score.is-final-score > strong:last-child {
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-grid,
    .game-shell.app-scale-page.race-scale-page .race-mode-selected-stats,
    .game-shell.app-scale-page.race-scale-page .race-track-selected-stats,
    .game-shell.app-scale-page.race-scale-page .race-track-copy .race-track-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-panel-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-list-actions,
    .game-shell.app-scale-page.race-scale-page .section-footer-pager {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions,
    .game-shell.app-scale-page.race-scale-page .race-track-pager,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar-side,
    .game-shell.app-scale-page.race-scale-page .race-track-nav-top,
    .game-shell.app-scale-page.race-scale-page .race-pager-number-set {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager form,
    .game-shell.app-scale-page.race-scale-page .race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-count,
    .game-shell.app-scale-page.race-scale-page .race-track-maps-button,
    .game-shell.app-scale-page.race-scale-page .race-panel-toolbar .action-pill,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .action-pill,
    .game-shell.app-scale-page.race-scale-page .race-list-actions .action-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-height: 34px !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-panel-toolbar > .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-list-actions > .race-pager,
    .game-shell.app-scale-page.race-scale-page .section-footer-pager > .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-count {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        min-height: 36px !important;
        padding: 8px 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        overflow-x: visible !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        gap: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button > span:not(.race-pager-icon),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button > span:not(.race-pager-icon),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button > span:not(.race-pager-icon) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-number-set {
        gap: 5px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-number {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-icon,
    .game-shell.app-scale-page.race-scale-page .race-pager-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        background-image: none !important;
        padding-bottom: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions > .muted {
        justify-self: start;
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        overflow: visible !important;
        background-image: none !important;
        padding-bottom: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-count {
        display: inline-flex !important;
        justify-self: start;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--muted) !important;
        font-size: 0.84rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        background-image: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-actions > .race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-actions > a.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-actions > span.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-number {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-actions .race-pager-number-set {
        gap: 4px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls,
    .game-shell.app-scale-page.race-scale-page [data-analysis-counts] {
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        scroll-padding-inline: 0 !important;
        box-shadow: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls,
    .game-shell.app-scale-page.race-scale-page [data-analysis-counts] {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts .button,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls .button,
    .game-shell.app-scale-page.race-scale-page [data-analysis-count-button] {
        flex: 0 0 96px !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        gap: 8px !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts .button .button-action-icon,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls .button .button-action-icon,
    .game-shell.app-scale-page.race-scale-page [data-analysis-count-button] .button-action-icon {
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        gap: 8px 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) > div:first-child {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) > .race-list-actions {
        display: contents !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) .race-tab-count-controls {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        justify-self: end !important;
        width: auto !important;
        max-width: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) .race-pager {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page #multi-opponents .race-section-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "title count"
            "pager pager" !important;
        align-items: start !important;
        gap: 8px 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page #multi-opponents .race-section-head > div:first-child {
        grid-area: title !important;
    }

    .game-shell.app-scale-page.race-scale-page #multi-opponents .race-list-actions {
        display: contents !important;
    }

    .game-shell.app-scale-page.race-scale-page #multi-opponents .race-tab-count-controls {
        grid-area: count !important;
        justify-self: end !important;
        align-self: start !important;
        width: auto !important;
    }

    .game-shell.app-scale-page.race-scale-page #multi-opponents .race-pager {
        grid-area: pager !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-panel-toolbar > .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-list-actions > .race-pager,
    .game-shell.app-scale-page.race-scale-page .section-footer-pager > .race-pager {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        justify-content: stretch !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        background-image: none !important;
        scrollbar-width: auto !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-count {
        display: inline-flex !important;
        justify-self: start !important;
        align-items: center !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--muted) !important;
        font-size: 0.84rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        background-image: none !important;
        scrollbar-width: auto !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-number {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        gap: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-number-set {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-panel-toolbar,
        .race-track-toolbar,
        .race-pager,
        .race-pager-actions,
        .race-list-actions,
        .section-footer-pager
    ) {
        background-image: none !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        scrollbar-width: none !important;
        scroll-padding-inline: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-panel-toolbar,
        .race-track-toolbar,
        .race-pager,
        .race-pager-actions,
        .race-list-actions,
        .section-footer-pager
    )::-webkit-scrollbar {
        display: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-toolbar-side {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .action-pill {
        justify-self: start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 7px 10px !important;
        border-radius: 8px !important;
        font-size: 0.86rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager {
        display: flex !important;
        grid-column: 2 !important;
        justify-self: end !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager .race-pager-actions {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager form,
    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager .race-pager-button {
        flex: 0 0 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager .race-pager-button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        gap: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-pager .race-pager-button > span:not(.race-pager-icon) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-track-maps-button {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-height: 38px !important;
        border-radius: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-filters .chip {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 12px;
        justify-content: center;
        text-align: center;
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-filters .race-open-only-toggle {
        grid-column: 1 / -1;
        justify-content: start;
        min-height: 44px;
        padding: 8px 12px;
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-filters .race-open-only-toggle::before {
        width: 38px;
        height: 22px;
    }

    .game-shell.app-scale-page.race-scale-page .race-list-filters .race-open-only-toggle.is-active::before,
    .game-shell.app-scale-page.race-scale-page .race-list-filters .race-open-only-toggle[aria-pressed="true"]::before {
        background:
            radial-gradient(circle at 27px 50%, #fffaf3 0 8px, transparent 9px),
            linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    }

    .game-shell.app-scale-page.race-scale-page .opponent-card-bottom.opponent-single-actions-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-card-bottom.opponent-single-actions-row .opponent-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-card-bottom.opponent-single-actions-row .opponent-card-actions {
        align-self: start !important;
        align-content: start !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-button-panel {
        padding: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-button-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-button-row .race-hero-back-button {
        grid-column: 1 / -1;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-button-row .race-hero-back-button,
    .game-shell.app-scale-page.race-scale-page .race-preview-button-row .race-preview-opponent-button {
        flex: initial !important;
        min-width: 0 !important;
        width: 100% !important;
        min-height: 38px !important;
        padding: 7px 8px !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-button-row .race-preview-opponent-button small {
        font-size: 0.68rem !important;
        line-height: 1.05 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-grid > .panel {
        height: auto !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-grid,
    .game-shell.app-scale-page.race-scale-page .race-preview-stat-grid.is-lineup {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card {
        min-height: 56px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
        gap: 3px !important;
        align-content: center !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card span,
    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card strong {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        letter-spacing: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card span {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card strong {
        font-size: 1rem !important;
        line-height: 1.08 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion .race-options-accordion-summary {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        align-items: start !important;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion .race-options-accordion-summary .race-section-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion .race-options-accordion-summary .race-section-head > div:first-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        padding-right: 42px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion .race-options-accordion-summary .race-section-head .action-pill {
        justify-self: start !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        align-self: auto !important;
        justify-self: auto !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion-body {
        padding: 0 12px 12px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion[open] .race-options-accordion-summary {
        margin-bottom: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-accordion .race-section-head > div:first-child {
        padding-right: 42px;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-summary-stats,
    .game-shell.app-scale-page.race-scale-page .race-options-summary-stats.track-knowledge-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-summary-stats .race-item-stat-card {
        min-height: 48px !important;
        padding: 7px 8px !important;
        border-radius: 9px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-summary-stats .race-item-stat-card span {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-options-summary-stats .race-item-stat-card strong {
        font-size: 1rem !important;
        line-height: 1.08 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-toggle-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-selected-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-selected-card {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-selected-head {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-selected-head .race-item-visual.is-selected {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 4px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-selected-head .race-item-visual.is-selected img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 7px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect-summary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect-pill {
        min-width: 0 !important;
        padding: 6px 7px !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-toggle-pill {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect {
        min-height: 42px !important;
        padding: 7px 8px !important;
        border-radius: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect span,
    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-item-effect b {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-meta span,
    .game-shell.app-scale-page.race-scale-page .launch-vs-row span,
    .game-shell.app-scale-page.race-scale-page .launch-vs-row strong,
    .game-shell.app-scale-page.race-scale-page .race-item-stat-card span,
    .game-shell.app-scale-page.race-scale-page .race-item-stat-card strong,
    .game-shell.app-scale-page.race-scale-page .race-item-effect span,
    .game-shell.app-scale-page.race-scale-page .race-item-effect b {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-preview-stat-card,
        .race-item-stat-card,
        .race-item-effect,
        .race-selected-summary-toggle-score,
        .race-summary-card,
        .race-summary-card-meta,
        .home-race-summary-card,
        .opponent-summary-card,
        .opponent-card-meta > *,
        .dealership-summary-card
    ) > span:first-child,
    .game-shell.app-scale-page.race-scale-page :where(
        .race-summary-card-head,
        .opponent-summary-card-head
    ) > span:first-child,
    .game-shell.app-scale-page.race-scale-page .opponent-summary-card-head small {
        font-size: 1rem !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-options-accordion-body .race-item-effect > span:first-child,
    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-options-accordion-body .race-item-stat-card > span:first-child,
    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-options-accordion-body .race-item-selected-card > strong:first-child,
    .game-shell.app-scale-page.race-scale-page .race-items-panel .race-options-accordion-body .race-item-toggle-title > strong:first-child {
        font-size: 1rem !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-panel .race-accordion-toggle {
        position: relative !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding-right: 58px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-panel .race-accordion-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-option {
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        font-size: 0.92rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-option input {
        flex: 0 0 auto !important;
        width: 18px !important;
        height: 18px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-animation-debug-option span {
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 0.92rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion .race-latest-summary {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 12px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion .race-latest-summary .race-latest-head {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        padding-right: 46px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-stamp {
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        letter-spacing: 0.18em !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-summary-rewards {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-rewards-card .race-chip-row,
    .game-shell.app-scale-page.race-scale-page .race-reward-line-list {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-reward-line-chip,
    .game-shell.app-scale-page.race-scale-page .race-latest-rewards-card .dealership-chip {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        padding: 6px 9px !important;
        border-radius: 10px !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-reward-line-chip > span:last-child {
        min-width: 0 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-reward-line-list .race-reward-line-chip .resource-icon-stack.is-chip .resource-icon-frame {
        width: 46px !important;
        height: 46px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body {
        padding: 0 12px 12px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-grid.is-single,
    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-grid.is-multi {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-areas: none !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card {
        grid-area: auto !important;
        min-width: 0 !important;
        min-height: 74px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card-items {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card span,
    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card strong {
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card span {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card strong {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-accordion-body .race-latest-card-items {
        align-content: start !important;
        overflow: visible !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-card-items .race-used-item-list {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-card-items .race-used-item {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        padding: 5px 8px 5px 5px !important;
        border-radius: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-card-items .race-item-visual.is-used {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 4px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-card-items .race-item-visual.is-used img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 7px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-card-items .race-used-item > span:last-child {
        min-width: 0 !important;
        font-size: 1rem !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-latest-versus {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        text-align: left !important;
    }

    .game-shell.app-scale-page.race-scale-page :where(
        .race-preview-hero,
        .race-preview-button-panel,
        .race-latest-accordion,
        .race-preview-grid,
        .race-preview-grid > .panel,
        .race-launch-panel,
        .race-items-panel,
        .race-animation-debug-panel
    ),
    .game-shell.app-scale-page.race-scale-page :where(
        .race-preview-hero,
        .race-preview-button-panel,
        .race-latest-accordion,
        .race-preview-grid,
        .race-preview-grid > .panel,
        .race-launch-panel,
        .race-items-panel,
        .race-animation-debug-panel
    ) * {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero {
        gap: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero h1 {
        font-size: 1.32rem !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero .resources-lead {
        font-size: 0.95rem !important;
        line-height: 1.38 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions,
    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions .race-hero-status-row,
    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions .race-hero-status-row.is-multi {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions .race-hero-status-row.is-multi {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions .race-hero-status-row.is-multi > .action-pill:nth-child(odd):last-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-hero-actions .action-pill {
        justify-content: center !important;
        min-height: 34px !important;
        padding: 7px 9px !important;
        border-radius: 9px !important;
        font-size: 0.84rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-grid > .panel {
        display: grid !important;
        align-content: start !important;
        gap: 9px !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-grid > .panel > h2 {
        font-size: 1.18rem !important;
        line-height: 1.16 !important;
        margin: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-sidebar-copy {
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-grid .car-visual.is-featured {
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16 / 9 !important;
        min-height: 0 !important;
        max-height: 190px !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-grid,
    .game-shell.app-scale-page.race-scale-page .race-preview-stat-grid.is-lineup {
        align-items: stretch !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-preview-stat-card span {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-launch-panel {
        gap: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-list {
        gap: 7px !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-row span,
    .game-shell.app-scale-page.race-scale-page .launch-vs-row strong {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-row span {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-row strong {
        justify-self: end !important;
        font-size: 1rem !important;
        text-align: right !important;
    }

    .game-shell.app-scale-page.race-scale-page .launch-vs-row-chance {
        min-height: 46px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-launch-form {
        gap: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-auto-toggle {
        width: 100% !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        justify-content: flex-start !important;
        font-size: 0.88rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-auto-toggle::before {
        width: 38px !important;
        height: 22px !important;
        flex: 0 0 auto !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-auto-toggle:has(input:checked)::before {
        background:
            radial-gradient(circle at 27px 50%, #fffaf3 0 8px, transparent 9px),
            linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom)) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-launch-form .launch-button {
        min-height: 42px !important;
        padding: 9px 12px !important;
        border-radius: 10px !important;
        font-size: 0.96rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-grid,
    .game-shell.app-scale-page.race-scale-page .lineup-mini-grid-five {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        grid-template-areas:
            "media slot"
            "media title"
            "media status"
            "meta meta" !important;
        align-items: start !important;
        gap: 7px 9px !important;
        padding: 9px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-card .car-visual.is-compact {
        grid-area: media !important;
        width: 82px !important;
        min-width: 82px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-slot {
        grid-area: slot !important;
        padding: 4px 7px !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-card strong {
        grid-area: title !important;
        font-size: 0.95rem !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-status {
        grid-area: status !important;
        width: fit-content !important;
        font-size: 0.72rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-meta {
        grid-area: meta !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .lineup-mini-meta span {
        min-width: 0 !important;
        padding: 5px 6px !important;
        border: 1px solid rgba(var(--theme-border-rgb), 0.14) !important;
        border-radius: 7px !important;
        background: rgba(255, 251, 246, 0.84) !important;
        font-size: 1rem !important;
        line-height: 1.1 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-hero {
        gap: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-hero .race-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-hero .race-hero-actions .button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 8px 9px !important;
        border-radius: 9px !important;
        font-size: 0.86rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-hero .race-hero-actions > .button:nth-child(odd):last-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card {
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-accordion-summary {
        padding: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-accordion-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        padding-right: 42px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-head strong {
        display: block !important;
        font-size: 1rem !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-head p {
        font-size: 0.8rem !important;
        line-height: 1.22 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-winrate {
        justify-self: start !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 32px !important;
        padding: 6px 9px !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-card {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-areas:
            "media slot"
            "media title"
            "meta meta" !important;
        gap: 5px 8px !important;
        padding: 7px !important;
        border-radius: 9px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-card .car-visual.is-compact {
        width: 64px !important;
        min-width: 64px !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-card strong {
        font-size: 0.88rem !important;
        line-height: 1.12 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-meta span {
        padding: 4px 5px !important;
        font-size: 1rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-bottom {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-meta > * {
        min-height: 58px !important;
        padding: 8px 9px !important;
        border-radius: 9px !important;
        gap: 4px !important;
        align-content: start !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-meta > :last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-meta > * > span:first-child {
        font-size: 1rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-meta > * > strong {
        font-size: 0.98rem !important;
        line-height: 1.08 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-actions:has(.opponent-action-weather-preview) {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .game-shell.app-scale-page.race-scale-page .opponent-multi-accordion-card .opponent-card-actions .button {
        min-width: 0 !important;
        min-height: 40px !important;
        height: auto !important;
        padding: 8px 10px !important;
        border-radius: 9px !important;
        font-size: 0.86rem !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "cars"
            "stats" !important;
        gap: 10px !important;
        padding: 12px !important;
        align-items: start !important;
        position: relative !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-car-strip {
        grid-area: cars !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 46px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-car-thumb {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "slot"
            "media"
            "status" !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-car-thumb .car-visual.is-compact {
        grid-area: media !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-car-thumb .lineup-mini-slot {
        grid-area: slot !important;
        justify-self: start !important;
        padding: 5px 9px !important;
        border-radius: 999px !important;
        font-size: 0.82rem !important;
        line-height: 1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-car-thumb .lineup-mini-status {
        grid-area: status !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
        grid-area: stats !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 8px 9px !important;
        border-radius: 9px !important;
        align-content: center !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong {
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        line-height: 1.1 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-accordion-icon {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        z-index: 2 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-accordion-content {
        padding: 10px 12px 12px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-counts {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        background-image: none !important;
        border-inline: 0 !important;
        padding-inline: 0 !important;
        scroll-padding-inline: 0 !important;
        box-shadow: none !important;
        scrollbar-width: thin !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-counts .button {
        flex: 0 0 auto !important;
        min-width: 58px !important;
        min-height: 38px !important;
        padding: 7px 10px !important;
        border-radius: 9px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-compact-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-compact-grid .home-race-summary-card,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-compact-grid .car-panel-breakdown-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions,
    .game-shell.app-scale-page.race-scale-page .race-pager-number-set {
        gap: 4px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button,
    .game-shell.app-scale-page.race-scale-page .race-pager-number {
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-icon,
    .game-shell.app-scale-page.race-scale-page .race-pager-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-directory-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 130px !important;
        aspect-ratio: 16 / 9 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-card-body,
    .game-shell.app-scale-page.race-scale-page .race-directory-card-head,
    .game-shell.app-scale-page.race-scale-page .race-directory-card-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-card-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-card-actions,
    .game-shell.app-scale-page.race-scale-page .race-directory-actions {
        justify-content: stretch !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-actions .button {
        width: 100% !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-directory-stats,
    .game-shell.app-scale-page.race-scale-page .race-track-directory-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .scene-theme-hero:not(.car-appearance-hero) .scene-theme-hero-side {
        width: 100% !important;
        min-width: 0 !important;
        justify-items: stretch !important;
        text-align: left !important;
    }

    .game-shell.app-scale-page .scene-theme-hero:not(.car-appearance-hero) .scene-theme-current-pill {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .garage-scene-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: stretch !important;
    }

    .game-shell.app-scale-page .garage-scene-hero-actions .button {
        width: 100% !important;
        min-width: 0 !important;
        padding-inline: 10px !important;
    }

    .game-shell.app-scale-page .garage-scene-hero-actions .button:only-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .tour-fuel-panel .tour-fuel-stat-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .tour-fuel-panel .tour-fuel-stat-box {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .tour-fuel-panel .tour-fuel-stat-box > span,
    .game-shell.app-scale-page .tour-fuel-panel .tour-fuel-stat-box > strong {
        font-size: 1rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .tour-fuel-panel .tour-fuel-stat-box > strong {
        font-weight: 900 !important;
    }

    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) > div:first-child,
    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) .panel-title {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }

    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) .garage-panel-pill-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-items: stretch !important;
    }

    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) .garage-hourglass-stock-pill,
    .game-shell.app-scale-page .garage-jobs-title-row:has(+ .stack .tour-job-row) .race-pager {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }

    .game-shell.app-scale-page .tour-job-row.has-tour-image {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: none !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .tour-job-row > .tour-job-image,
    .game-shell.app-scale-page .tour-job-row > .row-main,
    .game-shell.app-scale-page .tour-job-row > .tour-row-rewards-strip,
    .game-shell.app-scale-page .tour-job-row > .tour-row-meta,
    .game-shell.app-scale-page .tour-job-row > .tour-job-actions {
        grid-area: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .tour-job-row.has-tour-image .tour-row-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .tour-job-row .tour-row-section {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .tour-row-rewards-strip .tour-resource-lines {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .game-shell.app-scale-page .city-job-summary-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .city-job-summary-strip .city-job-stat-box {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .city-jobs-tab-panel .garage-jobs-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .game-shell.app-scale-page .city-jobs-tab-panel .garage-jobs-title-row > div:first-child,
    .game-shell.app-scale-page .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        justify-content: center !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "head"
            "copy"
            "time"
            "rewards"
            "action" !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .daily-gift-card-head {
        grid-area: head !important;
        width: 100% !important;
        min-width: 0 !important;
        align-self: start !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card > p {
        grid-area: copy !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .city-job-duration-pill {
        grid-area: time !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 10px 12px !important;
        justify-content: center !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list {
        display: grid !important;
        grid-area: rewards !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:first-child {
        grid-area: auto !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:last-child {
        grid-area: auto !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .daily-gift-reward {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 28px 10px 10px !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .city-job-cost-line,
    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card .city-job-reward-line {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card > form,
    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card > .button {
        grid-area: action !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card > form .button,
    .game-shell.app-scale-page .city-job-grid.is-row-layout .city-job-card > .button {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "meta"
            "copy"
            "rewards"
            "action" !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-meta {
        grid-area: meta !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-self: start !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card h3,
    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card p {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card p {
        grid-area: copy !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward-list {
        display: grid !important;
        grid-area: rewards !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-value,
    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-cost,
    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
        grid-area: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
        padding: 8px 10px !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward strong {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card form {
        grid-area: action !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page .city-job-shop-grid.is-row-layout .city-job-shop-card .button {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card {
        grid-template-areas:
            "reward"
            "rewards"
            "action" !important;
    }

    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) {
        grid-template-areas:
            "reward"
            "rewards"
            "action" !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-reward-card,
    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card .garage-shop-reward-card {
        grid-area: reward !important;
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
        grid-template-areas:
            "media meta"
            "media copy" !important;
        gap: 7px 10px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 8px !important;
        border: 1px solid var(--line) !important;
        border-radius: 12px !important;
        background: rgba(255, 251, 246, 0.94) !important;
        outline: 1px solid rgba(var(--action-rgb), 0.14) !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-shop-row-preview,
    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card .garage-shop-reward-card .garage-shop-row-preview {
        grid-area: media !important;
        width: 54px !important;
        height: 54px !important;
        justify-self: start !important;
        align-self: start !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-shop-row-preview img,
    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card .garage-shop-reward-card .garage-shop-row-preview img {
        width: 54px !important;
        height: 54px !important;
        object-fit: contain !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-reward-card .city-job-shop-meta,
    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card .garage-shop-reward-card .city-job-shop-meta {
        grid-area: meta !important;
        align-self: end !important;
    }

    .game-shell.app-scale-page .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-reward-card p,
    .game-shell.app-scale-page .garage-shop-grid.is-row-layout .garage-shop-card .garage-shop-reward-card p {
        grid-area: copy !important;
        align-self: start !important;
        margin: 0 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero > * {
        grid-column: 1 !important;
        grid-row: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-logo-mark.is-large {
        width: clamp(112px, 36vw, 148px) !important;
        height: clamp(112px, 36vw, 148px) !important;
        min-height: 0 !important;
        justify-self: center !important;
    }

    .game-shell.app-scale-page .team-summary-grid.is-team-dashboard,
    .game-shell.app-scale-page .team-dashboard-main-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page .team-summary-grid.is-team-dashboard > *,
    .game-shell.app-scale-page .team-dashboard-main-row > * {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .team-summary-grid.is-team-dashboard > .team-kpi-card:nth-child(5),
    .game-shell.app-scale-page .team-dashboard-main-row > .team-name-card,
    .game-shell.app-scale-page .team-dashboard-main-row > .team-level-wide-card,
    .game-shell.app-scale-page .team-dashboard-main-row > .team-player-role-card {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-kpi-card,
    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-title-info-card {
        min-height: 0 !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-kpi-card span,
    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-name-card > span {
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-kpi-card strong,
    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-title-info-card h1 {
        font-size: 1.05rem !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .team-title-row.is-dashboard-hero .team-kpi-card small {
        font-size: 0.85rem !important;
        line-height: 1.18 !important;
    }

    .game-shell.app-scale-page .team-member-row .team-member-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-member-row .team-member-stats > span {
        min-height: 64px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .team-member-row .team-member-stats > span:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    .app-compact-viewport .modal-card.team-role-modal,
    .game-shell.app-scale-page .modal-card.team-role-modal {
        width: min(100%, calc(100vw - 28px)) !important;
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    .app-compact-viewport .team-role-modal .modal-title,
    .game-shell.app-scale-page .team-role-modal .modal-title {
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
    }

    .app-compact-viewport .team-role-modal .modal-message,
    .game-shell.app-scale-page .team-role-modal .modal-message {
        font-size: 1rem !important;
        line-height: 1.35 !important;
        margin: 12px 0 !important;
        text-align: left !important;
    }

    .app-compact-viewport .team-role-current,
    .game-shell.app-scale-page .team-role-current {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center !important;
        gap: 8px !important;
        padding: 10px !important;
        margin: 10px 0 12px !important;
        text-align: center !important;
    }

    .app-compact-viewport .team-role-current .team-role-inline,
    .game-shell.app-scale-page .team-role-current .team-role-inline {
        --role-frame-size: 58px !important;
        justify-content: center !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }

    .app-compact-viewport .team-role-choice-grid,
    .game-shell.app-scale-page .team-role-choice-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 12px !important;
    }

    .app-compact-viewport .team-role-choice,
    .game-shell.app-scale-page .team-role-choice {
        min-height: 0 !important;
        padding: 10px !important;
        border-radius: 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        overflow: hidden !important;
    }

    .app-compact-viewport .team-role-choice strong.team-role-inline,
    .game-shell.app-scale-page .team-role-choice strong.team-role-inline {
        --role-frame-size: 60px !important;
        display: grid !important;
        grid-template-columns: 60px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .app-compact-viewport .team-role-choice strong.team-role-inline > span:last-child,
    .game-shell.app-scale-page .team-role-choice strong.team-role-inline > span:last-child {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .app-compact-viewport .team-role-choice .team-role-image-frame,
    .game-shell.app-scale-page .team-role-choice .team-role-image-frame {
        width: 60px !important;
        height: 60px !important;
    }

    .app-compact-viewport .team-role-choice small,
    .game-shell.app-scale-page .team-role-choice small {
        font-size: 0.86rem !important;
        line-height: 1.22 !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "image"
            "head"
            "copy"
            "stats"
            "footer" !important;
        gap: 10px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-card > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-image {
        grid-area: image !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-head {
        grid-area: head !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-head > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-head .eyebrow,
    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-head h3 {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        line-height: 1.14 !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-head h3 {
        font-size: 1rem !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .upgrade-cycle-status {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .upgrade-stars {
        min-width: 0 !important;
        gap: 2px !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .upgrade-star {
        width: 18px !important;
        height: 18px !important;
        font-size: 1rem !important;
        flex: 0 0 18px !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-level-badge {
        min-height: 26px !important;
        padding: 4px 8px !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        justify-self: end !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-card > p {
        grid-area: copy !important;
        width: 100% !important;
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack {
        grid-area: stats !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .team-upgrade-stat-card:nth-child(-n + 2) {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-footer {
        grid-area: footer !important;
        padding: 10px !important;
        gap: 8px !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page .team-upgrade-overview-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-upgrade-overview-grid > .team-kpi-card {
        grid-column: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-upgrade-overview-grid > .team-kpi-card.is-wide {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .team-upgrade-overview-grid > .team-kpi-card :where(span, strong, small) {
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-history-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        justify-content: stretch !important;
        width: 100% !important;
    }

    .game-shell.app-scale-page .team-history-title-row > .race-pager {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }

    .game-shell.app-scale-page .team-repair-summary-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .team-repair-summary-grid > .team-repair-summary-card:first-child {
        grid-column: 1 / -1 !important;
    }

    .game-shell.app-scale-page .team-repair-summary-card {
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-repair-summary-card > small,
    .game-shell.app-scale-page .team-repair-summary-card > strong,
    .game-shell.app-scale-page .team-repair-token-value,
    .game-shell.app-scale-page .team-repair-token-value > span {
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .team-repair-token-value {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 7px !important;
    }

    .game-shell.app-scale-page .team-repair-member-row .car-visual,
    .game-shell.app-scale-page .team-repair-member-row .row-main-visual > .car-visual,
    .game-shell.app-scale-page .team-repair-member-row .row-main-visual > .car-visual-frame,
    .game-shell.app-scale-page .team-repair-member-row .row-main-visual > .car-image-frame {
        display: none !important;
    }

    .game-shell.app-scale-page .team-repair-member-list {
        padding: 0 !important;
    }

    .game-shell.app-scale-page .team-repair-member-row {
        padding: 10px !important;
    }

    .game-shell.app-scale-page .team-repair-member-row .row-main-visual {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .game-shell.app-scale-page .team-repair-member-row .team-member-role-copy > span {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2px !important;
        line-height: 1.15 !important;
    }

    .game-shell.app-scale-page .team-repair-member-row .team-role-separator {
        display: none !important;
    }

    .game-shell.app-scale-page .team-repair-member-row .team-repair-member-role-label,
    .game-shell.app-scale-page .team-repair-member-row .team-repair-member-level {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 420px) {
    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions,
    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions .race-active-car-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions .button,
    .game-shell.app-scale-page.race-scale-page .race-index-hero-actions .race-active-car-switch-button {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.82rem;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "media"
            "main"
            "meta"
            "actions" !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-image {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 110px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 760px) {
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls,
    .game-shell.app-scale-page.race-scale-page [data-analysis-counts],
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-toolbar,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-counts {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 0 !important;
        background-image: none !important;
        border-inline: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        scrollbar-width: none !important;
    }

    .game-shell.app-scale-page.race-scale-page [data-analysis-counts]::-webkit-scrollbar,
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts::-webkit-scrollbar {
        display: none !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts .button,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls .button,
    .game-shell.app-scale-page.race-scale-page [data-analysis-count-button],
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-analysis-counts .button {
        flex: 1 1 calc((100% - 24px) / 5) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc((100% - 24px) / 5) !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 8px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 0.88rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts .button .button-action-icon,
    .game-shell.app-scale-page.race-scale-page .race-tab-count-controls .button .button-action-icon,
    .game-shell.app-scale-page.race-scale-page [data-analysis-count-button] .button-action-icon {
        width: 14px !important;
        height: 14px !important;
        flex: 0 0 14px !important;
    }

    .game-shell.app-scale-page.race-scale-page [hidden],
    .game-shell.app-scale-page.race-scale-page [data-analysis-count-panel][hidden],
    .game-shell.app-scale-page.race-scale-page [data-analysis-panel][hidden],
    .game-shell.app-scale-page.race-scale-page [data-analysis-header-count-card][hidden],
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-panel .race-selected-summary-count-panel[hidden],
    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle .race-selected-summary-toggle-score[hidden],
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-compact-grid[hidden],
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats [data-analysis-header-count-card][hidden] {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .game-shell.app-scale-page .rewards-tab-layout > .panel > .section-title-row:has(> .race-pager) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .rewards-tab-layout > .panel > .section-title-row:has(> .race-pager) > .panel-title {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .rewards-tab-layout > .panel > .section-title-row:has(> .race-pager) > .race-pager {
        width: 100% !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    .game-shell.app-scale-page .reward-bulk-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 12px !important;
    }

    .game-shell.app-scale-page .reward-bulk-label {
        width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .reward-bulk-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .reward-bulk-buttons form,
    .game-shell.app-scale-page .reward-bulk-buttons .button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .reward-bulk-buttons .button {
        min-height: 38px !important;
        padding: 7px 8px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        font-size: 0.78rem !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .game-shell.app-scale-page .madness-tab-panel > .section-title-row:has(> .race-pager) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .madness-tab-panel > .section-title-row:has(> .race-pager) > div,
    .game-shell.app-scale-page .madness-tab-panel > .section-title-row:has(> .race-pager) > .race-pager {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    .game-shell.app-scale-page .madness-tab-panel > .section-title-row:has(> .race-pager) :where(.eyebrow, .panel-title) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page #profile-overview.hero-grid,
    .game-shell.app-scale-page .profile-public-preview-frame {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-public-preview-heading {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: start !important;
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-public-preview-heading > *,
    .game-shell.app-scale-page .profile-public-preview-frame > *,
    .game-shell.app-scale-page #profile-overview > *,
    .game-shell.app-scale-page .profile-showcase-summary > *,
    .game-shell.app-scale-page .profile-active-car-mini > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-public-preview-heading h2,
    .game-shell.app-scale-page .profile-active-car-mini strong,
    .game-shell.app-scale-page .profile-active-car-mini span,
    .game-shell.app-scale-page .profile-showcase-summary h2,
    .game-shell.app-scale-page .profile-showcase-summary .dealership-summary-card :where(span, strong) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .game-shell.app-scale-page .profile-public-preview-heading .public-profile-strip-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-public-preview-heading .public-profile-strip-stats .is-status-pill {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 7px 8px !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .profile-showcase-summary .profile-showcase-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .profile-active-car-mini {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-active-car-mini .car-visual {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }

    .game-shell.app-scale-page .profile-week-stat-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page .profile-week-stat-grid .profile-stat-card {
        min-width: 0 !important;
        min-height: 66px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .game-shell.app-scale-page .profile-week-stat-grid .profile-stat-card :where(span, strong) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page .profile-active-car-panel .home-active-summary-grid,
    .game-shell.app-scale-page .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page .profile-active-car-panel .home-active-summary-grid .dealership-summary-card,
    .game-shell.app-scale-page .profile-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 8px 9px !important;
        border-radius: 10px !important;
    }

    .game-shell.app-scale-page .profile-active-car-panel .home-active-summary-grid .dealership-summary-card :where(span, strong),
    .game-shell.app-scale-page .profile-active-car-panel .car-panel-full-summary-grid .dealership-summary-card :where(span, strong) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page #profile-stats {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page #profile-stats > .panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .game-shell.app-scale-page #profile-stats > .panel > .stack {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page #profile-stats .profile-stat-card {
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
    }

    .game-shell.app-scale-page #profile-stats .profile-stat-card :where(span, strong) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .game-shell.app-scale-page #profile-stats .profile-progress-card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page #profile-stats .profile-team-bonus-grid {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .game-shell.app-scale-page #profile-progression .garage-upgrade-guide-table :where(th, td):first-child {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        padding-inline: 5px !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    .game-shell.app-scale-page #profile-progression .garage-upgrade-guide-table :where(th, td):nth-child(2) {
        min-width: 150px !important;
    }

    .game-shell.app-scale-page #profile-progression .garage-upgrade-guide-table :where(th, td):nth-child(3) {
        min-width: 96px !important;
        white-space: nowrap !important;
    }
}
