/* Generated by npm run css:build. Edit public/css/source, not this file. Audience: mobile. */

@layer base, legacy, components, layout, edition;/* Source: public/css/source/foundations/tokens.css */

@layer base {/* Global design tokens. Theme-dependent expressions are also declared on the themed body so custom properties resolve against its palette. */

:root {
    --status-pill-bg: rgba(249, 237, 214, 0.96);
    --status-pill-border: rgba(var(--warning-rgb), 0.32);
    --status-pill-text: #9a641d;
    --navy: #2d537e;
    --success: #7fa33b;
    --success-soft: #eef7df;
    --section-gap: 10px;
    --section-title-font-size: 1rem;
    --section-subtitle-font-size: 1rem;
    --ui-max-heading-font-size: 1rem;
    --eyebrow-font-size: var(--section-title-font-size);
    --stat-box-font-size: 1rem;
    --menu-stat-box-font-size: 0.8rem;
    --bg: #f8f1e6;
    --bg-soft: #f5eadb;
    --panel: rgba(255, 250, 243, 0.96);
    --panel-alt: rgba(255, 247, 237, 0.98);
    --line-rgb: 182, 146, 96;
    --theme-border-rgb: 201, 136, 31;
    --theme-shadow-rgb: 207, 154, 79;
    --action-rgb: 230, 118, 44;
    --warning-rgb: 210, 147, 48;
    --danger-rgb: 202, 69, 45;
    --success-rgb: 86, 154, 47;
    --info-rgb: 45, 83, 126;
    --nav-bg-top: #fff3e1;
    --nav-bg-bottom: #f7dfbc;
    --nav-bg: linear-gradient(180deg, var(--nav-bg-top), var(--nav-bg-bottom));
    --nav-border: rgba(var(--theme-border-rgb), 0.4);
    --line: rgba(var(--line-rgb), 0.16);
    --text: #34281d;
    --muted: #8b7358;
    --accent: #e6762c;
    --accent-strong: #d9651e;
    --accent-2: #2d537e;
    --accent-soft: #fff0df;
    --theme-surface: rgba(255, 248, 239, 0.94);
    --theme-surface-strong: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
    --theme-border: rgba(var(--action-rgb), 0.34);
    --theme-border-strong: rgba(var(--action-rgb), 0.42);
    --theme-border-soft: rgba(var(--action-rgb), 0.24);
    --theme-border-muted: rgba(var(--action-rgb), 0.22);
    --theme-border-subtle: rgba(var(--action-rgb), 0.18);
    --theme-border-hairline: rgba(var(--action-rgb), 0.12);
    --theme-outline-soft: rgba(var(--action-rgb), 0.18);
    --theme-outline-muted: rgba(var(--action-rgb), 0.14);
    --theme-tint: rgba(255, 248, 239, 0.64);
    --theme-tint-strong: rgba(255, 248, 239, 0.72);
    --theme-tint-muted: rgba(255, 248, 239, 0.42);
    --theme-tint-faint: rgba(255, 248, 239, 0.36);
    --theme-surface-tint: rgba(255, 248, 239, 0.64);
    --theme-card-surface: rgba(255, 253, 249, 0.92);
    --theme-card-surface-soft: rgba(255, 253, 249, 0.88);
    --theme-card-surface-muted: rgba(255, 253, 249, 0.74);
    --theme-shadow-subtle: rgba(var(--action-rgb), 0.04);
    --theme-shadow-soft: rgba(var(--action-rgb), 0.06);
    --theme-shadow-medium: rgba(var(--action-rgb), 0.1);
    --theme-card-shadow: 0 10px 22px var(--theme-shadow-subtle);
    --theme-card-shadow-compact: 0 8px 18px var(--theme-shadow-subtle);
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #9a5a1c;
    --action: #e6762c;
    --action-strong: #d9651e;
    --action-soft: #fff0df;
    --action-border: rgba(var(--action-rgb), 0.34);
    --action-shadow: rgba(var(--action-rgb), 0.12);
    --action-text: #fffaf3;
    --detail-border-soft: rgba(var(--action-rgb), 0.24);
    --detail-border: rgba(var(--action-rgb), 0.34);
    --detail-tint: rgba(var(--action-rgb), 0.08);
    --detail-text: var(--action-strong);
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 253, 249, 0.96));
    --selected-bg-top: #ef7f2f;
    --selected-bg-bottom: #d9651e;
    --selected-border: rgba(var(--action-rgb), 0.34);
    --selected-outline: rgba(var(--action-rgb), 0.18);
    --selected-text: #fffaf3;
    --surface-radius: 12px;
    --control-radius: 10px;
    --compact-radius: 8px;
    --shadow-soft: 0 12px 28px rgba(54, 44, 34, 0.08);
    --shadow-card: 0 8px 18px rgba(54, 44, 34, 0.06)
;
}
}/* Source: public/css/source/foundations/themes.css */

@layer base {/* Palette-independent expressions are defined once. Each named theme supplies only its own values. */

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange, .action-theme-blue, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-light-green, .action-theme-green, .action-theme-dark-green) {
    --warning-rgb: 210, 147, 48;
    --nav-bg-top: #fff3e1;
    --nav-bg-bottom: #f7dfbc;
    --nav-bg: linear-gradient(180deg, var(--nav-bg-top), var(--nav-bg-bottom));
    --nav-border: rgba(var(--theme-border-rgb), 0.4);
    --action-border: rgba(var(--action-rgb), 0.34);
    --action-shadow: rgba(var(--action-rgb), 0.12);
    --detail-border-soft: rgba(var(--action-rgb), 0.24);
    --detail-border: rgba(var(--action-rgb), 0.34);
    --detail-tint: rgba(var(--action-rgb), 0.08);
    --theme-surface: rgba(255, 248, 239, 0.94);
    --theme-surface-strong: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
    --theme-tint: rgba(255, 248, 239, 0.64);
    --theme-tint-strong: rgba(255, 248, 239, 0.72);
    --theme-tint-muted: rgba(255, 248, 239, 0.42);
    --theme-tint-faint: rgba(255, 248, 239, 0.36);
    --theme-surface-tint: rgba(255, 248, 239, 0.64);
    --theme-card-surface: rgba(255, 253, 249, 0.92);
    --theme-card-surface-soft: rgba(255, 253, 249, 0.88);
    --theme-card-surface-muted: rgba(255, 253, 249, 0.74);
    --theme-card-shadow: 0 10px 22px var(--theme-shadow-subtle);
    --theme-card-shadow-compact: 0 8px 18px var(--theme-shadow-subtle);
}

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange, .action-theme-blue, .action-theme-primary-blue, .action-theme-info-blue, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-light-green, .action-theme-green, .action-theme-dark-green) {
    --danger-rgb: 202, 69, 45;
}

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange, .action-theme-blue, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown) {
    --success-rgb: 86, 154, 47;
}

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange, .action-theme-blue, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-light-green, .action-theme-green, .action-theme-dark-green) {
    --info-rgb: 45, 83, 126;
}

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange) {
    --theme-border: rgba(var(--action-rgb), 0.34);
    --theme-border-strong: rgba(var(--action-rgb), 0.42);
    --theme-border-soft: rgba(var(--action-rgb), 0.24);
    --theme-border-muted: rgba(var(--action-rgb), 0.22);
    --theme-border-subtle: rgba(var(--action-rgb), 0.18);
    --theme-border-hairline: rgba(var(--action-rgb), 0.12);
    --theme-outline-soft: rgba(var(--action-rgb), 0.18);
    --theme-outline-muted: rgba(var(--action-rgb), 0.14);
    --theme-shadow-subtle: rgba(var(--action-rgb), 0.04);
    --theme-shadow-soft: rgba(var(--action-rgb), 0.06);
    --theme-shadow-medium: rgba(var(--action-rgb), 0.1);
}

body:is(.action-theme-light-orange, .action-theme-orange) {
    --theme-text: #9a5a1c;
}

body:is(.action-theme-light-orange, .action-theme-primary-orange, .action-theme-orange, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-light-green, .action-theme-green, .action-theme-dark-green) {
    --selected-border: rgba(var(--action-rgb), 0.34);
    --selected-outline: rgba(var(--action-rgb), 0.18);
}

body:is(.action-theme-light-orange, .action-theme-primary-blue, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-light-green, .action-theme-green) {
    --selected-text: #ffffff;
}

body:is(.action-theme-primary-orange, .action-theme-orange) {
    --line-rgb: 182, 146, 96;
    --selected-text: #fffaf3;
}

body:is(.action-theme-primary-orange, .action-theme-orange, .action-theme-blue, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-green, .action-theme-dark-green) {
    --detail-text: var(--action-strong);
}

body:is(.action-theme-blue, .action-theme-primary-blue, .action-theme-red, .action-theme-danger-red, .action-theme-info-blue, .action-theme-light-red, .action-theme-light-brown, .action-theme-brown, .action-theme-dark-brown, .action-theme-light-green, .action-theme-green, .action-theme-dark-green) {
    --line-rgb: var(--action-rgb);
    --theme-border-rgb: var(--action-rgb);
    --theme-shadow-rgb: var(--action-rgb);
    --line: rgba(var(--action-rgb), 0.16);
    --panel: rgba(255, 250, 243, 0.96);
    --panel-alt: rgba(255, 247, 237, 0.98);
    --theme-border: rgba(var(--theme-border-rgb), 0.34);
    --theme-border-strong: rgba(var(--theme-border-rgb), 0.42);
    --theme-border-soft: rgba(var(--theme-border-rgb), 0.24);
    --theme-border-muted: rgba(var(--theme-border-rgb), 0.22);
    --theme-border-subtle: rgba(var(--theme-border-rgb), 0.18);
    --theme-border-hairline: rgba(var(--theme-border-rgb), 0.12);
    --theme-outline-soft: rgba(var(--theme-border-rgb), 0.18);
    --theme-outline-muted: rgba(var(--theme-border-rgb), 0.14);
    --theme-shadow-subtle: rgba(var(--theme-shadow-rgb), 0.04);
    --theme-shadow-soft: rgba(var(--theme-shadow-rgb), 0.06);
    --theme-shadow-medium: rgba(var(--theme-shadow-rgb), 0.1);
}

body:is(.action-theme-primary-blue, .action-theme-info-blue) {
    --selected-soft-surface: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 253, 249, 0.96));
}

body:is(.action-theme-brown, .action-theme-dark-brown) {
    --accent-soft: #ead8c3;
    --action-soft: #ead8c3;
    --selected-text: #fff8ef;
}

body:is(.action-theme-light-green, .action-theme-dark-green) {
    --accent-soft: #dcfce7;
    --action-soft: #dcfce7;
}

body.action-theme-light-orange {
    --line-rgb: 226, 160, 92;
    --theme-border-rgb: 251, 146, 60;
    --theme-shadow-rgb: 253, 186, 116;
    --action-rgb: 253, 186, 116;
    --accent: #fdba74;
    --accent-strong: #f97316;
    --accent-2: #b45309;
    --accent-soft: #ffedd5;
    --action: #fdba74;
    --action-strong: #f97316;
    --action-soft: #ffedd5;
    --detail-text: var(--accent-2);
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 253, 249, 0.96));
    --selected-bg-top: #fdba74;
    --selected-bg-bottom: #fb923c;
}

body.action-theme-primary-orange {
    --theme-border-rgb: 221, 150, 44;
    --theme-shadow-rgb: 232, 148, 54;
    --action-rgb: 242, 138, 53;
    --accent: #f28a35;
    --accent-strong: #e6762c;
    --accent-2: #d98b24;
    --accent-soft: #fff3e4;
    --action: #f28a35;
    --action-strong: #e6762c;
    --action-soft: #fff3e4;
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #a85f18;
    --selected-bg-top: #ff9a3d;
    --selected-bg-bottom: #f07f2e;
}

body.action-theme-orange {
    --theme-border-rgb: 201, 136, 31;
    --theme-shadow-rgb: 207, 154, 79;
    --action-rgb: 230, 118, 44;
    --line: rgba(var(--line-rgb), 0.16);
    --accent: #e6762c;
    --accent-strong: #d9651e;
    --accent-2: #c9881f;
    --accent-soft: #fff0df;
    --action: #e6762c;
    --action-strong: #d9651e;
    --action-soft: #fff0df;
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 241, 229, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 241, 229, 0.98), rgba(255, 253, 249, 0.96));
    --selected-bg-top: #ef7f2f;
    --selected-bg-bottom: #d9651e;
}

body.action-theme-blue {
    --action-rgb: 56, 108, 170;
    --accent: #386caa;
    --accent-strong: #244f82;
    --accent-2: #2d537e;
    --accent-soft: #e8f1ff;
    --action: #386caa;
    --action-strong: #244f82;
    --action-soft: #e8f1ff;
    --selected-soft-surface: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #244f82;
    --selected-bg-top: #4379ba;
    --selected-bg-bottom: #2d5f98;
    --selected-border: rgba(var(--info-rgb), 0.34);
    --selected-outline: rgba(var(--info-rgb), 0.18);
    --selected-text: #f8fbff;
}

body.action-theme-primary-blue {
    --action-rgb: 13, 110, 253;
    --accent: #0d6efd;
    --accent-strong: #0a58ca;
    --accent-2: #084298;
    --accent-soft: #e7f1ff;
    --action: #0d6efd;
    --action-strong: #0a58ca;
    --action-soft: #e7f1ff;
    --theme-text: #084298;
    --selected-bg-top: #2f7df4;
    --selected-bg-bottom: #0d6efd;
}

body.action-theme-red {
    --action-rgb: 190, 55, 49;
    --danger-rgb: 190, 55, 49;
    --accent: #be3731;
    --accent-strong: #90251f;
    --accent-2: #7e2d2a;
    --accent-soft: #ffe9e6;
    --action: #be3731;
    --action-strong: #90251f;
    --action-soft: #ffe9e6;
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 244, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 244, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #90251f;
    --selected-bg-top: #cf4a42;
    --selected-bg-bottom: #9f2d27;
    --selected-text: #fff8f6;
}

body.action-theme-danger-red {
    --action-rgb: 220, 53, 69;
    --danger-rgb: 220, 53, 69;
    --accent: #dc3545;
    --accent-strong: #b02a37;
    --accent-2: #842029;
    --accent-soft: #f8d7da;
    --action: #dc3545;
    --action-strong: #b02a37;
    --action-soft: #f8d7da;
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 242, 244, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 242, 244, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #842029;
    --selected-bg-top: #e04b59;
    --selected-bg-bottom: #dc3545;
}

body.action-theme-info-blue {
    --action-rgb: 96, 165, 250;
    --info-rgb: 96, 165, 250;
    --accent: #60a5fa;
    --accent-strong: #2563eb;
    --accent-2: #1e40af;
    --accent-soft: #dbeafe;
    --action: #60a5fa;
    --action-strong: #2563eb;
    --action-soft: #dbeafe;
    --theme-text: #1e40af;
    --selected-bg-top: #93c5fd;
    --selected-bg-bottom: #60a5fa;
}

body.action-theme-light-red {
    --action-rgb: 248, 113, 113;
    --danger-rgb: 248, 113, 113;
    --accent: #f87171;
    --accent-strong: #dc2626;
    --accent-2: #991b1b;
    --accent-soft: #fee2e2;
    --action: #f87171;
    --action-strong: #dc2626;
    --action-soft: #fee2e2;
    --selected-soft-surface: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #991b1b;
    --selected-bg-top: #fca5a5;
    --selected-bg-bottom: #f87171;
}

body.action-theme-light-brown {
    --action-rgb: 180, 138, 98;
    --accent: #b48a62;
    --accent-strong: #8b5e34;
    --accent-2: #5f3b1f;
    --accent-soft: #f1e2d1;
    --action: #b48a62;
    --action-strong: #8b5e34;
    --action-soft: #f1e2d1;
    --selected-soft-surface: linear-gradient(180deg, rgba(250, 243, 235, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(250, 243, 235, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #5f3b1f;
    --selected-bg-top: #c49a72;
    --selected-bg-bottom: #b48a62;
}

body.action-theme-brown {
    --action-rgb: 139, 94, 52;
    --accent: #8b5e34;
    --accent-strong: #6f451f;
    --accent-2: #4a2d18;
    --action: #8b5e34;
    --action-strong: #6f451f;
    --selected-soft-surface: linear-gradient(180deg, rgba(247, 238, 226, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(247, 238, 226, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #4a2d18;
    --selected-bg-top: #9d6c3d;
    --selected-bg-bottom: #8b5e34;
}

body.action-theme-dark-brown {
    --action-rgb: 95, 59, 31;
    --accent: #5f3b1f;
    --accent-strong: #432612;
    --accent-2: #2f1a0d;
    --action: #5f3b1f;
    --action-strong: #432612;
    --selected-soft-surface: linear-gradient(180deg, rgba(244, 234, 221, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(244, 234, 221, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #2f1a0d;
    --selected-bg-top: #704524;
    --selected-bg-bottom: #5f3b1f;
}

body.action-theme-light-green {
    --action-rgb: 34, 197, 94;
    --success-rgb: 34, 197, 94;
    --accent: #22c55e;
    --accent-strong: #16a34a;
    --accent-2: #166534;
    --action: #22c55e;
    --action-strong: #16a34a;
    --detail-text: #166534;
    --selected-soft-surface: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #166534;
    --selected-bg-top: #34d399;
    --selected-bg-bottom: #22c55e;
}

body.action-theme-green {
    --action-rgb: 25, 135, 84;
    --success-rgb: 25, 135, 84;
    --accent: #198754;
    --accent-strong: #157347;
    --accent-2: #0f5132;
    --accent-soft: #d1e7dd;
    --action: #198754;
    --action-strong: #157347;
    --action-soft: #d1e7dd;
    --selected-soft-surface: linear-gradient(180deg, rgba(236, 248, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(236, 248, 242, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #0f5132;
    --selected-bg-top: #198754;
    --selected-bg-bottom: #157347;
}

body.action-theme-dark-green {
    --action-rgb: 22, 101, 52;
    --success-rgb: 22, 101, 52;
    --accent: #166534;
    --accent-strong: #14532d;
    --accent-2: #052e16;
    --action: #166534;
    --action-strong: #14532d;
    --selected-soft-surface: linear-gradient(180deg, rgba(237, 247, 241, 0.98), rgba(255, 253, 249, 0.96));
    --theme-selected-surface: linear-gradient(180deg, rgba(237, 247, 241, 0.98), rgba(255, 253, 249, 0.96));
    --theme-text: #052e16;
    --selected-bg-top: #1f7a41;
    --selected-bg-bottom: #166534;
    --selected-text: #f0fdf4;
}
}/* Source: public/css/source/components/layout.css */

@layer components {/* Shared outer shell. Responsive flow only: no fixed canvas or transforms.
   app-scale-* names are retained as existing markup hooks during migration. */

.page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 10px 56px;
}

@media (hover: none) and (pointer: coarse) {

    .page {
        width: calc(100vw - 12px);
        padding-top: 8px;
    }
}

.public-landing-page {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.app-scale-page .app-scale-viewport {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.app-scale-page .app-scale-stage {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.app-scale-page .app-scale-stage > .page {
    width: 100%;
    margin: 0;
}

.app-page-layout {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: var(--section-gap);
    align-items: stretch;
    min-width: 0;
    margin-top: var(--section-gap);
}

.app-primary-sidebar,
.app-main-column {
    min-width: 0;
}

.app-primary-sidebar {
    display: flex;
    flex-direction: column;
    align-self: start;
    height: max-content;
    position: sticky;
    top: 10px;
    z-index: 20;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 243, 0.72);
}

.game-shell.app-menu-static .app-primary-sidebar {
    position: static;
}

.app-main-column {
    display: grid;
    align-content: start;
    min-height: 0;
}

@media (max-width: 760px) {

    .game-shell.app-scale-page .app-scale-viewport {
        margin: 0;
        padding: 0 8px;
    }

    .game-shell.app-scale-page .app-scale-stage > .page {
        padding: 8px 10px 42px;
    }

    .game-shell.app-scale-page .app-page-layout {
        display: block;
        margin-top: 0;
    }

    .game-shell.app-scale-page .app-primary-sidebar {
        display: none;
    }

    .game-shell.app-scale-page .app-main-column {
        display: block;
    }
}

@media (max-width: 640px) {

    .page {
        width: calc(100vw - 10px);
        padding-top: 6px;
    }
}

@media (max-width: 560px) {

    .game-shell.app-scale-page .app-scale-viewport {
        padding-inline: 5px;
    }
}
}/* Source: public/css/source/shared/primitives/game-01.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}
}/* Source: public/css/source/shared/dialogs/game-01.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

html.modal-lock {
    overflow: hidden;
    scrollbar-gutter: stable;
}

body.modal-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.modal-lock .page-scroll-actions {
    opacity: 0;
    pointer-events: none;
}
}/* Source: public/css/source/shared/authentication/game-01.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

body.auth-background {
    min-height: 100vh;
    background: url("/images-web/background/bg-race.png") center / cover fixed no-repeat;
}
}/* Source: public/css/source/shared/shell/game-01.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

body.app-background {
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.app-background-dark {
    background-image: url("/images-web/background/bg-race.png");
}

body.app-background-light {
    background-image: url("/images-web/background/bg-light.png");
}
}/* Source: public/css/source/shared/teams/game-01.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-role-image-frame {
    width: var(--role-frame-size, 58px);
    height: var(--role-frame-size, 58px);
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(245, 230, 205, 0.96));
    outline: 1px solid rgba(var(--action-rgb), 0.24);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.team-role-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

.team-empty-state {
    border: 1px dashed rgba(var(--line-rgb), 0.38);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.42);
    display: grid;
    gap: 5px;
}

.team-empty-state span {
    color: var(--muted);
}

.team-logo-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    cursor: default;
}

button.team-logo-mark,
.team-logo-mark[data-image-modal] {
    cursor: zoom-in;
}

.team-logo-mark.is-large {
    width: 132px;
    height: 132px;
    font-size: 1.7rem;
}

.team-logo-mark.is-picker-preview {
    width: 150px;
    height: 130px;
    font-size: 2rem;
}

.team-logo-mark.is-picker-preview img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.team-logo-mark.is-discover-logo {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
}

.team-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-logo-option-media {
    min-height: 172px;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    border-radius: 8px;
    cursor: zoom-in;
}

.team-logo-option-media img {
    width: min(330px, 94%);
    aspect-ratio: 1;
    object-fit: contain;
}

.team-upgrade-card .ui-row-meta.stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-upgrade-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 42px;
    padding: 8px 22px;
    border: 1px solid rgba(var(--action-rgb), 0.35);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.team-upgrade-pending {
    align-items: center;
    flex-wrap: wrap;
}

.team-upgrade-pending span {
    white-space: nowrap;
}

.team-upgrade-pending span + span::before {
    margin-right: 8px;
    opacity: 0.72;
}

.team-chat-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.58);
    display: grid;
    gap: 12px;
    height: 520px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 14px;
    overscroll-behavior: contain;
}

.team-chat-message {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.team-chat-message.is-mine {
    grid-template-columns: minmax(0, 1fr) 54px;
}

.team-chat-message.is-mine .team-chat-avatar {
    grid-column: 2;
}

.team-chat-message.is-mine .team-chat-bubble {
    grid-column: 1;
    grid-row: 1;
    background: #fff3dc;
    border-color: rgba(var(--action-rgb), 0.28);
}

.team-chat-avatar {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 226, 186, 0.95), rgba(235, 151, 68, 0.88));
    color: #8f5318;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.15rem;
}

.team-chat-bubble {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px 14px;
}

.team-chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 6px;
}

.team-chat-meta span {
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.team-chat-bubble p {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
    overflow-wrap: normal;
}

.team-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.team-chat-form textarea {
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.94);
    color: var(--text);
    font: inherit;
    font-weight: 400;
    line-height: 1.45;
    padding: 14px 16px;
    resize: vertical;
    min-height: 86px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.team-chat-form textarea:focus {
    outline: none;
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 255, 253, 0.99);
    box-shadow: 0 0 0 3px var(--selected-outline), inset 0 1px 0 rgba(var(--theme-border-rgb), 0.08);
}

.team-chat-form textarea::placeholder {
    color: rgba(139, 115, 88, 0.74);
    font-weight: 400;
}

.team-member-row:not(.team-request-row):not(.team-repair-member-row) {
    grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.85fr);
    align-items: start;
}

.team-member-sort-tabs {
    margin: 0 0 0 auto;
    padding: 8px;
}

.team-member-sort-tabs .garage-detail-tab {
    min-height: 42px;
    padding: 10px 16px;
}

.team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(5, minmax(126px, 1fr));
    gap: 10px;
    min-width: 0;
    margin-top: 30px;
    padding-right: 16px;
    box-sizing: border-box;
}

.team-member-row:not(.team-request-row):not(.team-repair-member-row) > .row-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
}

.team-member-summary-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.1;
}

.team-member-summary-line > span::before {
    content: "·";
    margin-right: 7px;
    color: var(--line-strong);
}

.team-member-summary-line .team-member-name {
    color: var(--text);
    font-weight: 900;
}

.team-member-stats > span {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    min-height: 76px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.44);
    color: var(--muted);
    display: grid;
    align-content: start;
    gap: 2px;
}

.team-member-stats strong {
    color: var(--text);
}

.team-member-name {
    display: block;
    line-height: 1.05;
}

.team-member-avatar {
    width: 76px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
}

.team-discover-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.44);
}

.team-discover-card .ui-row-main {
    display: grid;
    gap: 4px;
}

.team-discover-card .ui-row-main p {
    margin: 0;
    color: var(--text);
    line-height: 1.35;
}

.team-discover-card .ui-row-main small {
    color: var(--muted);
    font-weight: 700;
}

.team-discover-card form {
    justify-self: end;
}

.team-discover-card form .button {
    white-space: nowrap;
}

.team-section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.team-section-heading-row h2 {
    margin-bottom: 0;
}

.team-ranking-pill {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    border-radius: 999px;
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 900;
    white-space: nowrap;
}

.team-leaderboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 18px;
}

.team-leaderboard-sort-tabs {
    margin: 0;
    padding: 8px;
}

.team-leaderboard-toolbar .race-pager {
    justify-content: flex-start;
}

.team-leaderboard-sort-tabs .garage-detail-tab {
    min-height: 42px;
    padding: 10px 16px;
}

.team-leaderboard-card {
    grid-template-columns: 64px auto minmax(220px, 1fr) minmax(0, 760px);
}

.team-rank-number {
    color: var(--accent-strong);
    font-size: 1.15rem;
}

.team-leaderboard-stats {
    display: grid;
    grid-template-columns: minmax(96px, 0.72fr) minmax(104px, 0.78fr) minmax(180px, 1.2fr) minmax(132px, 0.9fr) minmax(180px, 1.2fr);
    gap: 10px;
    justify-self: end;
    width: 100%;
}

.team-mini-stat {
    min-width: 0;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.78);
    display: grid;
    align-content: center;
    gap: 4px;
}

.team-mini-stat span {
    color: var(--muted);
    min-width: 0;
    overflow-wrap: normal;
}

.team-mini-stat strong {
    margin: 0;
}

@media (max-width: 700px) {

    .team-section-heading-row {
        display: grid;
    }

    .team-ranking-pill {
        justify-content: center;
        text-align: center;
    }

    .team-leaderboard-toolbar,
    .team-leaderboard-sort-tabs {
        justify-content: flex-start;
        width: 100%;
    }

    .team-discover-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .team-leaderboard-card .ui-row-main,
    .team-leaderboard-stats {
        grid-column: 1 / -1;
    }

    .team-leaderboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-self: stretch;
    }

    .team-discover-card form {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .team-discover-card form .button {
        width: 100%;
    }
}

@media (max-width: 820px) {

    .team-member-row,
    .team-member-stats,
    .team-chat-form {
        grid-template-columns: 1fr;
    }

    .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .row-main,
    .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
        grid-column: 1;
        grid-row: auto;
    }

    .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
        grid-template-columns: 1fr;
    }

    .team-chat-message,
    .team-chat-message.is-mine {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .team-chat-message.is-mine .team-chat-avatar,
    .team-chat-message.is-mine .team-chat-bubble {
        grid-column: auto;
        grid-row: auto;
    }

    .team-chat-avatar {
        width: 44px;
        height: 44px;
    }

    .team-member-sort-tabs {
        margin-left: 0;
    }
}
}/* Source: public/css/source/shared/primitives/game-02.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
}/* Source: public/css/source/shared/shell/game-02.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.topbar {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #fffbf5, #fbf2e3);
}

.topbar-upper {
    display: grid;
    grid-template-columns: minmax(244px, 256px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-block > div:last-child {
    transform: translateY(-3px);
    min-width: 0;
}

.brand-logo {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f89534, #ea7224);
    color: #fff8ef;
    font-size: 1.72rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 26px rgba(var(--action-rgb), 0.15);
    flex: 0 0 auto;
}

.brand-logo img {
    width: 100%;
    max-width: 58px;
    height: auto;
    display: block;
}

.brand {
    display: inline-block;
    font-size: clamp(1.05rem, 1.25vw, 1.34rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
}/* Source: public/css/source/shared/primitives/game-03.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.subtitle,
.muted,
small {
    color: var(--muted);
}
}/* Source: public/css/source/shared/shell/game-03.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.brand-kicker {
    margin: 4px 0 0;
    color: var(--accent-2);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
    max-width: 184px;
    white-space: normal;
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(112px, 1.04fr)) minmax(170px, 1.48fr) minmax(196px, 1.68fr);
    gap: 8px;
    min-width: 0;
}

.header-stat {
    position: relative;
    min-width: 0;
    min-height: 76px;
    padding: 10px 8px;
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.95);
    border: 1px solid rgba(var(--theme-border-rgb), 0.38);
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 6px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-stat-boost-form {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
}

.header-stat-boost-form button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.header-stat-clickable:hover,
.header-stat-clickable:has(.header-stat-boost-form button:focus-visible) {
    border-color: rgba(var(--action-rgb), 0.74);
    background: rgba(255, 248, 238, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 8px 20px rgba(var(--action-rgb), 0.12);
}

.header-stat-clickable:has(.header-stat-boost-form button:focus-visible) {
    outline: 2px solid rgba(var(--action-rgb), 0.46);
    outline-offset: 2px;
}

.header-stat span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.08;
}

.header-stat strong {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.header-stat-money strong {
    font-size: 1rem;
    white-space: nowrap;
}

.header-stat small {
    min-width: 0;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
}

.header-stat-highlight {
    background: rgba(255, 251, 246, 0.95);
}

.header-stat-level {
    gap: 6px;
    align-content: center;
    justify-items: stretch;
}

.header-level-top,
.header-stat-level .menu-progress-label {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.header-level-top {
    justify-content: center;
}

.header-stat-level .menu-progress-label {
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
}

.header-stat-level .menu-progress-label span,
.header-stat-level .menu-progress-label strong {
    min-width: 0;
    white-space: nowrap;
}

.header-stat-level .menu-progress-label strong {
    margin-left: 0;
    text-align: center;
    font-size: 0.82rem;
}

.header-stat-level .meter {
    width: 100%;
    height: 8px;
}

.content {
    margin-top: var(--section-gap);
    min-width: 0;
}

.content > * {
    min-width: 0;
    max-width: 100%;
}
}/* Source: public/css/source/shared/authentication/game-02.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

.auth-shell {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
}

.auth-shell-wide {
    align-items: start;
    padding-block: 14px;
}

.auth-card {
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
}

.auth-card h1 {
    margin: 0;
}

.public-landing-body {
    min-height: 100vh;
}

body.public-landing-body.auth-background {
    background: url("/images-web/background/bg-race.png") center / cover fixed no-repeat;
}

.public-landing-page .content {
    min-height: 100vh;
    margin-top: 0;
}
}/* Source: public/css/source/shared/shell/game-04.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.guest-page-version {
    margin: 16px auto 0;
    color: rgba(122, 70, 31, 0.62);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
}

.footer-help-downloads,
.footer-social-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 7px;
}

.footer-version-separator {
    color: rgba(122, 70, 31, 0.38);
}

.footer-help-downloads-label {
    color: rgba(122, 70, 31, 0.58);
}

.footer-help-downloads a,
.footer-social-links a {
    color: #a95720;
    text-decoration: none;
    border-bottom: 1px solid rgba(169, 87, 32, 0.34);
}

.footer-help-downloads a:hover,
.footer-help-downloads a:focus-visible,
.footer-social-links a:hover,
.footer-social-links a:focus-visible {
    color: #7a461f;
    border-bottom-color: currentColor;
}
}/* Source: public/css/source/shared/authentication/game-03.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

.not-found-shell {
    min-height: min(760px, calc(100vh - 220px));
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 22px 0 34px;
}

.public-landing-page .not-found-shell {
    width: min(1720px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px);
}

.not-found-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    align-items: center;
    gap: 24px;
    min-height: 520px;
    padding: clamp(24px, 4vw, 54px);
    border: 1px solid rgba(var(--line-rgb), 0.2);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(36, 28, 21, 0.9), rgba(57, 39, 25, 0.62) 42%, rgba(246, 237, 225, 0.1)),
        url("/images-web/background/bg-race.png") center / cover no-repeat;
    box-shadow: 0 24px 70px rgba(83, 54, 26, 0.2);
    color: #fff8ef;
}

.public-landing-page .not-found-hero {
    min-height: min(680px, calc(100vh - 180px));
    box-shadow: 0 28px 80px rgba(40, 26, 14, 0.34);
}

.not-found-hero::after {
    content: "";
    position: absolute;
    inset: auto -5% -34% -5%;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(24, 20, 16, 0.88));
    pointer-events: none;
}

.not-found-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    display: grid;
    gap: 14px;
}

.not-found-copy .eyebrow {
    color: #ffc066;
}

.not-found-copy h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.2rem, 4.3vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.not-found-copy p {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 248, 239, 0.82);
    font-size: clamp(1rem, 1.1vw, 1.16rem);
    line-height: 1.6;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.not-found-actions .button {
    min-height: 44px;
}

.not-found-scene {
    position: relative;
    z-index: 1;
    min-height: 340px;
    display: grid;
    place-items: center;
}

.not-found-number {
    position: absolute;
    top: 2%;
    right: 2%;
    color: rgba(255, 248, 239, 0.2);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 1;
}

.not-found-scene img {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    transform: translateY(26px);
}

.not-found-road {
    position: absolute;
    z-index: 1;
    left: 10%;
    right: -8%;
    bottom: 2%;
    height: 96px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(255, 248, 239, 0.32) 0 10%, transparent 10% 18%, rgba(255, 248, 239, 0.24) 18% 28%, transparent 28% 38%, rgba(255, 248, 239, 0.2) 38% 48%, transparent 48%),
        linear-gradient(180deg, rgba(52, 40, 29, 0.18), rgba(20, 17, 14, 0.78));
    transform: skewX(-14deg);
}

.not-found-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.not-found-status > div {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(var(--line-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 250, 243, 0.9);
    box-shadow: 0 12px 28px rgba(var(--theme-shadow-rgb), 0.08);
}

.not-found-status span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.14);
}

.not-found-status strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.28;
}

.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-tabs .chip {
    text-decoration: none;
}

.auth-legal-links {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.auth-legal-links a {
    color: var(--accent-strong);
    font-weight: 900;
}
}/* Source: public/css/source/shared/shell/game-05.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.topbar-lower {
    display: block;
    padding-top: 0;
}
}/* Source: public/css/source/shared/primitives/game-04.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.guest-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    flex-wrap: wrap;
}

.guest-actions .button.is-active {
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: #fff8ef;
    border-color: rgba(var(--action-rgb), 0.46);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 999px;
    background: rgba(255, 247, 236, 0.72);
}

.language-switcher-option {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.language-switcher-option.is-active {
    cursor: default;
}
}/* Source: public/css/source/shared/navigation/game-01.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

.nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 110px) minmax(100px, 108px);
    grid-template-rows: auto auto;
    gap: 8px;
    width: 100%;
}

.nav-grid {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.nav-main {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    height: 46px;
    align-self: start;
}

.nav-sub {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-sub.is-empty {
    display: flex;
}

.nav-sub-placeholder {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.nav-tab {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 8px 8px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    gap: 6px;
    text-align: center;
    white-space: nowrap;
}

.nav-tab:has(.nav-badge) {
    padding-inline: 14px;
}

.nav-main .nav-tab:has(.nav-badge) {
    flex-grow: 1.25;
    min-width: 116px;
}

.nav-tab-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-main .nav-tab-label {
    flex: 0 0 auto;
}

.nav-main .nav-tab {
    flex: 1 0 auto;
    height: 46px;
    min-height: 46px;
}

.nav-main .nav-tab-dealership {
    flex-grow: 1.32;
}

.nav-sub .nav-tab {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: 138px;
    padding: 9px 16px;
    white-space: nowrap;
}

.nav-main .nav-icon-tab {
    flex: 0 0 54px;
    padding-inline: 0;
}

.nav-main .nav-icon-tab:has(.nav-badge) {
    flex-grow: 0;
    flex-basis: 68px;
    min-width: 68px;
    padding-inline: 10px;
}

.nav-tab-icon {
    width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.nav-tab-icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.nav-sub .nav-tab-icon,
.nav-tool-stack .nav-tab-icon,
.nav-account-stack .nav-tab-icon,
.nav-sub .nav-tab-icon svg,
.nav-tool-stack .nav-tab-icon svg,
.nav-account-stack .nav-tab-icon svg {
    width: 17px;
    height: 17px;
}

.nav-sub-tab {
    min-height: 34px;
    background: rgba(255, 247, 236, 0.76);
}

.nav-help-button {
    font: inherit;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu-section summary,
.mobile-menu-title,
.mobile-menu-link {
    align-items: center;
    gap: 10px;
}

.mobile-menu-section summary,
.mobile-menu-link {
    display: flex;
}

.mobile-menu-title,
.mobile-menu-link > span:not(.nav-badge):not(.mobile-menu-icon) {
    min-width: 0;
}

.mobile-menu-title {
    display: inline-flex;
    flex: 1 1 auto;
}

.mobile-menu-link > span:not(.nav-badge):not(.mobile-menu-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.mobile-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.nav-tool-stack,
.nav-account-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    align-self: stretch;
    min-width: 0;
}

.nav-tool-stack {
    position: relative;
    padding-left: 14px;
}

.nav-tool-stack::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    border-radius: 999px;
    background: rgba(var(--line-rgb), 0.34);
}

.nav-account-stack {
    grid-column: 3;
}

.nav-account-stack .language-switcher {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 4px;
    border-radius: 999px;
    background: var(--nav-bg);
}

.nav-account-stack .language-switcher-option {
    padding-inline: 6px;
}

.nav-logout-form {
    display: flex;
    min-width: 0;
}

.nav-logout-button {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.4);
    color: #a55d18;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-sponsor-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 108px;
    margin-bottom: 8px;
    padding: 4px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.42);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 239, 217, 0.28)),
        rgba(255, 252, 246, 0.9);
    box-shadow: 0 10px 22px rgba(var(--theme-shadow-rgb), 0.09);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.sidebar-sponsor-banner:hover {
    border-color: rgba(var(--action-rgb), 0.48);
    box-shadow: 0 14px 26px rgba(var(--theme-shadow-rgb), 0.13);
    transform: translateY(-1px);
}

.sidebar-sponsor-banner img {
    display: block;
    width: 100%;
    height: 102px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
}

.app-primary-sidebar .nav-main {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    height: auto;
    width: 100%;
}

.app-primary-sidebar .nav-main .nav-tab {
    width: 100%;
    max-width: none;
    align-self: stretch;
    flex: 0 0 auto;
    justify-content: flex-start;
    text-align: left;
    border-radius: 10px;
}

.app-sidebar-utilities {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "admin"
        "help"
        "profile"
        "language"
        "logout";
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(var(--line-rgb), 0.34);
}

.app-sidebar-utilities .nav-tool-stack,
.app-sidebar-utilities .nav-account-stack {
    display: contents;
}

.app-sidebar-utilities .nav-tool-stack::before {
    display: none;
}

.app-sidebar-utilities .nav-help-button {
    grid-area: help;
}

.app-sidebar-utilities .nav-admin-button {
    grid-area: admin;
}

.app-sidebar-utilities .nav-tool-stack > a {
    grid-area: profile;
}

.app-sidebar-utilities .nav-account-stack .language-switcher {
    grid-area: language;
    width: 100%;
    min-height: 44px;
}

.app-sidebar-utilities .nav-account-stack .nav-logout-form {
    grid-area: logout;
}

.app-sidebar-utilities .nav-help-button,
.app-sidebar-utilities .nav-tool-stack > a {
    justify-content: flex-start;
    text-align: left;
}

.app-sidebar-utilities .nav-tab,
.app-sidebar-utilities .language-switcher {
    min-width: 0;
}

.nav-help-button small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0.82;
}

.nav-tab.is-active {
    font-weight: 700;
}

.menu-progress {
    display: grid;
    gap: 5px;
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.95);
    border: 1px solid var(--line);
}
}/* Source: public/css/source/shared/shell/game-06.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.app-main-column .topbar-lower {
    padding-top: 0;
}

.app-main-column .nav-shell {
    grid-template-columns: minmax(0, 1fr);
}

.app-main-column .nav-sub {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 14px;
    background: rgba(255, 251, 246, 0.58);
}

.app-main-column .nav-sub .nav-tab {
    min-width: 130px;
    padding: 8px 14px;
}
}/* Source: public/css/source/shared/authentication/game-04.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field span {
    font-size: 0.84rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(var(--action-rgb), 0.28);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(var(--action-rgb), 0.62);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--action-rgb), 0.12);
}

.auth-inline-button {
    min-height: 46px;
}

.auth-error {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 232, 224, 0.96);
    color: #9c4221;
    border: 1px solid rgba(var(--danger-rgb), 0.16);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.social-auth-box,
.social-auth-grid {
    display: grid;
    gap: 12px;
}

.social-auth-grid {
    grid-template-columns: minmax(0, 280px);
    justify-content: center;
}

.social-auth-button {
    justify-content: center;
    min-height: 46px;
}

.social-auth-mark {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.96);
    border: 1px solid var(--line);
    color: var(--accent-strong);
    font-weight: 900;
    line-height: 1;
}
}/* Source: public/css/source/shared/navigation/game-02.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

.menu-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1.1;
}
}/* Source: public/css/source/shared/primitives/game-05.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.eyebrow {
    margin-bottom: 8px;
}

.panel h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.1;
}

.panel h2 {
    font-size: clamp(0.98rem, 0.24vw + 0.82rem, 1.1rem);
    line-height: 1.14;
}

.panel h1,
.panel h2 {
    margin-top: 0;
}

.hero-grid,
.stats-strip {
    display: grid;
    gap: var(--section-gap);
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.ui-row-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ui-row-card,
.ui-row-media,
.ui-row-main,
.ui-row-meta,
.ui-row-actions {
    min-width: 0;
}
}/* Source: public/css/source/shared/home-notifications/game-01.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-active-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.home-active-summary-grid .dealership-summary-card {
    padding: 10px 12px;
    gap: 3px;
    align-content: center;
}

.home-active-summary-grid .dealership-summary-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.08;
}

.home-race-table-scroll {
    overflow-x: auto;
}

@media (max-width: 760px) {

    .game-shell :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    ) {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scrollbar-width: auto;
        scrollbar-color: rgba(var(--action-rgb), 0.58) rgba(47, 37, 30, 0.12);
        padding-bottom: 10px;
    }

    .game-shell :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar {
        display: block;
        height: 10px;
    }

    .game-shell :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar-track {
        border-radius: 999px;
        background: rgba(47, 37, 30, 0.12);
    }

    .game-shell :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(var(--action-rgb), 0.58);
    }
}
}/* Source: public/css/source/shared/cars/game-01.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-panel-full-body {
    grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr);
    align-items: start;
}

.car-panel-full-media {
    min-width: 0;
}

.car-panel-full-main {
    gap: 12px;
    min-width: 0;
}

.car-panel-full-head {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
    gap: 14px;
    align-items: start;
}

.car-panel-full-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.car-panel-full-title-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(138px, 150px);
    align-items: start;
    gap: 12px;
    min-width: 0;
}

.car-panel-full-title-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.car-panel-full-title .eyebrow {
    margin-bottom: 0;
}

.car-panel-full-title h2 {
    margin: 0;
    line-height: 1.05;
}

.car-panel-full-title p {
    margin: 0;
    white-space: nowrap;
}

.car-panel-full-head-actions {
    display: contents;
}

.car-panel-full-head-actions > :not(.car-panel-full-actions) {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
}

.car-panel-full-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.car-panel-full-head-actions .car-panel-full-actions {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-left: auto;
}

.car-panel-inline-status-pills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin-right: auto;
}

.car-panel-inline-status-pills > * {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.car-panel-full-head-actions .car-panel-full-actions > *,
.car-panel-full-head-actions .car-panel-full-actions .button {
    width: auto;
    min-width: 0;
}

.car-panel-full-head-actions .dealership-hero-pill,
.car-panel-full-head-actions .button,
.car-panel-full-head-actions form {
    min-height: 40px;
}

.car-panel-boost-toggle {
    min-height: 40px;
    padding: 8px 14px;
    border-color: rgba(var(--action-rgb), 0.34);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.car-panel-boost-toggle:has(input:checked),
.car-panel-boost-toggle.is-active {
    border-color: rgba(var(--action-rgb), 0.5);
    background: var(--theme-selected-surface, rgba(var(--action-rgb), 0.12));
    color: var(--action-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        0 8px 18px rgba(var(--action-rgb), 0.12);
    transform: translateY(-1px);
}

.car-panel-full-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.car-panel-full-summary-grid .dealership-summary-card {
    min-height: 76px;
    padding: 8px 10px;
    gap: 5px;
    align-content: center;
}

.car-panel-full-summary-grid .dealership-summary-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.08;
}

.car-panel-full-summary-grid .dealership-summary-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.06;
    font-weight: 900;
}

.car-panel-full-breakdown-grid {
    grid-column: 1 / -1;
}

.car-panel-full-breakdown-grid .car-panel-breakdown-card {
    padding: 12px 12px;
    gap: 8px;
}

.car-panel-full-breakdown-grid .car-panel-breakdown-card-head > strong {
    font-size: 0.88rem;
}

.car-panel-analysis-accordion {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(var(--action-rgb), 0.24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 247, 235, 0.94));
    box-shadow: 0 6px 16px rgba(54, 38, 20, 0.06);
}

.car-panel-analysis-toggle {
    padding: 12px 14px;
    min-height: 70px;
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.06), rgba(255, 255, 255, 0));
}

.car-panel-analysis-toggle > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.car-panel-analysis-toggle .eyebrow {
    font-size: var(--eyebrow-font-size, 1rem);
    line-height: 1.1;
}

.car-panel-analysis-accordion:not([open]) .car-panel-analysis-toggle {
    border-bottom: 0;
}

.car-panel-analysis-accordion .garage-accordion-icon {
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    border-color: rgba(var(--action-rgb), 0.26);
    box-shadow: 0 4px 10px rgba(var(--action-rgb), 0.14);
}

.car-panel-analysis-accordion .garage-accordion-icon::before,
.car-panel-analysis-accordion .garage-accordion-icon::after {
    background: #fff;
}

.car-panel-analysis-content {
    display: grid;
    gap: 12px;
    padding: 12px 16px 16px;
}

.car-panel-garage-slots-card {
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    justify-self: end;
}

.car-panel-garage-slots-card span {
    font-size: 0.78rem;
    font-weight: 500;
}

.car-panel-garage-slots-card strong {
    font-size: 1rem;
    font-weight: 900;
}

.car-mastery-compact {
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.92);
}

.car-mastery-compact .label-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.86rem;
}

.car-mastery-compact .label-row strong {
    color: var(--text);
    font-size: 1rem;
    text-align: right;
}

.car-mastery-compact .label-row.condition-label-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.car-mastery-compact .label-row.condition-label-row span,
.car-mastery-compact .label-row.condition-label-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-mastery-compact small {
    color: var(--muted);
    font-size: 0.78rem;
}
}/* Source: public/css/source/shared/primitives/game-06.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.progress-bar-caption {
    display: block;
    min-width: 0;
    color: var(--theme-muted, var(--muted));
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-mastery-compact.is-condition .progress-bar-caption,
.race-active-car-summary-bar.is-condition .progress-bar-caption {
    font-size: var(--stat-box-font-size);
    font-weight: 500;
}
}/* Source: public/css/source/shared/cars/game-02.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-panel-progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    grid-column: 1 / -1;
}

.car-panel-progress-grid .car-mastery-compact {
    min-width: 0;
}

.car-panel-breakdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.car-panel-breakdown-card {
    min-height: 108px;
    padding: 12px 14px;
    gap: 8px;
    align-content: start;
}

.car-panel-actions {
    justify-content: flex-end;
    margin-top: 10px;
}

.car-panel-active-pill {
    width: fit-content;
    min-width: 170px;
    min-height: 38px;
    margin-top: 8px;
    padding-inline: 14px;
    white-space: nowrap;
}

.car-panel-full-actions .car-panel-active-pill {
    min-height: 40px;
    margin-top: 0;
    justify-self: stretch;
}

.car-panel-full-actions .car-panel-repair-pill {
    min-height: 40px;
    margin-top: 0;
}
}/* Source: public/css/source/shared/primitives/game-07.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.active-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 170px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(var(--success-rgb), 0.34);
    border-radius: 999px;
    background: rgba(var(--success-rgb), 0.11);
    color: #47752c;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
}/* Source: public/css/source/shared/cars/game-03.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-panel-repair-pill {
    width: fit-content;
    min-height: 38px;
    margin-top: 8px;
    border-color: rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
}

.car-panel-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
}/* Source: public/css/source/shared/home-notifications/game-02.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-active-summary-grid.car-panel-full-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
}/* Source: public/css/source/shared/activities/game-01.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.city-jobs-category-copy {
    margin-top: -4px;
}

.city-jobs-tabs-panel {
    padding: 10px 12px;
}

.city-jobs-hero {
    grid-template-columns: 1fr;
}

.city-jobs-hero-title-row {
    align-items: flex-start;
}

.city-jobs-tabs-panel .city-jobs-tabs {
    gap: 10px;
    padding: 0;
}

.city-jobs-tabs .garage-detail-tab {
    flex: 0 0 auto;
}

.city-jobs-tabs .garage-detail-tab.is-active {
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    border-color: rgba(var(--action-rgb), 0.62);
    color: var(--selected-text);
    box-shadow: 0 10px 20px rgba(var(--action-rgb), 0.13);
}

.city-jobs-tab-panel[hidden] {
    display: none;
}

.city-jobs-category-stack {
    display: grid;
    gap: 24px;
}

.achievement-filter-tabs .garage-detail-tab {
    flex: 0 0 auto;
}
}/* Source: public/css/source/shared/garage/game-01.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-fragment-progress {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.garage-fragment-progress > span {
    min-width: 0;
    display: grid;
    gap: 6px;
    align-content: center;
}

.game-shell .garage-fragment-progress > span small {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
    text-transform: none;
}

.game-shell .garage-fragment-progress > span strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: visible;
    text-overflow: clip;
}

.garage-fragment-progress .meter {
    grid-column: 1 / -1;
    height: 8px;
    width: 100%;
    margin-top: 8px;
}
}/* Source: public/css/source/shared/activities/game-02.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.achievement-level {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    font-size: 0.76rem;
    font-weight: 700;
}

.achievement-level.is-unlocked {
    color: #314f16;
    border-color: rgba(var(--success-rgb), 0.58);
    background: rgba(202, 226, 176, 0.96);
    box-shadow: inset 0 0 0 1px rgba(var(--success-rgb), 0.12);
}

.achievement-level.is-ready {
    color: var(--accent-strong);
    border-color: rgba(var(--action-rgb), 0.55);
    background: rgba(var(--action-rgb), 0.12);
}
}/* Source: public/css/source/shared/primitives/game-08.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.section-footer-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.section-footer-pager.is-top {
    margin-top: 0;
    margin-bottom: 16px;
}
}/* Source: public/css/source/shared/garage/game-02.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-infrastructure-summary-panel {
    padding: 18px 22px;
}

.garage-infrastructure-summary-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "copy actions"
        "lead lead";
    align-items: center;
}

.garage-infrastructure-summary-copy {
    display: grid;
    gap: 4px;
    grid-area: copy;
    max-width: none;
    min-width: 0;
}

.garage-infrastructure-summary-lead {
    grid-area: lead;
    max-width: none;
    width: 100%;
    margin: 0;
    line-height: 1.35;
}

.garage-infrastructure-summary-actions {
    display: grid;
    grid-area: actions;
    grid-template-columns: max-content;
    gap: 10px;
    justify-content: end;
    align-items: center;
}
}/* Source: public/css/source/shared/activities/game-03.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.tour-city-tabs {
    padding: 0;
}

.tour-city-tabs .garage-detail-tab {
    flex: 0 0 auto;
}
}/* Source: public/css/source/shared/garage/game-03.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-accordion {
    padding: 0;
    overflow: hidden;
}

.garage-accordion-toggle {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
}

.garage-accordion-toggle::-webkit-details-marker {
    display: none;
}

.garage-accordion-toggle strong {
    display: block;
    font-size: 1rem;
}

.garage-accordion-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(251, 242, 227, 0.95), rgba(246, 233, 210, 0.95));
    position: relative;
    flex: 0 0 auto;
}

.garage-accordion-icon::before,
.garage-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent-2);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.garage-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.18s ease;
}

.garage-accordion[open] .garage-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.garage-accordion-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--line);
}

.garage-accordion-content.car-panel-analysis-content {
    padding: 18px 16px 16px;
}
}/* Source: public/css/source/shared/primitives/game-09.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.row-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}
}/* Source: public/css/source/shared/cars/game-04.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-panel-garage-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(var(--action-rgb), 0.34);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.14);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.car-panel-media-chips {
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
}

.car-panel-media-chips .dealership-chip {
    padding: 5px 9px;
    font-size: 0.7rem;
    line-height: 1.1;
}
}/* Source: public/css/source/shared/garage/game-04.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-repair-car-badge {
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
    font-weight: 700;
}

.garage-breakdown-car-badge {
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(var(--danger-rgb), 0.34);
    background: rgba(255, 232, 224, 0.94);
    color: #9d3227;
    font-weight: 700;
}
}/* Source: public/css/source/shared/home-notifications/game-03.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-recent-race-card .race-result-pill {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.home-recent-race-card:not(:has(.race-history-row-mid)) {
    grid-template-columns: minmax(430px, 0.74fr) minmax(360px, 1fr) minmax(100px, auto);
}

.home-recent-race-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.home-recent-race-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.home-recent-race-side {
    display: grid;
    gap: 8px;
    align-content: center;
    min-width: 0;
    color: var(--muted);
}

.home-recent-race-side small {
    line-height: 1.35;
}
}/* Source: public/css/source/shared/resources/game-01.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

.reward-tabs {
    margin-top: 0;
}

.reward-tabs .garage-detail-tab {
    min-width: 220px;
}

.reward-filter-tabs .garage-detail-tab {
    flex: 0 0 auto;
}
}/* Source: public/css/source/shared/cars/game-05.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-visual {
    --car-visual-layer-padding: clamp(4px, 1.6%, 12px);
    --car-visual-layer-scale: 0.9;
    --car-visual-layer-y: 8%;
    --car-visual-plain-scale: 1.08;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(245, 230, 205, 0.96));
}

.car-visual img,
.car-visual-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.car-visual img {
    object-fit: cover;
    transform-origin: center center;
}

.car-visual:not(.is-layered) > img {
    transform: scale(var(--car-visual-plain-scale));
}

.car-visual.is-layered img {
    position: absolute;
    inset: 0;
}

.car-visual.is-layered .car-visual-background {
    z-index: 1;
    object-fit: cover;
}

.car-visual.is-layered .car-visual-foreground {
    z-index: 2;
    object-fit: contain;
    object-position: center center;
    padding: var(--car-visual-layer-padding);
    transform: translateY(var(--car-visual-layer-y)) scale(var(--car-visual-layer-scale));
}

.car-visual.is-compact.is-layered .car-visual-foreground {
    --car-visual-layer-padding: 4px;
}

.car-visual.uses-preview-assets.is-layered {
    border: 0;
    background: transparent;
}

.car-visual-fallback {
    display: grid;
    place-items: center;
    min-height: 100%;
    background: linear-gradient(135deg, rgba(var(--info-rgb), 0.12), rgba(var(--action-rgb), 0.18));
}

.car-visual-fallback span {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f89534, #ea7224);
    color: #fff8ef;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.car-visual.is-featured {
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

.car-visual.is-hero {
    aspect-ratio: 16 / 8;
    margin-bottom: 18px;
}

.car-visual.is-compact {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 16 / 10;
}

.car-visual.is-team-leader {
    width: 112px;
    min-width: 112px;
}

.car-visual.is-ranking-podium {
    aspect-ratio: 16 / 8.7;
}

.car-visual.is-race-result {
    aspect-ratio: 16 / 10;
}

.car-visual.is-history-opponent {
    width: 245px;
    min-width: 245px;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    padding: 7px;
    border: 4px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 16px;
    background: rgba(255, 249, 240, 0.94);
}

.car-visual.is-history-opponent :is(img, .car-visual-background, .car-visual-foreground) {
    border-radius: 9px;
}

.car-visual.is-history-opponent.is-layered img {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
}

.car-visual.is-showroom {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

.dealership-active-media .car-visual.is-featured {
    margin-bottom: 0;
}
}/* Source: public/css/source/shared/primitives/game-10.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.appearance-tab-shell {
    display: grid;
    gap: 18px;
}

.appearance-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.appearance-tab-nav.garage-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.appearance-tab-button {
    cursor: pointer;
    flex: 0 0 auto;
}

.appearance-tab-panel {
    display: none;
}

.appearance-tab-input--simple:checked ~ .panel .appearance-tab-panel-simple,
.appearance-tab-input--race:checked ~ .panel .appearance-tab-panel-race,
.appearance-tab-input--owned:checked ~ .panel .appearance-tab-panel-owned {
    display: block;
}

@media (max-width: 680px) {

    .appearance-tab-button {
        flex: 1 1 100%;
    }
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.scene-theme-target-select {
    min-height: 46px;
    padding: 10px 42px 10px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.96);
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.upgrade-visual:disabled,
.collection-part-visual:disabled {
    cursor: default;
}
}/* Source: public/css/source/shared/garage/game-05.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .garage-infrastructure-summary-head {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "copy"
            "actions"
            "lead";
    }

    .garage-infrastructure-summary-actions {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

.garage-scene-car-toggle[aria-pressed="true"] {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

.garage-multi-position-choice input:checked + span {
    border-color: rgba(var(--action-rgb), 0.56);
    background: linear-gradient(180deg, #ff9f33 0%, #ef7620 100%);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 12px 24px rgba(var(--action-rgb), 0.18);
}

.upgrade-meta {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.upgrade-visual {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: rgba(255, 247, 236, 0.92);
    color: var(--accent);
    font-weight: 900;
    padding: 4px;
    cursor: zoom-in;
}

.upgrade-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 7px;
}
}/* Source: public/css/source/shared/race-animation/game-01.css */

@layer base {/* Shared race-animation; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.race-compact-viewport .race-sequence-track,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse {
        --mobile-race-track-art-height: clamp(72px, 20vw, 96px);
    }
}
}/* Source: public/css/source/shared/primitives/game-11.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.stats-strip > span {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
}

.stats-strip > .stat-value-card {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
    align-content: center;
    gap: 8px;
}

.stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 18px 0;
}

.stats-strip .is-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--status-pill-border);
    background: var(--status-pill-bg);
    color: var(--status-pill-text);
    font-weight: 800;
    white-space: nowrap;
}

.stack {
    display: grid;
    gap: 12px;
}

.row-card {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.row-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
    align-items: center;
    column-gap: 18px;
}

.row-layout-visual {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
}

.row-layout-visual.team-member-row:not(.team-request-row):not(.team-repair-member-row) {
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.35fr);
    align-items: start;
}

.row-layout-visual:has(.race-history-row-mid) {
    grid-template-columns: minmax(520px, 1fr) minmax(220px, 0.52fr) minmax(180px, 220px);
}

.row-main {
    min-width: 0;
}

.row-main-visual {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.row-meta {
    min-width: 0;
    width: 100%;
    text-align: right;
    justify-self: end;
}

.row-meta small {
    display: block;
    margin-top: 4px;
}

.right-text {
    text-align: right;
}
}/* Source: public/css/source/shared/teams/game-02.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-history-filter-tabs {
    margin-bottom: 12px;
}
}/* Source: public/css/source/shared/racing/game-01.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-history-row-mid {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.race-history-row-mid > div {
    display: grid;
    gap: 3px;
}

.race-history-row-mid span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.race-history-row-mid strong {
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.2;
    overflow-wrap: normal;
}

.race-history-prize {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.race-history-prize strong {
    color: var(--text);
}

.race-history-details-button {
    margin-top: 8px;
}
}/* Source: public/css/source/shared/activities/game-04.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.tour-job-card--structured.has-tour-image {
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    grid-template-areas: "image main"
        "image meta"
        "image rewards"
        "image progress"
        "image cooldown"
        "image action";
    align-items: stretch;
    gap: 10px 22px;
    padding: 12px 16px;
}

.tour-job-card--structured:not(.has-tour-image) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main"
        "meta"
        "rewards"
        "progress"
        "cooldown"
        "action";
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
}

.tour-job-card--structured .row-main {
    align-self: start;
    min-width: 0;
}

.tour-job-card--structured .row-main p {
    max-width: 100%;
    line-height: 1.28;
}

.tour-job-card--structured .tour-resource-line {
    gap: 7px;
    line-height: 1.08;
}

.tour-resource-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.15;
}

.tour-resource-line > span:last-child {
    min-width: 0;
    overflow-wrap: normal;
}
}/* Source: public/css/source/shared/primitives/game-12.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

.button-action-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: currentColor;
    opacity: 1;
}

.button-action-icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.button-action-icon svg * {
    stroke: currentColor;
    fill: none;
}

.icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    background: rgba(255, 251, 246, 0.96);
    color: var(--accent);
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    cursor: pointer;
}

.field {
    display: grid;
    gap: 8px;
    width: 100%;
}

.field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    min-height: 132px;
    line-height: 1.45;
    resize: vertical;
}

.field textarea:focus {
    border-color: rgba(var(--action-rgb), 0.42);
    background: rgba(255, 255, 253, 0.98);
    box-shadow: 0 0 0 3px var(--selected-outline), inset 0 1px 0 rgba(var(--theme-border-rgb), 0.08);
}

.field textarea::placeholder {
    color: rgba(139, 115, 88, 0.78);
    font-weight: 700;
}

.button-resource-icon {
    width: 1.15em;
    height: 1.15em;
    object-fit: contain;
    flex: 0 0 auto;
    padding: 1px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 4px;
    background: rgba(255, 247, 236, 0.9);
}
}/* Source: public/css/source/shared/resources/game-02.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

.hourglass-stepper-label .button-resource-icon {
    width: 1.95em;
    height: 1.95em;
    padding: 2px;
    border-radius: 5px;
}

.hourglass-action-form {
    display: inline-flex;
    align-items: stretch;
    gap: .35rem;
    margin: .45rem 0 0;
}

.hourglass-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    justify-content: center;
    margin: .45rem 0 0;
}

.hourglass-action-group .hourglass-action-form {
    margin: 0;
}

.hourglass-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    white-space: nowrap;
    min-width: 8rem;
}

.hourglass-multi-form {
    flex-wrap: wrap;
    justify-content: center;
}

.hourglass-multi-form .hourglass-stepper-control {
    flex: 0 0 auto;
}

.hourglass-stepper-control {
    display: inline-grid;
    grid-template-columns: 2.35rem minmax(5.85rem, auto) 2.35rem;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 250, 242, .88);
}

.hourglass-stepper-button {
    min-width: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding-inline: .7rem;
    font-size: 1.1rem;
}

.hourglass-stepper-button .button-action-icon {
    display: none;
}

.hourglass-stepper-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 2.35rem;
    padding: .35rem .72rem;
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
}

.hourglass-stepper-label small {
    color: var(--muted);
    font-size: .78em;
    font-weight: 800;
}
}/* Source: public/css/source/shared/shell/game-07.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.page-scroll-actions {
    position: fixed;
    right: 18px;
    bottom: 22px;
    transform: none;
    display: grid;
    gap: 10px;
    z-index: 35;
}

.page-scroll-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    background: linear-gradient(180deg, rgba(255, 247, 236, 0.98), rgba(247, 223, 188, 0.98));
    color: var(--text);
    box-shadow: 0 12px 22px rgba(var(--theme-shadow-rgb), 0.15);
    display: grid;
    place-items: center;
    cursor: pointer;
    font: inherit;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.page-scroll-button span {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
}

.page-scroll-button:hover {
    border-color: rgba(var(--action-rgb), 0.5);
    box-shadow: 0 14px 26px rgba(var(--theme-shadow-rgb), 0.2);
}

.page-scroll-button.is-pressed {
    transform: scale(0.94);
    box-shadow: 0 8px 16px rgba(var(--theme-shadow-rgb), 0.12);
}
}/* Source: public/css/source/shared/primitives/game-13.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.badge,
.flash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.96);
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
}

.badge {
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 900;
}

.flash {
    margin-top: 16px;
    width: fit-content;
}

.job-time-progress {
    width: 100%;
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.job-time-progress-percent {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
}

.progress-block {
    margin-top: 16px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
}/* Source: public/css/source/shared/teams/game-03.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.flow-entry-details--pair {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
}
}/* Source: public/css/source/shared/home-notifications/game-04.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.announcement-entry.is-unread {
    border-color: rgba(var(--action-rgb), 0.54);
    background: rgba(255, 250, 242, 0.98);
}

.announcement-entry.is-highlighted {
    scroll-margin-top: 118px;
    border-color: rgba(var(--action-rgb), 0.78);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.12), rgba(255, 250, 242, 0.98));
    box-shadow: inset 5px 0 0 var(--action),
        0 18px 40px rgba(var(--action-rgb), 0.18);
}

.announcement-entry.is-pinned {
    box-shadow: inset 4px 0 0 var(--accent), 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
}

.announcement-entry.is-highlighted.is-pinned {
    box-shadow: inset 5px 0 0 var(--action),
        0 18px 40px rgba(var(--action-rgb), 0.18);
}

.announcement-meta-row,
.announcement-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}

.announcement-body {
    display: grid;
    gap: 10px;
    line-height: 1.5;
}

.announcement-body p {
    margin: 0;
}

.announcement-actions {
    margin-top: 6px;
    justify-content: flex-end;
}

.announcement-actions form {
    display: flex;
    margin: 0;
}

.announcement-actions .button {
    min-height: 46px;
}

.announcement-actions form .button {
    height: 100%;
}

.announcement-entry {
    gap: 10px;
}

.announcement-entry .right-text {
    min-width: 112px;
}

.announcement-show-content {
    display: grid;
    gap: 16px;
    align-items: start;
}

.announcement-show-content.has-media {
    grid-template-columns: var(--upgrade-visual-frame-size, 200px) minmax(0, 1fr);
}

.announcement-show-media {
    margin: 2px 0 8px;
    cursor: zoom-in;
}

.announcement-show-media img {
    display: block;
    width: 100%;
}

@media (max-width: 760px) {

    .announcement-show-content.has-media {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .announcement-show-media {
        max-width: var(--upgrade-visual-frame-size, 200px);
        justify-self: center;
        margin-inline: auto;
    }
}
}/* Source: public/css/source/shared/teams/game-04.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.flow-filter-tabs {
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.flow-filter-tabs .garage-detail-tab {
    flex: 0 0 auto;
}
}/* Source: public/css/source/shared/primitives/game-14.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(250, 241, 227, 0.96);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
    font-weight: 600;
}

.select {
    min-width: 160px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    color: var(--text);
}
}/* Source: public/css/source/shared/racing/game-02.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-page-hero {
    display: grid;
    gap: 14px;
}

.race-accordion {
    padding: 0;
    overflow: hidden;
}

.race-accordion-toggle {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
}

.race-accordion-toggle::-webkit-details-marker {
    display: none;
}

.race-accordion-toggle strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    display: block;
    font-size: 1rem;
}

.race-accordion-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(251, 242, 227, 0.95), rgba(246, 233, 210, 0.95));
    position: relative;
    flex: 0 0 auto;
}

.race-accordion-icon::before,
.race-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent-2);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.race-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.18s ease;
}

.race-accordion[open] .race-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.race-accordion-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--line);
}

.race-setup-accordion .race-accordion-content {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}

.race-setup-accordion.race-accordion,
.race-selected-summary-panel.race-accordion {
    padding: 0;
}

.race-selected-summary-panel .race-accordion-content {
    padding-top: 10px;
}

.race-selected-setup-analysis {
    gap: 12px;
}

.race-selected-summary-count-panel {
    display: grid;
    gap: 12px;
}

.race-selected-summary-count-panel[hidden] {
    display: none;
}

.race-selected-setup-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.race-selected-setup-format-grid .race-multi-lineup-format-table-card:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.race-setup-accordion-toggle .eyebrow {
    display: block;
    margin-bottom: 6px;
}

.race-setup-accordion-toggle {
    padding: 16px 16px;
}

.race-active-car-accordion {
    margin-bottom: 0;
}

.race-active-car-summary {
    display: grid;
    grid-template-columns: minmax(390px, 430px) minmax(0, 0.35fr) minmax(260px, 320px) minmax(520px, 640px) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.race-active-car-summary-main {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.race-active-car-summary-visual.car-visual {
    width: 128px;
    min-width: 128px;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.race-active-car-summary-stats {
    display: grid;
    grid-column: 4;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 8px;
    max-width: 520px;
    min-width: 0;
    justify-self: stretch;
}

.race-active-car-summary-stats .dealership-chip {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-align: left;
    white-space: nowrap;
}

.race-active-car-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
}

.race-active-car-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
}

.race-active-car-summary-stats .dealership-chip.is-damage {
    order: 5;
}

.race-active-car-summary-stats .dealership-chip.is-score {
    order: 6;
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.22), rgba(var(--theme-border-rgb), 0.14));
    border-color: rgba(var(--theme-border-rgb), 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
}

.race-active-car-summary-bars {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    gap: 8px;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
}

.race-active-car-summary .race-accordion-icon {
    grid-column: 5;
    grid-row: 1;
}

.race-active-car-summary-bar {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.race-active-car-summary-bar-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.2;
    min-width: 0;
}

.race-active-car-summary-bar-label span,
.race-active-car-summary-bar-label small,
.race-active-car-summary-bar-label b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race-active-car-summary-bar-label small {
    min-width: 0;
    text-align: center;
}

.race-active-car-summary-bar-label b {
    color: var(--text);
    font-size: 0.76rem;
}

.race-active-car-summary-bar-label.is-stacked {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 3px;
}

.race-active-car-summary-bar-label.is-stacked small {
    grid-column: 1 / -1;
    text-align: left;
}

.race-active-car-summary-bar .meter {
    height: 10px;
}

.race-multi-lineup-accordion {
    margin-bottom: 0;
}

.race-multi-lineup-summary {
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(460px, 0.9fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.race-multi-lineup-car-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.race-multi-lineup-car-thumb {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.race-multi-lineup-car-thumb .lineup-mini-slot {
    padding: 3px 7px;
    font-size: 0.68rem;
}

.race-multi-lineup-car-thumb .car-visual.is-compact {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.race-multi-lineup-summary-stats,
.race-multi-lineup-total-grid {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.race-multi-lineup-summary-stats {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    justify-content: end;
    justify-self: end;
    width: 100%;
}

.race-multi-lineup-summary-stats .dealership-chip {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-align: left;
    white-space: nowrap;
}

.race-multi-lineup-summary-stats .dealership-chip[hidden] {
    display: none;
}
}/* Source: public/css/source/shared/primitives/game-15.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.race-active-car-summary-stats .dealership-chip.is-damage strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-multi-lineup-summary-stats .dealership-chip.is-damage strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.dealership-summary-card.is-damage strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: #b94435;
}
}/* Source: public/css/source/shared/racing/game-03.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-multi-lineup-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.1;
}

.race-multi-lineup-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
}

.race-multi-lineup-accordion-content {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.race-multi-lineup-analysis {
    display: grid;
    gap: 10px;
}

.race-multi-lineup-analysis-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.race-multi-lineup-analysis-counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.race-multi-lineup-analysis-toolbar .race-multi-lineup-analysis-counts:only-child {
    margin-left: auto;
}

.race-multi-lineup-analysis-toolbar .button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
}

.race-multi-lineup-analysis-panel {
    display: grid;
    gap: 10px;
}

.race-multi-lineup-analysis-panel[hidden],
.race-multi-lineup-compact-grid[hidden] {
    display: none;
}

.race-multi-lineup-compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.race-multi-lineup-format-tables-grid .race-multi-lineup-format-table-card:nth-child(4) {
    grid-column: 1 / 2;
}

.race-multi-lineup-format-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

.race-multi-lineup-format-table {
    width: 100%;
    min-width: 300px;
    border-collapse: collapse;
}

.race-multi-lineup-format-table th,
.race-multi-lineup-format-table td {
    padding: 7px 8px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.14);
    text-align: right;
    white-space: nowrap;
}

.race-multi-lineup-format-table thead th {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.race-multi-lineup-format-table th:first-child,
.race-multi-lineup-format-table td:first-child {
    text-align: left;
}

.race-multi-lineup-format-table tbody th,
.race-multi-lineup-format-table tbody td {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 900;
}

.race-multi-lineup-breakdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.race-multi-lineup-total-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.race-multi-lineup-total-grid .dealership-summary-card {
    min-width: 0;
    border-radius: 8px;
}

.race-active-car-accordion-content {
    display: grid;
    gap: 12px;
    padding: 14px 16px 16px;
}

.race-active-car-compact-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.race-active-car-compact-summary .dealership-summary-card {
    align-content: center;
    min-height: 58px;
    padding: 10px 12px;
    gap: 4px;
}

.race-active-car-compact-summary .dealership-summary-card > span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-active-car-compact-summary .dealership-summary-card > strong {
    font-size: 1rem;
    line-height: 1.08;
}

.race-active-car-compact-summary .dealership-summary-card > span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-weight: 500;
}

.race-active-car-compact-summary .dealership-summary-card > strong {
    font-weight: 800;
}

.race-active-car-compact-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.race-active-car-compact-breakdown .car-panel-breakdown-card,
.race-active-car-compact-summary .dealership-summary-card {
    min-width: 0;
}

.race-active-car-compact-breakdown .car-panel-breakdown-card {
    min-height: 0;
    padding: 11px 12px;
}

.race-active-car-compact-breakdown .home-race-summary-lines {
    gap: 5px;
}

.race-page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    align-items: center;
}

.race-page-hero h1,
.race-section-head h2,
.race-sidebar h2 {
    margin: 0;
}

.race-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
}

.race-hero-actions .button,
.race-hero-actions .badge,
.race-hero-actions .action-pill {
    width: 100%;
    min-width: 0;
    justify-content: center;
}
}/* Source: public/css/source/shared/home-notifications/game-05.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-race-summary-line.is-meta {
    grid-template-columns: 1fr;
    color: var(--muted);
    font-size: 0.76rem;
}

.announcement-notification-button {
    min-height: 48px;
    line-height: 1.1;
}

.home-pinned-notice-icon-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
}

.home-pinned-notices-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.home-pinned-notice {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(var(--action-rgb), 0.34);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 247, 235, 0.98), rgba(255, 253, 249, 0.98));
    box-shadow: 0 8px 18px rgba(var(--shadow-rgb), 0.07);
}

.home-pinned-notice-image {
    display: block;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 251, 245, 0.96);
    cursor: zoom-in;
}

.home-pinned-notice-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-pinned-notice-image.is-placeholder {
    display: inline-grid;
    place-items: center;
    color: var(--accent-strong);
    font-weight: 900;
}

.home-pinned-notice-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.home-pinned-notice-copy strong,
.home-pinned-notice-detail span {
    min-width: 0;
    overflow-wrap: normal;
}
}/* Source: public/css/source/shared/primitives/game-16.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.race-page-hero h1,
.hero-grid h1,
.hero-grid h2,
.dealership-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}
}/* Source: public/css/source/shared/home-notifications/game-06.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-pinned-notice-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1.12;
}

.home-pinned-notice-detail {
    display: grid;
    gap: 1px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.18;
}

.home-pinned-notice-summary {
    display: -webkit-box;
    min-height: calc(2 * 1.18em);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-pinned-notice-pill {
    width: max-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 251, 245, 0.94);
    color: var(--accent-strong);
    font-weight: 900;
}

.home-pinned-notice-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-pinned-notice-actions form {
    margin: 0;
}

.home-pinned-notice-icon-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
}

.notifications-summary-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.notifications-summary-card > div:first-child {
    min-width: 0;
}

.notifications-summary-badges {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    align-items: start;
    justify-content: end;
}

.notifications-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 900;
    white-space: nowrap;
    max-width: 100%;
}

.home-visible-notices-stack {
    display: grid;
    gap: 8px;
    margin: 0;
}

.announcement-notification-stack {
    display: grid;
    gap: 8px;
    margin: 0 0 -6px;
}

.announcement-notification {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-right: 44px;
    padding-block: 14px;
}

.announcement-notification-count-actions {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.announcement-notification-count {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 2px solid rgba(var(--theme-border-rgb), 0.24);
    background: linear-gradient(180deg, #ff9b35, #e86f24);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(var(--action-rgb), 0.28);
}

.announcement-notification-close-all-form {
    display: flex;
    margin: 0;
}

.announcement-notification-close-all {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.96);
    color: var(--action);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(var(--theme-shadow-rgb), 0.16);
}

.announcement-notification-close-all:hover {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

.announcement-notification-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.announcement-notification-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--action), var(--action-strong));
}

.announcement-notification-icon img {
    width: 100%;
    height: 88%;
    object-fit: contain;
}

.announcement-notification h2 {
    margin: 0;
    font-size: 1.05rem;
}

.announcement-notification p {
    margin: 4px 0 0;
    color: var(--muted);
}

.announcement-notification-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
}

.announcement-notification-actions form {
    display: flex;
    margin: 0;
    width: auto;
}

.announcement-notification-button {
    width: auto;
    height: 100%;
    min-width: 124px;
    padding: 0 14px;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(var(--action-rgb), 0.16);
}

.announcement-notification-button.button-secondary {
    box-shadow: 0 12px 24px rgba(var(--theme-shadow-rgb), 0.16);
}

@media (max-width: 980px) {

    .announcement-notification {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .announcement-notification-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }
}
}/* Source: public/css/source/shared/racing/game-04.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

.race-setup-accordion .race-section-head {
    justify-content: flex-end;
}
}/* Source: public/css/source/shared/primitives/game-17.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 100%;
    inline-size: 100%;
    box-sizing: border-box;
}

.section-title-row > div {
    min-width: 0;
}

.section-title-row .race-pager {
    justify-content: flex-end;
    margin-left: auto;
}

.panel-title-row {
    margin-bottom: 14px;
}

.panel-title-row > div:has(> .eyebrow + .panel-title) {
    display: grid;
    gap: 4px;
}

.panel-title-row > div:has(> .eyebrow + .panel-title) > p {
    margin-top: 0;
}

.action-pill.is-success {
    border-color: rgba(var(--success-rgb), 0.38);
    background: rgba(233, 247, 221, 0.94);
    color: #497b1f;
}
}/* Source: public/css/source/shared/home-notifications/game-07.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-jobs-panel > .panel-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.home-jobs-panel > .panel-title-row .badge--count {
    justify-self: end;
    align-self: start;
}
}/* Source: public/css/source/shared/racing/game-05.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-pager,
.race-pager-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.race-pager-count {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.race-pager-button {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: linear-gradient(180deg, #fff5e8, #f8e3c2);
    color: #9f5a18;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.race-pager-button:hover:not(.is-disabled):not(:disabled) {
    transform: translateY(-1px);
}

.race-pager-number-set {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.race-pager-number {
    min-width: 42px;
    padding-inline: 12px;
}

.race-pager-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.race-pager-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.race-item-visual {
    width: 74px;
    min-width: 74px;
    height: 74px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 255, 253, 0.9);
    color: var(--accent);
    display: inline-grid;
    place-items: center;
    padding: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.race-item-visual:focus-visible {
    border-color: rgba(var(--theme-border-rgb), 0.34);
}

.race-item-visual:disabled {
    cursor: default;
}

.race-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.race-item-visual span {
    font-weight: 900;
    font-size: 0.9rem;
}

.race-item-visual.is-stock {
    align-self: start;
}

.race-item-visual.is-toggle {
    width: 68px;
    min-width: 68px;
    height: 68px;
    align-self: start;
}

.race-item-visual.is-selected {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 14px;
}

.race-item-visual.is-used {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 11px;
}

.race-used-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.race-used-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 5px 9px 5px 5px;
    border-radius: 8px;
    background: rgba(255, 248, 239, 0.96);
    border: 1px solid rgba(var(--theme-border-rgb), 0.14);
    font-weight: 800;
    color: var(--text);
}

.race-selected-summary-panel {
    padding: 22px 24px;
}

.race-selected-summary-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(660px, 0.96fr) auto;
    align-items: center;
    gap: 14px;
}

.race-selected-summary-toggle-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.race-selected-summary-toggle-copy strong,
.race-selected-summary-toggle-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race-selected-summary-toggle-copy small {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

.race-selected-summary-toggle-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(142px, 1fr));
    gap: 10px;
    min-width: 0;
}

.race-selected-summary-toggle-stats.has-weather-preview {
    grid-template-columns: 64px repeat(4, minmax(132px, 1fr));
    align-items: stretch;
}

.race-selected-summary-toggle-stats:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(172px, 190px));
    justify-content: end;
    justify-self: end;
    width: auto;
}

.race-selected-summary-weather-cover {
    appearance: none;
    display: grid;
    place-items: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    align-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.race-selected-summary-weather-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.race-selected-summary-toggle-score {
    min-width: 0;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 14px;
    align-content: center;
    gap: 6px;
    justify-items: end;
    text-align: right;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 236, 0.96));
    border-color: rgba(var(--theme-border-rgb), 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
}

.race-selected-summary-toggle-score[hidden] {
    display: none;
}

.race-selected-summary-toggle-score span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-selected-summary-toggle-score small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
}

.race-selected-summary-toggle-score small {
    font-size: 0.68rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race-selected-summary-toggle-score strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

.race-selected-summary-grid {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(0, 1.333fr));
    gap: 12px;
    margin-top: 18px;
}

.race-selected-summary-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.race-selected-summary-meta-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(0, 1.333fr));
}

.race-summary-card {
    min-width: 0;
    min-height: 94px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    color: var(--text);
}

.race-summary-card > strong,
.race-summary-card-head > strong {
    font-size: 0.98rem;
    line-height: 1.18;
}

.race-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.race-summary-card-head-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.race-summary-weather-preview {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

.race-summary-weather-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.race-summary-card-head > strong {
    min-width: 0;
}

.race-summary-card-head > span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.12;
    text-align: right;
    white-space: nowrap;
}

.race-summary-values {
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.race-summary-values > span,
.race-summary-card-meta span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    min-width: 0;
    overflow-wrap: normal;
}

.race-summary-values > span {
    display: grid;
    grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.race-summary-values > span > span:first-child {
    overflow-wrap: normal;
}

.race-summary-values b {
    justify-self: end;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

.race-summary-card-meta {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.race-summary-card-meta span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    justify-self: end;
    font-size: 0.96rem;
}
}/* Source: public/css/source/shared/home-notifications/game-08.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-race-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-race-summary-grid.car-panel-breakdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-race-summary-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.40);
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    gap: 10px;
}

.home-race-summary-card strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.2;
}
}/* Source: public/css/source/shared/cars/game-06.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-panel-breakdown-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.car-panel-breakdown-card-head > strong {
    min-width: 0;
    line-height: 1.12;
}

.car-panel-breakdown-note {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.car-panel-breakdown-card .home-race-summary-lines {
    gap: 4px;
}

.car-panel-breakdown-card .home-race-summary-line {
    gap: 8px;
    line-height: 1.15;
}
}/* Source: public/css/source/shared/home-notifications/game-09.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-race-summary-lines {
    display: grid;
    gap: 6px;
}

.home-race-summary-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.home-race-summary-line span {
    color: var(--text);
    font-size: 0.86rem;
}

.home-race-summary-line b {
    justify-self: end;
    font-size: 0.92rem;
    line-height: 1;
}
}/* Source: public/css/source/shared/racing/game-06.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.lineup-mini-status {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(var(--action-rgb), 0.36);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.14);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.lineup-mini-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lineup-mini-status.is-active {
    border-color: rgba(var(--success-rgb), 0.4);
    background: rgba(var(--success-rgb), 0.14);
    color: rgb(var(--success-rgb));
}

.lineup-mini-status.is-repairing {
    border-color: rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
}

.lineup-mini-status.is-breakdown {
    border-color: rgba(var(--danger-rgb), 0.4);
    background: rgba(var(--danger-rgb), 0.12);
    color: rgb(var(--danger-rgb));
}

.lineup-mini-status.is-reserve {
    border-color: rgba(var(--theme-border-rgb), 0.28);
    background: rgba(var(--theme-border-rgb), 0.10);
    color: var(--muted);
}

.lineup-mini-slot {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.14);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.race-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.race-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 251, 246, 0.94);
    font-weight: 900;
    color: var(--muted);
    white-space: nowrap;
}

.race-result-pill.is-win {
    color: #568f29;
    border-color: rgba(var(--success-rgb), 0.28);
    background: rgba(232, 248, 220, 0.86);
}

.race-result-pill.is-loss {
    color: #b45336;
    border-color: rgba(var(--danger-rgb), 0.26);
    background: rgba(255, 233, 226, 0.84);
}

.race-reward-line-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 6px;
}

.race-reward-line-list .race-reward-line-chip .resource-icon-stack.is-chip .resource-icon-frame {
    border: 1px solid rgba(var(--theme-border-rgb), 0.44);
    background: rgba(255, 249, 240, 0.92);
    overflow: hidden;
}

.race-reward-total-chip {
    border-color: rgba(var(--success-rgb), 0.55);
    background: rgba(234, 249, 219, 0.82);
}

.race-reward-total-chip > span:last-child {
    font-weight: 900;
    color: #4f7f2f;
}

.race-reward-line-chip > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
}/* Source: public/css/source/shared/resources/game-03.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

.resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -14px;
}
}/* Source: public/css/source/shared/primitives/game-18.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.race-sidebar,
.team-upgrade-grid {
    display: grid;
    gap: 18px;
}

.button.is-disabled {
    pointer-events: none;
}
}/* Source: public/css/source/shared/teams/game-05.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-accordion-toggle::-webkit-details-marker {
    display: none;
}

.team-accordion-icon::before,
.team-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent-2);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.team-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.18s ease;
}

.team-accordion[open] .team-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.team-kpi-card,
.team-upgrade-card {
    border: 1px solid var(--line);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}

.team-kpi-card {
    padding: 9px 12px;
    display: grid;
    gap: 5px;
}

.team-kpi-card span,
.team-upgrade-cost span {
    color: var(--muted);
}

.team-kpi-card strong,
.team-upgrade-head h3 {
    margin: 0;
}

.team-upgrade-overview-panel {
    padding: 14px 16px;
}

.team-upgrade-overview-layout {
    display: grid;
    grid-template-columns: minmax(170px, 0.16fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.team-upgrade-overview-identity {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.team-upgrade-overview-name {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.94);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
    padding: 9px 12px;
    color: var(--accent);
    font-weight: 800;
    line-height: 1.08;
    overflow-wrap: normal;
}

.team-logo-mark.team-upgrade-overview-logo {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border-radius: 16px;
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}

.team-logo-mark.team-upgrade-overview-logo img {
    width: 92%;
    height: 92%;
    object-fit: contain;
}

.team-upgrade-overview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.team-upgrade-overview-grid .team-kpi-card {
    min-height: 78px;
    align-content: start;
}

.team-upgrade-overview-card.is-level,
.team-upgrade-overview-card.is-bonus,
.team-upgrade-overview-card.is-treasury {
    grid-column: span 4;
}

.team-upgrade-overview-card.is-members,
.team-upgrade-overview-card.is-contribution,
.team-upgrade-overview-card.is-levels,
.team-upgrade-overview-card.is-queue {
    grid-column: span 3;
}

.team-upgrade-overview-grid .team-kpi-card strong {
    font-size: 1.08rem;
    line-height: 1.08;
}

.team-upgrade-overview-grid .team-kpi-card small {
    color: var(--muted);
    line-height: 1.2;
}

.team-upgrade-level-progress {
    height: 7px;
    margin-top: 2px;
}

.team-upgrade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-upgrade-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 12px;
}

.team-upgrade-card {
    padding: 20px;
    display: grid;
    gap: 16px;
    overflow: hidden;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card {
    grid-template-columns: clamp(260px, 24vw, 380px) minmax(0, 1fr);
    grid-template-areas: "image head"
        "image copy"
        "image stats"
        "image progress"
        "image footer";
    align-items: stretch;
    gap: 14px 24px;
    padding: 16px;
    overflow: hidden;
}

.team-upgrade-image {
    width: calc(100% + 40px);
    margin: -20px -20px 2px;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
}

.team-upgrade-grid.is-row-layout .team-upgrade-image {
    grid-area: image;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 170px;
    margin: 0;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
}

.team-upgrade-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-upgrade-head,
.team-upgrade-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.team-upgrade-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-head {
    grid-area: head;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 12px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-head > div:first-child {
    min-width: 0;
}

.team-upgrade-grid.is-row-layout .team-upgrade-report-button {
    align-self: start;
    justify-self: end;
    min-width: 152px;
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
}

.team-upgrade-unlock-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-upgrade-unlock-note strong {
    color: var(--text);
    font-weight: 900;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > p {
    grid-area: copy;
    min-width: 0;
}

.team-upgrade-grid.is-row-layout .team-upgrade-progress {
    grid-area: progress;
    align-self: start;
    margin-top: 0;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > .stack {
    grid-area: stats;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    margin-top: 4px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .profile-stat-card {
    min-height: 72px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 251, 246, 0.94);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
    box-shadow: none;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .profile-stat-card strong {
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .profile-stat-card span {
    min-width: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.08;
}

.team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .profile-stat-card strong br {
    display: block;
}

.team-upgrade-grid.is-row-layout .team-upgrade-footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: minmax(150px, 330px) minmax(0, 1fr);
    grid-template-areas: "pending pending"
        "cost actions";
    align-items: end;
    gap: 12px 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-width: 0;
}

.team-upgrade-grid.is-row-layout .team-upgrade-actions {
    grid-area: actions;
    min-width: 0;
}

.team-upgrade-grid.is-row-layout .team-upgrade-actions .button {
    min-height: 52px;
    width: auto;
    min-width: 156px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-pending {
    grid-area: pending;
}

.team-upgrade-grid.is-row-layout .team-upgrade-cost,
.team-upgrade-grid.is-row-layout .team-upgrade-unlock-card {
    grid-area: cost;
    width: 100%;
    max-width: 330px;
    min-height: 66px;
    align-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
}

.team-upgrade-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.team-upgrade-cost {
    display: grid;
    gap: 4px;
}

.team-upgrade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: center;
    width: 100%;
}

.team-upgrade-actions form {
    margin: 0;
}

.team-upgrade-actions > .button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
}

.team-upgrade-buy-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.team-upgrade-buy-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    gap: 10px;
    width: auto;
}

.team-upgrade-grid.is-row-layout .team-upgrade-actions > .button {
    grid-column: auto;
    width: auto;
    min-width: 156px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-actions form,
.team-upgrade-grid.is-row-layout .team-upgrade-actions form .button {
    width: auto;
    min-width: 156px;
}

.team-upgrade-grid.is-row-layout .team-upgrade-buy-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.team-upgrade-toolbar,
.team-upgrade-pagination,
.team-upgrade-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.team-upgrade-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.team-upgrade-toolbar .muted {
    margin: 0;
}

.team-upgrade-pagination {
    justify-content: flex-end;
    flex-wrap: wrap;
    justify-self: end;
}

.team-upgrade-nav {
    justify-content: flex-end;
}

.team-upgrade-cost strong {
    font-size: 1.05rem;
}

.team-section-panel {
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}
}/* Source: public/css/source/shared/racing/game-07.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-animation-debug-panel {
    border-color: rgba(var(--action-rgb), 0.28);
    background: rgba(255, 249, 240, 0.96);
}

.race-animation-debug-panel p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.race-animation-debug-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.race-animation-debug-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-weight: 900;
}

.race-animation-debug-option:has(input:checked) {
    border-color: rgba(var(--action-rgb), 0.72);
    background: linear-gradient(180deg, rgba(255, 244, 225, 0.98), rgba(255, 232, 197, 0.98));
    box-shadow: 0 10px 22px rgba(170, 101, 26, 0.12);
}

.race-animation-debug-option input {
    accent-color: var(--accent);
}
}/* Source: public/css/source/shared/primitives/game-19.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.auto-action-enter-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.button.is-auto-counting {
    position: relative;
    outline: 3px solid rgba(var(--action-rgb), 0.18);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.18);
}
}/* Source: public/css/source/shared/racing/game-08.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-auto-toggle {
    --auto-toggle-track: 44px;
    --auto-toggle-knob: 18px;
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.9);
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.race-auto-toggle input {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    appearance: none;
    opacity: 0;
    pointer-events: none;
}

.race-auto-toggle::before {
    content: "";
    width: var(--auto-toggle-track);
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 12px 50%, #fffaf3 0 9px, transparent 10px),
        rgba(var(--line-rgb), 0.26);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
    transition: background 0.16s ease;
}

.race-auto-toggle::after {
    content: none;
}

.race-auto-toggle:has(input:checked) {
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 239, 216, 0.96);
    color: var(--action-strong);
}

.race-auto-toggle:has(input:checked)::before {
    background: radial-gradient(circle at 32px 50%, #fffaf3 0 9px, transparent 10px),
        linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
}

.race-persistent-choice-toggle {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
    text-align: left;
}

.race-persistent-choice-toggle::before {
    flex: 0 0 auto;
}

.race-item-selected-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 253, 0.98);
    display: grid;
    gap: 8px;
}

.race-item-selected-card strong {
    font-size: 0.9rem;
}

.race-item-selected-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.race-item-selected-head > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.race-item-selected-empty {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(var(--theme-border-rgb), 0.24);
    color: var(--muted);
}

.race-item-effect-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.race-item-effect-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.98);
    border: 1px solid rgba(var(--theme-border-rgb), 0.14);
    font-size: 0.74rem;
    font-weight: 700;
}

.opponent-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-right: calc(var(--opponent-action-width) + var(--opponent-action-gap));
}
}/* Source: public/css/source/shared/primitives/game-20.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.launch-button {
    min-height: 70px;
    border-radius: 999px;
    font-size: 1.08rem;
}
}/* Source: public/css/source/shared/racing/game-09.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.opponent-summary-format-table-wrap {
    display: block;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.opponent-summary-format-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
}

.opponent-summary-format-table th,
.opponent-summary-format-table td {
    padding: 5px 6px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.opponent-summary-format-table thead th {
    border-top: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.opponent-summary-format-table th:first-child,
.opponent-summary-format-table td:first-child {
    color: var(--muted);
    text-align: left;
}
}/* Source: public/css/source/shared/teams/game-06.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-upgrade-head-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.team-upgrade-bulk-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-upgrade-bulk-form {
    margin: 0;
}

.team-upgrade-bulk-button {
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
}

.team-member-time-summary::-webkit-details-marker {
    display: none;
}

.team-member-time-summary::marker {
    content: "";
}
}/* Source: public/css/source/shared/cars/game-07.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.car-visual.is-show-detail {
    aspect-ratio: 16 / 11;
    margin-bottom: 0;
    max-width: 620px;
}
}/* Source: public/css/source/shared/garage/game-06.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-upgrade-guide-table-wrap {
    max-height: 520px;
    overflow: auto;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.16);
}

.garage-upgrade-guide-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.garage-upgrade-guide-table th,
.garage-upgrade-guide-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.12);
    text-align: left;
    vertical-align: middle;
}

.garage-upgrade-guide-table th {
    background: #fff7ec;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.garage-upgrade-guide-table td {
    font-weight: 500;
}

.garage-upgrade-guide-table tbody tr.is-completed td {
    background: rgba(var(--success-rgb), 0.09);
}

.garage-upgrade-guide-table tbody tr.is-running td {
    background: rgba(var(--danger-rgb), 0.1);
}

.garage-upgrade-guide-table tbody tr.is-completed td:first-child,
.garage-upgrade-guide-table tbody tr.is-running td:first-child {
    border-left: 4px solid transparent;
}

.garage-upgrade-guide-table tbody tr.is-completed td:first-child {
    border-left-color: rgba(var(--success-rgb), 0.52);
}

.garage-upgrade-guide-table tbody tr.is-running td:first-child {
    border-left-color: rgba(var(--danger-rgb), 0.58);
}

.garage-detail-tabs {
    flex-wrap: wrap;
}

.garage-detail-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.garage-detail-tab:hover {
    border-color: rgba(var(--action-rgb), 0.45);
    transform: translateY(-1px);
}

.garage-detail-tab.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.35);
}

.garage-detail-tab.is-disabled:hover {
    border-color: rgba(var(--theme-border-rgb), 0.2);
    transform: none;
}

.garage-multi-groups-panel,
.garage-multi-groups-list-panel,
.garage-multi-group-form {
    display: grid;
    gap: 18px;
}

.garage-multi-group-form {
    padding-top: 4px;
}

.garage-multi-group-form-head {
    display: grid;
    gap: 12px;
}

.garage-multi-group-form-head h2,
.garage-multi-group-card-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.15;
}

.garage-multi-group-name-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.garage-multi-group-name-row label:not(.garage-multi-group-active-toggle) {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.garage-multi-group-name-row input[type="text"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    padding: 10px 12px;
}

.garage-multi-group-active-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.9);
    color: var(--muted);
    font-weight: 900;
}

.garage-multi-group-builder-grid,
.garage-multi-group-selected-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 10px;
}

.garage-multi-group-builder-grid {
    overflow-x: auto;
    padding-bottom: 2px;
}

.garage-multi-group-car-choice,
.garage-multi-group-selected-slot {
    min-width: 0;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.78);
}

.garage-multi-group-car-choice {
    position: relative;
    min-height: 178px;
    display: grid;
    grid-template-rows: 86px auto auto;
    gap: 7px;
    align-items: center;
    justify-items: center;
    padding: 12px 10px 10px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.garage-multi-group-car-choice:not(.is-empty):hover,
.garage-multi-group-car-choice.is-selected {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, rgba(255, 243, 224, 0.9), rgba(255, 251, 246, 0.96));
    box-shadow: 0 10px 20px rgba(var(--action-rgb), 0.1);
}

.garage-multi-group-car-choice:not(.is-empty):hover {
    transform: translateY(-1px);
}

.garage-multi-group-car-choice.is-selected {
    box-shadow: inset 0 0 0 2px rgba(var(--action-rgb), 0.12), 0 10px 20px rgba(var(--action-rgb), 0.1);
}

.garage-multi-group-car-choice.is-empty {
    min-height: 178px;
    place-items: center;
    color: rgba(var(--theme-text-rgb), 0.38);
    cursor: default;
    background: rgba(var(--theme-border-rgb), 0.05);
}

.garage-multi-group-choice-position {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
}

.garage-multi-group-car-choice:not(.is-selected) .garage-multi-group-choice-position {
    opacity: 0;
}

.garage-multi-group-car-choice .car-visual,
.garage-multi-group-car-choice .upgrade-visual {
    max-width: 86px;
    max-height: 86px;
}

.garage-multi-group-car-choice strong,
.garage-multi-group-car-choice small,
.garage-multi-group-selected-slot strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

.garage-multi-group-car-choice strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.garage-multi-group-car-choice small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.2;
}

.garage-multi-group-selected {
    display: grid;
    gap: 10px;
}

.garage-multi-group-selected .label-row {
    margin: 0;
}

.garage-multi-group-selected-slot {
    min-height: 84px;
    display: grid;
    gap: 4px;
    align-content: center;
    padding: 12px;
    color: var(--muted);
}

.garage-multi-group-selected-slot.is-filled {
    border-color: rgba(var(--action-rgb), 0.36);
    background: rgba(255, 243, 224, 0.62);
    color: var(--text);
}

.garage-multi-group-selected-slot span {
    color: var(--muted);
    font-weight: 800;
}

.garage-multi-group-selected-slot strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.15;
}

.garage-multi-group-form-actions,
.garage-multi-group-card-actions,
.garage-multi-group-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.garage-multi-group-page-actions {
    justify-content: flex-end;
}

.garage-multi-group-form-actions .button {
    min-width: 190px;
}

.garage-multi-groups-panel .button,
.garage-multi-groups-list-panel .button,
.garage-multi-group-builder-page .button {
    font-size: 0.95rem;
    line-height: 1.15;
}

.garage-multi-group-list {
    display: grid;
    gap: 16px;
}

.garage-multi-group-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.68);
}

.garage-multi-group-card.is-active {
    border-color: rgba(var(--action-rgb), 0.42);
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.08);
}

.garage-multi-group-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.garage-multi-group-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.garage-multi-group-preview-slot {
    min-width: 0;
    min-height: 152px;
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    padding: 12px 10px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.74);
    text-align: center;
}

.garage-multi-group-preview-slot.is-filled {
    border-color: rgba(var(--action-rgb), 0.28);
    background: rgba(255, 243, 224, 0.52);
}

.garage-multi-group-preview-slot span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.garage-multi-group-preview-slot strong {
    min-width: 0;
    max-width: 100%;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.15;
    overflow-wrap: normal;
}

.garage-multi-group-preview-slot .car-visual {
    width: 104px;
    height: 86px;
    max-width: 100%;
}

.garage-active-jobs-toggle {
    margin-left: auto;
    border-color: rgba(var(--theme-border-rgb), 0.28);
    background: rgba(255, 251, 246, 0.94);
}

.garage-active-jobs-toggle.is-active .jobs-toggle-switch {
    border-color: rgba(var(--action-rgb), 0.56);
    background: var(--action);
}

.garage-active-jobs-toggle.is-active .jobs-toggle-switch > span {
    transform: translateX(17px);
}
}/* Source: public/css/source/shared/primitives/game-21.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.jobs-toggle-switch {
    position: relative;
    width: 38px;
    height: 21px;
    flex: 0 0 38px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.32);
    border-radius: 999px;
    background: rgba(var(--theme-border-rgb), 0.12);
    transition: background 160ms ease, border-color 160ms ease;
}

.jobs-toggle-switch > span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(var(--theme-shadow-rgb), 0.22);
    transition: transform 160ms ease;
}
}/* Source: public/css/source/shared/teams/game-07.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-repair-panel {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 24px;
}

.team-repair-visual-panel,
.team-repair-main {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 247, 235, 0.72));
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.06);
    padding: 16px;
}

.team-repair-visual-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.team-repair-copy {
    margin: 0;
}

.team-repair-visual {
    display: block;
    position: relative;
    min-height: 230px;
    overflow: hidden;
    width: 100%;
    cursor: zoom-in;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.team-repair-image {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: scale-down;
    display: block;
}

.team-repair-step-meter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 7px;
    border-radius: 0;
    background: rgba(255, 253, 249, 0.72);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(88, 62, 36, 0.08);
}

.team-repair-step-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-2), var(--action));
    box-shadow: 0 4px 10px rgba(var(--action-rgb), 0.18);
}

.team-repair-main {
    display: grid;
    gap: 12px;
    align-content: start;
}

.team-repair-meter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.team-repair-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.team-repair-summary-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 70px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 253, 249, 0.94);
    min-width: 0;
}

.team-repair-summary-card small {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.team-repair-summary-card strong {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

.team-repair-token-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.team-repair-token-value > span {
    min-width: 0;
}

.team-repair-hit-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.team-repair-hit-form {
    display: grid;
    gap: 14px;
    margin: 0;
}

.team-repair-tool-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.team-repair-tool-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.team-repair-tool-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.team-repair-tool-option span {
    display: inline-grid;
    place-items: center;
    min-width: 58px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.86);
    color: var(--text);
    font-weight: 900;
    line-height: 1;
}

.team-repair-tool-option input:checked + span {
    border-color: rgba(var(--action-rgb), 0.65);
    background: rgba(var(--action-rgb), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.28);
}

.team-repair-tool-option input:focus-visible + span {
    outline: 2px solid rgba(var(--action-rgb), 0.55);
    outline-offset: 2px;
}

.team-repair-tool-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.team-repair-auto-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: center;
}

.team-repair-auto-toggle {
    min-width: 220px;
}

.team-repair-hit-button {
    min-width: 148px;
    min-height: 48px;
}

.team-repair-participants {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.team-repair-member-list {
    gap: 12px;
    padding: 0 12px 12px;
}
}/* Source: public/css/source/shared/primitives/game-22.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.row-layout-visual.team-repair-member-row,
.team-repair-member-row {
    grid-template-columns: 140px 88px minmax(0, 1fr) repeat(3, minmax(150px, 240px));
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    align-items: start;
    gap: 10px 12px;
}
}/* Source: public/css/source/shared/teams/game-08.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

.team-repair-member-row .team-member-summary-line {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.team-repair-member-row > .car-visual,
.team-repair-member-row > .team-member-avatar {
    grid-column: 1;
    grid-row: 2;
}

.team-repair-member-row > .team-role-image-frame {
    --role-frame-size: 88px;
    grid-column: 2;
    grid-row: 2;
}

.team-repair-member-row .team-member-stats {
    min-width: 0;
}

.team-repair-member-stats {
    display: contents;
}

.team-repair-member-stats span {
    grid-row: 2;
    min-width: 0;
    min-height: 88px;
    padding: 12px 14px;
    gap: 6px;
    border-width: 1px;
    border-radius: 14px;
    outline: 1px solid rgba(var(--action-rgb), 0.14);
    background: rgba(255, 251, 246, 0.94);
    align-content: start;
}

.team-repair-member-stats span:nth-child(1) {
    grid-column: 4;
}

.team-repair-member-stats span:nth-child(2) {
    grid-column: 5;
}

.team-repair-member-stats span:nth-child(3) {
    grid-column: 6;
}

.team-repair-member-stats small,
.team-repair-member-stats strong {
    font-size: 1rem;
    line-height: 1.08;
}

.team-repair-member-stats small {
    color: var(--muted);
    font-weight: 500;
}

.team-repair-member-stats strong {
    color: var(--text);
    font-weight: 800;
}

.team-personal-empty-state {
    margin-top: 4px;
}

@media (max-width: 980px) {

    .team-repair-panel,
    .team-repair-member-row {
        grid-template-columns: 1fr;
    }

    .team-repair-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-repair-member-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-repair-member-stats span {
        grid-column: auto;
        grid-row: auto;
    }
}
}/* Source: public/css/source/shared/primitives/game-23.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.quantity-stepper-control {
    display: inline-grid;
    grid-template-columns: 2.35rem minmax(4.7rem, auto) 2.35rem;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 250, 242, .88);
}

.quantity-stepper-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 2.35rem;
    padding: .35rem .65rem;
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
}

.quantity-stepper-label small {
    color: var(--muted);
    font-size: .78em;
    font-weight: 800;
}
}/* Source: public/css/source/shared/garage/game-07.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-repair-kit-submit {
    justify-content: center;
    min-width: 132px;
}

.garage-upgrade-card-grid {
    align-items: stretch;
}

.garage-upgrade-card-grid.is-row-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.garage-upgrade-card-grid.is-row-layout .upgrade-visual {
    width: 140px;
    height: 140px;
    padding: 6px;
}

.garage-upgrade-card-grid.is-row-layout .upgrade-visual img {
    border-radius: 8px;
    object-fit: contain;
}

.garage-upgrade-card-grid.is-row-layout .upgrade-meta {
    margin-top: 8px;
    justify-items: start;
}

.garage-upgrade-card-grid.is-row-layout .upgrade-meta .badge {
    width: auto;
    min-width: 0;
    padding: 8px 14px;
    font-size: 0.86rem;
    line-height: 1;
    font-weight: 800;
}

.garage-upgrade-progress {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    min-width: 0;
}

.garage-upgrade-card-grid.is-row-layout .garage-upgrade-progress {
    grid-area: progress;
    margin-top: 0;
}

.garage-upgrade-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.garage-upgrade-progress-foot {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.garage-upgrade-progress-head > span:first-child {
    min-width: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
}

.garage-upgrade-progress-head .upgrade-stars {
    flex-shrink: 0;
}

.garage-upgrade-progress-foot {
    align-items: flex-start;
    justify-content: space-between;
}

.garage-upgrade-progress-foot > strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.garage-upgrade-progress-foot > strong:last-child {
    text-align: right;
}

.garage-upgrade-card-grid.is-row-layout .resource-preview-item {
    min-height: 76px;
    padding: 13px 15px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item {
    min-height: 70px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 20px;
    border-width: 1px;
    border-color: rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item.is-compact {
    min-height: 70px;
    padding: 16px 20px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid .garage-infrastructure-current-time {
    grid-row: auto;
    min-height: 0;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item strong {
    min-width: 0;
    white-space: normal;
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    overflow-wrap: normal;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item span {
    min-width: 0;
    text-align: left;
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: normal;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item.is-bonus span {
    white-space: nowrap;
}

.garage-job-row {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
}

.garage-job-row.is-upgrade-job:not(.home-job-row) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}
}/* Source: public/css/source/shared/home-notifications/game-10.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

.home-job-row {
    grid-template-columns: minmax(300px, 0.82fr) minmax(640px, 1.18fr) minmax(130px, auto);
}

.home-job-row .garage-job-meta {
    grid-template-columns: minmax(170px, 0.4fr) minmax(280px, 0.7fr);
}

.home-job-row .garage-job-main {
    grid-template-columns: 172px minmax(0, 1fr);
}

.home-job-row .garage-job-main .home-job-visual.upgrade-visual {
    width: 172px;
    height: 148px;
    min-width: 172px;
    padding: 6px;
}

.home-job-row .garage-job-main .home-job-visual.upgrade-visual img {
    border-radius: 8px;
    object-fit: contain;
}

.home-job-open-button {
    justify-self: stretch;
    min-height: 58px;
}
}/* Source: public/css/source/shared/garage/game-08.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-job-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.garage-job-row.is-upgrade-job .garage-job-main,
.garage-job-row.is-repair-job .garage-job-main {
    grid-template-columns: 112px minmax(0, 1fr);
}

.garage-job-row.is-upgrade-job .garage-job-main .upgrade-visual {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 10px;
}

.garage-job-row.is-upgrade-job .garage-job-main .upgrade-visual img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

.garage-job-main strong,
.garage-job-meta-card strong {
    color: var(--text);
}

.garage-job-main p,
.garage-job-meta-card span {
    color: var(--muted);
}

.garage-job-meta {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(300px, 1fr);
    gap: 16px;
}

.garage-job-row:not(.home-job-row) > .garage-job-meta {
    display: contents;
}

.garage-job-meta-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.78);
    min-height: 0;
    display: grid;
    gap: 4px;
    align-content: center;
    padding: 10px 16px;
}

.garage-job-meta-card.is-job-completion strong {
    white-space: nowrap;
}

.garage-job-meta-card.is-job-reward {
    min-width: 0;
}

.garage-job-meta-card.is-job-reward strong {
    white-space: nowrap;
}

@media (max-width: 1180px) {

    .garage-job-row,
    .garage-job-row.is-upgrade-job:not(.home-job-row) {
        grid-template-columns: 1fr;
    }

    .garage-job-row:not(.home-job-row) > .garage-job-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-card-head {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 6px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image head"
        "image offers"
        "image progress"
        "image job"
        "image actions";
    align-items: stretch;
    gap: 14px 24px;
    padding: 14px 16px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual {
    grid-area: image;
    align-self: start;
    width: 200px;
    max-width: 200px;
    height: 200px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 10px;
    border: 3px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 18px;
    background: rgba(255, 249, 240, 0.94);
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head {
    grid-area: head;
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head strong,
.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head p {
    min-width: 0;
    max-width: 100%;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head strong {
    color: var(--accent);
    font-size: var(--heading-font-size);
    line-height: 1.12;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head p {
    color: var(--muted);
    font-size: var(--body-font-size);
    line-height: 1.35;
}

@media (max-width: 1180px) {

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available {
        grid-template-areas: "image"
            "head"
            "offers"
            "progress"
            "actions"
            "job";
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual {
        width: min(200px, 100%);
        max-width: 200px;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid {
        justify-self: stretch;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid .garage-infrastructure-current-time {
        grid-row: auto;
    }
}
}/* Source: public/css/source/shared/primitives/game-24.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion,
.home-job-row .garage-job-meta-card.is-job-completion {
    border-top: 1px solid var(--line);
}

.stamp {
    display: inline-flex;
    width: fit-content;
    padding: 10px 18px;
    font-weight: 900;
    border: 4px solid currentColor;
    transform: rotate(-14deg);
    opacity: 0.82;
    letter-spacing: 0.08em;
}

.resources-lead {
    max-width: 980px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}
}/* Source: public/css/source/shared/resources/game-04.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

.resource-preview-item {
    min-width: 0;
    min-height: 70px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    color: var(--muted);
}

.resource-preview-item strong {
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.resource-preview-item span {
    color: var(--text);
    text-align: left;
    font-size: 1rem;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}
}/* Source: public/css/source/shared/activities/game-05.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.madness-tabs {
    padding: 10px 12px;
}

.madness-tabs .garage-detail-tab {
    flex: 0 0 auto;
}
}/* Source: public/css/source/shared/cars/game-08.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.dealership-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.dealership-hero h1 {
    margin: 0;
}

.dealership-hero-pill {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(248, 236, 214, 0.82);
    border: 1px solid var(--line);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.dealership-status-pill {
    min-height: auto;
    padding: 10px 14px;
    border-color: rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 700;
}
}/* Source: public/css/source/shared/primitives/game-25.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.action-pill {
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    white-space: nowrap;
}
}/* Source: public/css/source/shared/cars/game-09.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.dealership-active-body {
    display: grid;
    grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1.26fr);
    gap: 18px;
    align-items: stretch;
}

.dealership-active-media {
    display: grid;
    gap: 10px;
    align-content: start;
}

.dealership-active-media .car-visual {
    width: 100%;
}

.dealership-active-media h2 {
    margin: 0;
    line-height: 1.05;
}

.dealership-active-media p {
    margin: 0;
}

.dealership-active-sidebar {
    display: grid;
    gap: 10px;
    align-content: start;
}

.dealership-active-sidebar h2,
.dealership-active-sidebar p {
    margin: 0;
}

.dealership-summary-card {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.dealership-summary-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.dealership-summary-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

.dealership-summary-card.race-selected-summary-toggle-score strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.dealership-summary-card.race-selected-summary-toggle-score span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: normal;
}

.dealership-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.1);
    font-size: 0.73rem;
    white-space: nowrap;
}

.dealership-chip.is-limited {
    background: rgba(255, 231, 218, 0.96);
}
}/* Source: public/css/source/shared/garage/game-09.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.garage-upgrade-guide-table tr.is-current-row {
    background: rgba(232, 137, 53, 0.1);
}

.garage-upgrade-guide-table tr.is-current-row td:first-child {
    color: var(--accent-2);
    font-weight: 900;
}
}/* Source: public/css/source/shared/primitives/game-26.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.player-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--warning-rgb), 0.32);
}

.player-name-link:hover {
    border-bottom-color: rgba(var(--warning-rgb), 0.8);
}

.profile-stat-card {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    border-width: 2px;
    border-color: rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 253, 249, 0.94);
}

.profile-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.profile-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.profile-capacity-tabs {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.profile-week-panel {
    display: grid;
    gap: 16px;
}

.profile-week-panel .panel-title-row p {
    margin: 6px 0 0;
}

.profile-week-current-pill {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    border: 1px solid rgba(var(--action-rgb), 0.42);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(var(--action-rgb), 0.2);
}

.profile-week-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-week-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 12px;
}

.profile-week-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
}

.profile-week-card h3,
.profile-week-card p {
    margin: 0;
}

.profile-week-best-car {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.profile-week-best-car .car-visual {
    width: 100%;
    min-width: 0;
}

.profile-week-cup-image {
    width: 96px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(var(--theme-border-rgb), 0.32);
    border-radius: 16px;
    background: rgba(255, 248, 239, 0.9);
    cursor: zoom-in;
    overflow: hidden;
}

.profile-week-cup-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.profile-week-highlights {
    display: grid;
    gap: 8px;
}

.account-security-panel {
    display: grid;
    gap: 16px;
}

.account-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-security-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
}

.account-security-card-danger {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: rgba(255, 247, 244, 0.92);
}

.account-security-card-danger .panel-title {
    color: #9f3a28;
}

.account-security-card-danger .button-danger {
    justify-self: start;
}

.social-account-list,
.email-change-form {
    display: grid;
    gap: 12px;
}

.email-change-form + .email-change-form {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.social-account-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 248, 239, 0.72);
}

.social-account-main {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.social-account-main strong,
.social-account-main span {
    display: block;
    overflow-wrap: normal;
}

.compact-button {
    min-height: 40px;
    padding-inline: 16px;
    white-space: nowrap;
}

.collection-part-visual {
    box-sizing: border-box;
    width: 136px;
    height: 136px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.34);
    background: rgba(255, 247, 236, 0.92);
    color: var(--accent);
    font-weight: 900;
    padding: 5px;
    cursor: zoom-in;
}

.collection-part-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 9px;
}

@media (max-width: 760px) {

    .collection-part-visual {
        width: 106px;
        height: 106px;
    }
}

.friends-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
}

.stats-strip > .stat-value-card span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.stats-strip > .stat-value-card strong {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

.cups-year-tabs {
    margin: 0;
}

.cups-year-tabs.garage-detail-tabs {
    width: 100%;
    box-sizing: border-box;
}
}/* Source: public/css/source/shared/resources/game-05.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

.resource-icon-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.resource-icon-stack.is-card {
    align-self: center;
}

.resource-icon-frame {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

.resource-icon {
    display: block;
}

.resource-icon-stack .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

.resource-icon-stack.is-modal {
    justify-content: flex-start;
}

.resource-icon-stack.is-modal > .resource-icon {
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: rgba(255, 247, 236, 0.92);
}
}/* Source: public/css/source/shared/activities/game-06.css */

@layer base {/* Shared activities; game.css. Order is registered in manifest.json. */

.daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.cup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

@media (max-width: 760px) {

    .cup-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/primitives/game-27.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.empty-state {
    padding: 22px;
    border-radius: 16px;
    border: 1px dashed rgba(var(--theme-border-rgb), 0.32);
    background: rgba(255, 251, 246, 0.78);
}

.empty-state h2 {
    margin-top: 0;
    font-size: var(--ui-max-heading-font-size);
}

.button-danger {
    background: linear-gradient(180deg, #f18853, #df5a37);
}
}/* Source: public/css/source/shared/dialogs/game-02.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(45, 32, 18, 0.32);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 1000;
    animation: fadeIn 0.16s ease;
    pointer-events: auto;
}

.modal-backdrop.is-race-result {
    background: rgba(10, 14, 20, 0.72);
    backdrop-filter: blur(8px);
}

.modal-backdrop.is-level-up {
    background: rgba(43, 31, 11, 0.5);
}

.modal-backdrop.is-car-mastery {
    background: rgba(24, 24, 18, 0.58);
}

.modal-backdrop.is-track-mastery {
    background: rgba(18, 26, 24, 0.58);
}

.modal-backdrop.is-cup-award {
    background: rgba(26, 21, 10, 0.58);
}

.modal-backdrop.is-achievement {
    background: rgba(42, 31, 16, 0.44);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop.is-closing {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.modal-backdrop.is-submitting {
    pointer-events: auto;
}
}/* Source: public/css/source/shared/shell/game-08.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

.page-loading-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(45, 32, 18, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.14s ease;
    cursor: progress;
}

.page-loading-backdrop[hidden] {
    display: none;
}

.page-loading-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 168px;
    padding: 18px 24px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 20px;
    background: rgba(255, 250, 243, 0.96);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(var(--theme-shadow-rgb), 0.2);
    font-weight: 900;
}

.page-loading-spinner {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 3px solid rgba(var(--action-rgb), 0.22);
    border-top-color: var(--action);
    border-radius: 50%;
    animation: pageLoadingSpin 0.72s linear infinite;
}

html.page-is-loading,
body.page-is-loading {
    cursor: progress;
}
}/* Source: public/css/source/shared/animation/game-01.css */

@layer base {/* Shared animation; game.css. Order is registered in manifest.json. */

@keyframes pageLoadingSpin {

    to {
        transform: rotate(360deg);
    }
}
}/* Source: public/css/source/shared/dialogs/game-03.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

.modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 28px;
    border: 4px solid rgba(var(--theme-border-rgb), 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.99), rgba(251, 240, 221, 0.99));
    text-align: center;
}

.modal-backdrop.is-status-positive .modal-card {
    border: 4px solid rgba(var(--success-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.22),
        0 28px 70px rgba(61, 104, 35, 0.32);
}

.modal-backdrop.is-status-negative .modal-card {
    border: 4px solid rgba(var(--danger-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0.22),
        0 28px 70px rgba(112, 45, 31, 0.32);
}

.modal-backdrop.is-race-result.is-race-win .modal-card {
    border: 4px solid rgba(var(--success-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.22),
        0 28px 70px rgba(61, 104, 35, 0.34);
}

.modal-backdrop.is-race-result.is-race-loss .modal-card {
    border: 4px solid rgba(var(--danger-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0.22),
        0 28px 70px rgba(112, 45, 31, 0.34);
}

.modal-backdrop.is-achievement .modal-card {
    width: min(640px, 100%);
    padding: 24px;
    border-width: 4px;
    text-align: center;
}

.modal-backdrop.is-achievement.is-status-positive .modal-card,
.modal-backdrop.is-achievement.is-race-win .modal-card,
.modal-backdrop.is-capacity-up.is-status-positive .modal-card,
.modal-backdrop.is-level-up.is-status-positive .modal-card,
.modal-backdrop.is-car-mastery.is-status-positive .modal-card,
.modal-backdrop.is-track-mastery.is-status-positive .modal-card,
.modal-backdrop.is-cup-award.is-status-positive .modal-card {
    border: 4px solid rgba(var(--success-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0.22),
        0 28px 70px rgba(61, 104, 35, 0.32);
}

.modal-backdrop.is-achievement.is-status-negative .modal-card,
.modal-backdrop.is-capacity-up.is-status-negative .modal-card,
.modal-backdrop.is-level-up.is-status-negative .modal-card,
.modal-backdrop.is-car-mastery.is-status-negative .modal-card,
.modal-backdrop.is-track-mastery.is-status-negative .modal-card,
.modal-backdrop.is-cup-award.is-status-negative .modal-card {
    border: 4px solid rgba(var(--danger-rgb), 0.74);
    box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0.22),
        0 28px 70px rgba(112, 45, 31, 0.32);
}

.modal-card-wide {
    width: min(680px, 100%);
}

.modal-backdrop.is-help-modal {
    place-items: start center;
    padding-block: 32px;
}
}/* Source: public/css/source/shared/primitives/game-28.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.help-modal-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(980px, calc(100vw - 48px));
    max-height: calc(100dvh - 64px);
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.help-modal-header {
    position: relative;
    z-index: 1;
    padding: 28px 32px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.12);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.99), rgba(255, 250, 243, 0.94));
}

.help-modal-header .modal-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
}

.help-modal-card .modal-message {
    max-width: 760px;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.55;
}

.help-modal-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 32px 20px;
}

.help-modal-scroll.is-scrollable {
    display: grid;
    align-content: start;
    padding-right: 58px;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: rgba(var(--action-rgb), 0.72) rgba(var(--theme-border-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) top / calc(100% - 18px) 18px no-repeat,
        linear-gradient(0deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) bottom / calc(100% - 18px) 22px no-repeat;
}

.help-modal-scroll.is-scrollable::-webkit-scrollbar {
    width: 14px;
}

.help-modal-scroll.is-scrollable::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(var(--theme-border-rgb), 0.16);
}

.help-modal-scroll.is-scrollable::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 250, 243, 0.95);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.72);
}

.help-modal-sections {
    display: grid;
    gap: 12px;
}

.help-modal-section {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.14);
    background: rgba(255, 255, 255, 0.62);
}

.help-modal-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.help-modal-section summary::-webkit-details-marker {
    display: none;
}

.help-modal-section summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.12);
    color: var(--action-strong);
    font-weight: 900;
    line-height: 1;
}

.help-modal-section[open] summary::after {
    content: "-";
}

.help-modal-section summary span {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 900;
}

.help-modal-section p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.help-modal-section ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.help-modal-footer {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 14px 24px 18px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.12);
    background: linear-gradient(180deg, rgba(251, 240, 221, 0.94), rgba(251, 240, 221, 0.99));
}

[data-image-modal] img {
    cursor: inherit;
}

[data-image-modal][role="button"]:focus-visible {
    outline: 2px solid rgba(var(--action-rgb), 0.75);
    outline-offset: 3px;
}

button[data-image-modal]:disabled {
    cursor: default;
}
}/* Source: public/css/source/shared/dialogs/game-04.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

.image-modal-card {
    width: min(860px, 100%);
}

.image-modal-title {
    margin: 0;
    color: var(--text);
}

.modal-backdrop.is-report-modal .image-modal-card {
    display: flex;
    flex-direction: column;
    width: min(1220px, calc(100vw - 56px));
    max-height: calc(100vh - 48px);
    padding: 22px;
    overflow: hidden;
}

.modal-backdrop.is-logo-modal .image-modal-card {
    width: min(700px, calc(100vw - 42px));
}

.modal-backdrop.is-role-modal .image-modal-card {
    width: min(540px, calc(100vw - 42px));
}

.image-modal-frame {
    position: relative;
    margin: 18px auto 18px;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(62vh, 560px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 247, 236, 0.8) center / cover no-repeat;
}

.modal-backdrop.is-report-modal .image-modal-frame {
    max-width: min(1040px, 100%);
    min-height: 0;
    max-height: calc(100vh - 230px);
    flex: 1 1 auto;
    margin: 12px auto 12px;
    border-radius: 14px;
}

.image-modal-frame img {
    width: 100%;
    height: 100%;
    max-height: min(62vh, 560px);
    display: block;
    object-fit: contain;
}

.image-modal-overlay-car {
    --car-visual-layer-scale: 0.9;
    --car-visual-layer-y: 8%;
    position: absolute;
    inset: 0;
    z-index: 2;
    object-position: center 72%;
    padding: 6% 10% 4%;
    transform: translateY(var(--car-visual-layer-y)) scale(var(--car-visual-layer-scale));
    pointer-events: none;
    filter: drop-shadow(0 22px 26px rgba(30, 20, 12, 0.38));
}

.modal-backdrop.is-garage-scene-car-modal .image-modal-frame > img:first-child {
    position: relative;
    z-index: 1;
    object-fit: cover;
}

.modal-backdrop.is-logo-modal .image-modal-frame {
    width: min(520px, 100%);
    aspect-ratio: 1;
    max-height: min(64vh, 520px);
}

.modal-backdrop.is-role-modal .image-modal-frame {
    width: min(340px, 100%);
    aspect-ratio: 1;
    max-height: min(52vh, 340px);
}

.modal-backdrop.is-logo-modal .image-modal-frame img,
.modal-backdrop.is-role-modal .image-modal-frame img {
    padding: clamp(28px, 10%, 52px);
}

.modal-backdrop.is-logo-modal .image-modal-frame img {
    padding: clamp(18px, 6%, 34px);
}

.modal-backdrop.is-report-modal .image-modal-frame img {
    max-height: calc(100vh - 230px);
}

.modal-backdrop.is-report-modal .modal-message {
    margin-top: 0;
    margin-bottom: 0;
}

.modal-backdrop.is-report-modal .modal-actions {
    margin-top: 4px;
}

.image-modal-frame.has-background img {
    --car-visual-layer-scale: 0.9;
    --car-visual-layer-y: 8%;
    position: absolute;
    inset: 0;
    padding: clamp(8px, 2%, 18px);
    transform: translateY(var(--car-visual-layer-y)) scale(var(--car-visual-layer-scale));
    transform-origin: center bottom;
}

.modal-backdrop.is-submitting .modal-card {
    opacity: 0.94;
}

.modal-backdrop.is-redirecting {
    pointer-events: auto;
    cursor: progress;
}

.modal-backdrop.is-redirecting .modal-card {
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 1.5rem;
}

.modal-close:disabled,
.modal-actions .button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.modal-icon {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.16), rgba(var(--action-rgb), 0.46));
    border: 4px solid rgba(var(--action-rgb), 0.42);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow: none;
}

.modal-game-logo {
    width: 86%;
    height: 86%;
    display: block;
    object-fit: contain;
}

.modal-backdrop.is-level-up .modal-icon.has-image {
    background: linear-gradient(180deg, #f9c74f, #e88922);
    color: #fff9e8;
    text-shadow: 0 2px 8px rgba(112, 70, 12, 0.2);
}

.modal-backdrop.is-car-mastery .modal-icon.has-image {
    background: linear-gradient(180deg, #d9a441, #b36a1f);
    color: #fff9e8;
    text-shadow: 0 2px 8px rgba(80, 48, 12, 0.22);
}

.modal-backdrop.is-track-mastery .modal-icon.has-image {
    background: linear-gradient(180deg, #79a66f, #386d50);
    color: #f7fff3;
    text-shadow: 0 2px 8px rgba(22, 52, 35, 0.25);
}

.modal-backdrop.is-achievement .modal-icon {
    font-size: 1.35rem;
}

.modal-backdrop.is-achievement .modal-icon.has-image {
    width: 128px;
    height: 128px;
    margin: 0 auto 18px;
    border-radius: 24px;
}

.modal-icon.has-image {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.08), rgba(var(--action-rgb), 0.18));
    border: 4px solid rgba(var(--action-rgb), 0.42);
    overflow: hidden;
    letter-spacing: 0;
}

.modal-icon.has-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.modal-backdrop.is-status-positive .modal-icon.has-image,
.modal-backdrop.is-race-result.is-race-win .modal-icon.has-image {
    background: linear-gradient(180deg, rgba(114, 184, 79, 0.24), rgba(47, 125, 55, 0.18));
    border: 4px solid rgba(var(--success-rgb), 0.42);
    box-shadow: 0 0 0 4px rgba(224, 247, 207, 0.24);
}

.modal-backdrop.is-status-negative .modal-icon.has-image,
.modal-backdrop.is-race-result.is-race-loss .modal-icon.has-image {
    background: linear-gradient(180deg, rgba(232, 95, 75, 0.24), rgba(183, 47, 36, 0.18));
    border: 4px solid rgba(var(--danger-rgb), 0.42);
    box-shadow: 0 0 0 4px rgba(255, 225, 216, 0.26);
}

.modal-backdrop.is-race-result.is-race-win .modal-icon.has-image {
    background: linear-gradient(180deg, #72b84f, #2f7d37);
    border-color: rgba(var(--success-rgb), 0.58);
    box-shadow: 0 0 0 4px rgba(224, 247, 207, 0.32),
        0 16px 34px rgba(47, 125, 55, 0.24);
}

.modal-backdrop.is-race-result.is-race-loss .modal-icon.has-image {
    background: linear-gradient(180deg, #e85f4b, #b72f24);
    border-color: rgba(var(--danger-rgb), 0.58);
    box-shadow: 0 0 0 4px rgba(255, 225, 216, 0.34),
        0 16px 34px rgba(183, 47, 36, 0.24);
}

.modal-backdrop.is-race-result .modal-icon.has-image img {
    padding: 8px;
}

.modal-backdrop.is-status-positive .modal-icon:not(.has-image),
.modal-backdrop.is-race-result.is-race-win .modal-icon:not(.has-image),
.modal-backdrop.is-status-negative .modal-icon:not(.has-image),
.modal-backdrop.is-race-result.is-race-loss .modal-icon:not(.has-image),
.modal-backdrop.is-yellow-logo .modal-icon:not(.has-image) {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.16), rgba(var(--action-rgb), 0.46));
    border: 4px solid rgba(var(--action-rgb), 0.42);
    color: var(--accent);
    text-shadow: none;
}

.modal-backdrop.is-yellow-logo .modal-icon:not(.has-image) .modal-game-logo {
    width: 86%;
    height: 86%;
}

.modal-title {
    margin: 0;
    font-size: clamp(1.12rem, 0.5vw + 0.92rem, 1.34rem);
}

.modal-backdrop.is-achievement .modal-title {
    font-size: clamp(1.08rem, 0.42vw + 0.9rem, 1.28rem);
    line-height: 1.05;
}

.modal-message {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.is-confirm-modal .modal-message.is-critical {
    padding: 12px 14px;
    border: 1px solid rgba(190, 62, 45, 0.38);
    border-radius: 12px;
    background: rgba(255, 231, 226, 0.86);
    color: #a73225;
    font-weight: 900;
}

.modal-backdrop.is-achievement .modal-message {
    font-size: 0.98rem;
    line-height: 1.45;
}

.modal-gains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.modal-backdrop.is-achievement .modal-gains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
}

.modal-backdrop.is-bulk-status .modal-card {
    width: min(760px, calc(100vw - 48px));
    overflow: hidden;
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-card {
    max-height: calc(100dvh - 48px);
    overflow: hidden;
}

.modal-backdrop.is-bulk-status .modal-gains {
    position: relative;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 8px;
    overscroll-behavior: contain;
}

.modal-gain {
    display: grid;
    gap: 0;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(247, 236, 222, 0.8);
    border: 1px solid rgba(var(--theme-border-rgb), 0.14);
    text-align: left;
}

.modal-gain.is-summary-gain {
    order: -30;
    background: linear-gradient(180deg, rgba(255, 246, 226, 0.98), rgba(254, 235, 199, 0.94));
    border-color: rgba(var(--theme-border-rgb), 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
}

.modal-gain.is-summary-gain span,
.modal-gain.is-summary-gain strong {
    color: #9b5f1c;
}

.modal-gain.is-positive-gain {
    order: -20;
    background: rgba(233, 247, 221, 0.94);
    border-color: rgba(118, 173, 70, 0.32);
}

.modal-gain.is-negative-gain {
    order: 20;
    background: linear-gradient(180deg, rgba(255, 241, 236, 0.98), rgba(252, 226, 218, 0.94));
    border-color: rgba(var(--danger-rgb), 0.32);
}

.modal-backdrop.is-confirm-modal .modal-gain.is-negative-gain {
    order: -20;
}

.modal-backdrop.is-confirm-modal .modal-gain.is-positive-gain {
    order: -10;
}

.modal-gain.is-negative-gain strong {
    color: #9d3528;
}

.modal-gain.is-fragment-gain .resource-icon-stack.is-modal {
    gap: 0;
}

.modal-gain.is-fragment-gain .resource-icon-stack.is-modal .resource-icon-frame {
    position: relative;
}

.modal-gain.is-fragment-gain .resource-icon-stack.is-modal .resource-icon-frame + .resource-icon-frame {
    margin-left: -14px;
}

.modal-gain.has-icon {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
}

.modal-gain.has-icon-stack {
    grid-template-columns: 86px minmax(0, 1fr);
}

.modal-gain span {
    min-width: 0;
    font-size: var(--stat-box-font-size);
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.04;
}

.modal-gain.has-icon .resource-icon-stack {
    grid-row: 1 / span 2;
}

.modal-gain .resource-icon-stack.is-modal,
.modal-gain .resource-icon-stack.is-modal .resource-icon-frame,
.modal-gain .resource-icon-stack.is-modal .resource-icon {
    cursor: default;
    pointer-events: none;
}

.modal-icon.has-image,
.modal-icon.has-image img {
    cursor: default;
    pointer-events: none;
}

.modal-backdrop.is-level-up .modal-gain.is-level-gain .resource-icon {
    background: linear-gradient(180deg, rgba(224, 247, 207, 0.98), rgba(147, 205, 112, 0.92));
    border-color: rgba(var(--success-rgb), 0.42);
    box-shadow: 0 0 0 3px rgba(224, 247, 207, 0.42),
        0 10px 20px rgba(61, 104, 35, 0.18);
}

.modal-gain strong {
    min-width: 0;
    font-size: var(--stat-box-font-size);
    color: var(--text);
    font-weight: 900;
    line-height: 1.06;
    overflow-wrap: normal;
}

.modal-backdrop.is-bulk-status .modal-gain {
    min-height: 72px;
    padding: 10px 10px;
}

.modal-backdrop.is-bulk-status .modal-gain.has-icon {
    grid-template-rows: min-content min-content;
    align-content: center;
    align-items: center;
    row-gap: 4px;
}

.modal-backdrop.is-bulk-status .modal-gain.has-icon-stack {
    grid-template-columns: 86px minmax(0, 1fr);
}

.modal-backdrop.is-bulk-status .modal-gain.has-icon .resource-icon-stack {
    align-self: center;
}

.modal-backdrop.is-bulk-status .modal-gain.has-icon span {
    align-self: end;
}

.modal-backdrop.is-bulk-status .modal-gain.has-icon strong {
    align-self: start;
}

.modal-backdrop.is-bulk-status .modal-gain span {
    font-size: var(--stat-box-font-size);
}

.modal-backdrop.is-bulk-status .modal-gain strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.18;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.modal-backdrop.is-achievement .modal-actions {
    justify-content: center;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.modal-keyboard-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-backdrop {
        place-items: start center;
        padding: 14px;
    }

    .app-compact-viewport .modal-card {
        width: min(640px, calc(100vw - 28px));
        max-height: calc(100vh - 28px);
        overflow: hidden;
        padding: 20px;
        border-radius: 24px;
    }
}
}/* Source: public/css/source/shared/resources/game-06.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

[data-image-modal]:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    cursor: zoom-in;
}
}/* Source: public/css/source/shared/primitives/game-29.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .app-compact-viewport .help-modal-card {
        width: min(760px, calc(100vw - 28px));
    }

    .app-compact-viewport .help-modal-header {
        padding: 20px 18px 14px;
    }

    .app-compact-viewport .help-modal-scroll {
        padding: 14px 18px 16px;
    }

    .app-compact-viewport .help-modal-scroll.is-scrollable {
        padding-right: 44px;
    }

    .app-compact-viewport .help-modal-sections {
        gap: 10px;
    }

    .app-compact-viewport .help-modal-section {
        padding: 13px;
        border-radius: 14px;
    }

    .app-compact-viewport .help-modal-section summary span {
        font-size: 1rem;
    }

    .app-compact-viewport .help-modal-section p,
    .app-compact-viewport .help-modal-section ul {
        font-size: 0.94rem;
        line-height: 1.48;
    }

    .app-compact-viewport .help-modal-footer {
        padding: 12px 16px 14px;
    }
}
}/* Source: public/css/source/shared/dialogs/game-05.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .app-compact-viewport .modal-icon,
    .app-compact-viewport .modal-icon.has-image {
        width: 82px;
        height: 82px;
        margin-bottom: 12px;
        border-radius: 20px;
    }

    .app-compact-viewport .modal-title {
        font-size: 1.08rem;
        line-height: 1.14;
    }

    .app-compact-viewport .modal-message {
        margin-top: 10px;
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .app-compact-viewport .modal-gains {
        margin-top: 12px;
        gap: 8px;
    }

    .app-compact-viewport .modal-backdrop.is-bulk-status .modal-card {
        width: min(640px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        overflow: hidden;
    }

    .app-compact-viewport .modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-card {
        overflow: hidden;
    }

    .app-compact-viewport .modal-backdrop.is-bulk-status .modal-gains {
        grid-template-columns: 1fr;
    }

    .app-compact-viewport .modal-backdrop.is-bulk-status .modal-gains.is-scrollable {
        max-height: var(--modal-scroll-area-max-height, min(38vh, 340px));
    }

    .app-compact-viewport .modal-backdrop.is-bulk-status .modal-gain {
        min-height: 86px;
    }

    .app-compact-viewport .modal-actions {
        margin-top: 14px;
    }

    .app-compact-viewport .modal-keyboard-hint {
        margin-top: 8px;
        font-size: 0.78rem;
    }
}

.modal-backdrop.is-confirm-modal.is-bulk-status .modal-card {
    max-height: calc(100dvh - 48px);
    overflow: hidden;
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-backdrop.is-confirm-modal.is-bulk-status .modal-card {
        max-height: calc(100dvh - 48px);
        overflow: hidden;
    }
}

.modal-backdrop.is-confirm-modal .modal-actions {
    position: sticky;
    bottom: -1px;
    z-index: 3;
    margin: 18px -4px -4px;
    padding: 14px 4px 4px;
    background: linear-gradient(180deg, rgba(251, 240, 221, 0), rgba(251, 240, 221, 0.99) 34%, rgba(251, 240, 221, 0.99));
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-backdrop.is-confirm-modal .modal-actions {
        margin: 14px -2px -2px;
        padding: 12px 2px 2px;
    }
}
}/* Source: public/css/source/shared/race-animation/game-02.css */

@layer base {/* Shared race-animation; game.css. Order is registered in manifest.json. */

.race-sequence-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px 36px;
    background: radial-gradient(circle at top, rgba(255, 170, 90, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(14, 20, 28, 0.82), rgba(16, 18, 24, 0.94));
    backdrop-filter: blur(6px);
    animation: fadeIn 0.16s ease;
}

@media (max-width: 760px) {

    .race-compact-viewport .race-sequence-backdrop {
        place-items: start center;
        padding: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

.race-sequence-backdrop[hidden] {
    display: none;
}

.race-sequence-backdrop.is-closing {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.race-sequence-card {
    width: min(1540px, calc(100vw - 72px));
    max-height: calc(100vh - 56px);
    padding: 20px;
    border-radius: 28px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.2);
    background: linear-gradient(180deg, rgba(17, 23, 31, 0.98), rgba(11, 14, 20, 0.98));
    box-shadow: 0 34px 86px rgba(0, 0, 0, 0.34);
    color: #f6f8fb;
}

.race-sequence-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.race-sequence-title-block {
    min-width: 0;
    flex: 1;
}

.race-sequence-title-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

.race-sequence-title {
    margin: 0;
    font-size: clamp(1rem, 0.26vw + 0.84rem, 1.14rem);
    flex: 0 1 auto;
    min-width: 0;
}

.race-sequence-track-meta {
    color: rgba(246, 248, 251, 0.68);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    flex: 1;
    min-width: 180px;
}

.race-sequence-track-meta[hidden] {
    display: none;
}

.race-sequence-status {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(var(--warning-rgb), 0.12);
    color: #ffd0a3;
    border: 1px solid rgba(var(--warning-rgb), 0.22);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.race-sequence-track {
    --race-track-art-width: clamp(170px, 17vw, 280px);
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(47, 55, 66, 0.96), rgba(29, 36, 46, 0.98)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 14px, rgba(255, 255, 255, 0.02) 14px 28px);
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    overflow: hidden;
    min-height: 292px;
}

.race-sequence-countdown {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    font-size: clamp(4.8rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42),
        0 0 42px rgba(255, 255, 255, 0.34);
    pointer-events: none;
}

.race-sequence-countdown[hidden] {
    display: none;
}

.race-sequence-countdown.is-go {
    color: #fff4dd;
    font-size: clamp(3.6rem, 8vw, 7.4rem);
    text-transform: uppercase;
}

.race-sequence-countdown.is-waiting {
    align-items: end;
    padding-bottom: 26px;
    color: rgba(246, 248, 251, 0.78);
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    font-weight: 800;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.race-sequence-countdown.is-pulse {
    animation: raceCountdownPulse 0.68s ease both;
}
}/* Source: public/css/source/shared/animation/game-02.css */

@layer base {/* Shared animation; game.css. Order is registered in manifest.json. */

@keyframes raceCountdownPulse {

    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    22% {
        opacity: 1;
        transform: scale(1.04);
    }

    100% {
        opacity: 0.86;
        transform: scale(1);
    }
}
}/* Source: public/css/source/shared/race-animation/game-03.css */

@layer base {/* Shared race-animation; game.css. Order is registered in manifest.json. */

.race-sequence-track-art {
    position: absolute;
    z-index: 1;
    top: 18px;
    bottom: 16px;
    left: 18px;
    width: var(--race-track-art-width);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 32px rgba(0, 0, 0, 0.22);
}

.race-sequence-track-art[hidden] {
    display: none;
}

.race-sequence-track-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-sequence-track.is-pattern-reverse .race-sequence-track-art {
    left: auto;
    right: 18px;
}

.race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane-label,
.race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-car-frame {
    margin-left: calc(var(--race-track-art-width) + 18px);
}

.race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane-label,
.race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-car-frame {
    margin-left: 0;
    margin-right: calc(var(--race-track-art-width) + 18px);
}

.race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before {
    left: calc(var(--race-track-art-width) + 36px);
}

.race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before {
    left: 18px;
    right: calc(var(--race-track-art-width) + 36px);
}

.race-sequence-track::before {
    content: '';
    position: absolute;
    inset: 50% 22px auto 22px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--warning-rgb), 0.7), transparent);
    transform: translateY(-50%);
    pointer-events: none;
}

.race-sequence-finish-line {
    position: absolute;
    top: 16px;
    bottom: 16px;
    right: 18px;
    width: 6px;
    border-radius: 999px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 12px, rgba(214, 87, 45, 0.96) 12px 24px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
    opacity: 0.92;
}

.race-sequence-lane {
    position: relative;
    min-height: 116px;
    padding-right: 128px;
}

.race-sequence-track:not(.is-pattern-straight)::before,
.race-sequence-track:not(.is-pattern-straight) .race-sequence-finish-line {
    display: none;
}

.race-sequence-track.is-pattern-straight-reverse::before,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-finish-line {
    display: block;
}

.race-sequence-track:not(.is-pattern-straight) .race-sequence-lane {
    min-height: 132px;
    padding-right: 18px;
}

.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane {
    padding-left: 128px;
}

.race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::before,
.race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::before {
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 84px;
    border-radius: 999px;
    border: 8px solid rgba(var(--warning-rgb), 0.18);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 0 28px rgba(255, 170, 80, 0.08);
}

.race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::after {
    right: 32px;
    bottom: 40px;
    width: 5px;
    height: 46px;
    border-radius: 999px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0 8px, rgba(214, 87, 45, 0.96) 8px 16px);
}

.race-sequence-track.is-pattern-s .race-sequence-lane::before {
    left: 18px;
    right: 18px;
    top: 38px;
    bottom: 18px;
    height: auto;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 86' preserveAspectRatio='none'%3E%3Cpath d='M14 68 C126 8 222 8 316 44 C410 80 500 80 606 18' fill='none' stroke='%23bca987' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M14 68 C126 8 222 8 316 44 C410 80 500 80 606 18' fill='none' stroke='%23fff3d3' stroke-opacity='.18' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 22px rgba(255, 170, 80, 0.08));
    opacity: 0.44;
}

.race-sequence-track.is-pattern-s-reverse .race-sequence-lane::before {
    top: 38px;
    bottom: 18px;
    height: auto;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 86' preserveAspectRatio='none'%3E%3Cpath d='M14 68 C126 8 222 8 316 44 C410 80 500 80 606 18' fill='none' stroke='%23bca987' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M14 68 C126 8 222 8 316 44 C410 80 500 80 606 18' fill='none' stroke='%23fff3d3' stroke-opacity='.18' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 22px rgba(255, 170, 80, 0.08));
    opacity: 0.44;
    left: 18px;
    right: 18px;
    transform: scaleX(-1);
}

.race-sequence-track.is-pattern-s,
.race-sequence-track.is-pattern-s-reverse {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 450px;
}

.race-sequence-track.is-pattern-s .race-sequence-lane,
.race-sequence-track.is-pattern-s-reverse .race-sequence-lane {
    min-height: 218px;
    padding-right: 128px;
}

.race-sequence-track.is-pattern-s .race-sequence-lane-opponent,
.race-sequence-track.is-pattern-s-reverse .race-sequence-lane-opponent {
    border-left: 0;
    padding-left: 0;
}

.race-sequence-track.is-pattern-s .race-sequence-lane::after,
.race-sequence-track.is-pattern-s-reverse .race-sequence-lane::after {
    top: 50px;
    right: 32px;
    bottom: auto;
    transform: none;
    width: 5px;
    height: 46px;
}

.race-sequence-track.is-pattern-s::before,
.race-sequence-track.is-pattern-s .race-sequence-finish-line,
.race-sequence-track.is-pattern-s-reverse::before,
.race-sequence-track.is-pattern-s-reverse .race-sequence-finish-line {
    display: block;
}

.race-sequence-track.is-pattern-straight,
.race-sequence-track.is-pattern-straight-reverse {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 450px;
}

.race-sequence-backdrop.is-opponent-transition .race-sequence-finish-line,
.race-sequence-backdrop.is-opponent-transition .race-sequence-track.is-pattern-straight .race-sequence-lane::after {
    display: none;
}

.race-sequence-track.is-pattern-straight .race-sequence-lane,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane {
    min-height: 218px;
    padding-right: 128px;
}

.race-sequence-track.is-pattern-straight .race-sequence-lane-opponent,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane-opponent {
    border-left: 0;
    padding-left: 0;
}

.race-sequence-track.is-pattern-straight .race-sequence-lane::before,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::before,
.race-sequence-track.is-pattern-straight .race-sequence-lane::after,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after {
    content: "";
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.race-sequence-track.is-pattern-straight .race-sequence-lane::before,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::before {
    left: 18px;
    right: 18px;
    top: 38px;
    bottom: 18px;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
        linear-gradient(90deg, rgba(188, 169, 135, 0.54), rgba(188, 169, 135, 0.38));
    background-size: 100% 100%, 100% 12px;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 28px rgba(255, 170, 80, 0.06);
    opacity: 0.68;
}

.race-sequence-track.is-pattern-straight .race-sequence-lane::after,
.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after {
    top: calc(50% + 10px);
    right: 32px;
    bottom: auto;
    width: 5px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0 8px, rgba(214, 87, 45, 0.96) 8px 16px);
}

.race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after {
    left: 32px;
    right: auto;
}

.race-sequence-track.is-pattern-straight:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
.race-sequence-track.is-pattern-straight-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before {
    left: calc(var(--race-track-art-width) + 36px);
}

.race-sequence-track.is-pattern-straight-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before {
    left: 18px;
    right: calc(var(--race-track-art-width) + 36px);
}

.race-sequence-track.is-pattern-reverse .race-sequence-finish-line {
    left: 18px;
    right: auto;
}

.race-sequence-track.is-pattern-reverse .race-sequence-lane {
    padding-right: 0;
    padding-left: 128px;
}

.race-sequence-track.is-pattern-s-reverse .race-sequence-lane::after {
    left: 32px;
    right: auto;
}

.race-sequence-lane-label {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(246, 248, 251, 0.92);
    font-size: 0.92rem;
}

.race-sequence-lane-label strong {
    font-size: 1rem;
}

.race-sequence-lane-label span {
    color: rgba(246, 248, 251, 0.66);
}

.race-sequence-car-frame {
    position: absolute;
    left: 0;
    bottom: 8px;
    right: 18px;
    height: calc(100% - 8px);
    --race-car-width: clamp(140px, 12vw, 200px);
    pointer-events: none;
    overflow: visible;
    z-index: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    border-radius: 6px;
    background: rgba(8, 13, 20, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.race-sequence-track:not(.is-pattern-straight) .race-sequence-car-frame {
    top: 36px;
    bottom: auto;
    height: calc(100% - 44px);
}

.race-sequence-track.is-pattern-straight-reverse .race-sequence-car-frame {
    top: 28px;
    bottom: auto;
    height: calc(100% - 34px);
}

.race-sequence-track.is-pattern-straight .race-sequence-car-frame,
.race-sequence-track.is-pattern-s .race-sequence-car-frame,
.race-sequence-track.is-pattern-s-reverse .race-sequence-car-frame {
    top: 28px;
    right: 18px;
    left: 0;
    height: calc(100% - 34px);
    --race-car-width: clamp(140px, 12vw, 200px);
}

.race-sequence-car {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--race-car-width);
    display: block;
    padding: 0;
    border-radius: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    transition: none;
    will-change: left, top, transform;
}

.race-sequence-car-visual {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 16px;
    overflow: visible;
    background: transparent;
}

.race-sequence-car-visual img,
.race-sequence-car-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.race-sequence-car-visual img {
    object-fit: contain;
    padding: 0;
    transform: translateY(0) scale(1);
}

.race-sequence-track.is-pattern-reverse .race-sequence-car-visual img {
    transform: translateY(0) scaleX(-1) scale(1);
}

.race-sequence-car-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 165, 86, 0.95), rgba(210, 86, 38, 0.95));
    color: #fff9f2;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.race-sequence-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 12px;
}

.race-sequence-note {
    color: rgba(246, 248, 251, 0.72);
    font-size: 0.92rem;
}

.race-sequence-timeline {
    width: min(220px, 100%);
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.race-sequence-timeline span {
    display: block;
    width: 14%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb164, #f06b2b);
    box-shadow: 0 0 20px rgba(240, 107, 43, 0.32);
}

@media (max-width: 760px) {

    .race-compact-viewport .race-sequence-card {
        width: min(820px, calc(100vw - 36px));
        max-height: none;
        padding: 18px;
    }

    .race-compact-viewport .race-sequence-head,
    .race-compact-viewport .race-sequence-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .race-compact-viewport .race-sequence-title-row {
        display: grid;
        gap: 6px;
    }

    .race-compact-viewport .race-sequence-track-meta {
        min-width: 0;
        text-align: left;
        font-size: 0.78rem;
    }

    .race-compact-viewport .race-sequence-status,
    .race-compact-viewport .race-sequence-timeline {
        width: 100%;
    }

    .race-compact-viewport .race-sequence-status {
        white-space: normal;
        text-align: center;
    }

    .race-compact-viewport .race-sequence-lane {
        min-height: 132px;
        padding-right: 104px;
    }

    .race-compact-viewport .race-sequence-track.is-pattern-s,
    .race-compact-viewport .race-sequence-track.is-pattern-s-reverse {
        grid-template-columns: 1fr;
        min-height: 420px;
    }

    .race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane,
    .race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane {
        min-height: 180px;
    }

    .race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane-opponent,
    .race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane-opponent {
        border-left: 0;
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.22);
        padding-left: 0;
        padding-top: 14px;
    }

    .race-compact-viewport .race-sequence-car-frame {
        --race-car-width: min(100%, 250px);
    }
}

.race-sequence-backdrop.is-player-winning .race-sequence-timeline span {
    background: linear-gradient(90deg, #90d36b, #4f8f24);
    box-shadow: 0 0 20px rgba(79, 143, 36, 0.34);
}

.race-sequence-backdrop.is-opponent-winning .race-sequence-timeline span {
    background: linear-gradient(90deg, #f19b73, #d84c2f);
}

.race-sequence-backdrop.is-player-winning .race-sequence-status {
    color: #dff8c8;
    background: rgba(var(--success-rgb), 0.16);
    border-color: rgba(var(--success-rgb), 0.24);
}

.race-sequence-backdrop.is-opponent-winning .race-sequence-status {
    color: #ffd1c0;
    background: rgba(var(--danger-rgb), 0.16);
    border-color: rgba(var(--danger-rgb), 0.24);
}
}/* Source: public/css/source/shared/animation/game-03.css */

@layer base {/* Shared animation; game.css. Order is registered in manifest.json. */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
}/* Source: public/css/source/shared/racing/game-10.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

@media (max-width: 1240px) {

    .race-selected-summary-grid,
    .race-selected-summary-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
}/* Source: public/css/source/shared/primitives/game-30.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .hero-grid,
    .race-page-hero,
    .team-upgrade-overview-layout,
    .team-upgrade-overview-grid,
    .team-upgrade-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .topbar-upper,
    .brand-block,
    .topbar-lower,
    .dealership-hero,
    .race-section-head,
    .section-title-row,
    .race-pager,
    .race-pager-actions,
    .race-hero-actions,
    .row-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
}/* Source: public/css/source/shared/teams/game-09.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .team-upgrade-overview-card.is-level,
    .team-upgrade-overview-card.is-bonus,
    .team-upgrade-overview-card.is-treasury,
    .team-upgrade-overview-card.is-members,
    .team-upgrade-overview-card.is-contribution,
    .team-upgrade-overview-card.is-levels,
    .team-upgrade-overview-card.is-queue {
        grid-column: 1;
    }

    .team-upgrade-grid.is-row-layout .team-upgrade-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "head"
            "copy"
            "progress"
            "stats"
            "footer";
    }

    .team-upgrade-grid.is-row-layout .team-upgrade-image {
        height: auto;
        min-height: 200px;
    }

    .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/racing/game-11.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .race-selected-summary-grid {
        grid-template-columns: 1fr;
    }

    .race-selected-summary-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-selected-summary-toggle-score {
        grid-column: 1 / -1;
        width: 100%;
    }

    .race-selected-summary-toggle-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .race-selected-summary-toggle-stats .race-selected-summary-toggle-score {
        grid-column: auto;
    }

    .race-selected-summary-meta-grid {
        grid-template-columns: 1fr;
    }

    .race-active-car-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-active-car-summary-bars,
    .race-active-car-summary-stats {
        grid-column: 1 / -1;
        max-width: none;
    }

    .race-multi-lineup-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-multi-lineup-car-strip,
    .race-multi-lineup-summary-stats {
        grid-column: 1 / -1;
    }

    .race-summary-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .race-page-hero .resources-lead {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .race-page-hero .resources-lead strong {
        display: inline-block;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .opponent-summary-grid {
        margin-right: 0;
    }
}
}/* Source: public/css/source/shared/cars/game-10.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .car-panel-full-head {
        grid-template-columns: 1fr;
    }

    .car-panel-full-head-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .car-panel-full-head-actions > :not(.car-panel-full-actions) {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }

    .car-panel-full-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .car-mastery-compact .label-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .car-panel-progress-grid {
        grid-template-columns: 1fr;
    }

    .car-mastery-compact .label-row strong {
        text-align: left;
    }
}
}/* Source: public/css/source/shared/shell/game-09.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .page-scroll-actions {
        right: 10px;
        gap: 8px;
    }

    .topbar {
        gap: 12px;
        padding: 14px;
        overflow: hidden;
    }
}
}/* Source: public/css/source/shared/primitives/game-31.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .header-stats,
    .nav-grid,
    .home-active-summary-grid,
    .home-race-summary-grid,
    .dealership-active-body,
    .account-security-grid,
    .profile-week-stat-grid,
    .profile-week-detail-grid,
    .opponent-summary-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/home-notifications/game-11.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .home-active-summary-grid.car-panel-full-summary-grid,
    .home-race-summary-grid.car-panel-full-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
}/* Source: public/css/source/shared/navigation/game-03.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .nav-logout-form,
    .nav-tool-stack,
    .nav-account-stack,
    .nav-main,
    .nav-sub {
        grid-column: auto;
        grid-row: auto;
    }
}
}/* Source: public/css/source/shared/shell/game-10.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .topbar-upper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand-block {
        flex-direction: row;
        align-items: center;
    }

    .header-stats {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .header-stat {
        flex: 0 0 144px;
        scroll-snap-align: start;
    }

    .header-stat-money {
        flex-basis: 204px;
    }

    .header-stat-level {
        flex-basis: 212px;
    }
}
}/* Source: public/css/source/shared/navigation/game-04.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .nav-shell {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-main,
    .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;
    }

    .nav-main .nav-tab,
    .nav-main .nav-tab:has(.nav-badge),
    .nav-sub .nav-tab {
        flex: 0 0 auto;
        min-width: 112px;
        scroll-snap-align: start;
    }

    .nav-main .nav-icon-tab {
        min-width: 54px;
        flex-basis: 54px;
    }

    .nav-main .nav-icon-tab:has(.nav-badge) {
        min-width: 68px;
        flex-basis: 68px;
    }

    .nav-tool-stack,
    .nav-account-stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .nav-tool-stack {
        padding-left: 0;
    }

    .nav-tool-stack::before {
        display: none;
    }

    .nav-tool-stack .nav-tab,
    .nav-account-stack .nav-tab,
    .nav-account-stack .language-switcher {
        min-height: 42px;
    }

    .menu-progress {
        min-width: 0;
        width: 100%;
    }
}
}/* Source: public/css/source/shared/primitives/game-32.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .profile-week-best-car {
        grid-template-columns: 1fr;
    }

    .social-account-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .right-text {
        text-align: left;
    }
}
}/* Source: public/css/source/shared/authentication/game-05.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .social-auth-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/cars/game-11.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .dealership-active-sidebar {
        padding-left: 0;
        border-left: 0;
    }

    .car-visual.is-compact {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/shared/primitives/game-33.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .row-layout,
    .row-layout-visual,
    .row-main-visual {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .section-title-row .race-pager {
        justify-content: flex-end;
        margin-left: auto;
    }
}
}/* Source: public/css/source/shared/teams/game-10.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .team-upgrade-toolbar,
    .team-upgrade-pagination,
    .team-upgrade-nav {
        width: 100%;
        justify-content: flex-start;
    }
}
}/* Source: public/css/source/shared/dialogs/game-06.css */

@layer base {/* Shared dialogs; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .modal-card {
        padding: 24px 20px;
    }
}

.modal-actions .button-secondary {
    background: rgba(255, 253, 249, 0.94);
}
}/* Source: public/css/source/shared/racing/game-12.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

@media (max-width: 960px) {

    .race-active-car-summary-main {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .race-active-car-summary-visual.car-visual {
        width: 82px;
        min-width: 82px;
    }

    .race-active-car-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .race-multi-lineup-summary-stats,
    .race-multi-lineup-car-strip,
    .race-selected-setup-format-grid,
    .race-multi-lineup-compact-grid,
    .race-multi-lineup-breakdown-grid,
    .race-multi-lineup-total-grid,
    .race-active-car-compact-summary,
    .race-active-car-compact-breakdown {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/race-animation/game-04.css */

@layer base {/* Shared race-animation; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .race-sequence-card {
        padding: 18px;
    }

    .race-sequence-head,
    .race-sequence-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .race-sequence-status,
    .race-sequence-timeline {
        width: 100%;
    }

    .race-sequence-lane {
        min-height: 132px;
        padding-right: 104px;
    }

    .race-sequence-track.is-pattern-s,
    .race-sequence-track.is-pattern-s-reverse {
        grid-template-columns: 1fr;
        min-height: 420px;
    }

    .race-sequence-track.is-pattern-s .race-sequence-lane,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane {
        min-height: 180px;
    }

    .race-sequence-track.is-pattern-s .race-sequence-lane-opponent,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane-opponent {
        border-left: 0;
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.22);
        padding-left: 0;
        padding-top: 14px;
    }

    .race-sequence-car-frame {
        --race-car-width: min(100%, 250px);
    }
}

@media (max-width: 640px) {

    .race-sequence-backdrop {
        padding: 8px;
    }

    .race-sequence-card {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
        border-radius: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .race-sequence-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .race-sequence-title {
        font-size: 1rem;
        line-height: 1.16;
    }

    .race-sequence-track-meta {
        font-size: 0.74rem;
        line-height: 1.22;
    }

    .race-sequence-status {
        padding: 9px 12px;
        font-size: 0.82rem;
        line-height: 1.22;
    }

    .race-sequence-track,
    .race-sequence-track.is-pattern-s,
    .race-sequence-track.is-pattern-s-reverse,
    .race-sequence-track.is-pattern-straight,
    .race-sequence-track.is-pattern-straight-reverse {
        --race-track-art-width: 0px;
        --mobile-race-track-art-height: clamp(72px, 20vw, 96px);
        gap: 8px;
        min-height: 0;
        padding: 10px;
        border-radius: 18px;
        overflow: hidden;
    }

    .race-sequence-track-art {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 1;
        width: 100%;
        height: var(--mobile-race-track-art-height);
        border-radius: 13px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 18px rgba(0, 0, 0, 0.18);
    }

    .race-sequence-track.is-pattern-reverse .race-sequence-track-art {
        left: auto;
        right: auto;
    }

    .race-sequence-track-art img {
        object-position: center;
    }

    .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane-label,
    .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-car-frame,
    .race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane-label,
    .race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-car-frame {
        margin-left: 0;
        margin-right: 0;
    }

    .race-sequence-lane,
    .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane,
    .race-sequence-track.is-pattern-straight .race-sequence-lane,
    .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane,
    .race-sequence-track.is-pattern-s .race-sequence-lane,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane,
    .race-sequence-track.is-pattern-reverse .race-sequence-lane {
        min-height: 156px;
        padding-right: 52px;
        padding-left: 0;
    }

    .race-sequence-track.is-pattern-s .race-sequence-lane-opponent,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane-opponent,
    .race-sequence-track.is-pattern-straight .race-sequence-lane-opponent,
    .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane-opponent {
        border-left: 0;
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.18);
        padding-top: 10px;
    }

    .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .race-sequence-track.is-pattern-straight:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .race-sequence-track.is-pattern-straight-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::before,
    .race-sequence-track.is-pattern-s .race-sequence-lane::before,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::before,
    .race-sequence-track.is-pattern-straight .race-sequence-lane::before,
    .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::before {
        left: 8px;
        right: 8px;
    }

    .race-sequence-finish-line {
        top: 12px;
        right: 10px;
        bottom: 12px;
        width: 5px;
    }

    .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-finish-line {
        top: calc(var(--mobile-race-track-art-height) + 20px);
    }

    .race-sequence-track.is-pattern-reverse .race-sequence-finish-line {
        left: auto;
        right: 10px;
    }

    .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::after,
    .race-sequence-track.is-pattern-s .race-sequence-lane::after,
    .race-sequence-track.is-pattern-straight .race-sequence-lane::after {
        right: 16px;
        width: 4px;
        height: 36px;
    }

    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::after,
    .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after {
        width: 4px;
        height: 36px;
    }

    .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::after {
        left: auto;
        right: 16px;
    }

    .race-sequence-lane-label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 8px;
        padding-right: 44px;
        align-items: start;
    }

    .race-sequence-lane-label strong {
        min-width: 0;
        font-size: 0.94rem;
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .race-sequence-lane-label span {
        min-width: 0;
        font-size: 0.78rem;
        line-height: 1.18;
        text-align: left;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .race-sequence-car-frame,
    .race-sequence-track:not(.is-pattern-straight) .race-sequence-car-frame,
    .race-sequence-track.is-pattern-straight-reverse .race-sequence-car-frame,
    .race-sequence-track.is-pattern-straight .race-sequence-car-frame,
    .race-sequence-track.is-pattern-s .race-sequence-car-frame,
    .race-sequence-track.is-pattern-s-reverse .race-sequence-car-frame {
        top: 56px;
        right: 42px;
        left: 0;
        height: calc(100% - 62px);
        --race-car-width: clamp(92px, 30vw, 132px);
    }

    .race-sequence-countdown {
        font-size: clamp(3.6rem, 18vw, 5.6rem);
    }

    .race-sequence-countdown.is-waiting {
        padding: 12px 18px 18px;
        font-size: 0.95rem;
        text-align: center;
    }

    .race-sequence-countdown.is-go {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }
}

@media (max-width: 760px) {

    .game-shell.race-compact-viewport .race-sequence-track,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse {
        --mobile-race-track-art-height: clamp(72px, 20vw, 96px);
    }
}
}/* Source: public/css/source/shared/home-notifications/game-12.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .home-visible-notices-stack {
        gap: 10px;
        margin-bottom: 0;
    }

    .home-pinned-notices-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 0;
    }

    .home-pinned-notice {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 7px;
    }

    .home-pinned-notice-image {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .home-pinned-notice-copy strong {
        font-size: 0.82rem;
    }

    .home-pinned-notice-detail {
        font-size: 0.72rem;
    }

    .home-pinned-notice-icon-button {
        width: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .announcement-notification {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        overflow: hidden;
    }

    .announcement-notification-actions {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}
}/* Source: public/css/source/shared/authentication/game-06.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .auth-shell-wide {
        padding-block: 8px;
    }
}
}/* Source: public/css/source/shared/shell/game-11.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .topbar {
        padding: 12px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 1.45rem;
    }

    .brand {
        white-space: normal;
        font-size: 1.08rem;
        line-height: 1.05;
    }

    .brand-kicker {
        font-size: 0.9rem;
        line-height: 1.16;
    }

    .header-stat {
        flex-basis: 132px;
        min-height: 72px;
        padding: 9px;
        border-radius: 16px;
    }

    .header-stat-money {
        flex-basis: 198px;
    }

    .header-stat-level {
        flex-basis: 202px;
    }
}

@media (max-width: 560px) {

    .page-scroll-actions {
        right: 6px;
    }
}
}/* Source: public/css/source/shared/navigation/game-05.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .nav-main .nav-tab,
    .nav-main .nav-tab:has(.nav-badge),
    .nav-sub .nav-tab {
        min-width: auto;
        padding-inline: 13px;
    }

    .nav-main .nav-icon-tab {
        min-width: 50px;
        flex-basis: 50px;
    }

    .nav-main .nav-icon-tab:has(.nav-badge) {
        min-width: 64px;
        flex-basis: 64px;
    }

    .nav-tool-stack,
    .nav-account-stack {
        gap: 8px;
    }
}
}/* Source: public/css/source/shared/teams/game-11.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .flow-entry-details--pair {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/garage/game-10.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .garage-multi-group-name-row,
    .garage-multi-group-card-head {
        grid-template-columns: 1fr;
    }

    .garage-multi-group-card-head {
        display: grid;
    }

    .garage-multi-group-builder-grid,
    .garage-multi-group-selected-slots,
    .garage-multi-group-preview-grid {
        grid-template-columns: repeat(5, minmax(128px, 1fr));
        overflow-x: auto;
    }

    .garage-multi-group-form-actions .button,
    .garage-multi-group-card-actions .button,
    .garage-multi-group-card-actions form,
    .garage-multi-group-page-actions .button {
        width: 100%;
    }
}
}/* Source: public/css/source/shared/primitives/game-34.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .game-shell {
        overflow-x: hidden;
    }

    .game-shell img {
        max-width: 100%;
    }

    .panel,
    .ui-row-card,
    .row-card {
        min-width: 0;
    }

    .garage-detail-tabs,
    .flow-filter-tabs,
    .achievement-filter-tabs,
    .city-jobs-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .race-pager,
    .race-pager-actions,
    .team-upgrade-toolbar,
    .team-upgrade-pagination,
    .team-upgrade-nav,
    .section-footer-pager {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .button,
    .nav-tab,
    .garage-detail-tab,
    .race-pager-button,
    .action-pill,
    .badge {
        max-width: 100%;
    }

    .button {
        white-space: normal;
    }

    .row-meta {
        justify-self: stretch;
        text-align: left;
        justify-items: start;
    }

    .resource-preview-item span,
    .right-text {
        text-align: left;
    }
}
}/* Source: public/css/source/shared/garage/game-11.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .garage-detail-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
}/* Source: public/css/source/shared/racing/game-13.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .race-pager,
    .race-pager-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .race-pager-count,
    .race-pager-button,
    .race-pager-number {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
}/* Source: public/css/source/shared/resources/game-07.css */

@layer base {/* Shared resources; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .resource-preview-item {
        align-items: flex-start;
    }
}
}/* Source: public/css/source/shared/primitives/game-35.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .resource-preview-item span,
    .pill,
    .badge,
    .action-pill {
        overflow-wrap: normal;
        white-space: normal;
    }

    .ui-row-actions,
    .card-actions,
    .race-hero-actions {
        width: 100%;
        max-width: 100%;
    }

    .ui-row-actions > *,
    .card-actions > *,
    .race-hero-actions > * {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :root {
        --section-gap: 10px;
    }

    .panel-title,
    .eyebrow {
        overflow-wrap: normal;
    }

    .section-title-row,
    .panel-title-row,
    .race-section-head {
        gap: 10px;
    }

    .row-card {
        padding: 12px;
        border-radius: 16px;
    }
}
}/* Source: public/css/source/shared/home-notifications/game-13.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .home-pinned-notices-strip {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/primitives/game-36.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .row-main-visual,
    .home-active-summary-grid.car-panel-full-summary-grid,
    .home-race-summary-grid.car-panel-full-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .row-main-visual .car-visual,
    .ui-row-media {
        width: 100%;
    }
}
}/* Source: public/css/source/shared/racing/game-14.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .race-pager-button {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 0.78rem;
    }

    .race-pager-number {
        min-width: 40px;
    }
}
}/* Source: public/css/source/shared/primitives/game-37.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .button {
        min-width: 0;
        padding-inline: 12px;
    }
}

body {
    background: radial-gradient(circle at top left, rgba(241, 163, 62, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 219, 167, 0.24), transparent 24%),
        linear-gradient(180deg, #fbf5ec 0%, #f6ede1 100%);
}

.panel,
.topbar,
.modal-card {
    border-color: var(--line);
    border-radius: var(--surface-radius);
    box-shadow: var(--shadow-soft);
}
}/* Source: public/css/source/shared/shell/game-12.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .page-scroll-button {
        width: 44px;
        height: 44px;
    }
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
}
}/* Source: public/css/source/shared/authentication/game-07.css */

@layer base {/* Shared authentication; game.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .not-found-shell {
        min-height: auto;
        padding-top: 8px;
    }

    .public-landing-page .not-found-shell {
        min-height: 100vh;
        padding: 14px;
    }

    .not-found-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 24px;
    }

    .not-found-copy h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .not-found-scene {
        min-height: 220px;
    }

    .not-found-number {
        left: 0;
        right: auto;
        top: -4px;
        font-size: clamp(4.4rem, 28vw, 8rem);
    }

    .not-found-scene img {
        width: min(100%, 420px);
        transform: translateY(18px);
    }

    .not-found-status {
        grid-template-columns: 1fr;
    }

    .not-found-actions .button {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/shared/primitives/game-38.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.panel {
    padding: clamp(14px, 1.4vw, 20px);
}

.panel-highlight {
    background: linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(248, 242, 232, 0.98));
}

.ui-row-card,
.row-card,
.dealership-summary-card,
.team-kpi-card,
.team-upgrade-card,
.resource-preview-item {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

.panel-title,
.eyebrow {
    color: var(--detail-text, var(--accent-2));
    letter-spacing: 0;
    line-height: 1.15;
}

.panel-title {
    font-size: var(--section-subtitle-font-size);
    font-weight: 500;
    text-transform: none;
    margin-bottom: 6px;
}

.eyebrow {
    font-size: var(--eyebrow-font-size);
    font-weight: 900;
    text-transform: uppercase;
}

.muted,
.resources-lead,
.panel p {
    line-height: 1.45;
}

.button,
.nav-tab,
.garage-detail-tab,
.race-pager-button,
.race-pager-number,
.page-scroll-button,
.icon-button,
.field input,
.field textarea,
.select,
.badge,
.action-pill {
    border-radius: var(--control-radius);
}

.button {
    min-height: 42px;
    border: 1px solid var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
    line-height: 1.15;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px var(--action-shadow);
}

.button-secondary {
    border: 1px solid var(--action-border);
    background: var(--action-soft);
    color: var(--action-strong);
    box-shadow: var(--shadow-card);
}

.button.button-danger {
    border-color: rgba(var(--danger-rgb), 0.36);
    background: linear-gradient(180deg, #f18853, #df5a37);
    color: #fffaf3;
    box-shadow: 0 4px 10px rgba(223, 90, 55, 0.12);
}

.button.button-danger .button-action-icon {
    color: currentColor;
    opacity: 1;
}

.button:disabled,
.button.is-disabled {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.82);
    color: var(--muted);
    box-shadow: none;
}

.button:focus-visible,
.nav-tab:focus-visible,
.garage-detail-tab:focus-visible,
.icon-button:focus-visible,
.page-scroll-button:focus-visible,
.field input:focus,
.field textarea:focus {
    outline: 3px solid var(--selected-outline);
    outline-offset: 2px;
}

.nav-tab,
.garage-detail-tab {
    border: 1px solid var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.86);
    line-height: 1.15;
    min-height: 42px;
}

.garage-detail-tabs,
.flow-filter-tabs,
.achievement-filter-tabs,
.city-jobs-tabs,
.reward-tabs,
.mission-tabs,
.profile-tabs,
.home-tabs,
.race-index-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
}

.section-title-row,
.panel-title-row,
.race-section-head {
    gap: 12px;
}

.card-actions,
.race-hero-actions,
.stats-strip {
    gap: 8px;
}

.meter {
    height: 8px;
    background: rgba(76, 64, 51, 0.14);
}

.badge,
.action-pill,
.is-status-pill {
    border: 1px solid var(--detail-border-soft);
    line-height: 1.15;
}

.field input,
.field textarea,
.select {
    border-color: var(--line);
    background: rgba(255, 253, 249, 0.97);
}

.car-visual,
.race-item-visual,
.upgrade-visual,
.collection-part-visual,
.team-logo-mark,
.team-role-image-frame {
    border-radius: var(--compact-radius);
}

@media (max-width: 900px) {

    .garage-detail-tabs,
    .flow-filter-tabs,
    .achievement-filter-tabs,
    .city-jobs-tabs,
    .reward-tabs,
    .mission-tabs,
    .profile-tabs,
    .home-tabs,
    .race-index-tabs {
        padding: 8px;
    }

    .button,
    .nav-tab,
    .garage-detail-tab {
        min-height: 44px;
    }
}

@media (max-width: 560px) {

    .panel {
        padding: 12px;
        border-radius: 10px;
    }
}
}/* Source: public/css/source/shared/shell/game-13.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .content {
        gap: 12px;
    }
}

@media (max-width: 560px) {

    .topbar {
        border-radius: 14px;
    }
}
}/* Source: public/css/source/shared/primitives/game-39.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .ui-row-card,
    .row-card,
    .dealership-summary-card,
    .team-kpi-card,
    .team-upgrade-card,
    .resource-preview-item {
        border-radius: 8px;
    }

    .button,
    .card-actions > *,
    .race-hero-actions > * {
        width: 100%;
    }
}

.button:not(.button-danger):not(:disabled):not(.is-disabled),
.button.is-active:not(.button-danger),
.button-secondary:not(:disabled):not(.is-disabled),
.compact-button:not(:disabled):not(.is-disabled),
.announcement-notification-button:not(:disabled),
.race-pager-button:not(.is-disabled):not(:disabled),
.race-pager-number.is-active,
.launch-button:not(:disabled),
.icon-button:not(:disabled),
.page-scroll-button:not(:disabled) {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

.button-secondary:not(:disabled):not(.is-disabled):hover,
.race-pager-button:not(.is-disabled):not(:disabled):hover,
.compact-button:not(:disabled):not(.is-disabled):hover {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 6px 12px var(--action-shadow);
}

.modal-actions .button-secondary:not(:disabled),
.button[data-modal-close],
.button[data-confirm-close],
.button[data-help-close],
.button[data-image-modal-close],
.button[data-profile-name-close] {
    border-color: var(--action-border);
    background: var(--action-soft);
    color: var(--action-strong);
    box-shadow: var(--shadow-card);
}

.nav-tab.is-active,
.garage-detail-tab.is-active,
.chip.is-active,
.appearance-tab-button.is-active,
.language-switcher-option.is-active,
.race-multi-lineup-analysis-toolbar .button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}
}/* Source: public/css/source/shared/garage/game-12.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.garage-detail-tabs .garage-detail-tab {
    border-color: rgba(var(--theme-border-rgb), 0.24);
    background: rgba(255, 253, 249, 0.9);
    color: var(--muted);
    box-shadow: inset 0 -3px 0 rgba(var(--theme-border-rgb), 0.16);
}

.garage-detail-tabs .garage-detail-tab.is-active {
    border-color: rgba(var(--action-rgb), 0.42);
    background: rgba(var(--action-rgb), 0.1);
    color: var(--action-strong);
    box-shadow: inset 0 -4px 0 var(--action),
        0 8px 16px rgba(var(--action-rgb), 0.08);
}
}/* Source: public/css/source/shared/primitives/game-40.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.race-pager-count,
.race-pager-button.is-disabled,
.race-pager-button:disabled,
.race-pager-number:not(.is-active),
.badge,
.action-pill,
.is-status-pill,
.dealership-chip,
.chip:not(.is-active) {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--accent-2);
    box-shadow: none;
}

.badge.badge--count {
    border-color: rgba(var(--action-rgb), 0.28);
    background: rgba(var(--action-rgb), 0.1);
    color: var(--accent);
}

.badge.badge--info {
    border-color: rgba(var(--info-rgb), 0.26);
    background: rgba(var(--info-rgb), 0.08);
    color: var(--navy);
}

.badge.badge--active {
    border-color: rgba(var(--action-rgb), 0.46);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 6px 14px rgba(var(--action-rgb), 0.12);
}

.badge.badge--success {
    border-color: rgba(var(--success-rgb), 0.34);
    background: rgba(var(--success-rgb), 0.11);
    color: #47752c;
}

.badge.badge--warning {
    border-color: rgba(var(--warning-rgb), 0.36);
    background: rgba(var(--warning-rgb), 0.12);
    color: #97651f;
}

.badge.badge--locked {
    border-color: rgba(76, 64, 51, 0.24);
    background: rgba(76, 64, 51, 0.08);
    color: #6f5b45;
}

.badge.badge--danger {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: rgba(var(--danger-rgb), 0.1);
    color: #a7442d;
}

.badge.badge--muted {
    border-color: rgba(139, 115, 88, 0.2);
    background: rgba(139, 115, 88, 0.08);
    color: var(--muted);
}

.button:disabled,
.button.is-disabled,
.race-pager-button.is-disabled,
.race-pager-button:disabled {
    transform: none;
    opacity: 0.58;
    cursor: default;
}

body.theme-colored .profile-week-current-pill {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
    box-shadow: none;
}

body.theme-colored .profile-week-stat-grid .dealership-summary-card,
body.theme-colored .profile-week-card,
body.theme-colored .profile-week-highlights .profile-stat-card,
body.theme-colored .profile-week-cup-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .team-ranking-pill,
body.theme-colored .dealership-status-pill,
body.theme-colored .language-switcher,
body.theme-colored .nav-account-stack .language-switcher,
body.theme-colored .menu-progress,
body.theme-colored .notifications-summary-badge,
body.theme-colored .announcement-notification-count,
body.theme-colored .announcement-notification-icon {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored .language-switcher-option.is-active {
    color: var(--action-text);
}

body.theme-colored .race-item-visual.is-selected,
body.theme-colored [data-image-modal][role="button"]:focus-visible {
    outline-color: var(--selected-outline);
}

body.theme-colored input[type="checkbox"],
body.theme-colored input[type="radio"],
body.theme-colored progress {
    accent-color: var(--action);
}

body.theme-colored .chip:not(.is-active):hover {
    border-color: var(--action-border);
    color: var(--theme-text);
}

body.theme-colored .garage-detail-tab:not(.is-active):hover,
body.theme-colored .nav-tab:not(.is-active):hover {
    border-color: var(--action-border);
}
}/* Source: public/css/source/shared/racing/game-15.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-pager-number-set .race-pager-number:not(.is-active) {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--accent-2);
    box-shadow: none;
}

.race-pager-number-set .race-pager-number.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28),
        0 4px 9px var(--action-shadow);
    cursor: default;
}

.race-pager-number-set .race-pager-number:not(.is-active):hover {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 6px 12px var(--action-shadow);
}

body.theme-colored .race-pager-number-set .race-pager-number:not(.is-active):hover {
    color: var(--action-text);
}
}/* Source: public/css/source/shared/shell/game-14.css */

@layer base {/* Shared shell; game.css. Order is registered in manifest.json. */

body.theme-colored .brand-logo {
    border: 1px solid var(--theme-border-soft);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    box-shadow: 0 10px 20px var(--action-shadow);
}

body.theme-colored .header-stat,
body.theme-colored .header-stat-level {
    border-color: var(--theme-border);
}
}/* Source: public/css/source/shared/navigation/game-06.css */

@layer base {/* Shared navigation; game.css. Order is registered in manifest.json. */

body.theme-colored .nav-logout-button {
    border-color: var(--theme-border);
    color: var(--theme-text);
}
}/* Source: public/css/source/shared/home-notifications/game-14.css */

@layer base {/* Shared home-notifications; game.css. Order is registered in manifest.json. */

body.theme-colored .home-recent-race-card:has(.race-history-row-mid) {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .home-recent-race-card:has(.race-history-row-mid) .car-visual.is-compact {
    border-color: var(--theme-border-soft);
}

body.theme-colored .announcement-notification-count,
body.theme-colored .announcement-notification-icon {
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 5px 12px var(--action-shadow);
}
}/* Source: public/css/source/shared/garage/game-13.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

body.theme-colored .garage-repair-car-badge {
    border-color: rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
}
}/* Source: public/css/source/shared/primitives/game-41.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

body.theme-colored .team-upgrade-card,
body.theme-colored .team-member-row,
body.theme-colored .profile-stat-card.is-highlighted {
    border-color: var(--theme-border-muted);
}

body.theme-colored .garage-upgrade-card-grid.is-row-layout .resource-preview-item,
body.theme-colored .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item,
body.theme-colored .team-upgrade-pending {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}
}/* Source: public/css/source/shared/garage/game-14.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

body.theme-colored .garage-upgrade-card-grid.is-row-layout .upgrade-visual {
    background: var(--theme-tint-strong);
    border-color: var(--theme-border-soft);
}

body.theme-colored .garage-upgrade-card-grid.is-row-layout .resource-preview-item,
body.theme-colored .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-item {
    border-color: var(--theme-border-soft);
}

body.theme-colored .garage-multi-position-choice input:checked + span {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored .garage-upgrade-guide-table-wrap {
    border-top-color: var(--theme-outline-muted);
}

body.theme-colored .garage-upgrade-guide-table th,
body.theme-colored .garage-upgrade-guide-table td {
    border-bottom-color: var(--theme-border-hairline);
}

body.theme-colored .garage-upgrade-guide-table th {
    background: rgba(238, 245, 255, 0.92);
    color: var(--theme-text);
}
}/* Source: public/css/source/shared/teams/game-12.css */

@layer base {/* Shared teams; game.css. Order is registered in manifest.json. */

body.theme-colored .team-section-panel {
    border-color: var(--theme-border-subtle);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored .team-role-image-frame {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .team-logo-mark.is-large {
    outline: 1px solid var(--theme-outline-soft);
}

body.theme-colored .team-history-filter-tabs {
    border-color: var(--theme-border-subtle);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored .team-history-filter-tabs .garage-detail-tab:not(.is-active),
body.theme-colored .team-chat-list,
body.theme-colored .team-chat-form textarea,
body.theme-colored .team-chat-bubble {
    border-color: var(--theme-border-soft);
}

body.theme-colored .team-chat-list,
body.theme-colored .team-chat-form textarea {
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .team-chat-form textarea:focus {
    border-color: var(--theme-border);
    box-shadow: 0 0 0 3px var(--selected-outline), 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .team-chat-message.is-mine .team-chat-bubble {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
}

body.theme-colored .team-logo-mark.is-picker-preview {
    border-color: var(--theme-border-soft);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored .team-repair-visual-panel,
body.theme-colored .team-repair-main,
body.theme-colored .team-repair-summary-card,
body.theme-colored .team-repair-main .team-empty-state {
    border-color: var(--theme-border-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored .team-repair-visual-panel,
body.theme-colored .team-repair-main {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored .team-repair-step-meter {
    background: var(--theme-surface-tint);
    box-shadow: 0 0 0 1px var(--theme-border-hairline);
}

body.theme-colored .team-repair-step-meter span {
    background: linear-gradient(90deg, var(--action), var(--action-strong));
    box-shadow: 0 3px 8px var(--theme-shadow-soft);
}

body.theme-colored .team-upgrade-card,
body.theme-colored .team-upgrade-grid.is-row-layout .team-upgrade-card {
    border-color: var(--theme-border-soft);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored .team-upgrade-grid.is-row-layout .team-upgrade-image,
body.theme-colored .team-upgrade-grid.is-row-layout .team-upgrade-footer,
body.theme-colored .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .profile-stat-card {
    border-color: var(--theme-border-subtle);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored .team-upgrade-grid.is-row-layout .team-upgrade-footer {
    border-color: transparent;
    outline-color: transparent;
    background: transparent;
}

body.theme-colored .team-upgrade-level-badge {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

.team-member-row {
    border-color: var(--detail-border-soft);
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .team-role-image-frame {
    --role-frame-size: 88px;
}

.game-shell .team-repair-member-row > .team-role-image-frame {
    --role-frame-size: 88px;
}
}/* Source: public/css/source/shared/primitives/game-42.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

body.theme-colored .collection-part-visual {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
    background: var(--theme-tint-muted);
}

body.theme-colored .car-panel-full-summary-grid .dealership-summary-card,
body.theme-colored .race-active-car-summary-stats .dealership-chip,
body.theme-colored .race-multi-lineup-summary-stats .dealership-chip,
body.theme-colored .race-active-car-compact-summary .dealership-summary-card,
body.theme-colored .race-active-car-compact-breakdown .car-panel-breakdown-card,
body.theme-colored .race-multi-lineup-compact-grid .car-panel-breakdown-card,
body.theme-colored .car-panel-full-breakdown-grid .car-panel-breakdown-card,
body.theme-colored .car-panel-progress-grid .car-mastery-compact {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

.achievement-level,
.team-upgrade-level-badge {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

.game-shell :where(
.eyebrow,
.panel-title,
.dealership-card-topline,
.unlock-roadmap-title-line span,
.race-boost-copy .eyebrow,
.race-boost-pill,
.achievement-level,
.team-upgrade-level-badge,
.garage-detail-status-pill,
.race-track-mastery-card .label-row span,
.race-item-effect span,
.catalog-card-price,
.daily-gift-status
) {
    color: var(--detail-text);
}

.game-shell :where(
.profile-background-option.is-selected,
.profile-layout-choice.is-selected,
.car-appearance-card.is-selected,
.scene-theme-card.is-selected,
.race-directory-card.is-active,
.race-track-directory-card.is-active,
.rankings-filter-card.is-active,
.support-thread-link.is-active,
.friend-ranking-row.is-current,
.garage-contract-card.is-active,
.daily-gift-card.is-current-day,
.daily-gift-card.is-available,
.reward-card.is-highlighted,
.profile-stat-card.is-highlighted
) {
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

.game-shell :where(
.dealership-summary-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box
) > :where(span:first-child, small:first-child, strong:first-child),
.game-shell .team-repair-summary-card > small:first-child,
.game-shell .profile-stat-card > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
}

.game-shell :where(
.dealership-summary-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box
) > :where(strong:last-child, span:last-child, b:last-child):where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .team-repair-summary-card > strong:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .profile-stat-card > strong:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
}

.game-shell .profile-stat-card > strong:first-child {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
}

.game-shell .profile-stat-card > span:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .team-repair-summary-card > span:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.1;
}

.game-shell .car-panel-full-summary-grid .dealership-summary-card,
.game-shell .race-active-car-compact-summary .dealership-summary-card,
.game-shell .home-active-summary-grid .dealership-summary-card {
    min-height: 56px;
    padding: 10px 12px;
    gap: 4px;
}

.game-shell .car-panel-full-summary-grid .dealership-summary-card > span:first-child,
.game-shell .home-active-summary-grid .dealership-summary-card > span:first-child {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.08;
}
}/* Source: public/css/source/shared/racing/game-16.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

body.theme-colored .race-multi-lineup-car-thumb .lineup-mini-slot,
body.theme-colored .race-multi-lineup-car-thumb .car-visual.is-compact {
    border-color: var(--theme-border-soft);
}

body.theme-colored .race-selected-summary-toggle-score,
body.theme-colored .race-selected-summary-grid .race-summary-card,
body.theme-colored .race-selected-summary-meta-grid .race-summary-card,
body.theme-colored .race-selected-setup-analysis .race-summary-card {
    border-color: var(--theme-border-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .race-item-visual.is-stock {
    border-color: var(--theme-border-soft);
}

.game-shell .race-active-car-compact-summary .dealership-summary-card > span:first-child {
    font-size: 1rem;
    font-weight: 500;
}

.race-multi-lineup-accordion.race-accordion {
    padding: 0;
}
}/* Source: public/css/source/shared/cars/game-12.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .car-panel-full-head-actions .car-panel-full-actions {
        width: 100%;
    }

    .car-panel-full-head-actions .car-panel-full-actions > *,
    .car-panel-full-head-actions .car-panel-full-actions .button {
        flex: 1 1 140px;
    }
}

.game-shell :where(
.dealership-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box
) {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    border-width: 1px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: none;
    text-align: left;
}

.game-shell :where(
.dealership-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box
) > :where(span, small, strong, b) {
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell .car-panel-full-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.game-shell .car-panel-full-title-line {
    grid-template-columns: minmax(0, 1fr) minmax(138px, 150px);
    align-items: start;
}

.game-shell .car-panel-full-title-line .car-panel-garage-slots-card {
    justify-self: end;
}

.game-shell .car-panel-garage-slots-card > span:first-child {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.08;
}

.game-shell .car-panel-garage-slots-card > strong:last-child {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
}

.game-shell .car-panel-full-head-actions {
    display: flex;
    grid-column: 1;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
}

.game-shell .car-panel-full-head-actions .car-panel-full-actions {
    display: flex;
    flex-wrap: wrap;
    grid-column: auto;
    justify-content: flex-end;
    align-items: stretch;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin-left: 0;
}

.game-shell .car-panel-full-head-actions .car-panel-full-actions > *,
.game-shell .car-panel-full-head-actions .car-panel-full-actions .button {
    flex: 0 0 auto;
}

@media (max-width: 760px) {

    .game-shell .car-panel-full-title-line {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell .car-panel-full-title-line .car-panel-garage-slots-card {
        justify-self: start;
        max-width: 150px;
    }
}
}/* Source: public/css/source/shared/primitives/game-43.css */

@layer base {/* Shared primitives; game.css. Order is registered in manifest.json. */

.game-shell .car-panel-full-summary-grid .dealership-summary-card > strong:last-child,
.game-shell .race-active-car-compact-summary .dealership-summary-card > strong:last-child,
.game-shell .home-active-summary-grid .dealership-summary-card > strong:last-child {
    font-size: 1rem;
}

.game-shell form[data-confirm-type="race"] .launch-button.button {
    min-height: 67px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.game-shell .structured-action-card,
.structured-action-card {
    --structured-action-image-size: 200px;
}
}/* Source: public/css/source/shared/racing/game-17.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-multi-lineup-accordion .race-multi-lineup-summary {
    align-items: center;
}

.race-multi-lineup-accordion .race-multi-lineup-car-thumb {
    height: 100%;
}

.race-multi-lineup-accordion .race-multi-lineup-car-thumb .lineup-mini-slot {
    justify-self: start;
}

.race-multi-lineup-accordion .race-multi-lineup-car-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    line-height: 1.08;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-weight: 500;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-weight: 800;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-damage {
    grid-column: 3;
    grid-row: 1;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-score {
    grid-column: 3;
    grid-row: 2;
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.22), rgba(var(--theme-border-rgb), 0.14));
    border-color: rgba(var(--theme-border-rgb), 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
}

.game-shell .race-accordion-toggle :where(
.dealership-chip > span:first-child,
.dealership-summary-card > span:first-child,
.race-mode-stat-box > span:first-child,
.race-track-stat-box > span:first-child,
.race-selected-summary-toggle-score > span:first-child,
.lineup-mini-slot
),
.game-shell .race-accordion-toggle .dealership-chip > span:first-child,
.game-shell .race-accordion-toggle .dealership-summary-card > span:first-child,
.game-shell .race-accordion-toggle .race-selected-summary-toggle-score > span:first-child,
.game-shell .race-accordion-toggle .lineup-mini-slot {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/cars/game-13.css */

@layer base {/* Shared cars; game.css. Order is registered in manifest.json. */

.game-shell .car-panel-model-name-row {
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    align-items: center;
    justify-content: start;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.game-shell .car-panel-garage-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.game-shell .car-panel-garage-topline > .eyebrow {
    margin: 0;
    min-width: 0;
}

.game-shell .car-panel-model-name-row h2 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

.game-shell .car-panel-custom-nickname {
    color: var(--muted);
    font-weight: 700;
}

.game-shell .car-panel-garage-media-title .garage-car-name-edit-button {
    align-self: center;
}
}/* Source: public/css/source/shared/garage/game-15.css */

@layer base {/* Shared garage; game.css. Order is registered in manifest.json. */

.game-shell .garage-car-name-edit-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 1rem;
}

.game-shell .garage-run-now-button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell .upgrade-visual-frame-large,
.upgrade-visual-frame-large {
    --upgrade-visual-frame-size: 200px;
}
}/* Source: public/css/source/shared/racing/game-18.css */

@layer base {/* Shared racing; game.css. Order is registered in manifest.json. */

.race-multi-lineup-accordion .race-multi-lineup-summary {
    grid-template-columns: minmax(520px, 0.92fr) minmax(360px, 0.64fr) auto;
    gap: 10px;
    padding: 12px 14px;
}

.race-multi-lineup-accordion .race-multi-lineup-car-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: none;
}

.race-multi-lineup-accordion .race-multi-lineup-car-thumb {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
    min-height: 118px;
    padding: 6px;
    border: 1px solid rgba(var(--action-rgb), 0.32);
    border-radius: 8px;
    background: transparent;
}

.race-multi-lineup-accordion .race-multi-lineup-car-head {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.race-multi-lineup-accordion .race-multi-lineup-car-thumb .lineup-mini-slot {
    flex: 0 0 auto;
    padding: 3px 6px;
    background: transparent;
}

.race-multi-lineup-accordion .race-multi-lineup-car-name {
    min-width: 0;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.14;
    text-align: left;
    overflow-wrap: normal;
    white-space: normal;
}

.race-multi-lineup-accordion .race-multi-lineup-car-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
    min-width: 0;
}

.race-multi-lineup-accordion .race-multi-lineup-car-thumb .car-visual.is-compact {
    align-self: stretch;
    min-height: 0;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
}

.race-multi-lineup-accordion .race-multi-lineup-car-body .lineup-mini-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.race-multi-lineup-accordion .race-multi-lineup-car-body .lineup-mini-status {
    padding: 2px 5px;
    font-size: 0.63rem;
    line-height: 1.1;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 6px;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip {
    min-height: 46px;
    padding: 6px 8px;
}

.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.84rem;
}

.race-multi-lineup-accordion .race-multi-lineup-accordion-content {
    gap: 14px;
}

@media (max-width: 1320px) {

    .race-multi-lineup-accordion .race-multi-lineup-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-multi-lineup-accordion .race-multi-lineup-car-strip,
    .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 700px) {

    .race-multi-lineup-accordion .race-multi-lineup-car-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {

    .race-multi-lineup-accordion .race-multi-lineup-car-strip {
        grid-template-columns: 1fr;
    }
}

.race-active-car-accordion.race-accordion {
    padding: 0;
}

.race-active-car-accordion .race-active-car-summary {
    grid-template-columns: minmax(230px, 0.38fr) minmax(460px, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px 14px;
    overflow: visible;
}

.race-active-car-accordion .race-active-car-summary-main {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-width: 0;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.race-active-car-summary-card-head {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.race-active-car-summary-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.race-active-car-summary-card-head strong {
    min-width: 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.14;
    overflow-wrap: normal;
}

.race-active-car-summary-card-head span {
    min-width: 0;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.14;
    overflow-wrap: normal;
}

.race-active-car-summary-card-head .race-active-car-summary-card-category {
    color: var(--accent);
    font-size: var(--eyebrow-font-size);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.race-active-car-summary-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-width: 0;
}

.race-active-car-summary-visual-frame {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    padding: 8px;
    justify-self: stretch;
    min-width: 0;
    overflow: visible;
    border: 4px solid rgba(var(--action-rgb), 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 244, 0.96));
    box-shadow: 0 10px 22px rgba(58, 38, 18, 0.08);
}

.race-active-car-accordion .race-active-car-summary-visual.car-visual {
    display: block;
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    min-width: 0;
    justify-self: stretch;
    aspect-ratio: auto;
    border: 0;
    border-radius: 10px;
}

.race-active-car-status-pills {
    display: flex;
    align-items: center;
    align-content: initial;
    flex-direction: row;
    gap: 4px;
    width: auto;
    min-width: 0;
    max-width: none;
    justify-content: flex-end;
    margin-left: auto;
}

.race-active-car-status-pills .lineup-mini-status,
.race-active-car-status-pills .repair-status-badge {
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 9px;
    line-height: 1.1;
    white-space: nowrap;
}

.race-active-car-summary-card-body > .race-active-car-status-pills {
    justify-content: center;
    justify-self: center;
    margin: 2px auto 0;
}

.race-active-car-accordion .race-active-car-summary-stats {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 6px;
}

.race-active-car-accordion .race-active-car-compact-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.race-active-car-accordion .race-active-car-summary-stats .dealership-chip {
    min-height: 46px;
    padding: 6px 8px;
}

.race-active-car-accordion .race-active-car-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-active-car-accordion .race-active-car-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.84rem;
}

.race-active-car-accordion .race-active-car-summary-bars {
    grid-column: 2;
    grid-row: 2;
}

.race-active-car-accordion .race-accordion-icon {
    grid-column: 3;
    grid-row: 1 / span 2;
}

@media (max-width: 980px) {

    .race-active-car-accordion .race-active-car-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-active-car-accordion .race-active-car-summary-main,
    .race-active-car-accordion .race-active-car-summary-stats,
    .race-active-car-accordion .race-active-car-summary-bars {
        grid-column: 1 / -1;
    }

    .race-active-car-accordion .race-active-car-summary-main {
        grid-row: 1;
    }

    .race-active-car-accordion .race-active-car-summary-stats {
        grid-row: 2;
    }

    .race-active-car-accordion .race-active-car-summary-bars {
        grid-row: 3;
    }

    .race-active-car-accordion .race-accordion-icon {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}
}/* Source: public/css/source/pages/achievements/game.css */

@layer base {/* achievements: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-achievements) .achievement-row-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-achievements) .achievement-overview-stats > .stat-value-card {
    min-height: 64px;
    padding: 12px 14px;
    align-content: center;
    box-shadow: 0 8px 18px rgba(54, 44, 34, 0.035);
}

:where(.ui-page-achievements) .achievement-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

:where(.ui-page-achievements) .achievement-title-actions form {
    margin: 0;
}

:where(.ui-page-achievements) .achievement-title-actions .button {
    min-height: 44px;
    white-space: nowrap;
}

:where(.ui-page-achievements) .achievement-row-list .empty-state {
    grid-column: 1 / -1;
}

:where(.ui-page-achievements) .achievement-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
}

:where(.ui-page-achievements) .achievement-row {
    grid-template-columns: minmax(220px, 0.7fr) minmax(460px, 1.6fr) minmax(260px, 0.62fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-body > p {
    color: var(--muted);
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards > strong {
    color: var(--muted);
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack > :is(form, .button, small) {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-achievements) .achievement-row-progress {
    display: grid;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-achievements) .achievement-row-rewards {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "title"
        "rewards"
        "action"
        "note";
    gap: 8px;
    align-content: center;
    align-items: center;
    justify-items: stretch;
    min-width: 0;
    text-align: left;
}

:where(.ui-page-achievements) .achievement-row-rewards form {
    grid-area: action;
    justify-self: center;
    margin: 0;
}

:where(.ui-page-achievements) .achievement-row-rewards .button {
    justify-content: center;
    min-width: 150px;
}

:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward-list {
    grid-area: rewards;
    width: 100%;
}

:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward {
    min-height: 58px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
    text-align: left;
}

:where(.ui-page-achievements) .achievement-row-rewards .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward > span:last-child {
    font-size: 1rem;
    white-space: normal;
}

:where(.ui-page-achievements) .achievement-row-rewards small {
    grid-area: note;
    justify-self: center;
    text-align: center;
}

:where(.ui-page-achievements) .achievement-reward-preview-empty {
    justify-items: center;
}

:where(.ui-page-achievements) .achievement-card.is-complete {
    border-color: rgba(var(--success-rgb), 0.42);
    background: rgba(239, 250, 229, 0.56);
}

:where(.ui-page-achievements) .achievement-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

:where(.ui-page-achievements) .achievement-row .achievement-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

:where(.ui-page-achievements) .achievement-row .daily-gift-status {
    width: auto;
    min-width: 116px;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
    line-height: 1;
}

:where(.ui-page-achievements) .achievement-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

:where(.ui-page-achievements) .achievement-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

:where(.ui-page-achievements) .achievement-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

:where(.ui-page-achievements) .achievement-reward-preview {
    display: grid;
    gap: 8px;
}

:where(.ui-page-achievements) .achievement-reward-preview > strong {
    grid-area: title;
    color: var(--muted);
    font-size: 0.78rem;
}

:where(.ui-page-achievements) .mission-progress {
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-achievements) .tour-progress-block {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

:where(.ui-page-achievements) .daily-gift-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(var(--action-rgb), 0.12);
    font-size: 0.86rem;
    font-weight: 900;
}

:where(.ui-page-achievements) .daily-gift-reward-list {
    display: grid;
}

:where(.ui-page-achievements) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-achievements) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {

    :where(.ui-page-achievements) .achievement-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    :where(.ui-page-achievements) .achievement-reward-preview-empty {
        justify-items: start;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-achievements) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }
}

:where(.ui-page-achievements) .achievement-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-achievements) .daily-gift-reward-list {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-achievements) .achievement-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-achievements) .achievement-row {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row .daily-gift-status {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row .achievement-level {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row .daily-gift-reward {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .daily-gift-status {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row.is-active {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row.is-ready {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row.is-active .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row.is-active .achievement-level {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row.is-ready .daily-gift-status {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row .achievement-level.is-ready {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row .achievement-level.is-unlocked {
    color: #314f16;
    border-color: rgba(var(--success-rgb), 0.58);
    background: rgba(202, 226, 176, 0.96);
}

body.theme-colored:where(.ui-page-achievements) .achievement-overview-stats > .stat-value-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward {
    border-color: var(--theme-border);
    background: var(--theme-tint);
    color: var(--theme-text);
}

:where(.ui-page-achievements) .achievement-row {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-achievements) .daily-gift-status {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card {
    --structured-action-image-size: 200px;
}
}/* Source: public/css/source/pages/announcements/game.css */

@layer base {/* announcements: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-announcements) .flow-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-announcements) .flow-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-announcements) .flow-entry-main {
    display: grid;
    gap: 8px;
}

:where(.ui-page-announcements) .flow-entry-main h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
}

:where(.ui-page-announcements) .announcement-entry.is-highlighted .flow-entry-main h2 {
    color: var(--action-strong);
}

:where(.ui-page-announcements) .announcement-entry .flow-entry-head {
    align-items: flex-start;
}

:where(.ui-page-announcements) .announcements-hero {
    display: flex;
    flex-flow: row wrap;
    align-items: start;
}

:where(.ui-page-announcements) .announcements-hero .race-hero-actions {
    justify-self: end;
    justify-items: end;
    align-self: start;
    grid-template-columns: 1fr;
    min-width: min(300px, 100%);
}

:where(.ui-page-announcements) .announcements-hero .race-hero-actions .announcements-status-pill {
    justify-self: end;
}

:where(.ui-page-announcements) .announcements-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-announcements) .flow-list-panel {
    display: grid;
    gap: 16px;
}

@media (max-width: 960px) {

    :where(.ui-page-announcements) .flow-entry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-announcements) .flow-entry-main h2 {
        font-size: 1.05rem;
    }
}

body.theme-colored:where(.ui-page-announcements) .announcements-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

:where(.ui-page-announcements) .announcements-hero > * {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 100%;
}
}/* Source: public/css/source/pages/announcements-show/game.css */

@layer base {/* announcements-show: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-announcements-show) .flow-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-announcements-show) .flow-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-announcements-show) .flow-entry-main {
    display: grid;
    gap: 8px;
}

:where(.ui-page-announcements-show) .flow-entry-main h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
}

:where(.ui-page-announcements-show) .announcement-entry.is-highlighted .flow-entry-main h2 {
    color: var(--action-strong);
}

:where(.ui-page-announcements-show) .announcement-entry .flow-entry-head {
    align-items: flex-start;
}

:where(.ui-page-announcements-show) .announcements-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

:where(.ui-page-announcements-show) .announcements-hero .race-hero-actions {
    justify-self: end;
    justify-items: end;
    align-self: start;
    grid-template-columns: 1fr;
    min-width: min(300px, 100%);
}

:where(.ui-page-announcements-show) .announcements-hero .race-hero-actions .announcements-status-pill {
    justify-self: end;
}

:where(.ui-page-announcements-show) .announcements-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-announcements-show) .flow-list-panel {
    display: grid;
    gap: 16px;
}

@media (max-width: 960px) {

    :where(.ui-page-announcements-show) .flow-entry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-announcements-show) .flow-entry-main h2 {
        font-size: 1.05rem;
    }
}

body.theme-colored:where(.ui-page-announcements-show) .announcements-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}
}/* Source: public/css/source/pages/auth-compatibility/game.css */

@layer base {/* auth-compatibility: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-compatibility) .info-shell {
    display: grid;
    gap: 14px;
    padding-bottom: 28px;
}

:where(.ui-page-auth-compatibility) .info-hero-panel {
    min-height: 230px;
    display: grid;
    align-content: center;
    gap: 12px;
}

:where(.ui-page-auth-compatibility) .info-hero-panel h1 {
    max-width: 980px;
    margin: 0;
}

:where(.ui-page-auth-compatibility) .info-hero-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

:where(.ui-page-auth-compatibility) .info-copy-panel p {
    max-width: 88ch;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

:where(.ui-page-auth-compatibility) .info-hero-panel p {
    max-width: 124ch;
}

:where(.ui-page-auth-compatibility) .info-copy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

:where(.ui-page-auth-compatibility) .compatibility-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.5;
}

:where(.ui-page-auth-compatibility) .info-hero-panel h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 960px) {

    :where(.ui-page-auth-compatibility) .info-copy-panel {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/auth-forgot-password/game.css */

@layer base {/* auth-forgot-password: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-forgot-password) .auth-form {
    display: grid;
    gap: 12px;
}

:where(.ui-page-auth-forgot-password) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-forgot-password) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}
}/* Source: public/css/source/pages/auth-info/game.css */

@layer base {/* auth-info: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-info) .info-shell {
    display: grid;
    gap: 14px;
    padding-bottom: 28px;
}

:where(.ui-page-auth-info) .info-hero-panel {
    min-height: 230px;
    display: grid;
    align-content: center;
    gap: 12px;
}

:where(.ui-page-auth-info) .info-hero-panel h1 {
    max-width: 980px;
    margin: 0;
}

:where(.ui-page-auth-info) .info-hero-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

:where(.ui-page-auth-info) .info-copy-panel p {
    max-width: 88ch;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

:where(.ui-page-auth-info) .info-promise-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

:where(.ui-page-auth-info) .info-hero-panel p {
    max-width: 124ch;
}

:where(.ui-page-auth-info) .info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

:where(.ui-page-auth-info) .info-hero-footer {
    margin-top: 2px;
}

:where(.ui-page-auth-info) .info-hero-footer .auth-legal-links {
    max-width: none;
}

:where(.ui-page-auth-info) .info-copy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

:where(.ui-page-auth-info) .info-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-auth-info) .info-feature-card {
    min-height: 178px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1.5px solid rgba(var(--theme-border-rgb), 0.34);
    border-radius: 14px;
    background: rgba(255, 251, 246, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

:where(.ui-page-auth-info) .info-feature-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.15;
}

:where(.ui-page-auth-info) .info-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

:where(.ui-page-auth-info) .info-promise-panel p {
    max-width: none;
}

:where(.ui-page-auth-info) .info-promise-panel h2 {
    margin: 0;
}

:where(.ui-page-auth-info) .info-feature-panel h2 {
    margin: 0;
}

:where(.ui-page-auth-info) .info-hero-panel h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 1240px) {

    :where(.ui-page-auth-info) .info-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {

    :where(.ui-page-auth-info) .info-copy-panel {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-auth-info) .info-feature-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/auth-landing/game.css */

@layer base {/* auth-landing: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-landing) .public-landing {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 48px);
    background: transparent;
}

:where(.ui-page-auth-landing) .public-landing-inner {
    width: min(980px, 100%);
    display: grid;
    justify-items: center;
    gap: clamp(16px, 2.2vw, 26px);
    text-align: center;
}

:where(.ui-page-auth-landing) .public-landing-language {
    width: min(920px, 100%);
    display: flex;
    justify-content: flex-end;
}

:where(.ui-page-auth-landing) .public-landing-language .language-switcher {
    background: rgba(255, 247, 236, 0.9);
}

:where(.ui-page-auth-landing) .public-landing-logo {
    width: min(760px, 88vw);
    height: auto;
    max-height: 410px;
    object-fit: contain;
}

:where(.ui-page-auth-landing) .public-landing-actions {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-auth-landing) .public-landing-button {
    min-height: 124px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 18px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.92);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: background 0.16s ease, box-shadow 0.16s ease;
    -webkit-user-drag: none;
    user-select: none;
}

:where(.ui-page-auth-landing) .public-landing-button:hover {
    background: rgba(255, 255, 253, 0.98);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:where(.ui-page-auth-landing) .public-landing-button:focus-visible {
    background: rgba(255, 255, 253, 0.98);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:where(.ui-page-auth-landing) .public-landing-button.is-primary {
    background: linear-gradient(180deg, rgba(255, 158, 61, 0.96), rgba(var(--action-rgb), 0.96));
    color: #fff8ef;
    border-color: rgba(var(--theme-border-rgb), 0.32);
}

:where(.ui-page-auth-landing) .public-landing-button span {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.05;
}

:where(.ui-page-auth-landing) .public-landing-button small {
    width: 100%;
    max-width: 14ch;
    color: currentColor;
    opacity: 0.76;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

:where(.ui-page-auth-landing) .public-landing-copy {
    max-width: 76ch;
    margin: 0;
    padding: 0 8px;
    color: #7a461f;
    font-size: clamp(1rem, 0.35vw + 0.95rem, 1.18rem);
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(255, 248, 239, 0.82);
}

:where(.ui-page-auth-landing) .public-landing-version {
    margin: -6px 0 0;
    color: rgba(122, 70, 31, 0.68);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
}

@media (max-width: 920px) {

    :where(.ui-page-auth-landing) .public-landing-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-auth-landing) .public-landing-button:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-auth-landing) .public-landing {
        align-items: start;
        padding: 16px 12px 28px;
    }

    :where(.ui-page-auth-landing) .public-landing-inner {
        gap: 14px;
    }

    :where(.ui-page-auth-landing) .public-landing-language {
        justify-content: center;
    }

    :where(.ui-page-auth-landing) .public-landing-logo {
        width: min(460px, 96vw);
        max-height: 250px;
    }

    :where(.ui-page-auth-landing) .public-landing-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    :where(.ui-page-auth-landing) .public-landing-button {
        grid-column: auto;
        min-height: 88px;
    }

    :where(.ui-page-auth-landing) .public-landing-button:last-child {
        grid-column: auto;
        min-height: 88px;
    }
}
}/* Source: public/css/source/pages/auth-login/game.css */

@layer base {/* auth-login: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-login) .auth-layout {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
    justify-content: center;
}

:where(.ui-page-auth-login) .auth-layout-login {
    grid-template-columns: minmax(0, 480px) minmax(280px, 360px);
}

:where(.ui-page-auth-login) .auth-layout .auth-card {
    width: 100%;
    gap: 14px;
}

:where(.ui-page-auth-login) .auth-layout .auth-form {
    gap: 9px;
}

:where(.ui-page-auth-login) .auth-layout .auth-field {
    gap: 5px;
}

:where(.ui-page-auth-login) .auth-layout .auth-field span {
    font-size: 0.78rem;
}

:where(.ui-page-auth-login) .auth-layout .auth-field input {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 14px;
}

:where(.ui-page-auth-login) .auth-info-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

:where(.ui-page-auth-login) .auth-info-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.08;
}

:where(.ui-page-auth-login) .auth-info-card .social-auth-grid {
    justify-content: stretch;
    grid-template-columns: 1fr;
}

:where(.ui-page-auth-login) .auth-side-button {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-auth-login) .auth-form {
    display: grid;
    gap: 12px;
}

:where(.ui-page-auth-login) .auth-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

:where(.ui-page-auth-login) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-login) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 640px) {

    :where(.ui-page-auth-login) .auth-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    :where(.ui-page-auth-login) .auth-layout-login {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    :where(.ui-page-auth-login) .auth-info-card {
        gap: 12px;
    }

    :where(.ui-page-auth-login) .auth-info-card h2 {
        font-size: 1.35rem;
    }
}
}/* Source: public/css/source/pages/auth-media/game.css */

@layer base {/* auth-media: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-media) .media-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 220px);
    padding-bottom: 28px;
}

:where(.ui-page-auth-media) .media-panel {
    width: min(1100px, 100%);
    display: grid;
    gap: 18px;
}

:where(.ui-page-auth-media) .media-title-row {
    align-items: flex-start;
}

:where(.ui-page-auth-media) .media-title-row h1 {
    margin: 0;
    font-size: clamp(1.45rem, 1.2vw + 1rem, 2.1rem);
}

:where(.ui-page-auth-media) .media-title-row p {
    max-width: none;
    margin: 8px 0 0;
}

:where(.ui-page-auth-media) .media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-auth-media) .media-gallery-item {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: zoom-in;
}

:where(.ui-page-auth-media) .media-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.18s ease;
}

:where(.ui-page-auth-media) .media-gallery-item span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    color: #9d5f16;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 10px 22px rgba(45, 31, 18, 0.12);
}

:where(.ui-page-auth-media) .media-gallery-item:focus-visible {
    outline: 3px solid rgba(var(--action-rgb), 0.4);
    outline-offset: 3px;
}

@media (max-width: 960px) {

    :where(.ui-page-auth-media) .media-title-row {
        display: grid;
        gap: 12px;
    }

    :where(.ui-page-auth-media) .media-gallery-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/auth-register/game.css */

@layer base {/* auth-register: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-register) .auth-layout {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
    justify-content: center;
}

:where(.ui-page-auth-register) .auth-layout .auth-card {
    width: 100%;
    gap: 14px;
}

:where(.ui-page-auth-register) .auth-layout .auth-form {
    gap: 9px;
}

:where(.ui-page-auth-register) .auth-layout .auth-field {
    gap: 5px;
}

:where(.ui-page-auth-register) .auth-layout .auth-field span {
    font-size: 0.78rem;
}

:where(.ui-page-auth-register) .auth-layout .auth-field input {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 14px;
}

:where(.ui-page-auth-register) .auth-layout .auth-legal-copy {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.34;
}

:where(.ui-page-auth-register) .auth-info-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

:where(.ui-page-auth-register) .auth-info-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.08;
}

:where(.ui-page-auth-register) .auth-info-card .social-auth-grid {
    justify-content: stretch;
    grid-template-columns: 1fr;
}

:where(.ui-page-auth-register) .auth-side-button {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-auth-register) .auth-legal-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

:where(.ui-page-auth-register) .auth-legal-copy a {
    color: var(--accent-strong);
    font-weight: 900;
}

:where(.ui-page-auth-register) .auth-form {
    display: grid;
    gap: 12px;
}

:where(.ui-page-auth-register) .auth-social-hint {
    margin: -6px 0 0;
}

:where(.ui-page-auth-register) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-register) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 640px) {

    :where(.ui-page-auth-register) .auth-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    :where(.ui-page-auth-register) .auth-info-card {
        gap: 12px;
    }

    :where(.ui-page-auth-register) .auth-info-card h2 {
        font-size: 1.35rem;
    }
}
}/* Source: public/css/source/pages/auth-register-options/game.css */

@layer base {/* auth-register-options: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-register-options) .auth-choice-card {
    width: min(760px, 100%);
}

:where(.ui-page-auth-register-options) .auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-auth-register-options) .auth-choice-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    align-items: start;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.96);
    color: inherit;
    box-shadow: 0 14px 26px rgba(var(--theme-shadow-rgb), 0.08);
    user-select: none;
}

:where(.ui-page-auth-register-options) .auth-choice-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: #fff8ef;
    font-weight: 900;
}

:where(.ui-page-auth-register-options) .auth-choice-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

:where(.ui-page-auth-register-options) .auth-choice-main strong {
    font-size: 1.06rem;
    line-height: 1.14;
}

:where(.ui-page-auth-register-options) .auth-choice-main span {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

:where(.ui-page-auth-register-options) .auth-choice-action {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    min-height: 42px;
    -webkit-user-drag: none;
    user-select: none;
}

:where(.ui-page-auth-register-options) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-register-options) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 640px) {

    :where(.ui-page-auth-register-options) .auth-choice-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-auth-register-options) .auth-choice-option {
        padding: 16px;
    }
}
}/* Source: public/css/source/pages/auth-registration-closed/game.css */

@layer base {/* auth-registration-closed: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-registration-closed) .auth-choice-card {
    width: min(760px, 100%);
}

:where(.ui-page-auth-registration-closed) .auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-auth-registration-closed) .auth-choice-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    align-items: start;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.96);
    color: inherit;
    box-shadow: 0 14px 26px rgba(var(--theme-shadow-rgb), 0.08);
    user-select: none;
}

:where(.ui-page-auth-registration-closed) .auth-choice-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: #fff8ef;
    font-weight: 900;
}

:where(.ui-page-auth-registration-closed) .auth-choice-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

:where(.ui-page-auth-registration-closed) .auth-choice-main strong {
    font-size: 1.06rem;
    line-height: 1.14;
}

:where(.ui-page-auth-registration-closed) .auth-choice-main span {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

:where(.ui-page-auth-registration-closed) .auth-choice-action {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    min-height: 42px;
    -webkit-user-drag: none;
    user-select: none;
}

@media (max-width: 640px) {

    :where(.ui-page-auth-registration-closed) .auth-choice-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-auth-registration-closed) .auth-choice-option {
        padding: 16px;
    }
}
}/* Source: public/css/source/pages/auth-reset-password/game.css */

@layer base {/* auth-reset-password: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-reset-password) .auth-form {
    display: grid;
    gap: 12px;
}

:where(.ui-page-auth-reset-password) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-reset-password) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}
}/* Source: public/css/source/pages/auth-verify-registration/game.css */

@layer base {/* auth-verify-registration: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-auth-verify-registration) .auth-form {
    display: grid;
    gap: 12px;
}

:where(.ui-page-auth-verify-registration) .auth-resend-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

:where(.ui-page-auth-verify-registration) .auth-resend-form {
    display: grid;
    gap: 7px;
}

:where(.ui-page-auth-verify-registration) .auth-resend-button {
    min-height: 44px;
}

:where(.ui-page-auth-verify-registration) .auth-resend-hint {
    text-align: center;
}

:where(.ui-page-auth-verify-registration) .auth-switch {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-auth-verify-registration) .auth-switch a {
    color: var(--accent);
    font-weight: 700;
}
}/* Source: public/css/source/pages/city-jobs/game.css */

@layer base {/* city-jobs: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-city-jobs) .mission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 12px;
}

:where(.ui-page-city-jobs) .mission-grid .daily-gift-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
}

:where(.ui-page-city-jobs) .mission-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:where(.ui-page-city-jobs) .mission-card.is-claimed {
    border-color: rgba(var(--info-rgb), 0.28);
    background: rgba(246, 250, 255, 0.88);
}

:where(.ui-page-city-jobs) .mission-card.is-locked {
    border-color: rgba(var(--warning-rgb), 0.28);
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 253, 249, 0.96));
}

:where(.ui-page-city-jobs) .mission-card.is-claimed .daily-gift-status {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, #ff9d3d, #ed7c24);
    color: #fff7ec;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.55fr) minmax(150px, 0.26fr);
    grid-template-areas: "head progress action"
        "copy progress action"
        "rewards rewards action";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card .daily-gift-card-head {
    grid-area: head;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card .daily-gift-status {
    min-width: 116px;
    min-height: 34px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > p {
    grid-area: copy;
    align-self: start;
    margin: 0;
    font-size: 0.88rem;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-progress {
    grid-area: progress;
    align-self: center;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-progress .label-row {
    margin-bottom: 4px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward-list {
    grid-area: rewards;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-content: center;
    gap: 6px;
    max-width: none;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward {
    min-height: 58px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-size: 1rem;
    white-space: normal;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > .button {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > form .button {
    min-height: 44px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > .button {
    min-height: 44px;
}

:where(.ui-page-city-jobs) .mission-card > form {
    margin-top: auto;
}

:where(.ui-page-city-jobs) .mission-card > .button {
    margin-top: auto;
}

:where(.ui-page-city-jobs) .mission-card > form .button {
    width: 100%;
}

:where(.ui-page-city-jobs) .mission-card > .button {
    width: 100%;
}

:where(.ui-page-city-jobs) .city-jobs-hero-title-row .garage-hourglass-stock-pill {
    flex: 0 0 auto;
}

:where(.ui-page-city-jobs) .city-job-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
    color: var(--text);
    display: grid;
    align-content: center;
    gap: 8px;
    line-height: 1.1;
}

:where(.ui-page-city-jobs) .city-job-unlock-note {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(var(--warning-rgb), 0.28);
    border-radius: 12px;
    background: rgba(255, 248, 239, 0.86);
    color: var(--accent-2);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

:where(.ui-page-city-jobs) .daily-gift-card.city-job-active-card {
    margin-bottom: 16px;
    min-height: auto;
    height: auto;
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

:where(.ui-page-city-jobs) .city-job-active-card.daily-gift-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    align-self: start;
}

:where(.ui-page-city-jobs) .city-job-active-card .tour-progress-block {
    grid-area: progress;
    min-height: 0;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-card-head {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 14px;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-duration-pill {
    width: auto;
    min-width: 142px;
    max-width: max-content;
    justify-self: end;
}

:where(.ui-page-city-jobs) .city-job-active-card .eyebrow {
    font-weight: 500;
}

:where(.ui-page-city-jobs) .city-job-active-card h3 {
    font-weight: 500;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-duration-pill {
    font-weight: 500;
}

:where(.ui-page-city-jobs) .city-job-active-card .label-row {
    font-weight: 500;
}

:where(.ui-page-city-jobs) .city-job-active-card .label-row strong {
    font-weight: 500;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward-list {
    grid-area: rewards;
    width: 100%;
    justify-items: stretch;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta {
    grid-area: rewards;
    display: grid;
    gap: 12px;
    align-items: center;
    width: 100%;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta.is-ready {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta.is-running {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > :is(.daily-gift-status, .daily-gift-reward, form) {
    width: 100%;
    max-width: none;
    min-height: 72px;
    align-self: center;
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > form {
    display: flex;
    align-items: center;
    justify-self: stretch;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > form .button {
    width: 100%;
    min-height: 72px;
    justify-content: center;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward {
    width: auto;
    min-width: 220px;
    max-width: min(360px, 100%);
    padding-right: 14px;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward.city-job-reward-bundle {
    width: 100%;
    max-width: none;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward.city-job-active-resource-box {
    align-items: flex-start;
    min-height: 72px;
    padding: 8px 10px;
}

:where(.ui-page-city-jobs) .city-job-active-card > form {
    grid-area: action;
    margin-top: 0;
    justify-self: end;
}

:where(.ui-page-city-jobs) .city-job-active-card .button {
    width: auto;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 14px;
    justify-self: start;
    font-size: 0.82rem;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card {
    min-height: 0;
    --city-job-cell-height: 70px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 132px minmax(250px, 0.58fr) minmax(285px, 0.66fr) minmax(140px, 0.28fr);
    grid-template-areas: "head time cost reward action"
        "copy time cost reward action";
    align-items: center;
    gap: 12px 18px;
    padding: 12px 14px;
}

:where(.ui-page-city-jobs) .city-job-card.is-completed {
    border-color: rgba(var(--success-rgb), 0.3);
    background: rgba(244, 252, 237, 0.86);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-card-head {
    grid-area: head;
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > p {
    grid-area: copy;
    align-self: start;
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-duration-pill {
    grid-area: time;
    width: 100%;
    align-self: stretch;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list {
    display: contents;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:first-child {
    grid-area: cost;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:last-child {
    grid-area: reward;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward {
    min-height: var(--city-job-cell-height);
    height: 100%;
    max-width: none;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > .button {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-content: start;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-cost-bundle {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    min-width: min(360px, 100%);
    padding: 26px 10px 7px;
    position: relative;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-reward-bundle {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    min-width: min(360px, 100%);
    padding: 26px 10px 7px;
    position: relative;
}

:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward.city-job-reward-bundle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: min(360px, 100%);
    position: relative;
    align-content: flex-start;
    min-height: 0;
    padding: 8px 10px;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-cost-bundle {
    align-items: flex-start;
    justify-content: flex-start;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-reward-bundle {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-cost-bundle {
    flex-direction: row;
    gap: 7px 16px;
}

:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward.city-job-reward-bundle {
    flex-direction: column;
}

:where(.ui-page-city-jobs) .resources-grid.city-job-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

:where(.ui-page-city-jobs) .resources-grid.city-job-shop-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-city-jobs) .city-job-shop-card {
    align-content: start;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(250px, 0.62fr) minmax(250px, 0.62fr) minmax(180px, 0.34fr);
    grid-template-areas: "meta value cost action"
        "copy value cost action";
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-meta {
    grid-area: meta;
    align-self: end;
    display: grid;
    gap: 2px;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card h3 {
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card p {
    grid-area: copy;
    align-self: start;
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward-list {
    display: contents;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-value {
    grid-area: value;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-cost {
    grid-area: cost;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
    min-height: 62px;
    height: 100%;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .button {
    width: 100%;
    min-height: 62px;
    justify-content: flex-start;
    text-align: left;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-self: stretch;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions form {
    grid-area: auto;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 8px;
    gap: 6px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

:where(.ui-page-city-jobs) .resource-card.city-job-shop-card h3 {
    font-size: 1.08rem;
    line-height: 1.15;
    overflow-wrap: normal;
}

:where(.ui-page-city-jobs) .resource-card.city-job-shop-card p {
    font-size: 1rem;
    line-height: 1.35;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 0.86rem;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward.city-job-shop-value {
    padding-left: 8px;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward > span:last-child {
    display: grid;
    gap: 2px;
    align-content: center;
    white-space: normal;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
}

:where(.ui-page-city-jobs) .city-job-shop-card form {
    margin-top: auto;
    justify-self: start;
}

:where(.ui-page-city-jobs) .resource-card.city-job-shop-card .button {
    width: auto;
    min-height: 40px;
    border-radius: 12px;
    padding: 10px 16px;
    justify-self: start;
    font-size: 0.9rem;
}

:where(.ui-page-city-jobs) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions {
    align-self: stretch;
    align-content: center;
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    grid-template-columns: none;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-actions {
    gap: 10px;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-actions .button {
    min-height: 52px;
    min-width: 210px;
    width: auto;
    border-radius: 14px;
    padding-inline: 10px;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job {
    grid-area: job;
    display: grid;
    align-items: stretch;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card {
    min-width: 0;
    min-height: 0;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.15;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

:where(.ui-page-city-jobs) .garage-hourglass-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    vertical-align: middle;
}

:where(.ui-page-city-jobs) .garage-hourglass-stock-pill .button-resource-icon {
    width: 1.3em;
    height: 1.3em;
}

@media (max-width: 1180px) {

    :where(.ui-page-city-jobs) .garage-upgrade-inline-job {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass {
        padding-left: 6px;
        border-left: 0;
    }
}

:where(.ui-page-city-jobs) .garage-upgrade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-city-jobs) .garage-upgrade-actions form {
    width: 100%;
}

:where(.ui-page-city-jobs) .garage-upgrade-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
}

:where(.ui-page-city-jobs) .resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

:where(.ui-page-city-jobs) .resource-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-city-jobs) .resource-card h3 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.05;
}

:where(.ui-page-city-jobs) .resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

:where(.ui-page-city-jobs) .resource-card form {
    margin-top: 4px;
}

:where(.ui-page-city-jobs) .resource-card .button {
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    font-size: 1.05rem;
}

:where(.ui-page-city-jobs) .resource-card.is-danger {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 234, 0.98));
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}

:where(.ui-page-city-jobs) .daily-gift-card:nth-child(7) {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
}

:where(.ui-page-city-jobs) .daily-gift-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-city-jobs) .daily-gift-card.is-available {
    border-color: rgba(var(--action-rgb), 1);
    box-shadow: 0 18px 40px rgba(var(--action-rgb), 0.1);
}

:where(.ui-page-city-jobs) .daily-gift-card.is-current-day {
    border-color: rgba(var(--action-rgb), 0.9);
    background: linear-gradient(180deg, rgba(255, 244, 226, 0.98), rgba(255, 250, 242, 0.98));
    box-shadow: inset 0 0 0 2px rgba(var(--action-rgb), 0.16),
        0 16px 30px rgba(var(--theme-shadow-rgb), 0.14);
}

:where(.ui-page-city-jobs) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, #ff9d3d, #ed7c24);
    color: #fff7ec;
}

:where(.ui-page-city-jobs) .daily-gift-card.is-claimed {
    border-color: rgba(var(--success-rgb), 0.3);
    background: rgba(244, 252, 237, 0.86);
}

:where(.ui-page-city-jobs) .daily-gift-card.is-missed {
    opacity: 0.74;
}

:where(.ui-page-city-jobs) .daily-gift-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
}

:where(.ui-page-city-jobs) .daily-gift-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

:where(.ui-page-city-jobs) .daily-gift-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(var(--action-rgb), 0.12);
    font-size: 0.86rem;
    font-weight: 900;
}

:where(.ui-page-city-jobs) .city-job-duration-pill {
    min-width: 86px;
    min-height: 38px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    font-size: 0.78rem;
    line-height: 1;
}

:where(.ui-page-city-jobs) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-city-jobs) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box strong {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

@media (max-width: 1240px) {

    :where(.ui-page-city-jobs) .daily-gift-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        align-self: stretch;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-city-jobs) .resources-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .mission-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card {
        grid-template-columns: 1fr;
        grid-template-areas: "head"
            "copy"
            "progress"
            "rewards"
            "action";
    }

    :where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card {
        grid-template-columns: 1fr;
        grid-template-areas: "head"
            "time"
            "copy"
            "cost"
            "reward"
            "action";
    }

    :where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card {
        grid-template-columns: 1fr;
        grid-template-areas: "meta"
            "copy"
            "value"
            "cost"
            "action";
    }
}

@media (max-width: 900px) {

    :where(.ui-page-city-jobs) .resource-card {
        min-width: 0;
    }

    :where(.ui-page-city-jobs) .daily-gift-card {
        min-width: 0;
    }

    :where(.ui-page-city-jobs) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-city-jobs) .resource-card {
        padding: 12px;
    }

    :where(.ui-page-city-jobs) .daily-gift-card {
        padding: 12px;
    }
}

:where(.ui-page-city-jobs) .resource-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-city-jobs) .daily-gift-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-city-jobs) .resource-card p {
    line-height: 1.45;
}

@media (max-width: 560px) {

    :where(.ui-page-city-jobs) .resource-card {
        border-radius: 8px;
    }

    :where(.ui-page-city-jobs) .daily-gift-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-city-jobs) .mission-card.is-locked {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-card.is-highlighted {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-status {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-reward.city-job-cost-bundle {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box {
    border-color: var(--theme-border-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-card.is-available {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-card.is-current-day {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-city-jobs) .daily-gift-card.is-available .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-city-jobs) .daily-gift-status {
    color: var(--detail-text);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.daily-gift-card {
    --city-job-cell-height: 64px;
    grid-template-columns: minmax(250px, 1fr) minmax(130px, 0.24fr) minmax(205px, 0.5fr) minmax(240px, 0.58fr) minmax(124px, 0.24fr);
    gap: 10px 18px;
    padding: 12px 14px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-duration-pill {
    min-height: var(--city-job-cell-height);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-cost-bundle {
    min-height: var(--city-job-cell-height);
    min-width: 0;
    padding-inline: 10px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-reward-bundle {
    min-height: var(--city-job-cell-height);
    min-width: 0;
    padding-inline: 10px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > form .button {
    min-height: var(--city-job-cell-height);
    padding-inline: 10px;
    justify-content: center;
    text-align: center;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > .button {
    min-height: var(--city-job-cell-height);
    padding-inline: 10px;
    justify-content: center;
    text-align: center;
}
}/* Source: public/css/source/pages/collections/game.css */

@layer base {/* collections: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-collections) .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

:where(.ui-page-collections) .stats-grid div {
    display: grid;
    gap: 4px;
}

:where(.ui-page-collections) .stats-grid strong {
    font-size: 1.35rem;
}

:where(.ui-page-collections) .stats-grid span {
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
}

:where(.ui-page-collections) .collection-list {
    display: grid;
    gap: 14px;
}

:where(.ui-page-collections) .collection-overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    margin: 16px 0;
}

:where(.ui-page-collections) .collection-overview-stats > .stat-value-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.76);
    align-content: start;
    justify-items: start;
    box-shadow: 0 8px 18px rgba(54, 44, 34, 0.035);
}

:where(.ui-page-collections) .collection-bonus-stats > .resource-metric-chip {
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.76);
    align-content: start;
    justify-items: start;
    box-shadow: 0 8px 18px rgba(54, 44, 34, 0.035);
}

:where(.ui-page-collections) .collection-overview-stats > .stat-value-card {
    min-height: 60px;
    padding: 10px 8px;
}

:where(.ui-page-collections) .collection-filter-tabs {
    justify-content: flex-start;
    margin: 12px 0 14px;
}

:where(.ui-page-collections) .collection-filter-tabs .collection-completed-toggle {
    width: fit-content;
}

:where(.ui-page-collections) .collection-empty-state {
    display: grid;
    gap: 8px;
}

:where(.ui-page-collections) .collection-empty-state h2 {
    margin: 0;
}

:where(.ui-page-collections) .collection-empty-state p {
    margin: 0;
}

:where(.ui-page-collections) .stats-strip.collection-overview-stats > .stat-value-card > span {
    font-size: 0.88rem;
    hyphens: none;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-collections) .stats-strip.collection-overview-stats > .stat-value-card > strong {
    margin-top: 6px;
}

:where(.ui-page-collections) .collection-bonus-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

:where(.ui-page-collections) .collection-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.04);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-collections) .collection-card-summary {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

:where(.ui-page-collections) .collection-card-summary h2 {
    margin: 0;
}

:where(.ui-page-collections) .collection-card-summary p {
    margin: 0;
}

:where(.ui-page-collections) .collection-card-summary h2 {
    font-size: 1.18rem;
    line-height: 1.12;
}

:where(.ui-page-collections) .collection-card-summary p {
    font-size: 0.88rem;
    line-height: 1.38;
}

:where(.ui-page-collections) .collection-card-ready {
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
}

:where(.ui-page-collections) .collection-reward-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

:where(.ui-page-collections) .collection-reward-line > .resource-metric-chip {
    align-content: center;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

:where(.ui-page-collections) .collection-ready-card > .resource-metric-chip {
    align-content: center;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

:where(.ui-page-collections) .collection-completed-card > .resource-metric-chip {
    align-content: center;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

:where(.ui-page-collections) .collection-ready-card {
    display: grid;
    min-width: 0;
}

:where(.ui-page-collections) .collection-completed-card {
    display: grid;
    min-width: 0;
}

:where(.ui-page-collections) .collection-reward-line > .resource-metric-chip {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
}

:where(.ui-page-collections) .collection-ready-card > .resource-metric-chip {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
}

:where(.ui-page-collections) .collection-completed-card > .resource-metric-chip {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
}

:where(.ui-page-collections) .collection-progress-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

:where(.ui-page-collections) .collection-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

:where(.ui-page-collections) .collection-progress-head span {
    min-width: 0;
    line-height: 1.12;
}

:where(.ui-page-collections) .collection-progress-head strong {
    min-width: 0;
    line-height: 1.12;
}

:where(.ui-page-collections) .collection-progress-head span {
    color: var(--muted);
    font-weight: 700;
}

:where(.ui-page-collections) .collection-progress-head strong {
    color: var(--theme-text, var(--text));
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

:where(.ui-page-collections) .collection-progress-meter {
    height: 10px;
    min-height: 10px;
}

:where(.ui-page-collections) .collection-card-controls {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(200px, 0.8fr) minmax(200px, 0.8fr) minmax(300px, 1.45fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-collections) .collection-card-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

:where(.ui-page-collections) .collection-card-action {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
}

:where(.ui-page-collections) .collection-card-action .button {
    width: auto;
    min-width: 160px;
    min-height: 64px;
    padding: 12px 18px;
    border-radius: 14px;
    white-space: nowrap;
}

:where(.ui-page-collections) .collection-part-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

:where(.ui-page-collections) .collection-part-item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    align-items: start;
    justify-items: center;
    min-height: 232px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.32);
    background: rgba(255, 251, 246, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 186, 102, 0.16);
}

:where(.ui-page-collections) .collection-part-main {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

:where(.ui-page-collections) .collection-part-main span {
    min-width: 0;
    width: 100%;
    color: var(--text);
    line-height: 1.18;
    font-weight: 500;
    font-size: 0.8rem;
}

:where(.ui-page-collections) .collection-part-quantity {
    justify-self: center;
    align-self: end;
    color: var(--text);
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 960px) {

    :where(.ui-page-collections) .collection-card-controls {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-collections) .collection-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-collections) .collection-part-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    :where(.ui-page-collections) .collection-card-action {
        width: 100%;
    }

    :where(.ui-page-collections) .collection-card-action .button {
        width: 100%;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-collections) .collection-part-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-collections) .collection-part-item {
        min-height: 186px;
        padding: 10px;
    }
}

:where(.ui-page-collections) .stats-grid {
    gap: 8px;
}

body.theme-colored:where(.ui-page-collections) .collection-card {
    border-color: var(--theme-outline-soft);
    outline-color: var(--theme-border-subtle);
    box-shadow: 0 10px 24px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-collections) .collection-card-ready {
    border-color: var(--theme-border);
    outline-color: var(--theme-outline-soft);
    background: var(--theme-selected-surface);
}

body.theme-colored:where(.ui-page-collections) .collection-overview-stats > .stat-value-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-collections) .collection-bonus-stats > .resource-metric-chip {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-collections) .collection-reward-line > .resource-metric-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-collections) .collection-ready-card > .resource-metric-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-collections) .collection-completed-card > .resource-metric-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-collections) .collection-progress-card {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-collections) .collection-part-item {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--theme-text);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

:where(.ui-page-collections) .collection-part-item.is-owned {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.24), rgba(var(--action-rgb), 0.12)),
        rgba(255, 251, 246, 0.96);
    border-color: rgba(var(--action-rgb), 0.7);
    outline: 2px solid rgba(var(--action-rgb), 0.18);
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.28), 0 10px 20px rgba(var(--action-rgb), 0.10);
}

body.theme-colored:where(.ui-page-collections) .collection-part-item.is-owned {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.24), rgba(var(--action-rgb), 0.12)),
        rgba(255, 251, 246, 0.96);
    border-color: rgba(var(--action-rgb), 0.7);
    outline: 2px solid rgba(var(--action-rgb), 0.18);
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.28), 0 10px 20px rgba(var(--action-rgb), 0.10);
}
}/* Source: public/css/source/pages/cups/game.css */

@layer base {/* cups: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-cups) .profile-cup-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-cups) .profile-cup-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-cups) .profile-cup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-cups) .profile-cup-grid .profile-cup-row {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
}

:where(.ui-page-cups) .profile-cup-grid .profile-cup-image {
    width: 100%;
}

:where(.ui-page-cups) .profile-cup-grid .profile-cup-fallback {
    width: 100%;
}

:where(.ui-page-cups) .profile-cup-image {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-cups) .profile-cup-fallback {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-cups) .profile-cup-image {
    display: block;
    padding: 0;
    cursor: zoom-in;
}

:where(.ui-page-cups) .profile-cup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

:where(.ui-page-cups) .profile-cup-fallback {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

:where(.ui-page-cups) .profile-cup-info {
    display: grid;
    gap: 3px;
}

:where(.ui-page-cups) .profile-cup-info strong {
    display: block;
}

:where(.ui-page-cups) .profile-cup-info span {
    display: block;
}

:where(.ui-page-cups) .profile-cup-info small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-cups) .daily-gift-reward-list {
    display: grid;
}

:where(.ui-page-cups) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-cups) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.ui-page-cups) .cups-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
}

:where(.ui-page-cups) .cups-hero-main {
    min-width: 0;
}

:where(.ui-page-cups) .cup-hero-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-cups) .cup-hero-heading-row > div {
    min-width: 0;
}

:where(.ui-page-cups) .cup-countdown-badge {
    flex: 0 0 auto;
    min-width: 210px;
    padding: 10px 14px;
    border: 2px solid rgba(var(--action-rgb), 0.22);
    border-radius: 14px;
    background: rgba(255, 248, 237, 0.9);
    color: var(--muted);
    display: grid;
    gap: 4px;
    line-height: 1;
    text-align: right;
    box-shadow: 0 10px 20px rgba(var(--theme-shadow-rgb), 0.08);
}

:where(.ui-page-cups) .cup-countdown-badge > span {
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

:where(.ui-page-cups) .cup-countdown-badge strong {
    color: var(--action);
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-cups) .cup-progress-meter {
    margin: 18px 0 8px;
}

:where(.ui-page-cups) .cup-summary-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

:where(.ui-page-cups) .cup-actions-row {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

:where(.ui-page-cups) .cup-summary-strip .cup-stat-box {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
    color: var(--text);
    display: grid;
    align-content: center;
    gap: 8px;
    line-height: 1.1;
}

:where(.ui-page-cups) .cup-unlock-note {
    min-width: 0;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
    color: var(--text);
    align-content: center;
    gap: 8px;
    line-height: 1.1;
}

:where(.ui-page-cups) .cup-summary-strip .cup-stat-box span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-cups) .cup-summary-strip .cup-stat-box strong {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-cups) .cup-unlock-note {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
    margin: 0 0 0 auto;
    text-align: right;
    font-size: 0.95rem;
}

@media (max-width: 980px) {

    :where(.ui-page-cups) .cup-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-cups) .cup-hero-heading-row {
        display: grid;
    }

    :where(.ui-page-cups) .cup-countdown-badge {
        justify-self: start;
        min-width: 0;
        text-align: left;
    }
}

:where(.ui-page-cups) .cup-feature-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

:where(.ui-page-cups) .cup-feature-image {
    border: 0;
    padding: 0;
    background: transparent;
}

:where(.ui-page-cups) .cup-feature-image img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255, 248, 239, 0.82);
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
}

:where(.ui-page-cups) .cup-feature-fallback {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: contain;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    display: grid;
    place-items: center;
    color: #fff8ef;
    font-weight: 900;
    background: linear-gradient(180deg, var(--action), var(--action-strong));
}

:where(.ui-page-cups) .cup-reward-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

:where(.ui-page-cups) .cup-reward {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    padding: 5px 8px 5px 5px;
    border-radius: 16px;
    overflow: visible;
}

:where(.ui-page-cups) .cup-reward > span {
    font-size: 1rem;
}

:where(.ui-page-cups) .cups-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--section-gap);
}

:where(.ui-page-cups) .cups-rewards-panel {
    width: 100%;
}

:where(.ui-page-cups) .cups-archive-panel {
    width: 100%;
}

:where(.ui-page-cups) .cups-archive-section {
    display: grid;
    gap: 10px;
}

:where(.ui-page-cups) .cups-archive-top-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 12px;
}

:where(.ui-page-cups) .cups-archive-top-pager .race-pager {
    margin: 0;
}

:where(.ui-page-cups) .cups-profile-cup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-cups) .cups-profile-cup-grid .empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 1240px) {

    :where(.ui-page-cups) .cups-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-cups) .cup-feature-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-cups) .cup-reward-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-cups) .cups-profile-cup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-cups) .profile-cup-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-cups) .profile-cup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    :where(.ui-page-cups) .profile-cup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-cups) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }

    :where(.ui-page-cups) .actions-row {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-cups) .actions-row > * {
        min-width: 0;
    }
}

:where(.ui-page-cups) .actions-row {
    gap: 8px;
}

:where(.ui-page-cups) .daily-gift-reward-list {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-cups) .actions-row > * {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-cups) .profile-cup-row {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-cups) .profile-cup-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-cups) .profile-cup-fallback {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-cups) .cups-rewards-panel {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-cups) .cups-archive-panel {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-cups) .profile-cup-row:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-cups) .cup-summary-strip .cup-stat-box {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-cups) .cup-unlock-note {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-cups) .cup-feature-image img {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-cups) .cup-feature-fallback {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-cups) .cup-reward {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-cups) .cup-summary-strip .cup-stat-box {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-cups) .cup-unlock-note {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-cups) .cup-reward {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-cups) .cup-feature-image img {
    background: rgba(255, 253, 249, 0.82);
}

body.theme-colored:where(.ui-page-cups) .cup-feature-fallback {
    background: rgba(255, 253, 249, 0.82);
}
}/* Source: public/css/source/pages/daily-gifts/game.css */

@layer base {/* daily-gifts: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-daily-gifts) .daily-gifts-hero {
    grid-template-columns: 1fr;
}

:where(.ui-page-daily-gifts) .daily-gift-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}

:where(.ui-page-daily-gifts) .daily-gift-card:nth-child(7) {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
}

:where(.ui-page-daily-gifts) .daily-gift-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card {
    min-height: 0;
    grid-template-columns: minmax(280px, 1fr) minmax(150px, 0.34fr) minmax(150px, 0.28fr);
    grid-template-areas: "head date action"
        "copy date action"
        "rewards rewards action";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card-head {
    grid-area: head;
    align-self: end;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-date {
    grid-area: date;
    justify-self: stretch;
    align-self: center;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.84);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > p {
    grid-area: copy;
    align-self: start;
    font-size: 0.88rem;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward-list {
    grid-area: rewards;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-content: center;
    gap: 6px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward {
    min-height: 58px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-size: 1rem;
    white-space: normal;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > .button {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > small {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-action-stack {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-action-stack {
    display: grid;
    gap: 10px;
    align-content: center;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-action-stack {
    gap: 6px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-action-stack .daily-gift-status {
    width: fit-content;
    min-width: 96px;
    min-height: 30px;
    justify-self: end;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: none;
    pointer-events: none;
}

:where(.ui-page-daily-gifts) .daily-gift-action-stack form {
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > form .button {
    width: 100%;
    min-height: 44px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > .button {
    width: 100%;
    min-height: 44px;
}

:where(.ui-page-daily-gifts) .daily-gift-action-stack .button {
    width: 100%;
    min-height: 44px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card > small {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.84);
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

:where(.ui-page-daily-gifts) .daily-gift-action-stack > small {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.84);
    color: var(--muted);
    font-weight: 900;
    text-align: center;
    font-size: 0.8rem;
}

:where(.ui-page-daily-gifts) .daily-gift-card.is-available {
    border-color: rgba(var(--action-rgb), 1);
    box-shadow: 0 18px 40px rgba(var(--action-rgb), 0.1);
}

:where(.ui-page-daily-gifts) .daily-gift-card.is-current-day {
    border-color: rgba(var(--action-rgb), 0.9);
    background: linear-gradient(180deg, rgba(255, 244, 226, 0.98), rgba(255, 250, 242, 0.98));
    box-shadow: inset 0 0 0 2px rgba(var(--action-rgb), 0.16),
        0 16px 30px rgba(var(--theme-shadow-rgb), 0.14);
}

:where(.ui-page-daily-gifts) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, #ff9d3d, #ed7c24);
    color: #fff7ec;
}

:where(.ui-page-daily-gifts) .daily-gift-card.is-claimed {
    border-color: rgba(var(--success-rgb), 0.3);
    background: rgba(244, 252, 237, 0.86);
}

:where(.ui-page-daily-gifts) .daily-gift-card.is-missed {
    opacity: 0.74;
}

:where(.ui-page-daily-gifts) .daily-gift-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
}

:where(.ui-page-daily-gifts) .daily-gift-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

:where(.ui-page-daily-gifts) .daily-gift-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(var(--action-rgb), 0.12);
    font-size: 0.86rem;
    font-weight: 900;
}

:where(.ui-page-daily-gifts) .daily-gift-reward-list {
    display: grid;
}

:where(.ui-page-daily-gifts) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-daily-gifts) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1240px) {

    :where(.ui-page-daily-gifts) .daily-gift-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card {
        grid-template-columns: minmax(220px, 0.72fr) minmax(150px, 0.34fr) minmax(150px, 0.36fr);
        grid-template-areas: "head date action"
            "copy date action"
            "rewards rewards action";
    }

    :where(.ui-page-daily-gifts) .daily-gift-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        align-self: stretch;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-daily-gifts) .daily-gift-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card {
        grid-template-columns: 1fr;
        grid-template-areas: "head"
            "date"
            "copy"
            "rewards"
            "action";
    }
}

@media (max-width: 900px) {

    :where(.ui-page-daily-gifts) .daily-gift-card {
        min-width: 0;
    }

    :where(.ui-page-daily-gifts) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-daily-gifts) .daily-gift-card {
        padding: 12px;
    }
}

:where(.ui-page-daily-gifts) .daily-gift-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-daily-gifts) .daily-gift-reward-list {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-daily-gifts) .daily-gift-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-card.is-highlighted {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-status {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-card.is-available {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-card.is-current-day {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-date {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-action-stack > small {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-daily-gifts) .daily-gift-card.is-available .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

:where(.ui-page-daily-gifts) .daily-gift-status {
    color: var(--detail-text);
}
}/* Source: public/css/source/pages/dealership/game.css */

@layer base {/* dealership: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-dealership) .dealership-panel-head h2 {
    margin: 0;
}

:where(.ui-page-dealership) .dealership-card h3 {
    margin: 0;
}

:where(.ui-page-dealership) .dealership-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

:where(.ui-page-dealership) .dealership-catalog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

:where(.ui-page-dealership) .dealership-theme-button {
    box-shadow: none;
}

:where(.ui-page-dealership) .dealership-panel-note {
    display: block;
    width: 100%;
    color: var(--muted);
}

:where(.ui-page-dealership) .dealership-panel-note-spaced {
    margin-top: -8px;
    margin-bottom: 18px;
}

:where(.ui-page-dealership) .dealership-catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout {
    grid-template-columns: 1fr;
    gap: 14px;
}

:where(.ui-page-dealership) .dealership-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card {
    grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
    grid-template-areas: "media body"
        "media action";
    align-items: start;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual {
    grid-area: media;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: start;
    min-height: 170px;
    height: auto;
    aspect-ratio: 16 / 10;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card-body {
    grid-area: body;
    min-width: 0;
    align-content: start;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card h3 {
    font-size: 1.35rem;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card p {
    max-width: 72ch;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-buy-button {
    align-self: end;
    justify-self: end;
    min-height: 64px;
    min-width: 150px;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-action-row {
    grid-area: action;
    align-self: end;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
}

:where(.ui-page-dealership) .dealership-action-note {
    text-align: right;
}

:where(.ui-page-dealership) .dealership-card.is-locked {
    opacity: 1;
}

:where(.ui-page-dealership) .dealership-card.is-locked .dealership-card-body {
    opacity: 0.82;
}

:where(.ui-page-dealership) .dealership-card.is-locked .dealership-buy-button {
    opacity: 0.82;
}

:where(.ui-page-dealership) .dealership-card.is-locked .dealership-preview-footer {
    opacity: 0.82;
}

:where(.ui-page-dealership) .dealership-card.is-locked > .car-visual {
    opacity: 1;
    filter: none;
}

:where(.ui-page-dealership) .dealership-card-body {
    display: grid;
    gap: 12px;
}

:where(.ui-page-dealership) .dealership-card-topline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

:where(.ui-page-dealership) .dealership-card h3 {
    font-size: 1.25rem;
    line-height: 1.1;
}

:where(.ui-page-dealership) .dealership-card p {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-dealership) .dealership-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-dealership) .dealership-mini-stats div {
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid var(--line);
    display: grid;
    gap: 4px;
}

:where(.ui-page-dealership) .dealership-mini-stats .dealership-resource-stat {
    padding: 10px;
}

:where(.ui-page-dealership) .dealership-mini-stats span {
    color: var(--muted);
    font-size: 0.72rem;
}

:where(.ui-page-dealership) .dealership-mini-stats strong {
    font-size: 0.95rem;
    line-height: 1.18;
}

:where(.ui-page-dealership) .dealership-mini-stats .dealership-coin-stat {
    background: rgba(255, 246, 229, 0.98);
    border-color: rgba(229, 139, 48, 0.34);
}

:where(.ui-page-dealership) .dealership-coin-stat strong {
    color: var(--accent-strong);
}

:where(.ui-page-dealership) .dealership-status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

:where(.ui-page-dealership) .dealership-buy-button {
    width: auto;
    min-height: 56px;
    white-space: nowrap;
}

:where(.ui-page-dealership) .dealership-preview-catalog {
    margin-top: 6px;
}

:where(.ui-page-dealership) .dealership-preview-card {
    background: linear-gradient(180deg, rgba(250, 246, 239, 0.98), rgba(243, 237, 228, 0.98));
}

:where(.ui-page-dealership) .dealership-preview-catalog.is-row-layout .dealership-preview-card {
    grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
}

:where(.ui-page-dealership) .dealership-preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

@media (max-width: 1240px) {

    :where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "body"
            "action";
    }

    :where(.ui-page-dealership) .dealership-preview-catalog.is-row-layout .dealership-preview-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "body"
            "action";
    }

    :where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual {
        height: auto;
        min-height: 220px;
    }

    :where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-action-row {
        width: 100%;
    }

    :where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-buy-button {
        width: 100%;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-dealership) .dealership-catalog {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-dealership) .dealership-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-dealership) .dealership-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-dealership) .dealership-preview-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-dealership) .dealership-mini-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-dealership) .dealership-preview-footer {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-dealership) .dealership-status-row {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-dealership) .dealership-panel-head {
        gap: 10px;
    }
}

:where(.ui-page-dealership) .dealership-panel-head {
    gap: 12px;
}

:where(.ui-page-dealership) .dealership-catalog-actions {
    gap: 8px;
}

:where(.ui-page-dealership) .dealership-mini-stats {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-dealership) .dealership-catalog-actions > * {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-dealership) .dealership-mini-stats div {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-dealership) .dealership-preview-catalog.is-row-layout .dealership-preview-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 250, 244, 0.98));
}
}/* Source: public/css/source/pages/errors-400/game.css */

@layer base {/* errors-400: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-errors-400) .not-found-back {
    font: inherit;
}

@media (max-width: 760px) {

    :where(.ui-page-errors-400) .not-found-actions .not-found-back {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/errors-404/game.css */

@layer base {/* errors-404: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-errors-404) .not-found-back {
    font: inherit;
}

@media (max-width: 760px) {

    :where(.ui-page-errors-404) .not-found-actions .not-found-back {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/errors-419/game.css */

@layer base {/* errors-419: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-errors-419) .session-expired-hero {
    background: linear-gradient(90deg, rgba(36, 28, 21, 0.92), rgba(70, 45, 26, 0.66) 43%, rgba(246, 237, 225, 0.12)),
        url("/images-web/background/bg-race.png") center / cover no-repeat;
}

:where(.ui-page-errors-419) .session-expired-hero .not-found-number {
    color: rgba(255, 192, 102, 0.24);
}

:where(.ui-page-errors-419) .not-found-back {
    font: inherit;
}

@media (max-width: 760px) {

    :where(.ui-page-errors-419) .not-found-actions .not-found-back {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/errors-429/game.css */

@layer base {/* errors-429: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-errors-429) .not-found-back {
    font: inherit;
}

@media (max-width: 760px) {

    :where(.ui-page-errors-429) .not-found-actions .not-found-back {
        width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/fan-club/game.css */

@layer base {/* fan-club: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-fan-club) .team-summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(360px, 2fr);
    margin-top: 22px;
}

:where(.ui-page-fan-club) .team-summary-grid.is-team-dashboard {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(135px, 0.66fr) minmax(135px, 0.66fr) minmax(135px, 0.66fr) minmax(160px, 0.78fr) minmax(300px, 1.35fr);
    gap: 12px;
}

:where(.ui-page-fan-club) .team-kpi-card-gauge {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

:where(.ui-page-fan-club) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

:where(.ui-page-fan-club) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: 215px 132px 126px;
    width: max-content;
    max-width: none;
    justify-content: start;
    gap: 7px;
}

@media (max-width: 1180px) {

    :where(.ui-page-fan-club) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    :where(.ui-page-fan-club) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-fan-club) .resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

:where(.ui-page-fan-club) .resource-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-fan-club) .resource-card h3 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.05;
}

:where(.ui-page-fan-club) .resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

:where(.ui-page-fan-club) .resource-card form {
    margin-top: 4px;
}

:where(.ui-page-fan-club) .resource-card .button {
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    font-size: 1.05rem;
}

:where(.ui-page-fan-club) .resource-card.is-danger {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 234, 0.98));
}

:where(.ui-page-fan-club) .resource-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 960px) {

    :where(.ui-page-fan-club) .resources-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-fan-club) .team-summary-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-fan-club) .team-kpi-card-gauge {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-fan-club) .resource-card {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-fan-club) .resource-card {
        padding: 12px;
    }
}

:where(.ui-page-fan-club) .resource-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-fan-club) .resource-card p {
    line-height: 1.45;
}

@media (max-width: 560px) {

    :where(.ui-page-fan-club) .resource-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-fan-club) .team-summary-grid .team-kpi-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-fan-club) .team-summary-grid.is-team-dashboard .team-kpi-card {
    border-color: var(--theme-border-soft);
}
}/* Source: public/css/source/pages/flow/game.css */

@layer base {/* flow: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-flow) .flow-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-flow) .flow-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-flow) .flow-entry-main {
    display: grid;
    gap: 8px;
}

:where(.ui-page-flow) .flow-entry-main h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
}

:where(.ui-page-flow) .flow-entry-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

:where(.ui-page-flow) .flow-entry-copy .badge {
    padding: 6px 10px;
}

:where(.ui-page-flow) .flow-entry-copy p {
    margin: 0;
}

:where(.ui-page-flow) .flow-entry-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: max-content;
}

:where(.ui-page-flow) .flow-entry-badge {
    max-width: 100%;
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
}

:where(.ui-page-flow) .flow-entry-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:where(.ui-page-flow) .flow-entry-detail {
    flex: 1 1 320px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
    min-width: 0;
}

:where(.ui-page-flow) .announcement-entry.is-highlighted .flow-entry-main h2 {
    color: var(--action-strong);
}

:where(.ui-page-flow) .announcement-entry .flow-entry-head {
    align-items: flex-start;
}

:where(.ui-page-flow) .flow-list-panel {
    display: grid;
    gap: 16px;
}

:where(.ui-page-flow) .flow-entry-stack {
    gap: 12px;
}

:where(.ui-page-flow) .race-page-hero.flow-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading actions"
        "lead lead";
    align-items: start;
    gap: 14px 24px;
    position: relative;
}

:where(.ui-page-flow) .flow-hero-copy {
    grid-area: heading;
    min-width: 0;
}

:where(.ui-page-flow) .flow-hero-lead {
    grid-area: lead;
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-flow) .flow-hero-lead .resources-lead {
    width: 100%;
    max-width: none;
    margin: 0;
}

:where(.ui-page-flow) .flow-hero-lead p {
    width: 100%;
    max-width: none;
    margin: 0;
}

:where(.ui-page-flow) .flow-hero-lead .resources-lead {
    white-space: normal;
}

:where(.ui-page-flow) .flow-hero-actions {
    grid-area: actions;
    justify-self: end;
    justify-items: end;
    align-self: start;
    width: auto;
}

:where(.ui-page-flow) .flow-hero-actions .badge.badge--count {
    justify-self: end;
    width: fit-content;
}

@media (max-width: 960px) {

    :where(.ui-page-flow) .flow-entry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-flow) .flow-entry-main h2 {
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-flow) .flow-entry-details {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-flow) .flow-entry-detail {
        flex-basis: auto;
    }
}

.game-shell:where(.ui-page-flow) .race-page-hero.flow-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "heading actions"
        "lead lead";
}

.game-shell:where(.ui-page-flow) .flow-hero-copy {
    padding-right: 0;
}

.game-shell:where(.ui-page-flow) .flow-hero-actions {
    display: inline-flex;
    position: static;
    width: auto;
    max-width: none;
    min-width: max-content;
    justify-self: end;
    justify-content: flex-end;
    align-self: start;
}

.game-shell:where(.ui-page-flow) .flow-hero-actions .badge.badge--count {
    width: auto;
    max-width: none;
    min-width: max-content;
    justify-self: end;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: nowrap;
}
}/* Source: public/css/source/pages/friends/game.css */

@layer base {/* friends: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-friends) .friends-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-friends) .friend-referral-code {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.08em;
}

:where(.ui-page-friends) .friends-hero h1 {
    margin-top: 0;
}

:where(.ui-page-friends) .friends-hero .stats-strip {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(320px, 1.4fr);
    gap: 12px;
    margin: 18px 0 0;
}

:where(.ui-page-friends) .friends-referral-hero {
    grid-template-columns: 1fr;
    width: 100%;
}

:where(.ui-page-friends) .friends-referral-hero > .panel {
    width: 100%;
}

:where(.ui-page-friends) .friends-hero .stats-strip > span {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--theme-card-surface-soft);
    box-shadow: var(--theme-card-shadow-compact);
    color: var(--muted);
    align-content: center;
}

:where(.ui-page-friends) .friends-daily-rule-card strong {
    white-space: nowrap;
}

:where(.ui-page-friends) .friend-referral-code {
    display: inline-grid;
    place-items: center;
    min-height: 58px;
    width: 100%;
    margin: 8px 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(var(--info-rgb), 0.18);
    background: linear-gradient(180deg, rgba(242, 249, 253, 0.96), rgba(231, 241, 248, 0.96));
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 900;
}

:where(.ui-page-friends) .friends-referral-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.22);
}

:where(.ui-page-friends) .friends-referral-inline .friend-referral-code {
    margin: 0;
}

:where(.ui-page-friends) .friends-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 14px;
    align-items: start;
}

:where(.ui-page-friends) .friends-invitations-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-friends) .friends-layout > aside {
    grid-column: 2;
}

:where(.ui-page-friends) .friends-invitations-layout > article {
    min-width: 0;
}

:where(.ui-page-friends) .friends-invitations-layout .panel > .muted {
    margin-top: 8px;
}

:where(.ui-page-friends) .friends-invitations-layout .friend-inline-action {
    justify-self: start;
    width: auto;
    min-width: 180px;
}

:where(.ui-page-friends) .friend-send-form {
    display: grid;
    gap: 16px;
}

:where(.ui-page-friends) .gift-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-friends) .gift-choice-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-friends) .friend-select-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-friends) .friend-gift-card {
    border: 1px solid var(--line);
}

:where(.ui-page-friends) .friend-history-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-friends) .gift-choice-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 14px;
    cursor: pointer;
}

:where(.ui-page-friends) .gift-choice-card input {
    margin-top: 3px;
    accent-color: var(--accent);
}

:where(.ui-page-friends) .friend-select-card input {
    margin-top: 3px;
    accent-color: var(--accent);
}

:where(.ui-page-friends) .gift-choice-card > span:not(.resource-icon-stack) {
    display: grid;
    gap: 5px;
}

:where(.ui-page-friends) .friend-select-card span {
    display: grid;
    gap: 5px;
}

:where(.ui-page-friends) .friend-gift-card > div {
    display: grid;
    gap: 5px;
}

:where(.ui-page-friends) .friend-history-card > span:not(.resource-icon-stack) {
    display: grid;
    gap: 5px;
}

:where(.ui-page-friends) .gift-choice-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-friends) .friend-select-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-friends) .friend-gift-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-friends) .friend-history-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-friends) .friend-select-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

:where(.ui-page-friends) .friend-form-footer {
    display: flex;
    gap: 14px;
    align-items: center;
}

:where(.ui-page-friends) .friend-gift-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

:where(.ui-page-friends) .friend-history-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

:where(.ui-page-friends) .friend-manage-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-friends) .friend-manage-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-friends) .friend-manage-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-friends) .friend-manage-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 8px;
}

:where(.ui-page-friends) .friend-manage-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.74);
}

:where(.ui-page-friends) .friend-manage-stats small {
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-friends) .friend-manage-stats strong {
    font-size: 1.1rem;
}

:where(.ui-page-friends) .friend-select-toolbar small {
    display: block;
    margin-top: 4px;
}

:where(.ui-page-friends) .friend-select-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

:where(.ui-page-friends) .friend-request-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

:where(.ui-page-friends) .friend-gift-card > .friend-request-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

:where(.ui-page-friends) .friend-request-actions form {
    display: inline-flex;
    margin: 0;
    width: auto;
}

:where(.ui-page-friends) .friend-request-actions .button {
    white-space: nowrap;
    width: auto;
}

:where(.ui-page-friends) .friend-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-friends) .friend-select-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

:where(.ui-page-friends) .friend-select-card em {
    color: var(--success);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 800;
}

:where(.ui-page-friends) .friend-select-card.is-locked {
    opacity: 0.68;
}

:where(.ui-page-friends) .friend-select-card.is-locked em {
    color: var(--muted);
}

:where(.ui-page-friends) .friend-form-footer {
    justify-content: flex-end;
}

:where(.ui-page-friends) .friend-gift-card {
    padding: 14px 16px;
}

:where(.ui-page-friends) .friend-history-card {
    padding: 13px 14px;
}

@media (max-width: 960px) {

    :where(.ui-page-friends) .friends-layout {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-friends) .friends-referral-inline {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-friends) .gift-choice-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-friends) .friend-list-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-friends) .friends-layout > aside {
        grid-column: auto;
    }

    :where(.ui-page-friends) .friend-manage-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-friends) .friend-manage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-friends) .friend-select-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-friends) .friend-gift-card {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-friends) .friend-gift-card .friend-request-actions {
        flex-direction: row;
        align-items: center;
        align-self: flex-end;
        justify-content: flex-end;
    }

    :where(.ui-page-friends) .friend-gift-card .friend-request-actions form {
        width: auto;
    }

    :where(.ui-page-friends) .friend-gift-card .friend-request-actions .button {
        width: auto;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-friends) .friend-select-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    :where(.ui-page-friends) .friend-select-card em {
        grid-column: 2;
    }
}

:where(.ui-page-friends) .friend-gift-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

@media (max-width: 560px) {

    :where(.ui-page-friends) .friend-gift-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-friends) .friends-hero .stats-strip > span {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}
}/* Source: public/css/source/pages/garage/game.css */

@layer base {/* garage: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-body > .car-panel-detail-progress-grid {
    grid-column: 2;
    width: 100%;
    margin-top: 6px;
}

:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-main > .car-panel-detail-progress-grid {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage) .garage-detail-head-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
}

:where(.ui-page-garage) .garage-detail-head-actions .dealership-hero-pill {
    min-height: 42px;
    height: 42px;
    padding-block: 0;
    align-self: stretch;
}

:where(.ui-page-garage) .card-actions.garage-detail-head-buttons {
    margin: 0;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-garage) .garage-detail-head-buttons .button {
    min-height: 42px;
    height: 42px;
    min-width: 0;
}

:where(.ui-page-garage) .garage-detail-head-buttons form {
    min-height: 42px;
    height: 42px;
    min-width: 0;
}

:where(.ui-page-garage) .garage-detail-head-buttons .button {
    padding-inline: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
}

:where(.ui-page-garage) .garage-detail-head-buttons .button-secondary {
    min-width: auto;
}

:where(.ui-page-garage) .garage-detail-head-buttons .garage-detail-car-nav-actions {
    display: contents;
}

:where(.ui-page-garage) .city-jobs-hero-title-row .garage-hourglass-stock-pill {
    flex: 0 0 auto;
}

:where(.ui-page-garage) .garage-summary-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

:where(.ui-page-garage) .garage-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:where(.ui-page-garage) .garage-summary-head h1 {
    margin: 0;
}

:where(.ui-page-garage) .garage-summary-head .muted {
    margin: 0;
    text-align: right;
}

:where(.ui-page-garage) .garage-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

:where(.ui-page-garage) .garage-summary-info {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
}

:where(.ui-page-garage) .garage-unlock-slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

:where(.ui-page-garage) .garage-unlock-slot-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:where(.ui-page-garage) .garage-car-panel-list {
    display: grid;
    gap: 16px;
}

:where(.ui-page-garage) .garage-car-list-panel {
    width: 100%;
}

:where(.ui-page-garage) .garage-car-list-panel:not(.is-active-car) {
    border-color: var(--line);
    outline: 0;
    box-shadow: none;
}

:where(.ui-page-garage) .garage-car-list-panel .dealership-active-head {
    align-items: center;
}

:where(.ui-page-garage) .garage-car-list-panel .garage-detail-head-buttons {
    align-items: center;
}

:where(.ui-page-garage) .garage-display-order-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

:where(.ui-page-garage) .garage-display-order-actions form {
    margin: 0;
}

:where(.ui-page-garage) .garage-order-button {
    min-width: 0;
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.78rem;
}

:where(.ui-page-garage) .home-active-car-panel .dealership-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
}

:where(.ui-page-garage) .home-active-car-panel .dealership-active-media .car-visual.is-featured {
    width: 100%;
    justify-self: center;
}

:where(.ui-page-garage) .home-active-car-panel .car-panel-full-body {
    grid-template-columns: minmax(346px, 0.61fr) minmax(0, 1.39fr);
}

:where(.ui-page-garage) .home-active-car-panel .car-panel-full-media {
    display: grid;
    justify-items: center;
    gap: 8px;
}

:where(.ui-page-garage) .home-active-car-panel .car-panel-home-run-action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

:where(.ui-page-garage) .home-active-car-panel .car-panel-home-run-action .button {
    min-width: 190px;
}

:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

:where(.ui-page-garage) .slot-upgrade-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 247, 236, 0.86);
}

:where(.ui-page-garage) .garage-summary-panel .slot-upgrade-box {
    margin-top: 0;
}

:where(.ui-page-garage) .garage-summary-panel .garage-next-slot-box {
    min-height: 96px;
    padding: 22px 26px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.7);
}

:where(.ui-page-garage) .garage-next-slot-box strong {
    display: block;
    margin-bottom: 18px;
    font-size: 1.06rem;
    font-weight: 500;
}

:where(.ui-page-garage) .garage-next-slot-box p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 760px) {

    :where(.ui-page-garage) .garage-summary-head {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-garage) .garage-summary-actions {
        justify-content: flex-start;
    }

    :where(.ui-page-garage) .garage-summary-head .muted {
        text-align: left;
    }
}

:where(.ui-page-garage) .garage-preview-grid {
    align-items: stretch;
}

:where(.ui-page-garage) .garage-preview-card {
    min-height: 100%;
}

:where(.ui-page-garage) .catalog-card {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-garage) .catalog-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

:where(.ui-page-garage) .catalog-card-meta {
    display: grid;
}

:where(.ui-page-garage) .catalog-card-price {
    font-weight: 800;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 14px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .upgrade-title-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .upgrade-visual {
    width: 72px;
    height: 72px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta > div {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.92);
    font-weight: 800;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-price {
    justify-content: flex-end;
    font-size: 1.02rem;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card > .muted {
    grid-column: 1 / -1;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 16px;
    background: rgba(255, 248, 239, 0.72);
    line-height: 1.35;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available {
    grid-template-columns: minmax(500px, 0.72fr) minmax(0, 1.28fr);
    grid-template-areas: "main meta";
    align-items: center;
    gap: 20px 24px;
    padding: 16px 18px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming {
    grid-template-columns: minmax(500px, 0.72fr) minmax(0, 1.28fr);
    grid-template-areas: "main meta";
    align-items: center;
    gap: 20px 24px;
    padding: 16px 18px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head {
    grid-area: main;
    align-items: center;
    gap: 18px;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head .upgrade-visual {
    width: 140px;
    max-width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-meta {
    grid-area: meta;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available > .garage-catalog-upgrade-meta {
    align-self: stretch;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming > .garage-catalog-upgrade-meta {
    align-self: stretch;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available > .garage-catalog-upgrade-meta > div {
    display: grid;
    align-content: center;
    justify-content: stretch;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming > .garage-catalog-upgrade-meta > div {
    display: grid;
    align-content: center;
    justify-content: stretch;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available > .garage-catalog-upgrade-meta > div span {
    text-align: left;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming > .garage-catalog-upgrade-meta > div span {
    text-align: left;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available > .garage-catalog-upgrade-meta > div strong {
    text-align: left;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming > .garage-catalog-upgrade-meta > div strong {
    text-align: left;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available {
        grid-template-areas: "main"
            "meta";
    }

    :where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming {
        grid-template-areas: "main"
            "meta";
    }

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-garage) .garage-summary-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-garage) .dealership-active-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-garage) .garage-jobs-title-row {
    align-items: center;
    margin-bottom: 14px;
}

:where(.ui-page-garage) .garage-hourglass-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    vertical-align: middle;
}

:where(.ui-page-garage) .garage-hourglass-stock-pill .button-resource-icon {
    width: 1.3em;
    height: 1.3em;
}

:where(.ui-page-garage) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 10px;
}

:where(.ui-page-garage) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

:where(.ui-page-garage) .garage-job-main .garage-repair-job-visual {
    padding: 5px;
}

:where(.ui-page-garage) .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

:where(.ui-page-garage) .garage-job-car-line {
    display: block;
    margin-top: 4px;
}

:where(.ui-page-garage) .garage-job-car-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--action-rgb), 0.32);
}

:where(.ui-page-garage) .garage-job-car-link:hover {
    border-bottom-color: rgba(var(--action-rgb), 0.72);
}

:where(.ui-page-garage) .garage-job-car-link:focus-visible {
    border-bottom-color: rgba(var(--action-rgb), 0.72);
}

:where(.ui-page-garage) .dealership-active-panel {
    display: grid;
    gap: 16px;
    align-items: start;
}

:where(.ui-page-garage) .dealership-active-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

:where(.ui-page-garage) .dealership-active-head h1 {
    margin: 0;
}

@media (max-width: 960px) {

    :where(.ui-page-garage) .slot-upgrade-box {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-garage) .dealership-active-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-garage) .card-actions.garage-detail-head-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-garage) .catalog-card {
        min-width: 0;
    }

    :where(.ui-page-garage) .garage-detail-head-actions {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-garage) .garage-detail-head-buttons {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-garage) .garage-detail-head-buttons > * {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-garage) .catalog-card {
        padding: 12px;
    }
}

:where(.ui-page-garage) .catalog-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-garage) .catalog-card p {
    line-height: 1.45;
}

:where(.ui-page-garage) .garage-summary-head {
    gap: 12px;
}

:where(.ui-page-garage) .garage-detail-head-buttons {
    gap: 8px;
}

:where(.ui-page-garage) .catalog-card-meta {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-garage) .catalog-card {
        border-radius: 8px;
    }

    :where(.ui-page-garage) .garage-detail-head-buttons > * {
        width: 100%;
    }
}

:where(.ui-page-garage) .garage-unlock-slot-button:not(:disabled) {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta > div {
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card > .muted {
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage) .catalog-card-price {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage) .garage-next-slot-box {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage) .slot-upgrade-box {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .upgrade-visual {
    background: var(--theme-tint-strong);
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta > div {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card > .muted {
    background: rgba(255, 253, 249, 0.92);
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage) .catalog-card-price {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head-actions {
    display: contents;
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }

    .game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel {
    row-gap: 0;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-main {
    gap: 6px;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-head {
    margin-bottom: 2px;
}

.game-shell:where(.ui-page-garage) .garage-car-list-panel .car-panel-full-head-actions {
    justify-content: stretch;
}

.game-shell:where(.ui-page-garage) .garage-car-list-panel .car-panel-full-head-actions .car-panel-full-actions {
    justify-content: flex-start;
    width: 100%;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-actions {
    align-items: center;
    justify-content: flex-end;
    row-gap: 6px;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-inline-status-pills {
    align-self: center;
    margin-right: 0;
}

.game-shell:where(.ui-page-garage) .garage-car-list-panel .car-panel-inline-status-pills {
    align-self: center;
    margin-right: 0;
}

.game-shell:where(.ui-page-garage) .garage-car-list-panel .car-panel-boost-toggle {
    margin-left: auto;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-garage-slots-card {
    width: fit-content;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    align-self: center;
    display: flex;
    align-items: center;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-garage-media-title {
    display: grid;
    justify-self: stretch;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-garage-media-title {
    justify-self: stretch;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-garage-media-title .eyebrow {
    margin: 0;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-head > .car-panel-garage-slots-card {
    width: fit-content;
    justify-self: end;
    margin-left: auto;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-head > .car-panel-garage-slots-card {
        justify-self: start;
        margin-left: 0;
    }
}

.game-shell:where(.ui-page-garage) .garage-order-button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage) .garage-details-inline-button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage) .garage-detail-head-buttons .button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-actions .button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card {
    --structured-action-image-size: 200px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card {
    --structured-action-image-size: 200px;
}
}/* Source: public/css/source/pages/garage-appearance/game.css */

@layer base {/* garage-appearance: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-appearance) .car-appearance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-garage-appearance) .car-appearance-group + .car-appearance-group {
    margin-top: 0;
}

:where(.ui-page-garage-appearance) .car-appearance-group .section-heading-row {
    margin-bottom: 16px;
}

:where(.ui-page-garage-appearance) .car-appearance-group h2 {
    margin: 4px 0 0;
    font-size: clamp(1rem, 0.26vw + 0.84rem, 1.14rem);
}

:where(.ui-page-garage-appearance) .car-appearance-card {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    padding: 14px;
    display: grid;
    gap: 12px;
}

:where(.ui-page-garage-appearance) .panel.appearance-tabs-panel {
    padding: 10px;
}

:where(.ui-page-garage-appearance) .appearance-tab-input--simple:checked ~ .appearance-tabs-panel label[for="appearance-tab-simple"] {
    border-color: rgba(var(--action-rgb), 0.64);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 12px 22px rgba(var(--action-rgb), 0.14);
}

:where(.ui-page-garage-appearance) .appearance-tab-input--race:checked ~ .appearance-tabs-panel label[for="appearance-tab-race"] {
    border-color: rgba(var(--action-rgb), 0.64);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 12px 22px rgba(var(--action-rgb), 0.14);
}

:where(.ui-page-garage-appearance) .appearance-tab-input--owned:checked ~ .appearance-tabs-panel label[for="appearance-tab-owned"] {
    border-color: rgba(var(--action-rgb), 0.64);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 12px 22px rgba(var(--action-rgb), 0.14);
}

:where(.ui-page-garage-appearance) .car-appearance-card.is-selected {
    border-color: rgba(var(--action-rgb), 0.55);
    box-shadow: 0 16px 32px rgba(var(--action-rgb), 0.12);
}

:where(.ui-page-garage-appearance) .car-appearance-card .car-visual {
    margin-bottom: 0;
}

:where(.ui-page-garage-appearance) .car-appearance-card-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
}

@media (max-width: 980px) {

    :where(.ui-page-garage-appearance) .car-appearance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {

    :where(.ui-page-garage-appearance) .car-appearance-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-appearance) .car-appearance-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-garage-appearance) .car-appearance-card-footer .button {
        width: 100%;
    }
}

:where(.ui-page-garage-appearance) .scene-theme-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

:where(.ui-page-garage-appearance) .scene-theme-hero h1 {
    margin: 0 0 8px;
}

:where(.ui-page-garage-appearance) .scene-theme-hero-side {
    display: grid;
    justify-items: end;
    gap: 12px;
    text-align: right;
    min-width: 320px;
}

:where(.ui-page-garage-appearance) .scene-theme-hero-side .muted {
    margin: 0;
}

:where(.ui-page-garage-appearance) .scene-theme-current-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    border-radius: 999px;
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
}

:where(.ui-page-garage-appearance) .scene-theme-current-pill span {
    color: inherit;
    font-weight: 500;
}

:where(.ui-page-garage-appearance) .scene-theme-current-pill strong {
    font-weight: 700;
}

:where(.ui-page-garage-appearance) .car-appearance-hero {
    display: flex;
    flex-flow: row wrap;
}
:where(.ui-page-garage-appearance) .car-appearance-hero > * {
    flex: 1 1 360px;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-appearance) .car-appearance-hero-side {
    min-width: 0;
}

:where(.ui-page-garage-appearance) .car-appearance-hero-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

:where(.ui-page-garage-appearance) .car-appearance-hero-pills .scene-theme-current-pill {
    white-space: nowrap;
}

:where(.ui-page-garage-appearance) .car-appearance-cost-line {
    white-space: normal;
}

:where(.ui-page-garage-appearance) .scene-theme-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 960px) {

    :where(.ui-page-garage-appearance) .scene-theme-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-appearance) .car-appearance-cost-line {
        white-space: normal;
    }
}

body.theme-colored:where(.ui-page-garage-appearance) .car-appearance-card.is-selected {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
    outline-color: var(--selected-outline);
}

body.theme-colored:where(.ui-page-garage-appearance) .appearance-tab-input--simple:checked ~ .appearance-tabs-panel label[for="appearance-tab-simple"] {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-garage-appearance) .appearance-tab-input--race:checked ~ .appearance-tabs-panel label[for="appearance-tab-race"] {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-garage-appearance) .appearance-tab-input--owned:checked ~ .appearance-tabs-panel label[for="appearance-tab-owned"] {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-garage-appearance) .scene-theme-current-pill {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}
}/* Source: public/css/source/pages/garage-contracts/game.css */

@layer base {/* garage-contracts: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-contracts) .garage-infrastructure-summary-actions .garage-detail-status-pill {
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
}

:where(.ui-page-garage-contracts) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
    grid-column: 1 / -1;
    justify-self: end;
}

@media (max-width: 760px) {

    :where(.ui-page-garage-contracts) .garage-infrastructure-summary-actions .garage-detail-status-pill {
        grid-column: auto;
        justify-self: stretch;
    }

    :where(.ui-page-garage-contracts) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
        grid-column: auto;
        justify-self: stretch;
    }
}

:where(.ui-page-garage-contracts) .section-head-copy {
    max-width: 72ch;
    margin: 0;
}

:where(.ui-page-garage-contracts) .garage-contracts-head .section-head-copy {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

:where(.ui-page-garage-contracts) .garage-contracts-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

:where(.ui-page-garage-contracts) .garage-contracts-head > div:first-child {
    width: 100%;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .garage-contracts-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-garage-contracts) .garage-contracts-head-actions form {
    margin: 0;
}

:where(.ui-page-garage-contracts) .garage-contracts-head-actions .button {
    white-space: nowrap;
}

:where(.ui-page-garage-contracts) .garage-contracts-head .team-catalog-pager {
    justify-self: end;
}

:where(.ui-page-garage-contracts) .garage-contracts-top-pager {
    margin-top: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card {
    grid-template-columns: minmax(390px, 0.58fr) minmax(0, 1fr) minmax(220px, 0.24fr);
    grid-template-areas: "image head head"
        "image copy copy"
        "image stats stats"
        "side side side"
        "action action action";
    gap: 14px 16px;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack .profile-stat-card {
    min-height: 58px;
    padding: 8px 10px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack .garage-contract-stat-bonus-card {
    grid-column: 1 / -1;
    min-height: 58px;
    gap: 4px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack .garage-contract-stat-bonus-card strong {
    white-space: normal;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-unlock-card {
    min-height: 58px;
    padding: 8px 10px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .team-sponsor-head {
    display: flex;
    flex-flow: row wrap;
    align-items: start;
    gap: 10px;
}

:where(.ui-page-garage-contracts) .garage-contract-head-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
}

:where(.ui-page-garage-contracts) .garage-contract-minimum-races-badge {
    display: grid;
    gap: 2px;
    min-width: 148px;
    padding: 7px 12px;
    border: 1px solid rgba(var(--action-rgb), 0.28);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.08);
    color: var(--theme-muted, var(--muted));
    text-align: center;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

:where(.ui-page-garage-contracts) .garage-contract-minimum-races-badge span {
    font-size: var(--stat-box-font-size);
    font-weight: 700;
}

:where(.ui-page-garage-contracts) .garage-contract-minimum-races-badge strong {
    color: var(--accent);
    font-size: var(--stat-value-font-size);
    font-weight: 900;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-goal {
    grid-area: side;
    align-content: start;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action {
    display: grid;
    grid-area: action;
    grid-template-columns: minmax(150px, 330px) minmax(0, 1fr);
    grid-template-areas: "unlock buttons";
    align-items: center;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action > .garage-contract-unlock-card {
    grid-area: unlock;
    width: 100%;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-action-buttons {
    grid-area: buttons;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    width: auto;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action .button {
    width: auto;
    min-width: 150px;
    min-height: 48px;
    height: 48px;
    padding-block: 9px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-image {
    align-self: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    min-height: 0;
    padding: 8px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-image img {
    object-fit: cover;
    object-position: center;
    background: rgba(255, 247, 236, 0.72);
}

:where(.ui-page-garage-contracts) .team-sponsor-grid {
    display: grid;
    gap: 18px;
}

:where(.ui-page-garage-contracts) .team-sponsor-card {
    border: 1px solid var(--line);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}

:where(.ui-page-garage-contracts) .team-sponsor-head h3 {
    margin: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-card {
    padding: 20px;
    display: grid;
    gap: 16px;
    overflow: hidden;
}

:where(.ui-page-garage-contracts) .team-sponsor-image {
    width: calc(100% + 40px);
    margin: -20px -20px 2px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.18);
    cursor: zoom-in;
    padding: 4px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 14px;
    background: rgba(255, 247, 236, 0.92);
}

:where(.ui-page-garage-contracts) .team-sponsor-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

:where(.ui-page-garage-contracts) .team-sponsor-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

:where(.ui-page-garage-contracts) .team-sponsor-card p {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-garage-contracts) .team-sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card {
    grid-template-columns: clamp(240px, 22vw, 360px) minmax(0, 1fr) minmax(230px, 0.4fr);
    grid-template-areas: "image head side"
        "image copy side"
        "image stats action";
    align-items: stretch;
    gap: 14px 24px;
    padding: 16px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-image {
    grid-area: image;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 170px;
    margin: 0;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-head {
    grid-area: head;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card > p {
    grid-area: copy;
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card > .stack {
    grid-area: stats;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    margin-top: 4px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card > .stack .profile-stat-card {
    min-height: 70px;
    padding: 18px 20px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-goal {
    grid-area: side;
    align-content: center;
    align-self: stretch;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
    min-width: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-goal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-garage-contracts) .team-sponsor-goal-line > span {
    min-width: 0;
    text-align: left;
}

:where(.ui-page-garage-contracts) .team-sponsor-goal-line > strong {
    flex: 0 0 auto;
    text-align: right;
}

:where(.ui-page-garage-contracts) .team-sponsor-cycle-line {
    padding: 0;
}

:where(.ui-page-garage-contracts) .team-sponsor-cycle-line span {
    color: var(--theme-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

:where(.ui-page-garage-contracts) .team-sponsor-cycle-line strong {
    color: var(--theme-text);
    font-size: 1.1rem;
    line-height: 1;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-action {
    display: grid;
    grid-area: action;
    align-self: end;
    justify-self: stretch;
    margin: 0;
    min-width: 0;
    gap: 10px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-action .button {
    width: 100%;
}

:where(.ui-page-garage-contracts) .team-sponsor-action {
    justify-self: end;
}

:where(.ui-page-garage-contracts) .team-sponsor-card.is-active {
    border-color: rgba(var(--theme-border-rgb), 0.32);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
}

:where(.ui-page-garage-contracts) .team-sponsor-goal {
    display: grid;
    gap: 8px;
}

:where(.ui-page-garage-contracts) .team-catalog-head {
    align-items: flex-start;
    width: 100%;
}

:where(.ui-page-garage-contracts) .team-catalog-head > div:first-child {
    min-width: 0;
}

:where(.ui-page-garage-contracts) .garage-detail-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-garage-contracts) .garage-upgrade-guide-panel .team-catalog-head {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-contracts) .garage-upgrade-guide-panel .team-catalog-head > div:first-child {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 960px) {

    :where(.ui-page-garage-contracts) .team-sponsor-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "head"
            "copy"
            "stats"
            "side"
            "action";
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "head"
            "copy"
            "stats"
            "side"
            "action";
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-image {
        height: auto;
        min-height: 200px;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-card > .stack {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-goal {
        grid-area: side;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.is-row-layout .team-sponsor-action {
        grid-area: action;
        margin: 0;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action {
        grid-template-columns: 1fr;
        grid-template-areas: "unlock"
            "buttons";
        justify-content: stretch;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action {
        width: 100%;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-action-buttons {
        width: 100%;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action form {
        width: 100%;
    }

    :where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-action .button {
        width: 100%;
    }

    :where(.ui-page-garage-contracts) .garage-contracts-head {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-contracts) .garage-contracts-head-actions {
        justify-content: flex-start;
    }

    :where(.ui-page-garage-contracts) .team-catalog-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

:where(.ui-page-garage-contracts) .team-sponsor-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

@media (max-width: 560px) {

    :where(.ui-page-garage-contracts) .team-sponsor-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-garage-contracts) .team-sponsor-card.is-active {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-grid.is-row-layout .garage-contract-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-grid.is-row-layout .team-sponsor-image {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-grid.is-row-layout .team-sponsor-goal {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-grid.is-row-layout .profile-stat-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-grid.is-row-layout .team-sponsor-goal {
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-contract-card.is-active {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-contracts) .garage-detail-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

:where(.ui-page-garage-contracts) .garage-contract-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage-contracts) .garage-detail-status-pill {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-garage-contracts) .garage-contract-card > .team-sponsor-head > div {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
}
}/* Source: public/css/source/pages/garage-infrastructure/game.css */

@layer base {/* garage-infrastructure: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-infrastructure) .city-jobs-hero-title-row .garage-hourglass-stock-pill {
    flex: 0 0 auto;
}

:where(.ui-page-garage-infrastructure) .garage-summary-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

:where(.ui-page-garage-infrastructure) .garage-summary-head {
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

:where(.ui-page-garage-infrastructure) .garage-summary-head h1 {
    margin: 0;
}

:where(.ui-page-garage-infrastructure) .garage-summary-head .muted {
    margin: 0;
    text-align: right;
}

:where(.ui-page-garage-infrastructure) .garage-summary-actions {
    align-items: center;
    flex-wrap: wrap;
}

:where(.ui-page-garage-infrastructure) .garage-infrastructure-summary-actions .garage-detail-status-pill {
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
}

:where(.ui-page-garage-infrastructure) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
    grid-column: 1 / -1;
    justify-self: end;
}

@media (max-width: 760px) {

    :where(.ui-page-garage-infrastructure) .garage-summary-head {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-garage-infrastructure) .garage-infrastructure-summary-actions .garage-detail-status-pill {
        grid-column: auto;
        justify-self: stretch;
    }

    :where(.ui-page-garage-infrastructure) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
        grid-column: auto;
        justify-self: stretch;
    }

    :where(.ui-page-garage-infrastructure) .garage-summary-head .muted {
        text-align: left;
    }
}

:where(.ui-page-garage-infrastructure) .upgrade-title-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

:where(.ui-page-garage-infrastructure) .upgrade-title-row strong {
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .upgrade-title-row p {
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .catalog-card {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-garage-infrastructure) .catalog-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

:where(.ui-page-garage-infrastructure) .garage-summary-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-garage-infrastructure) .resource-preview-list-compact {
    margin-top: 12px;
}

:where(.ui-page-garage-infrastructure) .garage-detail-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-balance-head {
    align-items: center;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-balance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-controls-panel .garage-upgrade-balance-actions {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-controls-panel .garage-hourglass-stock-pill {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-bulk-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-bulk-form {
    flex: 0 0 auto;
    margin: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-bulk-button {
    padding-block: 8px;
    white-space: nowrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-stack {
    gap: 14px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-title-row {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
    display: grid;
    align-content: center;
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-visual {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .team-upgrade-image {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .team-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary > span:last-child {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 999px;
    background: #fff0d7;
    white-space: nowrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: #f9edda;
    color: #a56521;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card[open] summary::after {
    content: "-";
    padding-bottom: 4px;
    background: linear-gradient(180deg, #ff9b32, #f3741d);
    color: #fff;
    border-color: transparent;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-garage-infrastructure) .upgrade-star-cycle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
    margin-top: -2px;
}

:where(.ui-page-garage-infrastructure) .upgrade-star-cycle-tab.button {
    min-height: 38px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
}

:where(.ui-page-garage-infrastructure) .upgrade-star-cycle-tab.button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-garage-infrastructure) .upgrade-star-cycle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: none;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card {
    min-height: 100%;
    gap: 12px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 14px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    padding: 14px 16px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .upgrade-title-row {
    grid-area: head;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: 215px 132px 126px;
    width: max-content;
    max-width: none;
    justify-content: start;
    gap: 7px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid {
    grid-area: offers;
    grid-template-columns: minmax(260px, 1.1fr) minmax(160px, 0.48fr) minmax(150px, 0.42fr);
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    justify-content: stretch;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid .resource-preview-item {
    width: 100%;
    box-sizing: border-box;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions {
    align-self: stretch;
    align-content: center;
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    grid-template-columns: none;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-actions {
    gap: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-actions .button {
    min-height: 52px;
    min-width: 210px;
    width: auto;
    border-radius: 14px;
    padding-inline: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job {
    grid-area: job;
    display: grid;
    align-items: stretch;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card {
    min-width: 0;
    min-height: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.15;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

:where(.ui-page-garage-infrastructure) .garage-jobs-title-row {
    align-items: center;
    margin-bottom: 14px;
}

:where(.ui-page-garage-infrastructure) .garage-hourglass-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    vertical-align: middle;
}

:where(.ui-page-garage-infrastructure) .garage-hourglass-stock-pill .button-resource-icon {
    width: 1.3em;
    height: 1.3em;
}

:where(.ui-page-garage-infrastructure) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

:where(.ui-page-garage-infrastructure) .garage-job-main .garage-repair-job-visual {
    padding: 5px;
}

:where(.ui-page-garage-infrastructure) .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass {
        padding-left: 6px;
        border-left: 0;
    }
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card .resource-preview-list {
    margin-top: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-actions form {
    width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-main {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-meta {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-actions {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-offer-grid {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions form {
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row {
    grid-template-columns: minmax(96px, 142px) minmax(0, 1fr);
    align-items: start;
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-visual {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .resource-preview-item > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head {
    flex-wrap: wrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot {
    flex-wrap: wrap;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head > span:first-child {
    flex: 1 1 150px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot > strong {
    flex: 1 1 150px;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head .upgrade-stars {
    flex: 0 1 auto;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions form {
    width: auto;
    max-width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions .button {
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
    grid-template-areas: "head offers"
        "head progress"
        "head actions"
        "job job";
    align-items: stretch;
    gap: 14px 24px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .upgrade-title-row {
    grid-area: head;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-offer-grid {
    grid-area: offers;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.65fr));
    width: 100%;
    justify-self: stretch;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-progress {
    grid-area: progress;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card {
    margin-right: auto;
    min-width: 260px;
    max-width: 340px;
    align-content: center;
    padding: 8px 12px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions .button {
    width: auto;
    min-width: 210px;
    min-height: 52px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid {
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-garage-infrastructure) .resource-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 900px) {

    :where(.ui-page-garage-infrastructure) .catalog-card {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-garage-infrastructure) .catalog-card {
        padding: 12px;
    }
}

:where(.ui-page-garage-infrastructure) .catalog-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-garage-infrastructure) .catalog-card p {
    line-height: 1.45;
}

:where(.ui-page-garage-infrastructure) .resource-preview-list-compact {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-garage-infrastructure) .catalog-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-detail-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary > span:last-child {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-visual {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .team-upgrade-image {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary::after {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card[open] summary::after {
    border-color: transparent;
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage-infrastructure) .garage-detail-status-pill {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}
}/* Source: public/css/source/pages/garage-show/game.css */

@layer base {/* garage-show: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-body > .car-panel-detail-progress-grid {
    grid-column: 2;
    width: 100%;
    margin-top: 6px;
}

:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-main > .car-panel-detail-progress-grid {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage-show) .garage-detail-head-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
}

:where(.ui-page-garage-show) .garage-detail-head-actions .dealership-hero-pill {
    min-height: 42px;
    height: 42px;
    padding-block: 0;
    align-self: stretch;
}

:where(.ui-page-garage-show) .card-actions.garage-detail-head-buttons {
    margin: 0;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons .button {
    min-height: 42px;
    height: 42px;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons form {
    min-height: 42px;
    height: 42px;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons .button {
    padding-inline: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons .button-secondary {
    min-width: auto;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons .garage-detail-car-nav-actions {
    display: contents;
}

:where(.ui-page-garage-show) .city-jobs-hero-title-row .garage-hourglass-stock-pill {
    flex: 0 0 auto;
}

:where(.ui-page-garage-show) .garage-infrastructure-summary-actions .garage-detail-status-pill {
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
    grid-column: 1 / -1;
    justify-self: end;
}

:where(.ui-page-garage-show) .table-row {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
    outline: 1px solid rgba(var(--action-rgb), 0.18);
}

:where(.ui-page-garage-show) .home-active-car-panel .dealership-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
}

:where(.ui-page-garage-show) .home-active-car-panel .dealership-active-media .car-visual.is-featured {
    width: 100%;
    justify-self: center;
}

:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-body {
    grid-template-columns: minmax(346px, 0.61fr) minmax(0, 1.39fr);
}

:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-media {
    display: grid;
    justify-items: center;
    gap: 8px;
}

:where(.ui-page-garage-show) .home-active-car-panel .car-panel-home-run-action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

:where(.ui-page-garage-show) .home-active-car-panel .car-panel-home-run-action .button {
    min-width: 190px;
}

:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

@media (max-width: 760px) {

    :where(.ui-page-garage-show) .garage-infrastructure-summary-actions .garage-detail-status-pill {
        grid-column: auto;
        justify-self: stretch;
    }

    :where(.ui-page-garage-show) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
        grid-column: auto;
        justify-self: stretch;
    }
}

:where(.ui-page-garage-show) .upgrade-title-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

:where(.ui-page-garage-show) .upgrade-title-row strong {
    min-width: 0;
}

:where(.ui-page-garage-show) .upgrade-title-row p {
    min-width: 0;
}

:where(.ui-page-garage-show) .table-row {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

:where(.ui-page-garage-show) .table-list-four .table-row:not(:has(> :nth-child(4)))::after {
    content: "";
}

:where(.ui-page-garage-show) .catalog-card {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-garage-show) .catalog-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

:where(.ui-page-garage-show) .dealership-active-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-garage-show) .track-mastery-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

:where(.ui-page-garage-show) .resource-preview-list-compact {
    margin-top: 12px;
}

:where(.ui-page-garage-show) .slot-header {
    font-weight: 700;
    background: rgba(251, 232, 207, 0.52);
}

:where(.ui-page-garage-show) .garage-upgrade-guide-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel.garage-accordion {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    box-shadow: 0 14px 34px rgba(47, 37, 30, 0.06);
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle {
    min-height: 0;
    padding-block: 16px 14px;
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle strong {
    font-size: 1.1rem;
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle .muted {
    margin: 8px 0 0;
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-icon {
    border-color: rgba(226, 124, 50, 0.28);
    background: rgba(249, 238, 218, 0.88);
}

:where(.ui-page-garage-show) .garage-mastery-scale-panel .upgrade-star-cycle-tabs {
    margin-top: 8px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill {
    margin-left: auto;
}

:where(.ui-page-garage-show) .garage-detail-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-upgrade-balance-head {
    align-items: center;
}

:where(.ui-page-garage-show) .garage-upgrade-balance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

:where(.ui-page-garage-show) .garage-upgrade-controls-panel .garage-upgrade-balance-actions {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-upgrade-controls-panel .garage-hourglass-stock-pill {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-upgrade-controls-panel .garage-upgrade-balance-pill {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-upgrade-balance-pill {
    min-width: 128px;
}

:where(.ui-page-garage-show) .garage-upgrade-bulk-form {
    flex: 0 0 auto;
    margin: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-bulk-button {
    padding-block: 8px;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-stack {
    gap: 14px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-title-row {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
    display: grid;
    align-content: center;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-visual {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .team-upgrade-image {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card .team-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card summary > span:last-child {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 999px;
    background: #fff0d7;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: #f9edda;
    color: #a56521;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card[open] summary::after {
    content: "-";
    padding-bottom: 4px;
    background: linear-gradient(180deg, #ff9b32, #f3741d);
    color: #fff;
    border-color: transparent;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-garage-show) .upgrade-star-cycle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
    margin-top: -2px;
}

:where(.ui-page-garage-show) .upgrade-star-cycle-tab.button {
    min-height: 38px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
}

:where(.ui-page-garage-show) .upgrade-star-cycle-tab.button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-garage-show) .upgrade-star-cycle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: none;
}

:where(.ui-page-garage-show) .garage-upgrade-guide-panel {
    overflow: visible;
}

:where(.ui-page-garage-show) .garage-history-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-history-panel .panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 0;
}

:where(.ui-page-garage-show) .garage-history-panel .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-history-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-car-detail-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
    position: static;
    z-index: auto;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

:where(.ui-page-garage-show) .garage-car-detail-tabs .garage-detail-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-mastery-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-mastery-panel .panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 0;
}

:where(.ui-page-garage-show) .garage-mastery-meter {
    margin: 0;
}

:where(.ui-page-garage-show) .garage-mastery-meter .track-mastery-stars {
    justify-content: flex-end;
}

:where(.ui-page-garage-show) .garage-mastery-current-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.88);
}

:where(.ui-page-garage-show) .garage-mastery-next-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.88);
}

:where(.ui-page-garage-show) .garage-mastery-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-mastery-next-panel {
    align-items: stretch;
}

:where(.ui-page-garage-show) .garage-mastery-next-heading {
    display: grid;
    align-content: center;
    gap: 4px;
}

:where(.ui-page-garage-show) .garage-mastery-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-mastery-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-mastery-next-grid .profile-stat-card {
    background: #ffffff;
}

:where(.ui-page-garage-show) .garage-history-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-garage-show) .garage-history-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
}

:where(.ui-page-garage-show) .garage-history-card span {
    color: var(--muted);
}

:where(.ui-page-garage-show) .garage-history-card p {
    color: var(--muted);
}

:where(.ui-page-garage-show) .garage-history-card strong {
    font-size: 1.25rem;
    line-height: 1.15;
}

:where(.ui-page-garage-show) .garage-history-card p {
    margin: 0;
}

:where(.ui-page-garage-show) .garage-history-recent {
    display: grid;
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-history-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(140px, 1fr) minmax(170px, auto) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.88);
    color: inherit;
    text-decoration: none;
}

:where(.ui-page-garage-show) .garage-history-opponent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-history-row:hover {
    border-color: rgba(var(--theme-border-rgb), 0.36);
    transform: translateY(-1px);
}

:where(.ui-page-garage-show) .garage-history-row small {
    color: var(--muted);
}

:where(.ui-page-garage-show) .garage-history-row > span:not(.race-result-pill) {
    color: var(--muted);
}

:where(.ui-page-garage-show) .garage-history-stats {
    font-weight: 800;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-history-empty {
    align-items: flex-start;
}

:where(.ui-page-garage-show) .garage-repair-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-repair-panel .panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 0;
}

:where(.ui-page-garage-show) .garage-condition-forecast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

:where(.ui-page-garage-show) .garage-condition-forecast-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.88);
}

:where(.ui-page-garage-show) .garage-condition-forecast-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-condition-forecast-cards .profile-stat-card {
    min-height: 78px;
    background: #ffffff;
}

:where(.ui-page-garage-show) .garage-repair-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
    align-items: stretch;
}

:where(.ui-page-garage-show) .garage-repair-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

:where(.ui-page-garage-show) .garage-repair-card strong {
    font-size: 1.06rem;
}

:where(.ui-page-garage-show) .garage-repair-kit-overview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

:where(.ui-page-garage-show) .garage-repair-kit-overview img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-garage-show) .garage-repair-kit-preview {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 10px;
    background: rgba(255, 247, 236, 0.92);
    cursor: zoom-in;
    overflow: hidden;
}

:where(.ui-page-garage-show) .garage-repair-kit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

:where(.ui-page-garage-show) .garage-repair-kit-overview div {
    display: grid;
    gap: 4px;
}

:where(.ui-page-garage-show) .garage-repair-kit-overview span {
    color: var(--muted);
    line-height: 1.25;
}

:where(.ui-page-garage-show) .garage-repair-kit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(132px, auto);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

:where(.ui-page-garage-show) .garage-repair-kit-multi-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0;
    padding-bottom: 54px;
}

:where(.ui-page-garage-show) .garage-repair-kit-multi-form .repair-kit-stepper-control {
    flex: 0 0 auto;
    grid-template-columns: 2.35rem minmax(5.5rem, auto) 2.35rem;
}

:where(.ui-page-garage-show) .garage-repair-kit-multi-form .garage-repair-kit-submit {
    min-height: 2.75rem;
}

:where(.ui-page-garage-show) .garage-repair-kit-selection-summary {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

:where(.ui-page-garage-show) .quantity-stepper-button {
    min-width: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding-inline: .7rem;
    font-size: 1.1rem;
}

:where(.ui-page-garage-show) .quantity-stepper-button .button-action-icon {
    display: none;
}

:where(.ui-page-garage-show) .garage-slot-stack {
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-slot-header {
    border-radius: 18px;
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
}

:where(.ui-page-garage-show) .garage-upgrade-card {
    min-height: 100%;
    gap: 12px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 14px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    padding: 14px 16px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .upgrade-title-row {
    grid-area: head;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
    grid-template-columns: 215px 132px 126px;
    width: max-content;
    max-width: none;
    justify-content: start;
    gap: 7px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid {
    grid-area: offers;
    grid-template-columns: minmax(260px, 1.1fr) minmax(160px, 0.48fr) minmax(150px, 0.42fr);
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    justify-content: stretch;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-offer-grid .resource-preview-item {
    width: 100%;
    box-sizing: border-box;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions {
    align-self: stretch;
    align-content: center;
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    grid-template-columns: none;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-actions {
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-actions .button {
    min-height: 52px;
    min-width: 210px;
    width: auto;
    border-radius: 14px;
    padding-inline: 10px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job {
    grid-area: job;
    display: grid;
    align-items: stretch;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card {
    min-width: 0;
    min-height: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.15;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-repair-inline-job {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.88);
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-repair-inline-job .garage-upgrade-inline-job-card.is-hourglass {
    padding-left: 0;
    border-left: 0;
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-repair-inline-job .hourglass-action-group {
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-repair-inline-job .hourglass-action-form {
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

:where(.ui-page-garage-show) .garage-jobs-title-row {
    align-items: center;
    margin-bottom: 14px;
}

:where(.ui-page-garage-show) .garage-hourglass-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    vertical-align: middle;
}

:where(.ui-page-garage-show) .garage-hourglass-stock-pill .button-resource-icon {
    width: 1.3em;
    height: 1.3em;
}

:where(.ui-page-garage-show) .garage-panel-pill-stack {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-panel-pill-stack {
    flex-direction: column;
    align-items: flex-end;
    min-width: max-content;
}

:where(.ui-page-garage-show) .garage-stock-pill-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: .55rem;
    white-space: nowrap;
}

:where(.ui-page-garage-show) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual {
    width: 112px;
    height: 112px;
    padding: 6px;
    border-radius: 10px;
}

:where(.ui-page-garage-show) .garage-job-row.is-repair-job .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-main {
    grid-template-columns: 142px minmax(0, 1fr);
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-repair-job .garage-job-main {
    grid-template-columns: 142px minmax(0, 1fr);
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-main .upgrade-visual {
    width: 140px;
    height: 140px;
    padding: 6px;
    border-radius: 10px;
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-repair-job .garage-job-main .garage-repair-job-visual {
    width: 140px;
    height: 140px;
    padding: 6px;
    border-radius: 10px;
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-main .upgrade-visual img {
    border-radius: 8px;
    object-fit: contain;
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-repair-job .garage-job-main .garage-repair-job-visual img {
    border-radius: 8px;
    object-fit: contain;
}

:where(.ui-page-garage-show) .garage-job-main .garage-repair-job-visual {
    padding: 5px;
}

:where(.ui-page-garage-show) .garage-job-main .garage-repair-job-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-show) .garage-upgrade-inline-job {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass {
        padding-left: 6px;
        border-left: 0;
    }
}

:where(.ui-page-garage-show) .garage-upgrade-card .resource-preview-list {
    margin-top: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-garage-show) .garage-upgrade-actions form {
    width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-main {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-meta {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .ui-row-actions {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-offer-grid {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-title-copy {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions form {
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row {
    grid-template-columns: minmax(96px, 142px) minmax(0, 1fr);
    align-items: start;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-visual {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .resource-preview-item > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head {
    flex-wrap: wrap;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot {
    flex-wrap: wrap;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head > span:first-child {
    flex: 1 1 150px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot > strong {
    flex: 1 1 150px;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head .upgrade-stars {
    flex: 0 1 auto;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions form {
    width: auto;
    max-width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-actions .button {
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    align-items: stretch;
    gap: 14px 24px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card:not(:where(.garage-upgrade-card--available)) {
    grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
    grid-template-areas: "head offers"
        "head progress"
        "head actions"
        "job job";
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .upgrade-title-row {
    grid-area: head;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-offer-grid {
    grid-area: offers;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.65fr));
    width: 100%;
    justify-self: stretch;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-progress {
    grid-area: progress;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card {
    margin-right: auto;
    min-width: 260px;
    max-width: 340px;
    align-content: center;
    padding: 8px 12px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-actions .button {
    width: auto;
    min-width: 210px;
    min-height: 52px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid {
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid > .garage-upgrade-offer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
    grid-template-areas: "main meta note";
    align-items: center;
    gap: 20px 24px;
    padding: 16px 18px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head {
    grid-area: main;
    align-items: center;
    gap: 18px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head .upgrade-visual {
    width: 140px;
    max-width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-meta {
    grid-area: meta;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-note {
    grid-area: note;
    align-self: center;
    justify-self: start;
    max-width: 280px;
    color: var(--muted);
    font-size: var(--body-font-size);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock {
    grid-template-areas: "main meta";
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock > .garage-upgrade-incoming-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-garage-show) .garage-upgrade-note {
    line-height: 1.5;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
        grid-template-areas: "main"
            "meta"
            "note";
    }

    :where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock {
        grid-template-areas: "main"
            "meta";
    }

    :where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-note {
        max-width: none;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .resource-preview-list {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-garage-show) .resource-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

:where(.ui-page-garage-show) .dealership-active-panel {
    display: grid;
    gap: 16px;
    align-items: start;
}

:where(.ui-page-garage-show) .dealership-active-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

:where(.ui-page-garage-show) .dealership-active-head h1 {
    margin: 0;
}

@media (max-width: 1240px) {

    :where(.ui-page-garage-show) .garage-mastery-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    :where(.ui-page-garage-show) .garage-mastery-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    :where(.ui-page-garage-show) .garage-mastery-next-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    :where(.ui-page-garage-show) .garage-history-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {

    :where(.ui-page-garage-show) .garage-mastery-next-panel {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-mastery-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-mastery-next-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-condition-forecast-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-history-highlight-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-history-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .table-row {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-garage-show) .dealership-active-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-garage-show) .card-actions.garage-detail-head-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-garage-show) .garage-history-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    :where(.ui-page-garage-show) .garage-repair-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-condition-forecast-cards {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-mastery-summary-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-repair-kit-form {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-repair-kit-multi-form {
        min-height: 0;
        padding-bottom: 20px;
    }

    :where(.ui-page-garage-show) .garage-repair-kit-selection-summary {
        position: static;
        grid-column: 1;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-garage-show) .table-row {
        min-width: 0;
    }

    :where(.ui-page-garage-show) .catalog-card {
        min-width: 0;
    }

    :where(.ui-page-garage-show) .table-list-four .table-row::after {
        display: none;
    }

    :where(.ui-page-garage-show) .garage-detail-head-actions {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-garage-show) .garage-detail-head-buttons {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-garage-show) .garage-detail-head-buttons > * {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-garage-show) .table-row {
        padding: 12px;
        border-radius: 16px;
    }

    :where(.ui-page-garage-show) .catalog-card {
        padding: 12px;
    }
}

:where(.ui-page-garage-show) .catalog-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-garage-show) .garage-repair-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-garage-show) .garage-history-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-garage-show) .catalog-card p {
    line-height: 1.45;
}

:where(.ui-page-garage-show) .garage-detail-head-buttons {
    gap: 8px;
}

:where(.ui-page-garage-show) .resource-preview-list-compact {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-garage-show) .catalog-card {
        border-radius: 8px;
    }

    :where(.ui-page-garage-show) .garage-repair-card {
        border-radius: 8px;
    }

    :where(.ui-page-garage-show) .garage-history-card {
        border-radius: 8px;
    }

    :where(.ui-page-garage-show) .garage-detail-head-buttons > * {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-slot-header {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-panel .garage-slot-header {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text);
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-garage-show) .garage-detail-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card summary > span:last-child {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-visual {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card .team-upgrade-image {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card summary::after {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-show) .garage-upgrade-guide-card[open] summary::after {
    border-color: transparent;
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
}

:where(.ui-page-garage-show) .garage-history-row {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-garage-show) .garage-detail-status-pill {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

.game-shell:where(.ui-page-garage-show) .garage-condition-forecast-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.game-shell:where(.ui-page-garage-show) .garage-condition-forecast-panel {
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
}

.game-shell:where(.ui-page-garage-show) .garage-condition-forecast-cards {
    gap: 8px;
}

.game-shell:where(.ui-page-garage-show) .garage-condition-forecast-cards .profile-stat-card {
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-stat-grid .profile-stat-card {
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-summary-grid .profile-stat-card {
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-next-grid .profile-stat-card {
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-panel {
    gap: 14px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-meter {
    padding: 12px 14px;
    border-radius: 14px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-current-panel {
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-next-panel {
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr);
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-next-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.game-shell:where(.ui-page-garage-show) .garage-mastery-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-garage-show) .garage-mastery-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-garage-show) .garage-mastery-next-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-garage-show) .garage-mastery-summary-grid {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head-actions {
    display: contents;
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }

    .game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel {
    row-gap: 0;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-main {
    gap: 6px;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-head {
    margin-bottom: 2px;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-actions {
    align-items: center;
    justify-content: flex-end;
    row-gap: 6px;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-inline-status-pills {
    align-self: center;
    margin-right: 0;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-garage-slots-card {
    width: fit-content;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    align-self: center;
    display: flex;
    align-items: center;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-garage-media-title {
    display: grid;
    justify-self: stretch;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-garage-media-title {
    justify-self: stretch;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-garage-media-title .eyebrow {
    margin: 0;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-head > .car-panel-garage-slots-card {
    width: fit-content;
    justify-self: end;
    margin-left: auto;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-head > .car-panel-garage-slots-card {
        justify-self: start;
        margin-left: 0;
    }
}

.game-shell:where(.ui-page-garage-show) .garage-detail-head-buttons .button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-actions .button {
    font-family: inherit;
    font-size: inherit;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card {
    --structured-action-image-size: 200px;
}
}/* Source: public/css/source/pages/garage-slots/game.css */

@layer base {/* garage-slots: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-slots) .garage-summary-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

:where(.ui-page-garage-slots) .garage-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:where(.ui-page-garage-slots) .garage-summary-head h1 {
    margin: 0;
}

:where(.ui-page-garage-slots) .garage-summary-head .muted {
    margin: 0;
    text-align: right;
}

:where(.ui-page-garage-slots) .garage-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

:where(.ui-page-garage-slots) .garage-unlock-slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

:where(.ui-page-garage-slots) .garage-unlock-slot-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:where(.ui-page-garage-slots) .slot-upgrade-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 247, 236, 0.86);
}

:where(.ui-page-garage-slots) .garage-summary-panel .slot-upgrade-box {
    margin-top: 0;
}

:where(.ui-page-garage-slots) .garage-summary-panel .garage-next-slot-box {
    min-height: 96px;
    padding: 22px 26px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.7);
}

:where(.ui-page-garage-slots) .garage-next-slot-box strong {
    display: block;
    margin-bottom: 18px;
    font-size: 1.06rem;
    font-weight: 500;
}

:where(.ui-page-garage-slots) .garage-next-slot-box p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-panel .panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 210px;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    background: rgba(255, 251, 246, 0.84);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-owned {
    border-color: rgba(var(--success-rgb), 0.22);
    background: rgba(237, 248, 240, 0.9);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-available {
    border-color: rgba(var(--action-rgb), 0.38);
    box-shadow: 0 14px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-next {
    border-color: rgba(var(--action-rgb), 0.38);
    box-shadow: 0 14px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-level_locked {
    background: rgba(248, 246, 243, 0.88);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-money_locked {
    background: rgba(248, 246, 243, 0.88);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-sequence_locked {
    background: rgba(248, 246, 243, 0.88);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card-head p {
    margin: 4px 0 0;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card-head strong {
    font-size: 1.05rem;
    font-weight: 500;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card-head .badge {
    min-height: 34px;
    padding: 6px 10px;
    text-align: center;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-meta div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-meta dt {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.12;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.14;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-visual {
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
    padding: 10px;
    border: 3px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 18px;
    background: rgba(255, 249, 240, 0.94);
    box-shadow: 0 10px 22px rgba(var(--theme-shadow-rgb), 0.1);
    overflow: hidden;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-visual img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
    display: block;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-card form {
    align-self: end;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "head head"
        "visual meta"
        "visual action";
    align-items: start;
    gap: 14px;
    min-height: 0;
    padding: 16px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card:not(:has(form)) {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "head head"
        "visual meta";
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-visual {
    grid-area: visual;
    align-self: center;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card-head {
    grid-area: head;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card-head .badge {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta div {
    min-height: 58px;
    display: grid;
    align-content: center;
    padding: 7px 11px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-cost-card {
    grid-column: span 3;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-text-card {
    grid-column: span 2;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta .resource-metric-chip {
    min-height: 50px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card form {
    grid-area: action;
    justify-self: end;
    align-self: start;
    display: grid;
    align-content: center;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card form .button {
    width: auto;
    min-width: 190px;
    min-height: 48px;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card form .button:disabled {
    opacity: 0.7;
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.14), rgba(var(--action-rgb), 0.08));
    color: var(--theme-text, var(--text));
    box-shadow: none;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card {
        grid-template-columns: 1fr;
        grid-template-areas: "visual"
            "head"
            "meta"
            "note"
            "action";
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card:not(:has(form)) {
        grid-template-columns: 1fr;
        grid-template-areas: "visual"
            "head"
            "meta"
            "note"
            "action";
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-visual {
        justify-self: start;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-cost-card {
        grid-column: span 1;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-text-card {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-cost-card {
        grid-column: 1 / -1;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-text-card {
        grid-column: 1 / -1;
    }

    :where(.ui-page-garage-slots) .garage-summary-head {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-panel .panel-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-garage-slots) .garage-summary-actions {
        justify-content: flex-start;
    }

    :where(.ui-page-garage-slots) .garage-summary-head .muted {
        text-align: left;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-garage-slots) .garage-summary-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 960px) {

    :where(.ui-page-garage-slots) .slot-upgrade-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

:where(.ui-page-garage-slots) .garage-summary-head {
    gap: 12px;
}

:where(.ui-page-garage-slots) .garage-unlock-slot-button:not(:disabled) {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-available {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-slots) .garage-slot-roadmap-card.is-next {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-garage-slots) .garage-slot-roadmap-meta div {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-slots) .garage-next-slot-box {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-garage-slots) .slot-upgrade-box {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}
}/* Source: public/css/source/pages/home/game.css */

@layer base {/* home: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home) .home-active-car-panel .dealership-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
}

:where(.ui-page-home) .home-active-car-panel .dealership-active-media .car-visual.is-featured {
    width: 100%;
    justify-self: center;
}

:where(.ui-page-home) .home-active-car-panel .car-panel-full-body {
    grid-template-columns: minmax(346px, 0.61fr) minmax(0, 1.39fr);
}

:where(.ui-page-home) .home-active-car-panel .car-panel-full-media {
    display: grid;
    justify-items: center;
    gap: 8px;
}

:where(.ui-page-home) .home-active-car-panel .car-panel-home-run-action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

:where(.ui-page-home) .home-active-car-panel .car-panel-home-run-action .button {
    min-width: 190px;
}

:where(.ui-page-home) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

:where(.ui-page-home) .home-hero-stack {
    grid-template-columns: 1fr;
}

:where(.ui-page-home) .home-welcome-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-home) .home-welcome-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading badge"
        "lead lead";
    align-items: start;
    gap: 18px;
}

:where(.ui-page-home) .home-welcome-heading {
    grid-area: heading;
    min-width: 0;
}

:where(.ui-page-home) .home-welcome-head h1 {
    margin: 0;
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.1;
}

:where(.ui-page-home) .home-welcome-head .resources-lead {
    grid-area: lead;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

:where(.ui-page-home) .home-welcome-status-pill {
    grid-area: badge;
    justify-self: end;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-home) .home-welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-home) .home-welcome-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 245, 0.82);
}

:where(.ui-page-home) .home-welcome-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    font-weight: 900;
}

:where(.ui-page-home) .home-welcome-step strong {
    display: block;
    font-size: 1rem;
    line-height: 1.15;
}

:where(.ui-page-home) .home-welcome-step p {
    margin: 6px 0 0;
    color: var(--muted);
}

:where(.ui-page-home) .home-welcome-boost p {
    margin: 6px 0 0;
    color: var(--muted);
}

:where(.ui-page-home) .home-welcome-boost {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(var(--action-rgb), 0.35);
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(255, 245, 226, 0.96), rgba(255, 251, 245, 0.96));
}

:where(.ui-page-home) .home-welcome-boost form {
    flex: 0 0 auto;
}

:where(.ui-page-home) .dealership-active-panel {
    display: grid;
    gap: 16px;
    align-items: start;
}

@media (max-width: 960px) {

    :where(.ui-page-home) .home-welcome-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-home) .home-welcome-head {
        flex-direction: column;
    }

    :where(.ui-page-home) .home-welcome-boost {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-home) .home-welcome-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "heading badge"
            "lead lead";
        align-items: start;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-home) .home-welcome-head {
        gap: 10px;
    }
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head-actions {
    display: contents;
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
    grid-column: 2;
    justify-self: end;
    width: fit-content;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head-actions .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }

    .game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-head:not(.has-status-pills) .car-panel-full-actions {
        grid-column: 1;
        justify-self: start;
        width: 100%;
    }
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-garage-media-title {
    justify-self: stretch;
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}
}/* Source: public/css/source/pages/home-calendar/game.css */

@layer base {/* home-calendar: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home-calendar) .race-calendar-panel {
    display: grid;
    gap: 16px;
}

:where(.ui-page-home-calendar) .race-calendar-title-row {
    align-items: flex-start;
    justify-content: flex-end;
}

:where(.ui-page-home-calendar) .race-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}

:where(.ui-page-home-calendar) .race-calendar-nav .is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

:where(.ui-page-home-calendar) .race-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-home-calendar) .race-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-home-calendar) .race-calendar-weekdays span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

:where(.ui-page-home-calendar) .race-calendar-day {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
}

:where(.ui-page-home-calendar) .race-calendar-day.is-special {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(224, 242, 254, 0.65);
}

:where(.ui-page-home-calendar) .race-calendar-day.is-today {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:where(.ui-page-home-calendar) .race-calendar-day.is-outside-month {
    opacity: 0.48;
}

:where(.ui-page-home-calendar) .race-calendar-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

:where(.ui-page-home-calendar) .race-calendar-day-number {
    font-size: 1rem;
    font-weight: 900;
}

:where(.ui-page-home-calendar) .race-calendar-date-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-home-calendar) .race-calendar-day-name {
    color: var(--muted);
    display: none;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-home-calendar) .race-calendar-today {
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 7px;
}

:where(.ui-page-home-calendar) .race-calendar-change-items {
    display: grid;
    gap: 5px;
}

:where(.ui-page-home-calendar) .race-calendar-change-items p {
    margin: 0;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: normal;
}

@media (max-width: 767px) {

    :where(.ui-page-home-calendar) .race-calendar-weekdays {
        display: none;
    }

    :where(.ui-page-home-calendar) .race-calendar-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.ui-page-home-calendar) .race-calendar-day-name {
        display: inline;
    }

    :where(.ui-page-home-calendar) .race-calendar-day {
        min-height: 104px;
    }
}

:where(.ui-page-home-calendar) .race-directory-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

:where(.ui-page-home-calendar) .race-directory-hero h1 {
    margin: 0;
}

:where(.ui-page-home-calendar) .race-directory-hero p {
    margin: 0;
}

:where(.ui-page-home-calendar) .race-directory-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

:where(.ui-page-home-calendar) .race-calendar-hero {
    display: flex;
    flex-flow: row wrap;
    align-items: start;
}

:where(.ui-page-home-calendar) .race-calendar-heading {
    grid-area: heading;
    flex: 1 1 260px;
    min-width: 0;
}

:where(.ui-page-home-calendar) .race-calendar-actions {
    grid-area: actions;
    justify-self: end;
}

:where(.ui-page-home-calendar) .race-calendar-lead {
    grid-area: lead;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

@media (max-width: 960px) {

    :where(.ui-page-home-calendar) .race-directory-hero {
        align-items: stretch;
        display: flex;
        flex-flow: row wrap;
    }

    :where(.ui-page-home-calendar) .race-directory-hero-actions {
        justify-content: flex-start;
    }
}
}/* Source: public/css/source/pages/home-jobs/game.css */

@layer base {/* home-jobs: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home-jobs) .home-hero-stack {
    grid-template-columns: 1fr;
}
}/* Source: public/css/source/pages/home-race-statistics/game.css */

@layer base {/* home-race-statistics: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home-race-statistics) .home-race-statistics-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-home-race-statistics) .home-race-table-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-home-race-statistics) .home-race-statistics-panel .home-welcome-head {
    margin-top: 0;
}

:where(.ui-page-home-race-statistics) .home-race-statistics-panel .eyebrow {
    margin-top: 0;
}

:where(.ui-page-home-race-statistics) .home-race-statistics-panel h1 {
    margin-top: 0;
}

:where(.ui-page-home-race-statistics) .home-race-statistics-panel .resources-lead {
    margin-top: 8px;
    max-width: none;
}

:where(.ui-page-home-race-statistics) .home-race-stats-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 980px) {

    :where(.ui-page-home-race-statistics) .home-race-stats-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {

    :where(.ui-page-home-race-statistics) .home-race-stats-summary {
        grid-template-columns: minmax(0, 1fr);
    }
}

:where(.ui-page-home-race-statistics) .home-race-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-home-race-statistics) .home-race-chart-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

:where(.ui-page-home-race-statistics) .home-race-chart-card h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.15rem;
}

:where(.ui-page-home-race-statistics) .home-race-table-panel h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.15rem;
}

:where(.ui-page-home-race-statistics) .home-race-chart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value"
        "bar bar";
    gap: 8px 12px;
    align-items: center;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

:where(.ui-page-home-race-statistics) .home-race-chart-row > span {
    grid-area: label;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.ui-page-home-race-statistics) .home-race-chart-row > strong {
    grid-area: value;
    justify-self: end;
    color: var(--text);
    font-size: 1rem;
}

:where(.ui-page-home-race-statistics) .home-race-chart-bar {
    grid-area: bar;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(246, 147, 43, 0.14);
}

:where(.ui-page-home-race-statistics) .home-race-chart-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

:where(.ui-page-home-race-statistics) .home-race-table-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

:where(.ui-page-home-race-statistics) .home-race-format-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(.ui-page-home-race-statistics) .home-race-format-pills span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 1rem;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 1rem;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table th {
    color: var(--accent);
    font-weight: 900;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table td {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-weight: 500;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
}

:where(.ui-page-home-race-statistics) .home-race-stats-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 8px 8px 0;
}

@media (max-width: 1100px) {

    :where(.ui-page-home-race-statistics) .home-race-statistics-grid {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-home-race-statistics) .home-welcome-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading badge"
        "lead lead";
    align-items: start;
    gap: 18px;
}

:where(.ui-page-home-race-statistics) .home-welcome-head h1 {
    margin: 0;
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.1;
}

:where(.ui-page-home-race-statistics) .home-welcome-head .resources-lead {
    grid-area: lead;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

@media (max-width: 960px) {

    :where(.ui-page-home-race-statistics) .home-welcome-head {
        flex-direction: column;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "heading badge"
            "lead lead";
        align-items: start;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-home-race-statistics) .home-welcome-head {
        gap: 10px;
    }
}
}/* Source: public/css/source/pages/home-unlocks/game.css */

@layer base {/* home-unlocks: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home-unlocks) .unlock-roadmap-panel {
    display: grid;
    gap: 16px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-head h1 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.1;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-panel .resources-lead {
    max-width: none;
    width: 100%;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.9);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card strong {
    display: block;
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-category {
    display: grid;
    gap: 14px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-list {
    display: grid;
    gap: 8px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-row {
    display: flex;
    flex-flow: row wrap;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.88);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-row.is-unlocked {
    border-color: rgba(var(--success-rgb), 0.34);
    background: rgba(247, 255, 239, 0.78);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-state {
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    font-weight: 900;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-row.is-unlocked .unlock-roadmap-state {
    border-color: rgba(var(--success-rgb), 0.32);
    background: rgba(222, 244, 207, 0.9);
    color: #47792d;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-main {
    flex: 3 1 280px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-title-line strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.15;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-title-line span {
    font-size: 0.82rem;
    font-weight: 500;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-main p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-status {
    flex: 2 1 200px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-status strong {
    display: block;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-status span {
    display: block;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-status strong {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-button {
    min-width: 120px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-actions {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-actions .unlock-roadmap-button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

:where(.ui-page-home-unlocks) .unlock-roadmap-button:not(:disabled) {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-button:not(:disabled):hover {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 6px 12px var(--action-shadow);
}

body.theme-colored:where(.ui-page-home-unlocks) .unlock-roadmap-category {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

body.theme-colored:where(.ui-page-home-unlocks) .unlock-roadmap-panel {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

body.theme-colored:where(.ui-page-home-unlocks) .unlock-roadmap-category .badge:not([class*="badge--"]) {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--accent-2);
}

body.theme-colored:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--accent-2);
}

body.theme-colored:where(.ui-page-home-unlocks) .unlock-roadmap-row.is-unlocked {
    border-color: rgba(var(--success-rgb), 0.34);
    background: rgba(247, 255, 239, 0.78);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-row:not(.is-unlocked) {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-state {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-home-unlocks) .unlock-roadmap-title-line span {
    color: var(--detail-text);
}
}/* Source: public/css/source/pages/inventory/game.css */

@layer base {/* inventory: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-inventory) .friends-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
    margin-top: 0;
}

:where(.ui-page-inventory) .friends-hero .stats-strip {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(320px, 1.4fr);
    gap: 12px;
    margin: 18px 0 0;
}

:where(.ui-page-inventory) .inventory-hero {
    grid-template-columns: 1fr;
}

:where(.ui-page-inventory) .friends-hero .stats-strip > span {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--theme-card-surface-soft);
    box-shadow: var(--theme-card-shadow-compact);
    color: var(--muted);
    align-content: center;
}

:where(.ui-page-inventory) .reward-inventory-list {
    display: grid;
    gap: 10px;
}

:where(.ui-page-inventory) .reward-inventory-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) minmax(100px, auto);
    gap: 18px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(var(--warning-rgb), 0.14);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 12px 26px rgba(77, 55, 35, 0.04);
}

:where(.ui-page-inventory) .reward-inventory-media-wrap {
    display: grid;
    place-items: center;
}

:where(.ui-page-inventory) .reward-inventory-media-wrap .resource-icon-stack.is-card {
    justify-content: center;
}

:where(.ui-page-inventory) .reward-inventory-media-wrap .resource-icon-frame {
    border: 0;
    background: transparent;
}

:where(.ui-page-inventory) .reward-inventory-resource-fallback {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: inline-grid;
    place-items: center;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
}

:where(.ui-page-inventory) .reward-inventory-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

:where(.ui-page-inventory) .reward-inventory-main strong {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: normal;
}

:where(.ui-page-inventory) .reward-inventory-main small {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: normal;
}

:where(.ui-page-inventory) .reward-inventory-main em {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: normal;
}

:where(.ui-page-inventory) .reward-inventory-main small {
    color: var(--accent-2);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

:where(.ui-page-inventory) .reward-inventory-main em {
    color: var(--muted);
    font-style: normal;
}

:where(.ui-page-inventory) .reward-inventory-quantity {
    justify-self: end;
    min-width: 92px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 14px;
    background: rgba(255, 246, 232, 0.78);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 640px) {

    :where(.ui-page-inventory) .reward-inventory-row {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    :where(.ui-page-inventory) .reward-inventory-media-wrap.upgrade-visual-frame-large {
        --upgrade-visual-frame-size: 104px;
    }

    :where(.ui-page-inventory) .reward-inventory-quantity {
        grid-column: 2;
        justify-self: start;
        min-width: 0;
    }
}

body.theme-colored:where(.ui-page-inventory) .friends-hero .stats-strip > span {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-row {
    border-color: var(--theme-outline-soft);
    box-shadow: 0 12px 26px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-media-wrap:not(.upgrade-visual-frame-large) .resource-icon-frame {
    border-color: var(--theme-border);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-quantity {
    border-color: var(--theme-border);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-media-wrap:not(.upgrade-visual-frame-large) .resource-icon-frame {
    background: var(--theme-tint-muted);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-media-wrap:not(.upgrade-visual-frame-large) .reward-inventory-resource-fallback {
    background: var(--theme-tint-muted);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-inventory) .reward-inventory-quantity {
    background: rgba(255, 253, 249, 0.9);
    color: var(--text);
}

:where(.ui-page-inventory) .reward-inventory-row {
    border-color: var(--detail-border-soft);
}
}/* Source: public/css/source/pages/legal-show/game.css */

@layer base {/* legal-show: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-legal-show) .legal-shell {
    display: grid;
    gap: 14px;
    padding-bottom: 28px;
}

:where(.ui-page-legal-show) .legal-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

:where(.ui-page-legal-show) .legal-hero-panel h1 {
    margin: 0 0 10px;
}

:where(.ui-page-legal-show) .legal-hero-panel p {
    max-width: 92ch;
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

:where(.ui-page-legal-show) .legal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

:where(.ui-page-legal-show) .legal-meta span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.9);
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-legal-show) .legal-copy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-legal-show) .legal-section {
    padding: 18px;
    border: 1.5px solid rgba(var(--theme-border-rgb), 0.34);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

:where(.ui-page-legal-show) .legal-section h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

:where(.ui-page-legal-show) .legal-section p {
    color: var(--muted);
    font-weight: 500;
}

:where(.ui-page-legal-show) .legal-section li {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.48;
}

:where(.ui-page-legal-show) .legal-section p {
    margin: 0 0 10px;
}

:where(.ui-page-legal-show) .legal-section p:last-child {
    margin-bottom: 0;
}

:where(.ui-page-legal-show) .legal-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

:where(.ui-page-legal-show) .legal-hero-panel h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 1240px) {

    :where(.ui-page-legal-show) .legal-copy-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-legal-show) .legal-hero-panel {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-legal-show) .legal-meta {
        justify-content: flex-start;
    }
}
}/* Source: public/css/source/pages/madness/game.css */

@layer base {/* madness: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-madness) .reward-bottom-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

:where(.ui-page-madness) .resources-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-madness) .resources-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

:where(.ui-page-madness) .resources-hero h1 {
    margin: 0;
}

:where(.ui-page-madness) .resources-back-button {
    min-width: 240px;
}

:where(.ui-page-madness) .resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

:where(.ui-page-madness) .resource-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-madness) .resource-card h3 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.05;
}

:where(.ui-page-madness) .resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

:where(.ui-page-madness) .resource-card form {
    margin-top: 4px;
}

:where(.ui-page-madness) .resource-card .button {
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    font-size: 1.05rem;
}

:where(.ui-page-madness) .resource-card.is-danger {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 234, 0.98));
}

:where(.ui-page-madness) .madness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-madness) .madness-tab-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-madness) .madness-tab-panel .panel-title-row .resources-lead {
    margin: 6px 0 0;
}

:where(.ui-page-madness) .madness-tab-panel .panel-title-row {
    align-items: start;
    gap: 12px;
}

:where(.ui-page-madness) .madness-tab-panel .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-madness) .madness-tab-panel .panel-title-row > .action-pill {
    justify-self: end;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

:where(.ui-page-madness) .madness-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-madness) .madness-card {
    align-content: start;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(230px, 0.78fr) minmax(300px, 1.12fr) minmax(150px, 0.42fr);
    grid-template-areas: "meta copy details action";
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    min-width: 0;
}

:where(.ui-page-madness) .madness-card-title {
    min-width: 0;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card > p {
    grid-area: copy;
    margin: 0;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card-details {
    grid-area: details;
    margin-top: 0;
    min-width: 0;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card form {
    grid-area: action;
    justify-self: stretch;
    margin: 0;
    min-width: 0;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card .button {
    width: 100%;
    min-height: 54px;
    min-width: 0;
    white-space: normal;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card h3 {
    font-size: 1.08rem;
    line-height: 1.18;
}

:where(.ui-page-madness) .madness-card h3 {
    font-size: 1.45rem;
    line-height: 1.12;
}

:where(.ui-page-madness) .madness-card form {
    justify-self: start;
}

:where(.ui-page-madness) .madness-card .button {
    width: auto;
    min-height: 0;
    border-radius: 14px;
    font-size: inherit;
}

:where(.ui-page-madness) .madness-card-details {
    margin-top: 4px;
}

:where(.ui-page-madness) .madness-card-details .resource-preview-item {
    justify-content: start;
    min-height: 62px;
    min-width: 0;
}

:where(.ui-page-madness) .madness-card-details .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-madness) .madness-history-details .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-madness) .madness-card-details .resource-preview-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

:where(.ui-page-madness) .madness-history-details .resource-preview-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

:where(.ui-page-madness) .madness-card-details .resource-preview-item > span:last-child {
    min-width: 0;
    text-align: left;
    overflow-wrap: normal;
}

:where(.ui-page-madness) .madness-history-details .resource-preview-item > span:last-child {
    min-width: 0;
    text-align: left;
    overflow-wrap: normal;
}

:where(.ui-page-madness) .madness-history-list {
    display: grid;
    gap: 10px;
}

:where(.ui-page-madness) .madness-history-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

:where(.ui-page-madness) .madness-history-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-madness) .madness-history-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.18;
}

:where(.ui-page-madness) .madness-history-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.38;
}

:where(.ui-page-madness) .madness-history-details {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

:where(.ui-page-madness) .madness-history-details .resource-preview-item {
    flex: 1 1 280px;
    margin: 0;
}

@media (max-width: 1180px) {

    :where(.ui-page-madness) .madness-grid.is-row-layout .madness-card {
        grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.35fr) minmax(190px, 0.48fr);
        grid-template-areas: "meta details action"
            "copy details action";
    }

    :where(.ui-page-madness) .madness-history-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-madness) .madness-grid.is-row-layout .madness-card {
        grid-template-columns: 1fr;
        grid-template-areas: "meta"
            "copy"
            "details"
            "action";
    }
}

.game-shell:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card.structured-action-card {
    padding: 16px 18px;
}

:where(.ui-page-madness) .madness-grid.is-row-layout .madness-card.structured-action-card {
    padding: 16px 18px;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card {
    padding: 16px 18px;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card {
    padding: 16px 18px;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-visual {
    grid-area: image;
}

:where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-visual {
    grid-area: image;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-visual {
    grid-area: image;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-visual {
    grid-area: image;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-body {
    grid-area: body;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: none;
}

:where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-body {
    grid-area: body;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: none;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-body {
    grid-area: body;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: none;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-body {
    grid-area: body;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: none;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-title {
    display: grid;
    gap: 5px;
    align-content: start;
    min-width: 0;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-title {
    display: grid;
    gap: 5px;
    align-content: start;
    min-width: 0;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main {
    display: grid;
    gap: 5px;
    align-content: start;
    min-width: 0;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main {
    display: grid;
    gap: 5px;
    align-content: start;
    min-width: 0;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-title h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.18;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-title h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.18;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.18;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.18;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-body > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: normal;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-body > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: normal;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: normal;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-main > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: normal;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-details {
    display: grid;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-details {
    display: grid;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-details {
    display: grid;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-details {
    display: grid;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.game-shell:where(.ui-page-madness) .madness-card-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

:where(.ui-page-madness) .madness-card-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

.game-shell:where(.ui-page-madness) .madness-history-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

:where(.ui-page-madness) .madness-history-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

.game-shell:where(.ui-page-madness) .madness-history-chip.resource-metric-chip.is-cost {
    border-color: rgba(190, 64, 46, 0.28);
    background: rgba(255, 238, 232, 0.82);
}

:where(.ui-page-madness) .madness-history-chip.resource-metric-chip.is-cost {
    border-color: rgba(190, 64, 46, 0.28);
    background: rgba(255, 238, 232, 0.82);
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions {
    justify-content: flex-end;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions {
    justify-content: flex-end;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions .button {
    width: 100%;
    min-height: 50px;
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions .button {
    width: 100%;
    min-height: 50px;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-visual {
        justify-self: start;
    }

    :where(.ui-page-madness) .madness-card.structured-action-card > .madness-card-visual {
        justify-self: start;
    }

    .game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-visual {
        justify-self: start;
    }

    :where(.ui-page-madness) .madness-history-card.structured-action-card > .madness-history-visual {
        justify-self: start;
    }

    .game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions {
        width: 100%;
    }

    :where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions {
        width: 100%;
    }

    .game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions > form {
        width: 100%;
    }

    :where(.ui-page-madness) .madness-card.structured-action-card .madness-card-actions > form {
        width: 100%;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-madness) .resources-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-madness) .resources-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-madness) .resources-back-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-madness) .resource-card {
        min-width: 0;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-madness) .resource-card {
        padding: 12px;
    }
}

:where(.ui-page-madness) .resource-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-madness) .resource-card p {
    line-height: 1.45;
}

@media (max-width: 560px) {

    :where(.ui-page-madness) .resource-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-madness) .madness-card {
    border-color: var(--theme-border-subtle);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-madness) .madness-history-card {
    border-color: var(--theme-border-subtle);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-madness) .madness-card-details .resource-preview-item {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-madness) .madness-history-details .resource-preview-item {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
}

body.theme-colored:where(.ui-page-madness) .madness-card .resource-icon-frame {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-madness) .madness-history-card .resource-icon-frame {
    border-color: var(--theme-border-muted);
}
}/* Source: public/css/source/pages/missions/game.css */

@layer base {/* missions: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-missions) .mission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

:where(.ui-page-missions) .mission-bulk-claim-form {
    flex: 0 0 auto;
}

:where(.ui-page-missions) .mission-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

:where(.ui-page-missions) .section-title-row .mission-panel-actions .race-pager {
    margin-left: 0;
}

:where(.ui-page-missions) .mission-overview-stats > .stat-value-card {
    min-height: 64px;
    padding: 12px 14px;
    align-content: center;
    box-shadow: 0 8px 18px rgba(54, 44, 34, 0.035);
}

:where(.ui-page-missions) .mission-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 12px;
}

:where(.ui-page-missions) .mission-grid .daily-gift-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
}

:where(.ui-page-missions) .mission-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:where(.ui-page-missions) .mission-card.is-claimed {
    border-color: rgba(var(--info-rgb), 0.28);
    background: rgba(246, 250, 255, 0.88);
}

:where(.ui-page-missions) .mission-card.is-locked {
    border-color: rgba(var(--warning-rgb), 0.28);
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 253, 249, 0.96));
}

:where(.ui-page-missions) .mission-card.is-claimed .daily-gift-status {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, #ff9d3d, #ed7c24);
    color: #fff7ec;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.55fr) minmax(150px, 0.26fr);
    grid-template-areas: "head progress action"
        "copy progress action"
        "rewards rewards action";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card .daily-gift-card-head {
    grid-area: head;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card .daily-gift-status {
    min-width: 116px;
    min-height: 34px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > p {
    grid-area: copy;
    align-self: start;
    margin: 0;
    font-size: 0.88rem;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-progress {
    grid-area: progress;
    align-self: center;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-progress .label-row {
    margin-bottom: 4px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward-list {
    grid-area: rewards;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-content: center;
    gap: 6px;
    max-width: none;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward {
    min-height: 58px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: -16px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-size: 1rem;
    white-space: normal;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > .button {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > form .button {
    min-height: 44px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > .button {
    min-height: 44px;
}

:where(.ui-page-missions) .mission-card > form {
    margin-top: auto;
}

:where(.ui-page-missions) .mission-card > .button {
    margin-top: auto;
}

:where(.ui-page-missions) .mission-card > form .button {
    width: 100%;
}

:where(.ui-page-missions) .mission-card > .button {
    width: 100%;
}

:where(.ui-page-missions) .mission-status-button:disabled {
    border-color: rgba(var(--warning-rgb), 0.3);
    background: rgba(255, 248, 239, 0.92);
    color: #9a703d;
    box-shadow: none;
}

:where(.ui-page-missions) .mission-progress {
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-missions) .tour-progress-block {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}

:where(.ui-page-missions) .daily-gift-card:nth-child(7) {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
}

:where(.ui-page-missions) .daily-gift-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-missions) .daily-gift-card.is-available {
    border-color: rgba(var(--action-rgb), 1);
    box-shadow: 0 18px 40px rgba(var(--action-rgb), 0.1);
}

:where(.ui-page-missions) .daily-gift-card.is-current-day {
    border-color: rgba(var(--action-rgb), 0.9);
    background: linear-gradient(180deg, rgba(255, 244, 226, 0.98), rgba(255, 250, 242, 0.98));
    box-shadow: inset 0 0 0 2px rgba(var(--action-rgb), 0.16),
        0 16px 30px rgba(var(--theme-shadow-rgb), 0.14);
}

:where(.ui-page-missions) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: rgba(var(--action-rgb), 0.5);
    background: linear-gradient(180deg, #ff9d3d, #ed7c24);
    color: #fff7ec;
}

:where(.ui-page-missions) .daily-gift-card.is-claimed {
    border-color: rgba(var(--success-rgb), 0.3);
    background: rgba(244, 252, 237, 0.86);
}

:where(.ui-page-missions) .daily-gift-card.is-missed {
    opacity: 0.74;
}

:where(.ui-page-missions) .daily-gift-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
}

:where(.ui-page-missions) .daily-gift-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

:where(.ui-page-missions) .daily-gift-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.22);
    border-radius: 8px;
    background: rgba(var(--action-rgb), 0.12);
    font-size: 0.86rem;
    font-weight: 900;
}

:where(.ui-page-missions) .daily-gift-reward-list {
    display: grid;
}

:where(.ui-page-missions) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-missions) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1240px) {

    :where(.ui-page-missions) .daily-gift-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        align-self: stretch;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-missions) .mission-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card {
        grid-template-columns: 1fr;
        grid-template-areas: "head"
            "copy"
            "progress"
            "rewards"
            "action";
    }
}

@media (max-width: 900px) {

    :where(.ui-page-missions) .daily-gift-card {
        min-width: 0;
    }

    :where(.ui-page-missions) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-missions) .daily-gift-card {
        padding: 12px;
    }
}

:where(.ui-page-missions) .daily-gift-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-missions) .daily-gift-reward-list {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-missions) .daily-gift-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-missions) .mission-card.is-locked {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-card.is-highlighted {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-missions) .mission-status-button:disabled {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-status {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-missions) .mission-overview-stats > .stat-value-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-card.is-available {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-card.is-current-day {
    border-color: var(--theme-border-muted);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-card.is-current-day .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-missions) .daily-gift-card.is-available .daily-gift-status {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
}

:where(.ui-page-missions) .mission-status-button:disabled {
    opacity: 1;
    transform: none;
}

body.theme-colored:where(.ui-page-missions) .mission-status-button:disabled {
    opacity: 1;
    transform: none;
}

:where(.ui-page-missions) .daily-gift-status {
    color: var(--detail-text);
}
}/* Source: public/css/source/pages/profile-public/game.css */

@layer base {/* profile-public: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-profile-public) .profile-overview-layout.hero-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
}

:where(.ui-page-profile-public) .profile-overview-layout .stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

:where(.ui-page-profile-public) .profile-overview-layout .stats-strip .is-status-pill {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-profile-public) .profile-showcase-summary .dealership-summary-card {
    min-width: 0;
}

:where(.ui-page-profile-public) .profile-showcase-summary .dealership-summary-card strong {
    overflow-wrap: normal;
}

:where(.ui-page-profile-public) .profile-showcase-summary {
    align-content: start;
}

:where(.ui-page-profile-public) .profile-showcase-summary h2 {
    font-size: 1.06rem;
}

:where(.ui-page-profile-public) .profile-showcase-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

:where(.ui-page-profile-public) .profile-active-car-mini {
    display: grid;
    grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    overflow: hidden;
}

:where(.ui-page-profile-public) .profile-active-car-mini .car-visual {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    border-radius: 14px;
}

:where(.ui-page-profile-public) .profile-active-car-mini .car-visual.is-layered .car-visual-foreground {
    --car-visual-layer-padding: 4px;
}

:where(.ui-page-profile-public) .profile-active-car-mini > div:last-child {
    min-width: 0;
}

:where(.ui-page-profile-public) .profile-active-car-mini strong {
    display: block;
    overflow-wrap: normal;
}

:where(.ui-page-profile-public) .profile-active-car-mini span {
    display: block;
    overflow-wrap: normal;
}

:where(.ui-page-profile-public) .profile-active-car-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-profile-public) .profile-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

:where(.ui-page-profile-public) .public-profile-stats-grid {
    grid-template-columns: minmax(0, 1fr);
}

:where(.ui-page-profile-public) .public-profile-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-profile-public) .profile-public-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-profile-public) .public-profile-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

:where(.ui-page-profile-public) .public-profile-strip > div:first-child {
    min-width: 0;
}

:where(.ui-page-profile-public) .public-profile-strip h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.05;
    overflow-wrap: normal;
}

:where(.ui-page-profile-public) .public-profile-strip-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-profile-public) .public-profile-strip-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.82);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

:where(.ui-page-profile-public) .public-profile-strip-stats .is-status-pill {
    border-color: rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 800;
}

:where(.ui-page-profile-public) .public-profile-strip-stats a {
    color: var(--accent-strong);
    font-weight: 900;
}

:where(.ui-page-profile-public) .public-profile-strip .button {
    flex: 0 0 auto;
}

:where(.ui-page-profile-public) .profile-public-stat-grid {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-public) .profile-mastery-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-public) .profile-cup-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-public) .profile-mastery-row {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    color: inherit;
    text-decoration: none;
}

:where(.ui-page-profile-public) .profile-mastery-row:hover {
    border-color: rgba(var(--action-rgb), 0.45);
}

:where(.ui-page-profile-public) .profile-mastery-row .car-visual {
    min-height: 96px;
}

:where(.ui-page-profile-public) .profile-track-image {
    width: 100%;
    min-height: 96px;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 14px;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
}

:where(.ui-page-profile-public) .profile-track-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.ui-page-profile-public) .profile-mastery-row strong {
    display: block;
}

:where(.ui-page-profile-public) .profile-mastery-row span {
    display: block;
}

:where(.ui-page-profile-public) .profile-mastery-content {
    display: grid;
    min-width: 0;
}

:where(.ui-page-profile-public) .profile-mastery-level-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: right;
}

:where(.ui-page-profile-public) .profile-mastery-row .meter {
    margin-top: 4px;
}

:where(.ui-page-profile-public) .profile-cup-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-profile-public) .profile-cup-image {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-profile-public) .profile-cup-fallback {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-profile-public) .profile-cup-image {
    display: block;
    padding: 0;
    cursor: zoom-in;
}

:where(.ui-page-profile-public) .profile-cup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

:where(.ui-page-profile-public) .profile-cup-fallback {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

@media (max-width: 960px) {

    :where(.ui-page-profile-public) .profile-showcase-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-public) .profile-showcase-metrics {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-public) .profile-public-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-public) .public-profile-strip {
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-profile-public) .public-profile-strip-stats {
        justify-content: flex-start;
    }

    :where(.ui-page-profile-public) .profile-active-car-mini {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-public) .profile-mastery-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-public) .profile-cup-row {
        grid-template-columns: 1fr;
    }
}

body.theme-colored:where(.ui-page-profile-public) .profile-overview-layout .stats-strip .is-status-pill {

    /* Reversible theme-tinted profile stat pills. Restore --status-pill-* defaults above to return to the warm orange-only surface. */
    border-color: rgba(var(--action-rgb), 0.22);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.12), rgba(var(--action-rgb), 0.07));
    color: var(--theme-text);
    box-shadow: none;
}

body.theme-colored:where(.ui-page-profile-public) .profile-overview-layout .profile-showcase-summary .dealership-summary-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-public) .profile-overview-layout .profile-active-car-mini {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-public) .profile-mastery-row {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-public) .profile-track-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-public) .profile-cup-row {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-public) .profile-cup-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-public) .profile-cup-fallback {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-public) .profile-mastery-row:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-profile-public) .profile-cup-row:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-profile-public) .profile-statistics-layout .profile-stat-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}
}/* Source: public/css/source/pages/profile-show/game.css */

@layer base {/* profile-show: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-profile-show) .three-col {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(3, 1fr);
}

:where(.ui-page-profile-show) .profile-capacity-progress {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-show) .profile-name-row h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-profile-show) .team-edit-button {
    color: var(--accent-strong);
    background: linear-gradient(180deg, rgba(255, 222, 178, 0.98), rgba(244, 166, 80, 0.9));
    border-color: rgba(var(--warning-rgb), 0.42);
    box-shadow: 0 8px 18px rgba(153, 88, 33, 0.16);
}

:where(.ui-page-profile-show) .team-edit-button:hover {
    background: linear-gradient(180deg, rgba(255, 235, 202, 1), rgba(234, 137, 50, 0.96));
    border-color: rgba(var(--warning-rgb), 0.58);
    transform: translateY(-1px);
}

:where(.ui-page-profile-show) .team-edit-button:focus-visible {
    background: linear-gradient(180deg, rgba(255, 235, 202, 1), rgba(234, 137, 50, 0.96));
    border-color: rgba(var(--warning-rgb), 0.58);
    transform: translateY(-1px);
}

:where(.ui-page-profile-show) .profile-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

:where(.ui-page-profile-show) .profile-overview-layout.hero-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
}

:where(.ui-page-profile-show) .profile-overview-layout .stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

:where(.ui-page-profile-show) .profile-overview-layout .stats-strip .is-status-pill {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-profile-show) .profile-identity-grid .dealership-summary-card {
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-showcase-summary .dealership-summary-card {
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-identity-grid .dealership-summary-card strong {
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-showcase-summary .dealership-summary-card strong {
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(.ui-page-profile-show) .profile-name-row h1 {
    margin: 0;
}

:where(.ui-page-profile-show) .profile-capacity-progress {
    margin-top: 18px;
}

:where(.ui-page-profile-show) .profile-progression-layout {
    display: grid;
    gap: 14px;
}

:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-head-panel {
    padding-block: 16px;
}

:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-body-panel {
    padding-block: 16px;
}

:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-body-panel .profile-capacity-progress {
    margin-top: 0;
}

:where(.ui-page-profile-show) .profile-capacity-guide {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    overflow: hidden;
}

:where(.ui-page-profile-show) .profile-capacity-guide-stack {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

:where(.ui-page-profile-show) .profile-capacity-guide-stack .profile-capacity-guide {
    margin-top: 0;
}

:where(.ui-page-profile-show) .profile-capacity-guide .garage-accordion-toggle {
    padding: 16px;
}

:where(.ui-page-profile-show) .profile-capacity-guide .garage-accordion-toggle .muted {
    margin: 8px 0 0;
}

:where(.ui-page-profile-show) .profile-capacity-guide .garage-accordion-content {
    padding: 14px 16px 16px;
}

:where(.ui-page-profile-show) .profile-progress-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

:where(.ui-page-profile-show) .profile-team-bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-profile-show) .profile-team-bonus-grid .profile-stat-card {
    min-height: 64px;
    padding: 12px;
}

:where(.ui-page-profile-show) .profile-team-bonus-grid .profile-stat-card strong {
    font-size: 1.05rem;
}

:where(.ui-page-profile-show) .profile-team-bonus-grid .profile-stat-card span {
    font-size: 1.05rem;
}

:where(.ui-page-profile-show) .profile-showcase-summary {
    align-content: start;
}

:where(.ui-page-profile-show) .profile-showcase-summary h2 {
    font-size: 1.06rem;
}

:where(.ui-page-profile-show) .profile-public-preview-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-profile-show) .profile-public-preview-frame {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-profile-show) .profile-public-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-public-preview-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.05;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-public-preview-car {
    margin-top: 0;
}

:where(.ui-page-profile-show) .profile-showcase-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

:where(.ui-page-profile-show) .profile-active-car-mini {
    display: grid;
    grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    overflow: hidden;
}

:where(.ui-page-profile-show) .profile-active-car-mini .car-visual {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    border-radius: 14px;
}

:where(.ui-page-profile-show) .profile-active-car-mini .car-visual.is-layered .car-visual-foreground {
    --car-visual-layer-padding: 4px;
}

:where(.ui-page-profile-show) .profile-active-car-mini > div:last-child {
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-active-car-mini strong {
    display: block;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-active-car-mini span {
    display: block;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-active-car-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-profile-show) .profile-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

:where(.ui-page-profile-show) .profile-cups-panel {
    grid-column: 1 / -1;
}

:where(.ui-page-profile-show) .profile-menu-widgets-form {
    display: grid;
    gap: 14px;
}

:where(.ui-page-profile-show) .profile-menu-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-profile-show) .profile-menu-widget-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-profile-show) .profile-menu-widget-card > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
}

:where(.ui-page-profile-show) .profile-menu-widget-card select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(var(--theme-border-rgb), 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.2;
    padding: 10px 12px;
}

:where(.ui-page-profile-show) .profile-menu-widget-card small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

:where(.ui-page-profile-show) .profile-menu-widget-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-profile-show) .profile-menu-widget-options > span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.72);
}

:where(.ui-page-profile-show) .profile-menu-widget-options strong {
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-menu-widget-options small {
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-menu-widget-options strong {
    font-size: 0.82rem;
    line-height: 1.15;
}

:where(.ui-page-profile-show) .profile-menu-widget-options small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.2;
}

:where(.ui-page-profile-show) .profile-menu-widget-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-profile-show) .profile-menu-widgets-form .button {
    justify-self: start;
}

@media (max-width: 720px) {

    :where(.ui-page-profile-show) .profile-menu-widget-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-menu-widget-options {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-profile-show) .public-profile-strip-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-profile-show) .public-profile-strip-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.82);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

:where(.ui-page-profile-show) .public-profile-strip-stats .is-status-pill {
    border-color: rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 800;
}

:where(.ui-page-profile-show) .public-profile-strip-stats a {
    color: var(--accent-strong);
    font-weight: 900;
}

:where(.ui-page-profile-show) .profile-mastery-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-show) .profile-cup-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-profile-show) .profile-mastery-row {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    color: inherit;
    text-decoration: none;
}

:where(.ui-page-profile-show) .profile-mastery-row:hover {
    border-color: rgba(var(--action-rgb), 0.45);
}

:where(.ui-page-profile-show) .profile-mastery-row .car-visual {
    min-height: 96px;
}

:where(.ui-page-profile-show) .profile-track-image {
    width: 100%;
    min-height: 96px;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 14px;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
}

:where(.ui-page-profile-show) .profile-track-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.ui-page-profile-show) .profile-mastery-row strong {
    display: block;
}

:where(.ui-page-profile-show) .profile-mastery-row span {
    display: block;
}

:where(.ui-page-profile-show) .profile-showcase-count-pill {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    border: 1px solid rgba(var(--action-rgb), 0.42);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(var(--action-rgb), 0.18);
}

:where(.ui-page-profile-show) .profile-mastery-content {
    display: grid;
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-mastery-level-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: right;
}

:where(.ui-page-profile-show) .profile-mastery-row .meter {
    margin-top: 4px;
}

:where(.ui-page-profile-show) .profile-cup-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-profile-show) .profile-cup-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

:where(.ui-page-profile-show) .profile-cup-actions .race-pager {
    margin: 0;
}

:where(.ui-page-profile-show) .profile-cup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-profile-show) .profile-cup-grid .profile-cup-row {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
}

:where(.ui-page-profile-show) .profile-cup-grid .profile-cup-image {
    width: 100%;
}

:where(.ui-page-profile-show) .profile-cup-grid .profile-cup-fallback {
    width: 100%;
}

:where(.ui-page-profile-show) .profile-cup-image {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-profile-show) .profile-cup-fallback {
    width: 82px;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--theme-border-rgb), 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(250, 246, 239, 0.98);
}

:where(.ui-page-profile-show) .profile-cup-image {
    display: block;
    padding: 0;
    cursor: zoom-in;
}

:where(.ui-page-profile-show) .profile-cup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

:where(.ui-page-profile-show) .profile-cup-fallback {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

:where(.ui-page-profile-show) .profile-cup-info {
    display: grid;
    gap: 3px;
}

:where(.ui-page-profile-show) .profile-cup-info strong {
    display: block;
}

:where(.ui-page-profile-show) .profile-cup-info span {
    display: block;
}

:where(.ui-page-profile-show) .profile-cup-info small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-profile-show) .referral-code-card strong {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.08em;
}

:where(.ui-page-profile-show) .referral-profile-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(var(--info-rgb), 0.16);
    background: rgba(237, 246, 252, 0.7);
}

:where(.ui-page-profile-show) .referral-profile-box p {
    margin: 4px 0 0;
}

@media (max-width: 760px) {

    :where(.ui-page-profile-show) .profile-background-options {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-profile-show) .profile-background-panel {
    display: grid;
    gap: 16px;
}

:where(.ui-page-profile-show) .profile-settings-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
}

:where(.ui-page-profile-show) .profile-settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
    cursor: pointer;
}

:where(.ui-page-profile-show) .profile-settings-tab .nav-tab-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
}

:where(.ui-page-profile-show) .profile-settings-tab .nav-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

:where(.ui-page-profile-show) .profile-settings-panel-stack {
    display: grid;
    gap: var(--section-gap, 10px);
}

:where(.ui-page-profile-show) .profile-background-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-profile-show) .profile-background-option {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.9);
}

:where(.ui-page-profile-show) .profile-background-preview {
    position: relative;
    width: 112px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: rgba(255, 247, 236, 0.92);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-border-rgb), 0.22);
}

:where(.ui-page-profile-show) .profile-background-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

:where(.ui-page-profile-show) .profile-background-preview.is-none {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 251, 246, 0.98), rgba(246, 233, 210, 0.98));
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

:where(.ui-page-profile-show) .profile-background-option-form {
    grid-column: 1 / -1;
}

:where(.ui-page-profile-show) .profile-background-option-form .button {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-profile-show) .profile-background-option-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

:where(.ui-page-profile-show) .profile-background-option-body strong {
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.1;
}

:where(.ui-page-profile-show) .profile-background-option-body span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.3;
}

:where(.ui-page-profile-show) .profile-settings-choice-option {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

:where(.ui-page-profile-show) .profile-settings-choice-option .profile-background-option-body {
    min-height: 72px;
}

:where(.ui-page-profile-show) .profile-settings-choice-option .profile-background-option-form {
    grid-column: 1;
}

:where(.ui-page-profile-show) .profile-menu-position-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {

    :where(.ui-page-profile-show) .three-col {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .referral-profile-box {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-profile-show) .profile-identity-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-showcase-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-showcase-metrics {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-public-preview-heading {
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-profile-show) .public-profile-strip-stats {
        justify-content: flex-start;
    }

    :where(.ui-page-profile-show) .profile-active-car-mini {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-mastery-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-cup-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-profile-show) .profile-cup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    :where(.ui-page-profile-show) .profile-cup-grid {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-profile-show) .profile-progress-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-profile-show) .profile-settings-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
}

:where(.ui-page-profile-show) .profile-action-theme-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    font-weight: 900;
    line-height: 1.08;
    box-shadow: none;
}

:where(.ui-page-profile-show) .profile-action-theme-preview span {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-light-orange-theme {
    background: #fdba74;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-orange-theme {
    background: #e6762c;
    color: #fffaf3;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-primary-orange-theme {
    background: #f28a35;
    color: #fffaf3;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-blue-theme {
    background: #386caa;
    color: #f8fbff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-primary-blue-theme {
    background: #0d6efd;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-red-theme {
    background: #be3731;
    color: #fff8f6;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-danger-red-theme {
    background: #dc3545;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-info-blue-theme {
    background: #60a5fa;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-light-red-theme {
    background: #f87171;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-light-brown-theme {
    background: #b48a62;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-brown-theme {
    background: #8b5e34;
    color: #fff8ef;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-dark-brown-theme {
    background: #5f3b1f;
    color: #fff8ef;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-light-green-theme {
    background: #22c55e;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-green-theme {
    background: #198754;
    color: #ffffff;
}

:where(.ui-page-profile-show) .profile-action-theme-preview.is-dark-green-theme {
    background: #166534;
    color: #f0fdf4;
}

:where(.ui-page-profile-show) .profile-background-option.is-selected {
    border-color: var(--action-border);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 14%, transparent);
}

@media (max-width: 900px) {

    :where(.ui-page-profile-show) .profile-settings-tabs {
        padding: 8px;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-profile-show) .profile-progress-card {
        border-radius: 8px;
    }
}

:where(.ui-page-profile-show) .team-edit-button:not(:disabled) {
    border-color: var(--action-border);
    background: linear-gradient(180deg, var(--action), var(--action-strong));
    color: var(--action-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-profile-show) .profile-background-option.is-selected {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .stats-strip .is-status-pill {

    /* Reversible theme-tinted profile stat pills. Restore --status-pill-* defaults above to return to the warm orange-only surface. */
    border-color: rgba(var(--action-rgb), 0.22);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.12), rgba(var(--action-rgb), 0.07));
    color: var(--theme-text);
    box-shadow: none;
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .profile-identity-grid .dealership-summary-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .referral-profile-box {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .profile-showcase-summary .dealership-summary-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .profile-active-car-mini {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-profile-show) .profile-overview-layout .referral-profile-box {
    background: var(--theme-tint-faint);
}

body.theme-colored:where(.ui-page-profile-show) .profile-showcase-count-pill {
    border-color: var(--theme-border-soft);
    background: var(--theme-tint);
    color: var(--theme-text);
    box-shadow: none;
}

body.theme-colored:where(.ui-page-profile-show) .profile-mastery-row {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-track-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-cup-row {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-cup-image {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-cup-fallback {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-mastery-row:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-profile-show) .profile-cup-row:hover {
    border-color: var(--theme-border);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-profile-show) .profile-statistics-layout .profile-stat-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-profile-show) .profile-statistics-layout .profile-progress-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}
}/* Source: public/css/source/pages/race/game.css */

@layer base {/* race: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race) .race-active-car-switcher {
    display: inline-flex;
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-race) .race-active-car-switcher form {
    margin: 0;
    display: flex;
}

:where(.ui-page-race) .race-active-car-switch-button {
    min-width: 210px;
}

:where(.ui-page-race) .race-no-car-actions {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    width: 100%;
}

:where(.ui-page-race) .race-no-car-hero {
    grid-template-columns: 1fr;
    align-items: end;
}

:where(.ui-page-race) .race-no-car-hero .resources-lead {
    max-width: none;
}

:where(.ui-page-race) .race-no-car-actions .button {
    width: auto;
    min-width: 440px;
    white-space: nowrap;
}

:where(.ui-page-race) .race-index-hero {
    grid-template-columns: 1fr;
    align-items: end;
}

:where(.ui-page-race) .race-index-hero-copy {
    max-width: none;
}

:where(.ui-page-race) .race-index-hero .resources-lead {
    max-width: none;
}

:where(.ui-page-race) .race-index-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    justify-self: end;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-race) .race-index-hero-actions .button {
    flex: 0 1 auto;
    height: 42px;
    min-height: 42px;
    padding-inline: 10px;
    border-radius: 14px;
    gap: 8px;
    font-size: 0.88rem;
    white-space: nowrap;
}

:where(.ui-page-race) .race-index-hero-actions .button .button-action-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

:where(.ui-page-race) .race-index-hero-actions .button-secondary {
    flex-basis: auto;
}

:where(.ui-page-race) .race-index-hero-actions .race-storage-shortcut-button {
    flex: 0 1 auto;
    min-width: auto;
    min-height: 42px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.88rem;
}

:where(.ui-page-race) .race-index-hero-actions .race-active-car-switcher {
    flex: 0 0 auto;
    align-self: stretch;
    gap: 8px;
    min-width: auto;
    height: auto;
}

:where(.ui-page-race) .race-index-hero-actions .race-active-car-switcher form {
    height: auto;
    min-width: 0;
}

:where(.ui-page-race) .race-index-hero-actions .race-active-car-switcher .button {
    height: auto;
    min-width: 0;
}

:where(.ui-page-race) .race-index-hero-actions .race-storage-shortcut-button > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race) .race-list-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle {
    --open-only-track: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 999px;
    box-shadow: none;
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle::before {
    content: "";
    width: var(--open-only-track);
    height: 24px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 12px 50%, #fffaf3 0 9px, transparent 10px),
        rgba(var(--line-rgb), 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle.is-active {
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 239, 216, 0.96);
    color: var(--action-strong);
    box-shadow: none;
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle[aria-pressed="true"] {
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 239, 216, 0.96);
    color: var(--action-strong);
    box-shadow: none;
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle.is-active::before {
    background: radial-gradient(circle at 32px 50%, #fffaf3 0 9px, transparent 10px),
        linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
}

:where(.ui-page-race) .race-list-filters .race-open-only-toggle[aria-pressed="true"]::before {
    background: radial-gradient(circle at 32px 50%, #fffaf3 0 9px, transparent 10px),
        linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
}

:where(.ui-page-race) .race-panel-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

:where(.ui-page-race) .track-mastery-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

:where(.ui-page-race) .race-directory-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.96);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

:where(.ui-page-race) .race-directory-card.is-active {
    border-color: rgba(var(--action-rgb), 0.38);
    box-shadow: 0 16px 34px rgba(var(--action-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:where(.ui-page-race) .race-directory-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
    overflow: hidden;
}

:where(.ui-page-race) .race-directory-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

:where(.ui-page-race) .race-directory-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
}

:where(.ui-page-race) .race-directory-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-race) .race-directory-card-head h2 {
    margin: 0;
    font-size: clamp(1.05rem, 0.32vw + 0.95rem, 1.24rem);
}

:where(.ui-page-race) .race-directory-card-body p {
    margin: 0;
}

:where(.ui-page-race) .race-directory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

:where(.ui-page-race) .race-directory-stats div {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    display: grid;
    gap: 3px;
}

:where(.ui-page-race) .race-directory-stats span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

:where(.ui-page-race) .race-directory-stats strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.1rem;
    line-height: 1.12;
}

:where(.ui-page-race) .race-directory-stats div:nth-child(-n + 2) strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.96rem;
    line-height: 1.16;
}

:where(.ui-page-race) .race-item-stock-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-race) .race-inventory-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-race) .race-inventory-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

:where(.ui-page-race) .race-inventory-head h2 {
    margin: 0;
}

:where(.ui-page-race) .race-inventory-head p {
    margin: 0;
}

:where(.ui-page-race) .race-inventory-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

:where(.ui-page-race) .race-inventory-panel .race-item-stock-grid {
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 14px;
}

:where(.ui-page-race) .race-tab-inventory-panel .race-item-stock-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-race) .resource-preview-item.race-item-stock-card {
    min-height: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    justify-content: stretch;
    align-items: stretch;
    gap: 12px;
}

:where(.ui-page-race) .race-inventory-panel .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 0.46fr);
    min-height: 0;
    padding: 14px;
    align-items: center;
}

:where(.ui-page-race) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 0.46fr);
    align-items: center;
}

:where(.ui-page-race) .race-tab-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(280px, 360px) minmax(0, 1fr);
}

:where(.ui-page-race) .resource-preview-item.race-item-stock-card .race-item-effect-list {
    grid-column: 1 / -1;
}

:where(.ui-page-race) .resource-preview-item.race-item-stock-card strong {
    text-align: left;
}

:where(.ui-page-race) .resource-preview-item.race-item-stock-card span {
    text-align: left;
}

:where(.ui-page-race) .race-item-stock-card strong {
    font-size: 0.94rem;
    line-height: 1.25;
}

:where(.ui-page-race) .race-item-stock-card-header {
    display: grid;
    gap: 4px;
}

:where(.ui-page-race) .race-item-stock-card .race-item-effect-list {
    margin-top: auto;
}

:where(.ui-page-race) .race-inventory-panel .race-item-stock-card .race-item-effect-list {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 0;
}

:where(.ui-page-race) .race-inventory-panel .track-knowledge-stock-card .race-item-effect-list {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
}

:where(.ui-page-race) .race-tab-inventory-panel .race-item-stock-card .race-item-effect-list {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 0;
}

:where(.ui-page-race) .race-tab-inventory-panel .track-knowledge-stock-card .race-item-effect-list {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
}

:where(.ui-page-race) .race-tab-inventory-panel .race-item-effect {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race) .race-inventory-panel .race-item-effect {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-effect {
    gap: 10px;
    justify-content: space-between;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-effect span {
    white-space: nowrap;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-effect b {
    white-space: nowrap;
}

:where(.ui-page-race) .race-item-stock-card .race-item-toggle-title-row {
    width: 100%;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-toggle-title .muted {
    max-width: 42ch;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.25;
}

:where(.ui-page-race) .race-item-effect-list {
    display: grid;
    gap: 6px;
}

:where(.ui-page-race) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 10px 12px;
    border: 2px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 12px;
    font-size: 0.86rem;
}

:where(.ui-page-race) .race-item-effect span {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race) .opponent-summary-card-head-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-race) .opponent-card-head p {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-race) .race-item-toggle-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race) .race-item-toggle-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-race) .race-item-toggle-title strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

:where(.ui-page-race) .opponent-card {
    --opponent-action-gap: 16px;
    --opponent-action-width: 250px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-race) .opponent-accordion-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race) .opponent-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race) .opponent-accordion-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race) .opponent-accordion-main {
    min-width: 0;
    display: grid;
    gap: 12px;
}

:where(.ui-page-race) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
    grid-template-columns: minmax(205px, 245px) minmax(0, 1fr) var(--opponent-action-width);
    grid-template-areas: "info info winrate"
        "media actions actions";
    align-items: start;
    column-gap: 14px;
    row-gap: 10px;
}

:where(.ui-page-race) .opponent-single-info {
    grid-area: info;
}

:where(.ui-page-race) .opponent-single-info > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-race) .opponent-single-info strong {
    margin: 0;
    white-space: nowrap;
}

:where(.ui-page-race) .opponent-single-info p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race) .opponent-single-media {
    grid-area: media;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-race) .opponent-single-winrate {
    grid-area: winrate;
    justify-self: end;
}

:where(.ui-page-race) .opponent-single-actions-row {
    grid-area: actions;
    align-self: center;
}

:where(.ui-page-race) .opponent-single-actions-row .opponent-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

:where(.ui-page-race) .opponent-single-actions-row .opponent-card-actions .button {
    height: 68px;
    min-height: 68px;
}

:where(.ui-page-race) .opponent-accordion-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.2);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(248, 230, 198, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
    position: relative;
    align-self: center;
    flex: 0 0 auto;
}

:where(.ui-page-race) .opponent-accordion-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-2);
    transform: translate(-50%, -50%);
}

:where(.ui-page-race) .opponent-accordion-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-2);
    transform: translate(-50%, -50%) rotate(90deg);
}

:where(.ui-page-race) .opponent-accordion-card[open] .opponent-accordion-icon::after {
    opacity: 0;
}

:where(.ui-page-race) .opponent-accordion-content {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-right: 0;
    padding-top: 14px;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card {
    min-height: 92px;
    padding: 12px 14px;
    gap: 8px;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card > strong {
    font-size: 0.9rem;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head strong {
    font-size: 0.9rem;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values {
    gap: 4px;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values span {
    font-size: 0.78rem;
}

:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values b {
    font-size: 0.86rem;
}

:where(.ui-page-race) .race-opponent-list {
    gap: 12px;
}

:where(.ui-page-race) .opponent-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-race) .opponent-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-race) .opponent-card-head {
    align-items: start;
}

:where(.ui-page-race) .opponent-card-head strong {
    font-size: 1.2rem;
}

:where(.ui-page-race) .opponent-summary-card {
    min-width: 0;
    min-height: 86px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid var(--line);
    display: grid;
    align-content: start;
    gap: 7px;
}

:where(.ui-page-race) .opponent-summary-card > strong {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race) .opponent-summary-card-head strong {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race) .opponent-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-race) .opponent-summary-card-head small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-race) .opponent-summary-values {
    display: grid;
    gap: 3px;
}

:where(.ui-page-race) .opponent-summary-values span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.1;
}

:where(.ui-page-race) .opponent-summary-values b {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.05;
    text-align: right;
    white-space: nowrap;
}

:where(.ui-page-race) .opponent-winrate {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

:where(.ui-page-race) .opponent-winrate.is-good {
    background: rgba(233, 247, 221, 0.94);
    border-color: rgba(var(--success-rgb), 0.32);
    color: #497b1f;
}

:where(.ui-page-race) .opponent-winrate.is-even {
    background: rgba(249, 237, 214, 0.96);
    border-color: rgba(var(--warning-rgb), 0.32);
    color: #9a641d;
}

:where(.ui-page-race) .opponent-winrate.is-risky {
    background: rgba(255, 232, 224, 0.96);
    border-color: rgba(var(--danger-rgb), 0.32);
    color: #b15136;
}

:where(.ui-page-race) .opponent-card-bottom {
    align-items: stretch;
    flex-wrap: nowrap;
}

:where(.ui-page-race) .opponent-card-bottom > * {
    min-width: 0;
}

:where(.ui-page-race) .opponent-card-bottom .opponent-card-meta {
    flex: 1;
}

:where(.ui-page-race) .opponent-card-bottom .opponent-card-actions {
    flex: 0 0 var(--opponent-action-width);
}

:where(.ui-page-race) .opponent-card-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
}

:where(.ui-page-race) .opponent-card-meta > * {
    min-width: 0;
    min-height: 68px;
    padding: 11px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 236, 0.96));
    border: 1px solid rgba(var(--theme-border-rgb), 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    display: grid;
    align-content: center;
    gap: 6px;
}

:where(.ui-page-race) .opponent-card-meta > * > span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.ui-page-race) .opponent-card-meta > * > strong {
    font-size: 1.08rem;
    line-height: 1.08;
}

:where(.ui-page-race) .opponent-match-meter {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(112, 85, 54, 0.1);
    box-shadow: inset 0 1px 2px rgba(72, 48, 28, 0.08);
}

:where(.ui-page-race) .opponent-match-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f3b451, #ed7a25);
}

:where(.ui-page-race) .opponent-card-actions {
    display: flex;
    align-items: center;
}

:where(.ui-page-race) .opponent-card-actions .button {
    width: 100%;
    min-width: 178px;
    min-height: 100%;
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable {
    border-color: rgba(112, 85, 54, 0.22);
    background: rgba(112, 85, 54, 0.1);
    color: rgba(72, 48, 28, 0.62);
    box-shadow: none;
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:hover {
    border-color: rgba(112, 85, 54, 0.3);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    border-color: rgba(112, 85, 54, 0.3);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race) .opponent-action-weather-preview {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-height: 68px;
    align-self: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

:where(.ui-page-race) .opponent-action-weather-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 980px) {

    :where(.ui-page-race) .opponent-accordion-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
}

:where(.ui-page-race) .race-inventory-head h2 {
    font-size: clamp(1rem, 0.22vw + 0.84rem, 1.1rem);
    font-weight: 700;
}

:where(.ui-page-race) .race-inventory-head .eyebrow {
    font-weight: 500;
}

:where(.ui-page-race) .race-inventory-meta {
    font-weight: 500;
}

:where(.ui-page-race) .race-inventory-meta .muted {
    font-weight: 500;
}

:where(.ui-page-race) .race-inventory-meta .action-pill {
    font-weight: 700;
}

:where(.ui-page-race) .race-item-stock-card strong {
    font-weight: 700;
}

:where(.ui-page-race) .race-item-toggle-title strong {
    font-weight: 700;
}

:where(.ui-page-race) .race-item-toggle-title .muted {
    font-weight: 400;
}

:where(.ui-page-race) .race-item-stock-card .muted {
    font-weight: 400;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-effect span {
    font-weight: 500;
}

:where(.ui-page-race) .race-directory-stock-grid .race-item-effect b {
    font-weight: 700;
}

@media (max-width: 960px) {

    :where(.ui-page-race) .race-item-stock-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .race-no-car-actions {
        justify-content: stretch;
        justify-self: stretch;
    }

    :where(.ui-page-race) .race-no-car-actions .button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    :where(.ui-page-race) .race-directory-card-head {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-race) .race-directory-image {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        height: 130px;
        margin: 0;
    }

    :where(.ui-page-race) .race-panel-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race) .opponent-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race) .opponent-card-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race) .opponent-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race) .opponent-card-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .race-inventory-panel .resource-preview-item.race-item-stock-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .race-inventory-panel .race-item-stock-card .race-item-effect-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .race-tab-inventory-panel .race-item-stock-card .race-item-effect-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race) .opponent-winrate {
        white-space: normal;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-race) .race-panel-toolbar {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    :where(.ui-page-race) .opponent-card-actions {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-race) .opponent-card-actions > * {
        min-width: 0;
    }
}

:where(.ui-page-race) .opponent-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-race) .race-inventory-head {
    gap: 12px;
}

:where(.ui-page-race) .opponent-card-actions {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-race) .opponent-card {
        border-radius: 8px;
    }

    :where(.ui-page-race) .opponent-card-actions > * {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-race) .race-directory-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race) .race-directory-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored:where(.ui-page-race) .race-directory-image {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race) .race-directory-stats div {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race) .race-directory-card.is-active .race-directory-image {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race) .race-directory-card.is-active .race-directory-stats div {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race) .race-inventory-panel .resource-preview-item.race-item-stock-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race) .race-inventory-panel .track-knowledge-stock-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race) .race-tab-inventory-panel .track-knowledge-stock-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race) .race-inventory-panel .race-item-effect {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race) .race-tab-inventory-panel .race-item-effect {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race) .race-knowledge-directory-grid .race-item-effect {
    border-color: var(--theme-border-soft);
}

:where(.ui-page-race) .race-item-stock-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-race) .track-knowledge-stock-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-race) .race-item-effect {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-race) .race-item-effect span {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-race) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 1px;
    background: rgba(255, 253, 249, 0.94);
    text-align: left;
}

.game-shell:where(.ui-page-race) .race-item-effect span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race) .race-tab-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "image copy"
        "stats stats";
    align-items: start;
    gap: 12px 16px;
    min-height: 0;
    padding: 14px 16px;
}

.game-shell:where(.ui-page-race) .race-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "image copy"
        "stats stats";
    align-items: start;
    gap: 12px 16px;
    min-height: 0;
    padding: 14px 16px;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card > :is(.race-item-visual, .race-item-visual.is-stock) {
    grid-area: image;
    width: 86px;
    height: 86px;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-stock-card-header {
    grid-area: copy;
    align-self: center;
    min-width: 0;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title {
    display: grid;
    gap: 4px;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title > strong {
    color: var(--text);
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title .muted {
    font-size: 0.92rem;
    line-height: 1.25;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect-list {
    grid-area: stats;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect {
    min-height: 50px;
    padding: 9px 11px;
}

@media (max-width: 900px) {

    .game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:hover {
    transform: none;
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    transform: none;
}
}/* Source: public/css/source/pages/race-history/game.css */

@layer base {/* race-history: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-history) .race-history-hero {
    grid-template-columns: 1fr;
}

:where(.ui-page-race-history) .race-history-hero .resources-lead {
    max-width: none;
}

:where(.ui-page-race-history) .race-history-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

:where(.ui-page-race-history) .race-history-hero-top .action-pill {
    min-width: 220px;
    justify-content: center;
}

@media (max-width: 960px) {

    :where(.ui-page-race-history) .race-history-hero-top {
        display: grid;
        gap: 10px;
    }
}
}/* Source: public/css/source/pages/race-modes/game.css */

@layer base {/* race-modes: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-modes) .race-directory-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

:where(.ui-page-race-modes) .race-directory-hero h1 {
    margin: 0;
}

:where(.ui-page-race-modes) .race-directory-hero p {
    margin: 0;
}

:where(.ui-page-race-modes) .race-directory-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

:where(.ui-page-race-modes) .race-directory-panel {
    display: grid;
    gap: 14px;
}

@media (max-width: 960px) {

    :where(.ui-page-race-modes) .race-directory-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
        display: grid;
    }

    :where(.ui-page-race-modes) .race-directory-hero-actions {
        justify-content: flex-start;
    }
}
}/* Source: public/css/source/pages/race-multi-index/game.css */

@layer base {/* race-multi-index: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-multi-index) .race-tab-count-controls {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

:where(.ui-page-race-multi-index) .race-tab-count-controls .button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
}

:where(.ui-page-race-multi-index) .race-tab-count-controls .button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

:where(.ui-page-race-multi-index) .race-multi-hero {
    grid-template-columns: 1fr;
    align-items: end;
}

:where(.ui-page-race-multi-index) .race-multi-hero > div:first-child {
    grid-column: 1 / -1;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .race-multi-hero h1 {
    max-width: none;
}

:where(.ui-page-race-multi-index) .race-multi-hero .resources-lead {
    max-width: none;
}

:where(.ui-page-race-multi-index) .race-multi-hero .race-hero-actions {
    display: flex;
    justify-content: flex-end;
    grid-column: 1;
    justify-self: end;
    align-self: end;
    width: 100%;
    margin-top: -8px;
}

:where(.ui-page-race-multi-index) .race-multi-hero .race-hero-actions:has(> :nth-child(2):last-child) {
    width: 100%;
}

:where(.ui-page-race-multi-index) .race-multi-hero .race-hero-actions:has(> :nth-child(3):last-child) {
    width: 100%;
}

:where(.ui-page-race-multi-index) .race-multi-hero .race-hero-actions .button {
    flex: 0 1 360px;
    padding-inline: 18px;
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .race-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: 18px;
    align-items: start;
}

:where(.ui-page-race-multi-index) .race-overview-grid-stack {
    grid-template-columns: 1fr;
}

:where(.ui-page-race-multi-index) .race-active-car-panel {
    display: grid;
    align-content: start;
    gap: 10px;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .car-visual.is-hero {
    margin-bottom: 0;
    aspect-ratio: 16 / 6.3;
}

:where(.ui-page-race-multi-index) .race-active-car-panel h2 {
    font-size: 1.18rem;
    line-height: 1.1;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .stats-grid {
    gap: 12px;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .stats-grid div {
    padding: 8px 0;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .muted {
    margin: 0;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .race-chip-row {
    gap: 6px;
}

:where(.ui-page-race-multi-index) .race-active-car-panel .dealership-chip {
    padding: 5px 9px;
    font-size: 0.71rem;
}

:where(.ui-page-race-multi-index) .race-list-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

:where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-list-filters {
    justify-content: center;
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle {
    --open-only-track: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 999px;
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle::before {
    content: "";
    width: var(--open-only-track);
    height: 24px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 12px 50%, #fffaf3 0 9px, transparent 10px),
        rgba(var(--line-rgb), 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle.is-active {
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 239, 216, 0.96);
    color: var(--action-strong);
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle[aria-pressed="true"] {
    border-color: rgba(var(--action-rgb), 0.5);
    background: rgba(255, 239, 216, 0.96);
    color: var(--action-strong);
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle.is-active::before {
    background: radial-gradient(circle at 32px 50%, #fffaf3 0 9px, transparent 10px),
        linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
}

:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle[aria-pressed="true"]::before {
    background: radial-gradient(circle at 32px 50%, #fffaf3 0 9px, transparent 10px),
        linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
}

:where(.ui-page-race-multi-index) .race-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

:where(.ui-page-race-multi-index) .race-panel-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

:where(.ui-page-race-multi-index) .race-directory-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.96);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

:where(.ui-page-race-multi-index) .race-directory-card.is-active {
    border-color: rgba(var(--action-rgb), 0.38);
    box-shadow: 0 16px 34px rgba(var(--action-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:where(.ui-page-race-multi-index) .race-directory-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
    overflow: hidden;
}

:where(.ui-page-race-multi-index) .race-directory-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

:where(.ui-page-race-multi-index) .race-directory-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
}

:where(.ui-page-race-multi-index) .race-directory-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-race-multi-index) .race-directory-card-head h2 {
    margin: 0;
    font-size: clamp(1.05rem, 0.32vw + 0.95rem, 1.24rem);
}

:where(.ui-page-race-multi-index) .race-directory-card-body p {
    margin: 0;
}

:where(.ui-page-race-multi-index) .race-directory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

:where(.ui-page-race-multi-index) .race-directory-stats div {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    display: grid;
    gap: 3px;
}

:where(.ui-page-race-multi-index) .race-directory-stats span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

:where(.ui-page-race-multi-index) .race-directory-stats strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.1rem;
    line-height: 1.12;
}

:where(.ui-page-race-multi-index) .race-directory-stats div:nth-child(-n + 2) strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.96rem;
    line-height: 1.16;
}

:where(.ui-page-race-multi-index) .race-item-stock-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-race-multi-index) .race-inventory-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-race-multi-index) .race-inventory-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

:where(.ui-page-race-multi-index) .race-inventory-head h2 {
    margin: 0;
}

:where(.ui-page-race-multi-index) .race-inventory-head p {
    margin: 0;
}

:where(.ui-page-race-multi-index) .race-inventory-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

:where(.ui-page-race-multi-index) .race-inventory-panel .race-item-stock-grid {
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 14px;
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-item-stock-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-race-multi-index) .resource-preview-item.race-item-stock-card {
    min-height: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    justify-content: stretch;
    align-items: stretch;
    gap: 12px;
}

:where(.ui-page-race-multi-index) .race-inventory-panel .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 0.46fr);
    min-height: 0;
    padding: 14px;
    align-items: center;
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 0.46fr);
    align-items: center;
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: auto minmax(280px, 360px) minmax(0, 1fr);
}

:where(.ui-page-race-multi-index) .resource-preview-item.race-item-stock-card .race-item-effect-list {
    grid-column: 1 / -1;
}

:where(.ui-page-race-multi-index) .resource-preview-item.race-item-stock-card strong {
    text-align: left;
}

:where(.ui-page-race-multi-index) .resource-preview-item.race-item-stock-card span {
    text-align: left;
}

:where(.ui-page-race-multi-index) .race-item-stock-card strong {
    font-size: 0.94rem;
    line-height: 1.25;
}

:where(.ui-page-race-multi-index) .race-item-stock-card-header {
    display: grid;
    gap: 4px;
}

:where(.ui-page-race-multi-index) .race-item-stock-card .race-item-effect-list {
    margin-top: auto;
}

:where(.ui-page-race-multi-index) .race-inventory-panel .race-item-stock-card .race-item-effect-list {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 0;
}

:where(.ui-page-race-multi-index) .race-inventory-panel .track-knowledge-stock-card .race-item-effect-list {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-item-stock-card .race-item-effect-list {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 0;
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .track-knowledge-stock-card .race-item-effect-list {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
}

:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-item-effect {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race-multi-index) .race-inventory-panel .race-item-effect {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-effect {
    gap: 10px;
    justify-content: space-between;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-effect span {
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-effect b {
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .race-item-stock-card .race-item-toggle-title-row {
    width: 100%;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-toggle-title .muted {
    max-width: 42ch;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.25;
}

:where(.ui-page-race-multi-index) .race-item-effect-list {
    display: grid;
    gap: 6px;
}

:where(.ui-page-race-multi-index) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 10px 12px;
    border: 2px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 12px;
    font-size: 0.86rem;
}

:where(.ui-page-race-multi-index) .race-item-effect span {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-multi-index) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-multi-index) .opponent-summary-card-head-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .opponent-card-head p {
    margin: 0;
    color: var(--muted);
}

:where(.ui-page-race-multi-index) .race-sidebar-copy {
    color: var(--muted);
    line-height: 1.6;
}

:where(.ui-page-race-multi-index) .lineup-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

:where(.ui-page-race-multi-index) .lineup-mini-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 820px) {

    :where(.ui-page-race-multi-index) .lineup-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-race-multi-index) .lineup-mini-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {

    :where(.ui-page-race-multi-index) .lineup-mini-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .lineup-mini-grid-five {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-race-multi-index) .lineup-mini-grid-opponent {
    margin-top: 0;
}

:where(.ui-page-race-multi-index) .lineup-mini-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(var(--action-rgb), 0.42);
    background: transparent;
    outline: 0;
}

:where(.ui-page-race-multi-index) .lineup-mini-card.is-reserve {
    opacity: 1;
    background: transparent;
}

:where(.ui-page-race-multi-index) .lineup-mini-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .lineup-mini-card-head .lineup-mini-status {
    margin-left: auto;
    text-align: right;
}

:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card.is-reserve {
    background: rgba(255, 253, 249, 0.45);
    color: var(--muted);
}

:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card.is-reserve .lineup-mini-visual-frame {
    opacity: 0.42;
}

:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card.is-reserve .lineup-mini-card-title {
    opacity: 0.42;
}

:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card.is-reserve .lineup-mini-slot {
    border-color: rgba(var(--theme-border-rgb), 0.28);
    background: rgba(var(--theme-border-rgb), 0.10);
    color: var(--muted);
}

:where(.ui-page-race-multi-index) .lineup-mini-card strong {
    font-size: 0.88rem;
    line-height: 1.3;
}

:where(.ui-page-race-multi-index) .lineup-mini-card .car-visual.is-compact {
    width: 100%;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .lineup-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

:where(.ui-page-race-multi-index) .race-item-toggle-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race-multi-index) .race-item-toggle-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .race-item-toggle-title strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

:where(.ui-page-race-multi-index) .opponent-card {
    --opponent-action-gap: 16px;
    --opponent-action-width: 250px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-race-multi-index) .opponent-accordion-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-multi-index) .opponent-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race-multi-index) .opponent-accordion-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race-multi-index) .opponent-accordion-main {
    min-width: 0;
    display: grid;
    gap: 12px;
}

:where(.ui-page-race-multi-index) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
    grid-template-columns: minmax(205px, 245px) minmax(0, 1fr) var(--opponent-action-width);
    grid-template-areas: "info info winrate"
        "media actions actions";
    align-items: start;
    column-gap: 14px;
    row-gap: 10px;
}

:where(.ui-page-race-multi-index) .opponent-accordion-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.2);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(248, 230, 198, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
    position: relative;
    align-self: center;
    flex: 0 0 auto;
}

:where(.ui-page-race-multi-index) .opponent-accordion-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-2);
    transform: translate(-50%, -50%);
}

:where(.ui-page-race-multi-index) .opponent-accordion-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-2);
    transform: translate(-50%, -50%) rotate(90deg);
}

:where(.ui-page-race-multi-index) .opponent-accordion-card[open] .opponent-accordion-icon::after {
    opacity: 0;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-right: 0;
    padding-top: 14px;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card {
    min-height: 92px;
    padding: 12px 14px;
    gap: 8px;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card > strong {
    font-size: 0.9rem;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head strong {
    font-size: 0.9rem;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values {
    gap: 4px;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values span {
    font-size: 0.78rem;
}

:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values b {
    font-size: 0.86rem;
}

:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-accordion-content {
    display: grid;
    gap: 12px;
}

:where(.ui-page-race-multi-index) .race-opponent-list {
    gap: 12px;
}

:where(.ui-page-race-multi-index) .opponent-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-race-multi-index) .opponent-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-race-multi-index) .opponent-card-head {
    align-items: start;
}

:where(.ui-page-race-multi-index) .opponent-card-head strong {
    font-size: 1.2rem;
}

:where(.ui-page-race-multi-index) .opponent-summary-card {
    min-width: 0;
    min-height: 86px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid var(--line);
    display: grid;
    align-content: start;
    gap: 7px;
}

:where(.ui-page-race-multi-index) .opponent-summary-card > strong {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-multi-index) .opponent-summary-card-head strong {
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-multi-index) .opponent-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-race-multi-index) .opponent-summary-card-head small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .opponent-summary-values {
    display: grid;
    gap: 3px;
}

:where(.ui-page-race-multi-index) .opponent-summary-values span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.1;
}

:where(.ui-page-race-multi-index) .opponent-summary-values b {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.05;
    text-align: right;
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .opponent-winrate {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

:where(.ui-page-race-multi-index) .opponent-winrate.is-good {
    background: rgba(233, 247, 221, 0.94);
    border-color: rgba(var(--success-rgb), 0.32);
    color: #497b1f;
}

:where(.ui-page-race-multi-index) .opponent-winrate.is-even {
    background: rgba(249, 237, 214, 0.96);
    border-color: rgba(var(--warning-rgb), 0.32);
    color: #9a641d;
}

:where(.ui-page-race-multi-index) .opponent-winrate.is-risky {
    background: rgba(255, 232, 224, 0.96);
    border-color: rgba(var(--danger-rgb), 0.32);
    color: #b15136;
}

:where(.ui-page-race-multi-index) .opponent-card-bottom {
    align-items: stretch;
    flex-wrap: nowrap;
}

:where(.ui-page-race-multi-index) .opponent-card-bottom > * {
    min-width: 0;
}

:where(.ui-page-race-multi-index) .opponent-card-bottom .opponent-card-meta {
    flex: 1;
}

:where(.ui-page-race-multi-index) .opponent-card-bottom .opponent-card-actions {
    flex: 0 0 var(--opponent-action-width);
}

:where(.ui-page-race-multi-index) .opponent-card-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
}

:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-card-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-race-multi-index) .opponent-card-meta > * {
    min-width: 0;
    min-height: 68px;
    padding: 11px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 236, 0.96));
    border: 1px solid rgba(var(--theme-border-rgb), 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    display: grid;
    align-content: center;
    gap: 6px;
}

:where(.ui-page-race-multi-index) .opponent-card-meta > * > span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.ui-page-race-multi-index) .opponent-card-meta > * > strong {
    font-size: 1.08rem;
    line-height: 1.08;
}

:where(.ui-page-race-multi-index) .opponent-match-meter {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(112, 85, 54, 0.1);
    box-shadow: inset 0 1px 2px rgba(72, 48, 28, 0.08);
}

:where(.ui-page-race-multi-index) .opponent-match-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f3b451, #ed7a25);
}

:where(.ui-page-race-multi-index) .opponent-card-actions {
    display: flex;
    align-items: center;
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button {
    width: 100%;
    min-width: 178px;
    min-height: 100%;
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable {
    border-color: rgba(112, 85, 54, 0.22);
    background: rgba(112, 85, 54, 0.1);
    color: rgba(72, 48, 28, 0.62);
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:hover {
    border-color: rgba(112, 85, 54, 0.3);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    border-color: rgba(112, 85, 54, 0.3);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-index) .opponent-action-weather-preview {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-height: 68px;
    align-self: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

:where(.ui-page-race-multi-index) .opponent-action-weather-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 980px) {

    :where(.ui-page-race-multi-index) .opponent-accordion-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
}

:where(.ui-page-race-multi-index) .race-inventory-head h2 {
    font-size: clamp(1rem, 0.22vw + 0.84rem, 1.1rem);
    font-weight: 700;
}

:where(.ui-page-race-multi-index) .race-inventory-head .eyebrow {
    font-weight: 500;
}

:where(.ui-page-race-multi-index) .race-inventory-meta {
    font-weight: 500;
}

:where(.ui-page-race-multi-index) .race-inventory-meta .muted {
    font-weight: 500;
}

:where(.ui-page-race-multi-index) .race-inventory-meta .action-pill {
    font-weight: 700;
}

:where(.ui-page-race-multi-index) .race-item-stock-card strong {
    font-weight: 700;
}

:where(.ui-page-race-multi-index) .race-item-toggle-title strong {
    font-weight: 700;
}

:where(.ui-page-race-multi-index) .race-item-toggle-title .muted {
    font-weight: 400;
}

:where(.ui-page-race-multi-index) .race-item-stock-card .muted {
    font-weight: 400;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-effect span {
    font-weight: 500;
}

:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-effect b {
    font-weight: 700;
}

@media (max-width: 960px) {

    :where(.ui-page-race-multi-index) .race-overview-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-item-stock-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-multi-hero .race-hero-actions {
        grid-column: auto;
        width: 100%;
        margin-top: 0;
        justify-self: stretch;
    }

    :where(.ui-page-race-multi-index) .race-directory-card-head {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-race-multi-index) .race-directory-image {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        height: 130px;
        margin: 0;
    }

    :where(.ui-page-race-multi-index) .race-panel-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race-multi-index) .opponent-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race-multi-index) .opponent-card-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race-multi-index) .opponent-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race-multi-index) .opponent-card-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-inventory-panel .resource-preview-item.race-item-stock-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-inventory-panel .race-item-stock-card .race-item-effect-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-item-stock-card .race-item-effect-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-index) .opponent-winrate {
        white-space: normal;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-race-multi-index) .race-panel-toolbar {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    :where(.ui-page-race-multi-index) .race-list-actions {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-race-multi-index) .opponent-card-actions {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-race-multi-index) .race-list-actions > * {
        min-width: 0;
    }

    :where(.ui-page-race-multi-index) .opponent-card-actions > * {
        min-width: 0;
    }
}

:where(.ui-page-race-multi-index) .opponent-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-race-multi-index) .race-inventory-head {
    gap: 12px;
}

:where(.ui-page-race-multi-index) .race-list-actions {
    gap: 8px;
}

:where(.ui-page-race-multi-index) .opponent-card-actions {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-race-multi-index) .opponent-card {
        border-radius: 8px;
    }

    :where(.ui-page-race-multi-index) .race-list-actions > * {
        width: 100%;
    }

    :where(.ui-page-race-multi-index) .opponent-card-actions > * {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-image {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-stats div {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-card.is-active .race-directory-image {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-directory-card.is-active .race-directory-stats div {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-inventory-panel .resource-preview-item.race-item-stock-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-tab-inventory-panel .resource-preview-item.race-item-stock-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-inventory-panel .track-knowledge-stock-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-tab-inventory-panel .track-knowledge-stock-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-inventory-panel .race-item-effect {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-item-effect {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-multi-index) .race-knowledge-directory-grid .race-item-effect {
    border-color: var(--theme-border-soft);
}

:where(.ui-page-race-multi-index) .race-item-stock-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-race-multi-index) .track-knowledge-stock-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-race-multi-index) .race-item-effect {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-race-multi-index) .race-item-effect span {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-race-multi-index) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 1px;
    background: rgba(255, 253, 249, 0.94);
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-index) .race-item-effect span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-index) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "image copy"
        "stats stats";
    align-items: start;
    gap: 12px 16px;
    min-height: 0;
    padding: 14px 16px;
}

.game-shell:where(.ui-page-race-multi-index) .race-inventory-panel .race-directory-stock-grid .resource-preview-item.race-item-stock-card {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "image copy"
        "stats stats";
    align-items: start;
    gap: 12px 16px;
    min-height: 0;
    padding: 14px 16px;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card > :is(.race-item-visual, .race-item-visual.is-stock) {
    grid-area: image;
    width: 86px;
    height: 86px;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-stock-card-header {
    grid-area: copy;
    align-self: center;
    min-width: 0;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title {
    display: grid;
    gap: 4px;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title > strong {
    color: var(--text);
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-toggle-title .muted {
    font-size: 0.92rem;
    line-height: 1.25;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect-list {
    grid-area: stats;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect {
    min-height: 50px;
    padding: 9px 11px;
}

@media (max-width: 900px) {

    .game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:hover {
    transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .lineup-mini-card-category {
    display: block;
    min-width: 0;
    color: var(--theme-muted, var(--muted));
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.14;
}
}/* Source: public/css/source/pages/race-multi-preview/game.css */

@layer base {/* race-multi-preview: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-multi-preview) .race-preview-hero {
    align-items: start;
    row-gap: 8px;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-heading {
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .race-preview-hero .race-preview-hero-matchup {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin: 0;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-matchup > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions.is-multi {
    justify-content: flex-start;
    padding-top: 18px;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row.is-multi .action-pill {
    padding-inline: 22px;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-back-button {
    width: auto;
    min-width: 250px;
    height: 100%;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions.is-multi .race-hero-back-button {
    flex: 0 0 380px;
    width: 380px;
    min-width: 380px;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions.is-multi .race-preview-opponent-button {
    min-height: 68px;
    padding: 12px 18px;
    font-size: 1.04rem;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions.is-multi .race-preview-opponent-button small {
    font-size: 0.82rem;
}

:where(.ui-page-race-multi-preview) .race-preview-button-panel {
    padding: 6px 10px;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-hero-back-button {
    flex: 0 0 300px;
    min-width: 300px;
    min-height: 44px;
    padding-block: 6px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-stamina-storage-button {
    flex: 0 1 320px;
    min-width: 300px;
    min-height: 44px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-boost-storage-button {
    flex: 0 1 320px;
    min-width: 300px;
    min-height: 44px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-stamina-storage-button > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-boost-storage-button > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-preview-opponent-button {
    flex: 0 0 250px;
    min-width: 250px;
    font-size: 0.95rem;
    line-height: 1.1;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 3px;
    padding: 8px 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-preview-opponent-button {
    min-height: 44px;
    padding: 6px 12px;
}

:where(.ui-page-race-multi-preview) .race-preview-button-row .race-preview-opponent-button small {
    font-size: 0.72rem;
    line-height: 1.05;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-label .button-action-icon {
    width: 20px;
    height: 20px;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-label .button-action-icon svg {
    width: 20px;
    height: 20px;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button small {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    opacity: 0.82;
}

:where(.ui-page-race-multi-preview) .race-options-accordion {
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-multi-preview) .race-options-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race-multi-preview) .race-options-accordion-icon {
    margin-left: 0;
}

:where(.ui-page-race-multi-preview) .race-options-accordion-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race-multi-preview) .race-options-accordion-summary::marker {
    content: "";
}

:where(.ui-page-race-multi-preview) .race-options-accordion-summary .race-section-head {
    margin-bottom: 0;
}

:where(.ui-page-race-multi-preview) .race-options-accordion[open] .race-options-accordion-summary {
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

:where(.ui-page-race-multi-preview) .race-item-toggle-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race-multi-preview) .race-item-effect-list {
    display: grid;
    gap: 6px;
}

:where(.ui-page-race-multi-preview) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 10px 12px;
    border: 2px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 12px;
    font-size: 0.86rem;
}

:where(.ui-page-race-multi-preview) .race-item-effect span {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-multi-preview) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-multi-preview) .race-sidebar-copy {
    color: var(--muted);
    line-height: 1.6;
}

:where(.ui-page-race-multi-preview) .lineup-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 820px) {

    :where(.ui-page-race-multi-preview) .lineup-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {

    :where(.ui-page-race-multi-preview) .lineup-mini-grid {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-race-multi-preview) .lineup-mini-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(var(--action-rgb), 0.42);
    background: transparent;
    outline: 0;
}

:where(.ui-page-race-multi-preview) .lineup-mini-card.is-reserve {
    opacity: 1;
    background: transparent;
}

:where(.ui-page-race-multi-preview) .lineup-mini-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .lineup-mini-card-head .lineup-mini-status {
    margin-left: auto;
    text-align: right;
}

:where(.ui-page-race-multi-preview) .lineup-mini-card strong {
    font-size: 0.88rem;
    line-height: 1.3;
}

:where(.ui-page-race-multi-preview) .lineup-mini-card .car-visual.is-compact {
    width: 100%;
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .lineup-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

:where(.ui-page-race-multi-preview) .race-preview-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr) minmax(0, 0.9fr);
    align-items: stretch;
}

:where(.ui-page-race-multi-preview) .race-preview-grid > .panel {
    height: 100%;
}

:where(.ui-page-race-multi-preview) .race-latest-panel {
    display: grid;
    gap: 13px;
    padding: 18px 20px;
}

:where(.ui-page-race-multi-preview) .race-latest-panel.is-highlighted {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.99), rgba(251, 239, 219, 0.99));
    border-color: rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-race-multi-preview) .race-latest-panel.is-win {
    border: 3px solid rgba(var(--success-rgb), 0.46);
    box-shadow: 0 18px 42px rgba(var(--success-rgb), 0.08);
}

:where(.ui-page-race-multi-preview) .race-latest-panel.is-loss {
    border: 3px solid rgba(var(--danger-rgb), 0.42);
    box-shadow: 0 18px 42px rgba(var(--danger-rgb), 0.08);
}

:where(.ui-page-race-multi-preview) .race-latest-panel.is-history.is-win {
    border: 3px solid rgba(var(--success-rgb), 0.34);
    box-shadow: 0 12px 28px rgba(var(--success-rgb), 0.05);
}

:where(.ui-page-race-multi-preview) .race-latest-panel.is-history.is-loss {
    border: 3px solid rgba(var(--danger-rgb), 0.32);
    box-shadow: 0 12px 28px rgba(var(--danger-rgb), 0.05);
}

:where(.ui-page-race-multi-preview) .race-latest-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

:where(.ui-page-race-multi-preview) .race-latest-head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion {
    position: relative;
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-multi-preview) .race-latest-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: start;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race-multi-preview) .race-latest-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race-multi-preview) .race-latest-summary::after {
    content: "+";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 251, 246, 0.94);
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion[open] .race-latest-summary::after {
    content: "-";
}

:where(.ui-page-race-multi-preview) .race-latest-summary .race-latest-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    padding-right: 52px;
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-latest-summary-rewards {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    align-self: start;
    padding: 10px 12px;
    gap: 5px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion-body {
    display: grid;
    gap: 13px;
    padding: 0 18px 16px;
}

:where(.ui-page-race-multi-preview) .race-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-race-multi-preview) .race-latest-grid.is-single {
    grid-template-areas: "winner prize rewards rewards"
        "track mode rewards rewards"
        "time items knowledge rewards";
}

:where(.ui-page-race-multi-preview) .race-latest-grid.is-multi {
    grid-template-areas: "winner prize rewards rewards"
        "track mode rewards rewards"
        "time items knowledge rewards";
}

:where(.ui-page-race-multi-preview) .race-latest-card-winner {
    grid-area: winner;
}

:where(.ui-page-race-multi-preview) .race-latest-card-prize {
    grid-area: prize;
}

:where(.ui-page-race-multi-preview) .race-latest-card-track {
    grid-area: track;
}

:where(.ui-page-race-multi-preview) .race-latest-card-mode {
    grid-area: mode;
}

:where(.ui-page-race-multi-preview) .race-latest-card-time {
    grid-area: time;
}

:where(.ui-page-race-multi-preview) .race-latest-card-items {
    grid-area: items;
}

:where(.ui-page-race-multi-preview) .race-latest-card-knowledge {
    grid-area: knowledge;
}

:where(.ui-page-race-multi-preview) .race-latest-card {
    padding: 11px 13px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.94);
    display: grid;
    gap: 6px;
}

:where(.ui-page-race-multi-preview) .race-latest-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

:where(.ui-page-race-multi-preview) .race-latest-card strong {
    font-size: 1.02rem;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card {
    grid-area: rewards;
    align-content: start;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-chip-row {
    margin-top: 2px;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: row;
}

@media (max-width: 980px) {

    :where(.ui-page-race-multi-preview) .race-latest-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-race-multi-preview) .race-latest-summary .race-latest-head {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-single {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card {
        grid-area: auto;
    }
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .dealership-chip {
    flex: 0 1 auto;
    max-width: 100%;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-normal-chip {
    font-weight: 400;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-normal-chip > span {
    font-weight: 400;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-total-chip > span:last-child {
    font-weight: 900;
}

:where(.ui-page-race-multi-preview) .race-latest-versus {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 12px;
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-latest-side {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.92);
}

:where(.ui-page-race-multi-preview) .race-latest-side span {
    color: var(--muted);
}

:where(.ui-page-race-multi-preview) .race-launch-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

:where(.ui-page-race-multi-preview) .race-launch-panel h2 {
    margin: 0;
}

:where(.ui-page-race-multi-preview) .race-launch-controls-panel {
    margin-top: 0;
}

:where(.ui-page-race-multi-preview) .race-launch-controls-panel .race-launch-form {
    width: 100%;
    gap: 10px;
}

:where(.ui-page-race-multi-preview) .race-launch-controls-panel .race-launch-options {
    padding: 8px 12px;
}

:where(.ui-page-race-multi-preview) .launch-vs-list {
    display: grid;
    gap: 10px;
}

:where(.ui-page-race-multi-preview) .launch-vs-row-chance {
    font-weight: 800;
}

:where(.ui-page-race-multi-preview) .launch-vs-row-chance.is-good {
    background: rgba(233, 247, 221, 0.94);
    border-color: rgba(var(--success-rgb), 0.32);
    color: #497b1f;
}

:where(.ui-page-race-multi-preview) .launch-vs-row-chance.is-even {
    background: rgba(249, 237, 214, 0.96);
    border-color: rgba(var(--warning-rgb), 0.32);
    color: #9a641d;
}

:where(.ui-page-race-multi-preview) .launch-vs-row-chance.is-risky {
    background: rgba(255, 232, 224, 0.96);
    border-color: rgba(var(--danger-rgb), 0.32);
    color: #b15136;
}

:where(.ui-page-race-multi-preview) .launch-vs-row-chance span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: inherit;
}

:where(.ui-page-race-multi-preview) .race-launch-form {
    display: grid;
    gap: 16px;
}

:where(.ui-page-race-multi-preview) .race-launch-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.82);
    box-sizing: border-box;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle {
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: left;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle:has(input:checked) {
    border: 0;
    background: transparent;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle:has(input:checked) > span {
    color: var(--action-strong);
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle:has(input:checked) strong {
    color: var(--action-strong);
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle {
    border-left: 1px solid rgba(var(--theme-border-rgb), 0.2);
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle:has(input:checked) {
    border-left: 1px solid rgba(var(--theme-border-rgb), 0.2);
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle > span {
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-skip-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    column-gap: 8px;
    row-gap: 3px;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-skip-toggle::before {
    grid-row: span 2;
}

:where(.ui-page-race-multi-preview) .race-launch-options .race-skip-toggle strong {
    grid-column: 2;
}

:where(.ui-page-race-multi-preview) .race-launch-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

:where(.ui-page-race-multi-preview) .race-launch-action .launch-button {
    width: min(100%, 320px);
}

:where(.ui-page-race-multi-preview) .race-skip-toggle {
    flex-wrap: wrap;
}

:where(.ui-page-race-multi-preview) .race-skip-toggle strong {
    color: var(--action-strong);
    font-size: 0.84rem;
    line-height: 1;
}

:where(.ui-page-race-multi-preview) .race-skip-toggle.is-empty {
    cursor: not-allowed;
    opacity: 0.62;
}

:where(.ui-page-race-multi-preview) .race-launch-form .race-auto-toggle {
    justify-self: stretch;
}

@media (max-width: 760px) {

    :where(.ui-page-race-multi-preview) .race-launch-options {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle {
        min-height: 50px;
        justify-content: flex-start;
    }

    :where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle {
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.2);
        border-left: 0;
    }

    :where(.ui-page-race-multi-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle:has(input:checked) {
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.2);
        border-left: 0;
    }
}

:where(.ui-page-race-multi-preview) .race-options-accordion-summary .race-persistent-choice-toggle {
    flex: 0 0 auto;
    max-width: none;
}

:where(.ui-page-race-multi-preview) .race-preview-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

:where(.ui-page-race-multi-preview) .race-preview-stat-grid.is-lineup {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.76);
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.06rem;
    line-height: 1;
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card.is-damage strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: rgb(var(--danger-rgb));
}

:where(.ui-page-race-multi-preview) .race-item-toggle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle {
    display: block;
}

:where(.ui-page-race-multi-preview) .race-options-empty-line {
    grid-column: 1 / -1;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

:where(.ui-page-race-multi-preview) .race-item-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

:where(.ui-page-race-multi-preview) .race-item-toggle-pill {
    min-height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid var(--line);
    color: var(--text);
    display: grid;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle-pill {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    min-height: 100%;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle-card-header {
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle-title-row {
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-grid {
    grid-template-columns: minmax(0, 1fr);
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-toggle {
    align-self: start;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-card {
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image head"
        "image meta";
    align-items: start;
    gap: 12px 24px;
    padding: 16px;
    min-height: 0;
    height: auto;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-main {
    display: contents;
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-main > .race-item-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-main > .race-item-toggle-title-row {
    grid-area: head;
    align-self: start;
    min-width: 0;
    padding-right: 80px;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-meta {
    grid-area: meta;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    width: 100%;
    align-self: start;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 244, 227, 0.98);
    color: var(--text);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

@media (max-width: 1180px) {

    :where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "head"
            "meta";
        padding-right: 14px;
        padding-top: 52px;
    }

    :where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-main > .race-item-visual {
        justify-self: center;
    }

    :where(.ui-page-race-multi-preview) .race-items-panel .race-options-structured-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect {
    min-height: 52px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill {
    color: var(--text);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect {
    color: var(--muted);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .muted {
    color: var(--muted);
}

:where(.ui-page-race-multi-preview) .race-item-toggle-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race-multi-preview) .race-item-toggle-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-race-multi-preview) .race-item-toggle-title strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

:where(.ui-page-race-multi-preview) .race-items-panel .race-item-selected-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

:where(.ui-page-race-multi-preview) .race-item-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

:where(.ui-page-race-multi-preview) .track-knowledge-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-race-multi-preview) .race-item-stat-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 253, 0.98);
    display: grid;
    gap: 4px;
}

:where(.ui-page-race-multi-preview) .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.76rem;
}

:where(.ui-page-race-multi-preview) .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.02rem;
}

:where(.ui-page-race-multi-preview) .race-item-toggle-title strong {
    font-weight: 700;
}

:where(.ui-page-race-multi-preview) .race-item-toggle-title .muted {
    font-weight: 400;
}

:where(.ui-page-race-multi-preview) .vs-badge {
    display: grid;
    place-items: center;
    min-height: 82px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #d99022;
    white-space: nowrap;
}

:where(.ui-page-race-multi-preview) .stamp-win {
    color: #497b1f;
    border-color: rgba(var(--success-rgb), 0.42);
    background: rgba(233, 247, 221, 0.82);
}

:where(.ui-page-race-multi-preview) .stamp-loss {
    color: #b15136;
    border-color: rgba(var(--danger-rgb), 0.36);
    background: rgba(255, 232, 224, 0.8);
}

:where(.ui-page-race-multi-preview) .race-latest-stamp {
    justify-self: end;
    transform: none;
    opacity: 1;
    border-width: 2px;
    border-radius: 12px;
    min-width: 154px;
    min-height: 50px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-indent: 0.2em;
    font-size: 1.12rem;
    letter-spacing: 0.2em;
    line-height: 1;
}

:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-line-chip {
    border-radius: 8px;
}

:where(.ui-page-race-multi-preview) .race-preview-grid h2 .player-name-link {
    border-bottom: 0;
    text-decoration: none;
}

:where(.ui-page-race-multi-preview) .race-preview-grid h2 .player-name-link:hover {
    border-bottom: 0;
    text-decoration: none;
}

@media (max-width: 960px) {

    :where(.ui-page-race-multi-preview) .race-preview-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-versus {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-latest-grid.is-single {
        grid-template-areas: none;
    }

    :where(.ui-page-race-multi-preview) .race-latest-grid.is-multi {
        grid-template-areas: none;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-winner {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-prize {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-track {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-mode {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-time {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-card-items {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-latest-rewards-card {
        grid-area: auto;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions {
        width: 100%;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row {
        width: 100%;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
        width: 100%;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-back-button {
        width: 100%;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions.is-multi .race-hero-back-button {
        width: 100%;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-item-toggle-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-item-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-items-panel .race-item-toggle-pill {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-items-panel .race-item-selected-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-race-multi-preview) .race-options-empty-line {
        white-space: normal;
    }
}

:where(.ui-page-race-multi-preview) .panel.race-preview-button-panel {
    padding: 6px 10px;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row .action-pill {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 18px;
    line-height: 1.1;
}

:where(.ui-page-race-multi-preview) .race-preview-hero-actions .race-hero-status-row.is-multi .action-pill {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 18px;
    line-height: 1.1;
}

:where(.ui-page-race-multi-preview) .race-item-effect {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-race-multi-preview) .race-item-effect span {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-race-multi-preview) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 1px;
    background: rgba(255, 253, 249, 0.94);
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-preview) .race-item-effect span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-preview) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card.is-score {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.12), rgba(var(--action-rgb), 0.055));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.06);
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card.is-score span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
}

:where(.ui-page-race-multi-preview) .race-preview-stat-card.is-score strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect {
    border-color: var(--theme-border-soft);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.035);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect-quantity {
    border-color: var(--theme-border-soft);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.035);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect span {
    color: var(--detail-text);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect b {
    color: var(--text);
}

:where(.ui-page-race-multi-preview) .race-item-toggle input:checked + .race-item-toggle-pill strong {
    color: var(--text);
}

:where(.ui-page-race-multi-preview) .race-options-accordion.panel {
    padding: 0;
}

:where(.ui-page-race-multi-preview) .race-options-accordion .race-options-accordion-summary {
    padding: 14px 16px;
    gap: 14px;
}

:where(.ui-page-race-multi-preview) .race-options-accordion:not([open]) .race-options-accordion-summary {
    padding: 12px 16px;
}

:where(.ui-page-race-multi-preview) .race-options-accordion:not([open]) .race-options-accordion-summary .race-section-head {
    align-items: center;
}

:where(.ui-page-race-multi-preview) .race-options-accordion .race-options-accordion-summary .race-section-head {
    align-items: center;
    gap: 10px;
}

:where(.ui-page-race-multi-preview) .race-options-accordion .race-options-accordion-summary .race-section-head > div:first-child {
    flex: 0 0 240px;
    min-width: 210px;
}

:where(.ui-page-race-multi-preview) .race-options-accordion[open] .race-options-accordion-summary {
    margin-bottom: 16px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-ready-result-panel .race-sidebar-copy {
    width: 100%;
    max-width: none;
}

:where(.ui-page-race-multi-preview) .race-options-accordion-body {
    padding: 0 22px 22px;
}

:where(.ui-page-race-multi-preview) .race-options-summary-stats {
    flex: 1 1 360px;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 6px;
    width: min(100%, 460px);
    margin: 0 0 0 auto;
}

:where(.ui-page-race-multi-preview) .race-options-summary-stats.track-knowledge-stat-grid {
    flex-basis: 420px;
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    width: min(100%, 500px);
}

:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card {
    min-height: 50px;
    padding: 8px 9px;
    border-radius: 12px;
    border-color: var(--line);
    background: rgba(255, 255, 253, 0.98);
    box-shadow: none;
}

:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.7rem;
    line-height: 1.15;
    color: var(--muted);
}

:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.98rem;
    line-height: 1.05;
    color: var(--text);
}

:where(.ui-page-race-multi-preview) .race-latest-accordion.panel {
    padding: 0;
    gap: 0;
}

:where(.ui-page-race-multi-preview) .race-latest-panel.race-latest-accordion {
    padding: 0;
    gap: 0;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion .race-latest-summary {
    padding: 12px 16px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion .race-latest-summary::after {
    top: 12px;
    right: 12px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion .race-latest-summary .race-latest-head {
    padding-right: 48px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion .race-latest-summary-rewards {
    padding: 9px 11px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion .race-latest-accordion-body {
    padding: 0 16px 16px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-single {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas: "winner winner prize prize time time track track mode mode"
        "items items items items items knowledge knowledge knowledge knowledge knowledge";
}

:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas: "winner winner prize prize time time track track mode mode"
        "items items items items items knowledge knowledge knowledge knowledge knowledge";
}

:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-items {
    min-height: 64px;
}

:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-knowledge {
    min-height: 64px;
}

.game-shell:where(.ui-page-race-multi-preview) .lineup-mini-card-category {
    display: block;
    min-width: 0;
    color: var(--theme-muted, var(--muted));
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.14;
}

:where(.ui-page-race-multi-preview) .race-sidebar-copy:not(:where(.resources-lead)) {
    margin: 0;
}
}/* Source: public/css/source/pages/race-preview/game.css */

@layer base {/* race-preview: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-preview) .race-preview-hero {
    align-items: start;
    row-gap: 8px;
}

:where(.ui-page-race-preview) .race-preview-hero-heading {
    min-width: 0;
}

:where(.ui-page-race-preview) .race-preview-hero .race-preview-hero-matchup {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin: 0;
}

:where(.ui-page-race-preview) .race-preview-hero-matchup > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

:where(.ui-page-race-preview) .race-preview-hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
}

:where(.ui-page-race-preview) .race-preview-hero-actions.is-multi {
    justify-content: flex-start;
    padding-top: 18px;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row.is-multi .action-pill {
    padding-inline: 22px;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-back-button {
    width: auto;
    min-width: 250px;
    height: 100%;
}

:where(.ui-page-race-preview) .race-preview-hero-actions.is-multi .race-hero-back-button {
    flex: 0 0 380px;
    width: 380px;
    min-width: 380px;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-hero-actions.is-multi .race-preview-opponent-button {
    min-height: 68px;
    padding: 12px 18px;
    font-size: 1.04rem;
}

:where(.ui-page-race-preview) .race-preview-hero-actions.is-multi .race-preview-opponent-button small {
    font-size: 0.82rem;
}

:where(.ui-page-race-preview) .race-preview-button-panel {
    padding: 6px 10px;
}

:where(.ui-page-race-preview) .race-preview-button-row {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-hero-back-button {
    flex: 0 0 300px;
    min-width: 300px;
    min-height: 44px;
    padding-block: 6px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-stamina-storage-button {
    flex: 0 1 320px;
    min-width: 300px;
    min-height: 44px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-boost-storage-button {
    flex: 0 1 320px;
    min-width: 300px;
    min-height: 44px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-stamina-storage-button > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-boost-storage-button > span:first-of-type {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-preview-opponent-button {
    flex: 0 0 250px;
    min-width: 250px;
    font-size: 0.95rem;
    line-height: 1.1;
}

:where(.ui-page-race-preview) .race-preview-opponent-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 3px;
    padding: 8px 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-preview-opponent-button {
    min-height: 44px;
    padding: 6px 12px;
}

:where(.ui-page-race-preview) .race-preview-button-row .race-preview-opponent-button small {
    font-size: 0.72rem;
    line-height: 1.05;
}

:where(.ui-page-race-preview) .race-preview-opponent-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-race-preview) .race-preview-opponent-label .button-action-icon {
    width: 20px;
    height: 20px;
}

:where(.ui-page-race-preview) .race-preview-opponent-label .button-action-icon svg {
    width: 20px;
    height: 20px;
}

:where(.ui-page-race-preview) .race-preview-opponent-button small {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    opacity: 0.82;
}

:where(.ui-page-race-preview) .race-options-accordion {
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-preview) .race-options-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race-preview) .race-options-accordion-icon {
    margin-left: 0;
}

:where(.ui-page-race-preview) .race-options-accordion-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race-preview) .race-options-accordion-summary::marker {
    content: "";
}

:where(.ui-page-race-preview) .race-options-accordion-summary .race-section-head {
    margin-bottom: 0;
}

:where(.ui-page-race-preview) .race-options-accordion[open] .race-options-accordion-summary {
    border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

:where(.ui-page-race-preview) .race-item-toggle-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race-preview) .race-item-effect-list {
    display: grid;
    gap: 6px;
}

:where(.ui-page-race-preview) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 10px 12px;
    border: 2px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 12px;
    font-size: 0.86rem;
}

:where(.ui-page-race-preview) .race-item-effect span {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-preview) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-race-preview) .race-sidebar-copy {
    color: var(--muted);
    line-height: 1.6;
}

:where(.ui-page-race-preview) .race-preview-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr) minmax(0, 0.9fr);
    align-items: stretch;
}

:where(.ui-page-race-preview) .race-preview-grid > .panel {
    height: 100%;
}

:where(.ui-page-race-preview) .race-latest-panel {
    display: grid;
    gap: 13px;
    padding: 18px 20px;
}

:where(.ui-page-race-preview) .race-latest-panel.is-highlighted {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.99), rgba(251, 239, 219, 0.99));
    border-color: rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-race-preview) .race-latest-panel.is-win {
    border: 3px solid rgba(var(--success-rgb), 0.46);
    box-shadow: 0 18px 42px rgba(var(--success-rgb), 0.08);
}

:where(.ui-page-race-preview) .race-latest-panel.is-loss {
    border: 3px solid rgba(var(--danger-rgb), 0.42);
    box-shadow: 0 18px 42px rgba(var(--danger-rgb), 0.08);
}

:where(.ui-page-race-preview) .race-latest-panel.is-history.is-win {
    border: 3px solid rgba(var(--success-rgb), 0.34);
    box-shadow: 0 12px 28px rgba(var(--success-rgb), 0.05);
}

:where(.ui-page-race-preview) .race-latest-panel.is-history.is-loss {
    border: 3px solid rgba(var(--danger-rgb), 0.32);
    box-shadow: 0 12px 28px rgba(var(--danger-rgb), 0.05);
}

:where(.ui-page-race-preview) .race-latest-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

:where(.ui-page-race-preview) .race-latest-head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

:where(.ui-page-race-preview) .race-latest-accordion {
    position: relative;
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-preview) .race-latest-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: start;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-race-preview) .race-latest-summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-race-preview) .race-latest-summary::after {
    content: "+";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 251, 246, 0.94);
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

:where(.ui-page-race-preview) .race-latest-accordion[open] .race-latest-summary::after {
    content: "-";
}

:where(.ui-page-race-preview) .race-latest-summary .race-latest-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    padding-right: 52px;
    align-items: center;
}

:where(.ui-page-race-preview) .race-latest-summary-rewards {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    align-self: start;
    padding: 10px 12px;
    gap: 5px;
}

:where(.ui-page-race-preview) .race-latest-accordion-body {
    display: grid;
    gap: 13px;
    padding: 0 18px 16px;
}

:where(.ui-page-race-preview) .race-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-race-preview) .race-latest-grid.is-single {
    grid-template-areas: "winner prize rewards rewards"
        "track mode rewards rewards"
        "time items knowledge rewards";
}

:where(.ui-page-race-preview) .race-latest-grid.is-multi {
    grid-template-areas: "winner prize rewards rewards"
        "track mode rewards rewards"
        "time items knowledge rewards";
}

:where(.ui-page-race-preview) .race-latest-card-winner {
    grid-area: winner;
}

:where(.ui-page-race-preview) .race-latest-card-prize {
    grid-area: prize;
}

:where(.ui-page-race-preview) .race-latest-card-track {
    grid-area: track;
}

:where(.ui-page-race-preview) .race-latest-card-mode {
    grid-area: mode;
}

:where(.ui-page-race-preview) .race-latest-card-time {
    grid-area: time;
}

:where(.ui-page-race-preview) .race-latest-card-items {
    grid-area: items;
}

:where(.ui-page-race-preview) .race-latest-card-knowledge {
    grid-area: knowledge;
}

:where(.ui-page-race-preview) .race-latest-card {
    padding: 11px 13px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.94);
    display: grid;
    gap: 6px;
}

:where(.ui-page-race-preview) .race-latest-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

:where(.ui-page-race-preview) .race-latest-card strong {
    font-size: 1.02rem;
}

:where(.ui-page-race-preview) .race-latest-rewards-card {
    grid-area: rewards;
    align-content: start;
}

:where(.ui-page-race-preview) .race-latest-rewards-card .race-chip-row {
    margin-top: 2px;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: row;
}

@media (max-width: 980px) {

    :where(.ui-page-race-preview) .race-latest-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-race-preview) .race-latest-summary .race-latest-head {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-single {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card {
        grid-area: auto;
    }
}

:where(.ui-page-race-preview) .race-latest-rewards-card .dealership-chip {
    flex: 0 1 auto;
    max-width: 100%;
}

:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-normal-chip {
    font-weight: 400;
}

:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-normal-chip > span {
    font-weight: 400;
}

:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-total-chip > span:last-child {
    font-weight: 900;
}

:where(.ui-page-race-preview) .race-latest-versus {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 12px;
    align-items: center;
}

:where(.ui-page-race-preview) .race-latest-side {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.92);
}

:where(.ui-page-race-preview) .race-latest-side span {
    color: var(--muted);
}

:where(.ui-page-race-preview) .race-launch-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

:where(.ui-page-race-preview) .race-launch-panel h2 {
    margin: 0;
}

:where(.ui-page-race-preview) .race-launch-controls-panel {
    margin-top: 0;
}

:where(.ui-page-race-preview) .race-launch-controls-panel .race-launch-form {
    width: 100%;
    gap: 10px;
}

:where(.ui-page-race-preview) .race-launch-controls-panel .race-launch-options {
    padding: 8px 12px;
}

:where(.ui-page-race-preview) .launch-vs-list {
    display: grid;
    gap: 10px;
}

:where(.ui-page-race-preview) .launch-vs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid var(--line);
}

:where(.ui-page-race-preview) .launch-vs-row span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
}

:where(.ui-page-race-preview) .launch-vs-row.is-repairing {
    background: rgba(255, 239, 217, 0.94);
    border-color: rgba(230, 118, 44, 0.42);
    color: #b85b1b;
}

:where(.ui-page-race-preview) .launch-vs-row.is-repairing span {
    color: #b85b1b;
}

:where(.ui-page-race-preview) .launch-vs-row.is-breakdown {
    background: rgba(255, 232, 224, 0.92);
    border-color: rgba(var(--danger-rgb), 0.34);
    color: #9b3127;
}

:where(.ui-page-race-preview) .launch-vs-row.is-breakdown span {
    color: #9b3127;
}

:where(.ui-page-race-preview) .race-breakdown-repair-action {
    display: flex;
    justify-content: center;
    margin-top: -2px;
}

:where(.ui-page-race-preview) .race-breakdown-repair-button {
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1;
}

:where(.ui-page-race-preview) .launch-vs-row-chance {
    font-weight: 800;
}

:where(.ui-page-race-preview) .launch-vs-row-chance.is-good {
    background: rgba(233, 247, 221, 0.94);
    border-color: rgba(var(--success-rgb), 0.32);
    color: #497b1f;
}

:where(.ui-page-race-preview) .launch-vs-row-chance.is-even {
    background: rgba(249, 237, 214, 0.96);
    border-color: rgba(var(--warning-rgb), 0.32);
    color: #9a641d;
}

:where(.ui-page-race-preview) .launch-vs-row-chance.is-risky {
    background: rgba(255, 232, 224, 0.96);
    border-color: rgba(var(--danger-rgb), 0.32);
    color: #b15136;
}

:where(.ui-page-race-preview) .launch-vs-row-chance span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: inherit;
}

:where(.ui-page-race-preview) .race-launch-form {
    display: grid;
    gap: 16px;
}

:where(.ui-page-race-preview) .race-launch-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.82);
    box-sizing: border-box;
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle {
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: left;
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle:has(input:checked) {
    border: 0;
    background: transparent;
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle:has(input:checked) > span {
    color: var(--action-strong);
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle:has(input:checked) strong {
    color: var(--action-strong);
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle {
    border-left: 1px solid rgba(var(--theme-border-rgb), 0.2);
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle:has(input:checked) {
    border-left: 1px solid rgba(var(--theme-border-rgb), 0.2);
}

:where(.ui-page-race-preview) .race-launch-options .race-auto-toggle > span {
    min-width: 0;
}

:where(.ui-page-race-preview) .race-launch-options .race-skip-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    column-gap: 8px;
    row-gap: 3px;
}

:where(.ui-page-race-preview) .race-launch-options .race-skip-toggle::before {
    grid-row: span 2;
}

:where(.ui-page-race-preview) .race-launch-options .race-skip-toggle strong {
    grid-column: 2;
}

:where(.ui-page-race-preview) .race-launch-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

:where(.ui-page-race-preview) .race-launch-action .launch-button {
    width: min(100%, 320px);
}

:where(.ui-page-race-preview) .race-skip-toggle {
    flex-wrap: wrap;
}

:where(.ui-page-race-preview) .race-skip-toggle strong {
    color: var(--action-strong);
    font-size: 0.84rem;
    line-height: 1;
}

:where(.ui-page-race-preview) .race-skip-toggle.is-empty {
    cursor: not-allowed;
    opacity: 0.62;
}

:where(.ui-page-race-preview) .race-launch-form .race-auto-toggle {
    justify-self: stretch;
}

@media (max-width: 760px) {

    :where(.ui-page-race-preview) .race-launch-options {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-launch-options .race-auto-toggle {
        min-height: 50px;
        justify-content: flex-start;
    }

    :where(.ui-page-race-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle {
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.2);
        border-left: 0;
    }

    :where(.ui-page-race-preview) .race-launch-options .race-auto-toggle + .race-auto-toggle:has(input:checked) {
        border-top: 1px solid rgba(var(--theme-border-rgb), 0.2);
        border-left: 0;
    }
}

:where(.ui-page-race-preview) .race-options-accordion-summary .race-persistent-choice-toggle {
    flex: 0 0 auto;
    max-width: none;
}

:where(.ui-page-race-preview) .race-preview-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

:where(.ui-page-race-preview) .race-preview-stat-grid.is-lineup {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-race-preview) .race-preview-stat-card {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.76);
}

:where(.ui-page-race-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.06rem;
    line-height: 1;
}

:where(.ui-page-race-preview) .race-preview-stat-card.is-damage strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: rgb(var(--danger-rgb));
}

:where(.ui-page-race-preview) .race-item-toggle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-toggle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-race-preview) .race-items-panel .race-item-toggle {
    display: block;
}

:where(.ui-page-race-preview) .race-options-empty-line {
    grid-column: 1 / -1;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

:where(.ui-page-race-preview) .race-item-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

:where(.ui-page-race-preview) .race-item-toggle-pill {
    min-height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.98);
    border: 1px solid var(--line);
    color: var(--text);
    display: grid;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-toggle-pill {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    min-height: 100%;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-toggle-card-header {
    align-items: center;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-toggle-title-row {
    align-items: center;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-effect-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-grid {
    grid-template-columns: minmax(0, 1fr);
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-toggle {
    align-self: start;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-card {
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image head"
        "image meta";
    align-items: start;
    gap: 12px 24px;
    padding: 16px;
    min-height: 0;
    height: auto;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-main {
    display: contents;
    min-width: 0;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-main > .race-item-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-main > .race-item-toggle-title-row {
    grid-area: head;
    align-self: start;
    min-width: 0;
    padding-right: 80px;
}

:where(.ui-page-race-preview) .race-items-panel .race-options-structured-meta {
    grid-area: meta;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    width: 100%;
    align-self: start;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 244, 227, 0.98);
    color: var(--text);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

@media (max-width: 1180px) {

    :where(.ui-page-race-preview) .race-items-panel .race-options-structured-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "head"
            "meta";
        padding-right: 14px;
        padding-top: 52px;
    }

    :where(.ui-page-race-preview) .race-items-panel .race-options-structured-main > .race-item-visual {
        justify-self: center;
    }

    :where(.ui-page-race-preview) .race-items-panel .race-options-structured-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

:where(.ui-page-race-preview) .race-items-panel .race-item-effect {
    min-height: 52px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    align-items: center;
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill {
    color: var(--text);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect {
    color: var(--muted);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .muted {
    color: var(--muted);
}

:where(.ui-page-race-preview) .race-item-toggle-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

:where(.ui-page-race-preview) .race-item-toggle-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-race-preview) .race-item-toggle-title strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

:where(.ui-page-race-preview) .race-items-panel .race-item-selected-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

:where(.ui-page-race-preview) .race-item-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

:where(.ui-page-race-preview) .track-knowledge-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-race-preview) .race-item-stat-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 253, 0.98);
    display: grid;
    gap: 4px;
}

:where(.ui-page-race-preview) .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.76rem;
}

:where(.ui-page-race-preview) .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.02rem;
}

:where(.ui-page-race-preview) .race-item-toggle-title strong {
    font-weight: 700;
}

:where(.ui-page-race-preview) .race-item-toggle-title .muted {
    font-weight: 400;
}

:where(.ui-page-race-preview) .vs-badge {
    display: grid;
    place-items: center;
    min-height: 82px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #d99022;
    white-space: nowrap;
}

:where(.ui-page-race-preview) .stamp-win {
    color: #497b1f;
    border-color: rgba(var(--success-rgb), 0.42);
    background: rgba(233, 247, 221, 0.82);
}

:where(.ui-page-race-preview) .stamp-loss {
    color: #b15136;
    border-color: rgba(var(--danger-rgb), 0.36);
    background: rgba(255, 232, 224, 0.8);
}

:where(.ui-page-race-preview) .race-latest-stamp {
    justify-self: end;
    transform: none;
    opacity: 1;
    border-width: 2px;
    border-radius: 12px;
    min-width: 154px;
    min-height: 50px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-indent: 0.2em;
    font-size: 1.12rem;
    letter-spacing: 0.2em;
    line-height: 1;
}

:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-line-chip {
    border-radius: 8px;
}

:where(.ui-page-race-preview) .race-preview-grid h2 .player-name-link {
    border-bottom: 0;
    text-decoration: none;
}

:where(.ui-page-race-preview) .race-preview-grid h2 .player-name-link:hover {
    border-bottom: 0;
    text-decoration: none;
}

@media (max-width: 960px) {

    :where(.ui-page-race-preview) .race-preview-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-versus {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-latest-grid.is-single {
        grid-template-areas: none;
    }

    :where(.ui-page-race-preview) .race-latest-grid.is-multi {
        grid-template-areas: none;
    }

    :where(.ui-page-race-preview) .race-latest-card-winner {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-card-prize {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-card-track {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-card-mode {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-card-time {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-card-items {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-latest-rewards-card {
        grid-area: auto;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions {
        width: 100%;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row {
        width: 100%;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
        width: 100%;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-back-button {
        width: 100%;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions.is-multi .race-hero-back-button {
        width: 100%;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row.is-multi {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-item-toggle-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-item-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-items-panel .race-item-toggle-pill {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-items-panel .race-item-selected-card {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-preview) .race-items-panel .race-item-effect-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    :where(.ui-page-race-preview) .race-options-empty-line {
        white-space: normal;
    }
}

:where(.ui-page-race-preview) .panel.race-preview-button-panel {
    padding: 6px 10px;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row .action-pill {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 18px;
    line-height: 1.1;
}

:where(.ui-page-race-preview) .race-preview-hero-actions .race-hero-status-row.is-multi .action-pill {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 18px;
    line-height: 1.1;
}

:where(.ui-page-race-preview) .race-item-effect {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}

:where(.ui-page-race-preview) .race-item-effect span {
    color: var(--detail-text);
}

.game-shell:where(.ui-page-race-preview) .race-item-effect {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 1px;
    background: rgba(255, 253, 249, 0.94);
    text-align: left;
}

.game-shell:where(.ui-page-race-preview) .race-item-effect span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-race-preview) .race-item-effect b {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

:where(.ui-page-race-preview) .race-preview-stat-card.is-score {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.12), rgba(var(--action-rgb), 0.055));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.06);
}

:where(.ui-page-race-preview) .race-preview-stat-card.is-score span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
}

:where(.ui-page-race-preview) .race-preview-stat-card.is-score strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect {
    border-color: var(--theme-border-soft);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.035);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect-quantity {
    border-color: var(--theme-border-soft);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.035);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect span {
    color: var(--detail-text);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill .race-item-effect b {
    color: var(--text);
}

:where(.ui-page-race-preview) .race-item-toggle input:checked + .race-item-toggle-pill strong {
    color: var(--text);
}

:where(.ui-page-race-preview) .race-options-accordion.panel {
    padding: 0;
}

:where(.ui-page-race-preview) .race-options-accordion .race-options-accordion-summary {
    padding: 14px 16px;
    gap: 14px;
}

:where(.ui-page-race-preview) .race-options-accordion:not([open]) .race-options-accordion-summary {
    padding: 12px 16px;
}

:where(.ui-page-race-preview) .race-options-accordion:not([open]) .race-options-accordion-summary .race-section-head {
    align-items: center;
}

:where(.ui-page-race-preview) .race-options-accordion .race-options-accordion-summary .race-section-head {
    align-items: center;
    gap: 10px;
}

:where(.ui-page-race-preview) .race-options-accordion .race-options-accordion-summary .race-section-head > div:first-child {
    flex: 0 0 240px;
    min-width: 210px;
}

:where(.ui-page-race-preview) .race-options-accordion[open] .race-options-accordion-summary {
    margin-bottom: 16px;
}

.game-shell:where(.ui-page-race-preview) .race-ready-result-panel .race-sidebar-copy {
    width: 100%;
    max-width: none;
}

:where(.ui-page-race-preview) .race-options-accordion-body {
    padding: 0 22px 22px;
}

:where(.ui-page-race-preview) .race-options-summary-stats {
    flex: 1 1 360px;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 6px;
    width: min(100%, 460px);
    margin: 0 0 0 auto;
}

:where(.ui-page-race-preview) .race-options-summary-stats.track-knowledge-stat-grid {
    flex-basis: 420px;
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    width: min(100%, 500px);
}

:where(.ui-page-race-preview) .race-options-summary-stats .race-item-stat-card {
    min-height: 50px;
    padding: 8px 9px;
    border-radius: 12px;
    border-color: var(--line);
    background: rgba(255, 255, 253, 0.98);
    box-shadow: none;
}

:where(.ui-page-race-preview) .race-options-summary-stats .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.7rem;
    line-height: 1.15;
    color: var(--muted);
}

:where(.ui-page-race-preview) .race-options-summary-stats .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.98rem;
    line-height: 1.05;
    color: var(--text);
}

:where(.ui-page-race-preview) .race-latest-accordion.panel {
    padding: 0;
    gap: 0;
}

:where(.ui-page-race-preview) .race-latest-panel.race-latest-accordion {
    padding: 0;
    gap: 0;
}

:where(.ui-page-race-preview) .race-latest-accordion .race-latest-summary {
    padding: 12px 16px;
}

:where(.ui-page-race-preview) .race-latest-accordion .race-latest-summary::after {
    top: 12px;
    right: 12px;
}

:where(.ui-page-race-preview) .race-latest-accordion .race-latest-summary .race-latest-head {
    padding-right: 48px;
}

:where(.ui-page-race-preview) .race-latest-accordion .race-latest-summary-rewards {
    padding: 9px 11px;
}

:where(.ui-page-race-preview) .race-latest-accordion .race-latest-accordion-body {
    padding: 0 16px 16px;
}

:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-single {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas: "winner winner prize prize time time track track mode mode"
        "items items items items items knowledge knowledge knowledge knowledge knowledge";
}

:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas: "winner winner prize prize time time track track mode mode"
        "items items items items items knowledge knowledge knowledge knowledge knowledge";
}

:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-items {
    min-height: 64px;
}

:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-knowledge {
    min-height: 64px;
}

:where(.ui-page-race-preview) .race-sidebar-copy:not(:where(.resources-lead)) {
    margin: 0;
}
}/* Source: public/css/source/pages/race-show/game.css */

@layer base {/* race-show: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-show) .race-result-shell {
    padding: 0;
    overflow: hidden;
}

:where(.ui-page-race-show) .result-heading {
    padding: 18px 22px;
    background: linear-gradient(180deg, #305b8c, #264b73);
    color: #fff;
    font-size: 1.22rem;
    font-weight: 700;
}

:where(.ui-page-race-show) .result-board {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    min-height: 420px;
}

:where(.ui-page-race-show) .result-driver {
    position: relative;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    align-content: start;
    gap: 18px;
}

:where(.ui-page-race-show) .driver-left {
    background: linear-gradient(180deg, rgba(247, 252, 239, 0.95), rgba(255, 255, 255, 0.98));
}

:where(.ui-page-race-show) .driver-right {
    background: linear-gradient(180deg, rgba(255, 245, 234, 0.95), rgba(255, 255, 255, 0.98));
}

:where(.ui-page-race-show) .driver-user {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

:where(.ui-page-race-show) .driver-user span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(var(--info-rgb), 0.12);
    color: #305b8c;
    font-weight: 700;
}

:where(.ui-page-race-show) .result-center {
    display: grid;
    align-content: start;
    background: linear-gradient(180deg, rgba(241, 245, 251, 0.98), rgba(232, 239, 248, 0.98));
    border-inline: 1px solid var(--line);
}

:where(.ui-page-race-show) .vs-badge {
    display: grid;
    place-items: center;
    min-height: 82px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #d99022;
    white-space: nowrap;
}

:where(.ui-page-race-show) .result-metric {
    padding: 18px 14px;
    border-top: 1px solid var(--line);
    text-align: center;
    display: grid;
    gap: 10px;
}

:where(.ui-page-race-show) .result-metric span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

:where(.ui-page-race-show) .result-metric strong {
    font-size: 1.7rem;
}

:where(.ui-page-race-show) .stamp-win {
    color: #497b1f;
    border-color: rgba(var(--success-rgb), 0.42);
    background: rgba(233, 247, 221, 0.82);
}

:where(.ui-page-race-show) .stamp-loss {
    color: #b15136;
    border-color: rgba(var(--danger-rgb), 0.36);
    background: rgba(255, 232, 224, 0.8);
}

:where(.ui-page-race-show) .result-car-name {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
}

:where(.ui-page-race-show) .result-items-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    background: #284a70;
    color: #fff;
}

:where(.ui-page-race-show) .items-note p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.86);
}

:where(.ui-page-race-show) .item-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

:where(.ui-page-race-show) .item-badge {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(var(--theme-border-rgb), 0.26);
    white-space: nowrap;
}

:where(.ui-page-race-show) .result-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px;
    background: rgba(255, 255, 255, 0.98);
}

:where(.ui-page-race-show) .result-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {

    :where(.ui-page-race-show) .result-board {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-show) .result-items-row {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-race-show) .result-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
}/* Source: public/css/source/pages/race-tracks/game.css */

@layer base {/* race-tracks: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-tracks) .garage-infrastructure-summary-actions .garage-detail-status-pill {
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
}

:where(.ui-page-race-tracks) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
    grid-column: 1 / -1;
    justify-self: end;
}

@media (max-width: 760px) {

    :where(.ui-page-race-tracks) .garage-infrastructure-summary-actions .garage-detail-status-pill {
        grid-column: auto;
        justify-self: stretch;
    }

    :where(.ui-page-race-tracks) .garage-infrastructure-summary-actions .garage-detail-status-pill:last-child {
        grid-column: auto;
        justify-self: stretch;
    }
}

:where(.ui-page-race-tracks) .track-mastery-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

:where(.ui-page-race-tracks) .race-directory-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

:where(.ui-page-race-tracks) .race-directory-hero h1 {
    margin: 0;
}

:where(.ui-page-race-tracks) .race-directory-hero p {
    margin: 0;
}

:where(.ui-page-race-tracks) .race-directory-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

:where(.ui-page-race-tracks) .race-directory-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-race-tracks) .race-directory-grid {
    display: grid;
    gap: 14px;
}

:where(.ui-page-race-tracks) .race-directory-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 253, 0.96);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

:where(.ui-page-race-tracks) .race-directory-card.is-active {
    border-color: rgba(var(--action-rgb), 0.38);
    box-shadow: 0 16px 34px rgba(var(--action-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:where(.ui-page-race-tracks) .race-directory-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
    overflow: hidden;
}

:where(.ui-page-race-tracks) .race-directory-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

:where(.ui-page-race-tracks) .race-directory-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
}

:where(.ui-page-race-tracks) .race-directory-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-race-tracks) .race-directory-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
    flex: 0 0 auto;
}

:where(.ui-page-race-tracks) .race-directory-card-head h2 {
    margin: 0;
    font-size: clamp(1.05rem, 0.32vw + 0.95rem, 1.24rem);
}

:where(.ui-page-race-tracks) .race-directory-card-body p {
    margin: 0;
}

:where(.ui-page-race-tracks) .race-directory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

:where(.ui-page-race-tracks) .race-directory-stats div {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    display: grid;
    gap: 3px;
}

:where(.ui-page-race-tracks) .race-directory-stats span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

:where(.ui-page-race-tracks) .race-directory-stats strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1.1rem;
    line-height: 1.12;
}

:where(.ui-page-race-tracks) .race-directory-stats div:nth-child(-n + 2) strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.96rem;
    line-height: 1.16;
}

:where(.ui-page-race-tracks) .race-directory-actions {
    display: flex;
    justify-content: flex-end;
}

:where(.ui-page-race-tracks) .garage-upgrade-guide-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill {
    margin-left: auto;
}

:where(.ui-page-race-tracks) .garage-detail-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    font-weight: 900;
    white-space: nowrap;
}

:where(.ui-page-race-tracks) .upgrade-star-cycle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
    margin-top: -2px;
}

:where(.ui-page-race-tracks) .upgrade-star-cycle-tab.button {
    min-height: 38px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
}

:where(.ui-page-race-tracks) .upgrade-star-cycle-tab.button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-race-tracks) .upgrade-star-cycle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: none;
}

:where(.ui-page-race-tracks) .garage-upgrade-guide-panel {
    overflow: visible;
}

:where(.ui-page-race-tracks) .garage-history-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1240px) {

    :where(.ui-page-race-tracks) .garage-history-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {

    :where(.ui-page-race-tracks) .garage-history-stat-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-race-tracks) .race-directory-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    :where(.ui-page-race-tracks) .race-directory-card-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    :where(.ui-page-race-tracks) .race-directory-hero {
        display: grid;
    }

    :where(.ui-page-race-tracks) .race-directory-card-head {
        flex-direction: column;
    }

    :where(.ui-page-race-tracks) .race-directory-hero-actions {
        justify-content: flex-start;
    }

    :where(.ui-page-race-tracks) .race-directory-actions {
        justify-content: flex-start;
    }

    :where(.ui-page-race-tracks) .race-directory-image {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        height: 130px;
        margin: 0;
    }
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-image {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-stats div {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-card.is-active .race-directory-image {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-tracks) .race-directory-card.is-active .race-directory-stats div {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-race-tracks) .garage-detail-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

:where(.ui-page-race-tracks) .garage-detail-status-pill {
    border-color: var(--detail-border-soft);
    background: rgba(255, 253, 249, 0.9);
    color: var(--detail-text);
}
}/* Source: public/css/source/pages/rankings/game.css */

@layer base {/* rankings: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-rankings) .three-col {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(3, 1fr);
}

:where(.ui-page-rankings) .rankings-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

:where(.ui-page-rankings) .rankings-summary-panel {
    align-self: stretch;
    display: grid;
    align-content: start;
}

:where(.ui-page-rankings) .rankings-summary-panel .resources-lead {
    max-width: 58ch;
}

:where(.ui-page-rankings) .rankings-summary-panel .muted {
    max-width: 58ch;
}

:where(.ui-page-rankings) .rankings-summary-panel .dealership-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-rankings) .rankings-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-rankings) .rankings-filter-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-alt);
    padding: 16px 18px;
    display: grid;
    gap: 8px;
}

:where(.ui-page-rankings) .rankings-podium-card {
    border: 1px solid var(--line);
    background: var(--panel-alt);
    display: grid;
    gap: 6px;
}

:where(.ui-page-rankings) .rankings-podium-card .eyebrow {
    margin-bottom: 2px;
}

:where(.ui-page-rankings) .rankings-podium-card h2 {
    margin: 0;
}

:where(.ui-page-rankings) .rankings-podium-card p {
    margin: 0;
}

:where(.ui-page-rankings) .rankings-podium-card h2 {
    font-size: 1.24rem;
    line-height: 1.08;
}

:where(.ui-page-rankings) .rankings-filter-card.is-active {
    border-color: rgba(var(--action-rgb), 0.36);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
}

:where(.ui-page-rankings) .rankings-podium-card.is-player {
    border-color: rgba(var(--action-rgb), 0.36);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
}

:where(.ui-page-rankings) .rankings-row.is-player {
    border-color: rgba(var(--action-rgb), 0.36);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(251, 236, 207, 0.98));
}

:where(.ui-page-rankings) .rankings-filter-card span {
    color: var(--muted);
}

:where(.ui-page-rankings) .rankings-podium-grid {
    align-items: stretch;
}

:where(.ui-page-rankings) .rankings-podium-card .car-visual {
    margin: 0 0 2px;
}

:where(.ui-page-rankings) .rankings-podium-card .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0;
}

:where(.ui-page-rankings) .rankings-podium-card .stats-strip span {
    font-size: 0.82rem;
    line-height: 1.15;
}

:where(.ui-page-rankings) .rankings-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

:where(.ui-page-rankings) .dealership-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

:where(.ui-page-rankings) .rankings-team-line {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 1240px) {

    :where(.ui-page-rankings) .rankings-hero-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-rankings) .rankings-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {

    :where(.ui-page-rankings) .three-col {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-rankings) .rankings-hero-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-rankings) .dealership-summary-grid {
        grid-template-columns: 1fr;
    }
}

body.theme-colored:where(.ui-page-rankings) .rankings-filter-card.is-active {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-rankings) .rankings-podium-card.is-player {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-rankings) .rankings-row.is-player {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-rankings) .rankings-summary-panel .dealership-summary-card {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-rankings) .rankings-filter-card:not(.is-active) {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-rankings) .rankings-podium-card:not(.is-player) {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-rankings) .rankings-row:not(.is-player) {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-rankings) .rankings-team-line {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-rankings) .rankings-filter-card.is-active span {
    color: var(--muted);
}

body.theme-colored:where(.ui-page-rankings) .rankings-podium-card.is-player p {
    color: var(--muted);
}
}/* Source: public/css/source/pages/redeem-codes/game.css */

@layer base {/* redeem-codes: game.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-redeem-codes) .redeem-code-panel {
    display: grid;
    gap: 10px;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-form-panel {
    display: grid;
    gap: 10px;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-form {
    display: grid;
    gap: 12px;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--theme-text, var(--ink));
    background: rgba(255, 251, 246, 0.92);
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-help {
    margin: 0;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-card.structured-action-card > .redeem-code-history-visual {
    align-self: stretch;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-body {
    display: grid;
    gap: 12px;
    align-content: start;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-main {
    display: grid;
    gap: 4px;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-main .eyebrow {
    margin: 0;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-main .muted {
    margin: 0;
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-main h2 {
    margin: 0;
    color: var(--accent);
}

.game-shell:where(.ui-page-redeem-codes) .redeem-code-history-gift.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-redeem-codes) .redeem-code-input-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-redeem-codes) .redeem-code-history-card.structured-action-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-redeem-codes) .redeem-code-history-card.structured-action-card > .redeem-code-history-visual {
        max-width: 220px;
    }
}
}/* Source: public/css/source/pages/rewards/game.css */

@layer base {/* rewards: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-rewards) .reward-bottom-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

:where(.ui-page-rewards) .rewards-tab-layout {
    display: grid;
    gap: var(--section-gap);
}

:where(.ui-page-rewards) .friends-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
    margin-top: 0;
}

:where(.ui-page-rewards) .friends-hero .stats-strip {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(320px, 1.4fr);
    gap: 12px;
    margin: 18px 0 0;
}

:where(.ui-page-rewards) .rewards-storage-hero .stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-rewards) .rewards-storage-hero {
    grid-template-columns: 1fr;
}

:where(.ui-page-rewards) .friends-hero .stats-strip > span {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--theme-card-surface-soft);
    box-shadow: var(--theme-card-shadow-compact);
    color: var(--muted);
    align-content: center;
}

:where(.ui-page-rewards) .friend-gift-card {
    border: 1px solid var(--line);
}

:where(.ui-page-rewards) .friend-history-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-rewards) .friend-gift-card > div {
    display: grid;
    gap: 5px;
}

:where(.ui-page-rewards) .friend-history-card > span:not(.resource-icon-stack) {
    display: grid;
    gap: 5px;
}

:where(.ui-page-rewards) .friend-gift-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-rewards) .friend-history-card small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-rewards) .friend-gift-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

:where(.ui-page-rewards) .friend-history-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

:where(.ui-page-rewards) .friend-gift-card {
    padding: 14px 16px;
}

:where(.ui-page-rewards) .reward-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
}

:where(.ui-page-rewards) .reward-card .resource-icon-stack.is-card {
    justify-self: center;
    justify-content: flex-start;
}

:where(.ui-page-rewards) .reward-card .resource-icon-stack .resource-icon-frame + .resource-icon-frame {
    margin-left: -24px;
}

:where(.ui-page-rewards) .reward-card > div {
    justify-self: start;
    max-width: 760px;
    min-width: 0;
}

:where(.ui-page-rewards) .reward-card form {
    justify-self: end;
}

:where(.ui-page-rewards) .reward-pending-card.structured-action-card {
    padding: 16px 18px;
}

:where(.ui-page-rewards) .reward-recent-card.structured-action-card {
    padding: 16px 18px;
}

:where(.ui-page-rewards) .reward-pending-card.structured-action-card > .reward-pending-visual {
    grid-area: image;
}

:where(.ui-page-rewards) .reward-recent-card.structured-action-card > .reward-recent-visual {
    grid-area: image;
}

:where(.ui-page-rewards) .reward-pending-card.structured-action-card > .reward-pending-body {
    max-width: none;
}

:where(.ui-page-rewards) .reward-recent-card.structured-action-card > .reward-recent-body {
    max-width: none;
}

:where(.ui-page-rewards) .reward-pending-head {
    grid-area: head;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

:where(.ui-page-rewards) .reward-recent-head {
    grid-area: head;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

:where(.ui-page-rewards) .reward-pending-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

:where(.ui-page-rewards) .reward-recent-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

:where(.ui-page-rewards) .reward-pending-head strong {
    color: var(--text);
    line-height: 1.12;
}

:where(.ui-page-rewards) .reward-recent-head strong {
    color: var(--text);
    line-height: 1.12;
}

:where(.ui-page-rewards) .reward-pending-body > p {
    grid-area: copy;
    margin: 0;
}

:where(.ui-page-rewards) .reward-pending-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

:where(.ui-page-rewards) .reward-recent-chip.resource-metric-chip {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.04);
}

:where(.ui-page-rewards) .reward-bulk-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

:where(.ui-page-rewards) .reward-bulk-label {
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

:where(.ui-page-rewards) .reward-bulk-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

:where(.ui-page-rewards) .reward-bulk-actions form {
    margin: 0;
}

:where(.ui-page-rewards) .reward-bulk-actions .button {
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 13px;
    font-size: 0.78rem;
}

:where(.ui-page-rewards) .friend-history-card {
    padding: 13px 14px;
}

@media (max-width: 960px) {

    :where(.ui-page-rewards) .reward-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    :where(.ui-page-rewards) .reward-card form {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    :where(.ui-page-rewards) .reward-card .button {
        width: 100%;
    }

    :where(.ui-page-rewards) .friend-gift-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

:where(.ui-page-rewards) .friend-gift-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

@media (max-width: 560px) {

    :where(.ui-page-rewards) .friend-gift-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-rewards) .friends-hero .stats-strip > span {
    border-color: var(--theme-border-soft);
    outline: 1px solid var(--theme-outline-muted);
    background: var(--theme-card-surface);
    box-shadow: var(--theme-card-shadow);
}

body.theme-colored:where(.ui-page-rewards) .reward-card.is-highlighted {
    border-color: var(--theme-border-muted);
}
}/* Source: public/css/source/pages/scene-themes/game.css */

@layer base {/* scene-themes: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-scene-themes) .scene-theme-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

:where(.ui-page-scene-themes) .scene-theme-hero h1 {
    margin: 0 0 8px;
}

:where(.ui-page-scene-themes) .scene-theme-hero-side {
    display: grid;
    justify-items: end;
    gap: 12px;
    text-align: right;
    min-width: 320px;
}

:where(.ui-page-scene-themes) .garage-scene-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

:where(.ui-page-scene-themes) .scene-theme-hero-side .muted {
    margin: 0;
}

:where(.ui-page-scene-themes) .scene-theme-current-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid rgba(var(--warning-rgb), 0.32);
    border-radius: 999px;
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
}

:where(.ui-page-scene-themes) .scene-theme-current-pill span {
    color: inherit;
    font-weight: 500;
}

:where(.ui-page-scene-themes) .scene-theme-current-pill strong {
    font-weight: 700;
}

:where(.ui-page-scene-themes) .scene-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

:where(.ui-page-scene-themes) .dealership-scene-theme-list-panel {
    margin-top: 12px;
}

:where(.ui-page-scene-themes) .scene-theme-tab-shell {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

:where(.ui-page-scene-themes) .scene-theme-target-panel {
    display: grid;
    grid-template-columns: minmax(760px, 1fr) minmax(320px, auto);
    gap: 24px;
    align-items: center;
    margin-top: 14px;
}

:where(.ui-page-scene-themes) .scene-theme-target-panel .muted {
    white-space: nowrap;
}

:where(.ui-page-scene-themes) .scene-theme-target-actions {
    display: grid;
    justify-content: end;
}

:where(.ui-page-scene-themes) .scene-theme-target-select-wrap {
    display: grid;
    gap: 6px;
    min-width: min(420px, 100%);
}

:where(.ui-page-scene-themes) .scene-theme-target-locked {
    display: grid;
    gap: 6px;
    min-width: min(420px, 100%);
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.28);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.96);
}

:where(.ui-page-scene-themes) .scene-theme-target-select-wrap span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

:where(.ui-page-scene-themes) .scene-theme-target-locked span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

:where(.ui-page-scene-themes) .scene-theme-target-locked strong {
    color: var(--text);
    font-weight: 900;
}

:where(.ui-page-scene-themes) .scene-theme-tab-panel {
    display: none;
}

:where(.ui-page-scene-themes) .scene-theme-tab-panel.is-active {
    display: block;
}

:where(.ui-page-scene-themes) .scene-theme-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-alt);
    outline: 1px solid rgba(var(--action-rgb), 0.14);
    box-shadow: 0 12px 26px rgba(var(--theme-shadow-rgb), 0.08);
}

:where(.ui-page-scene-themes) .scene-theme-card.is-selected {
    outline: 2px solid rgba(var(--action-rgb), 0.35);
    background: rgba(255, 252, 248, 0.98);
}

:where(.ui-page-scene-themes) .scene-theme-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 247, 236, 0.8);
    padding: 0;
    cursor: zoom-in;
}

:where(.ui-page-scene-themes) .scene-theme-preview:disabled {
    cursor: default;
}

:where(.ui-page-scene-themes) .scene-theme-preview img {
    width: 100%;
    height: 100%;
    display: block;
}

:where(.ui-page-scene-themes) .scene-theme-preview-fallback {
    width: 100%;
    height: 100%;
}

:where(.ui-page-scene-themes) .scene-theme-preview img {
    object-fit: cover;
}

:where(.ui-page-scene-themes) .scene-theme-preview > img:first-child {
    position: relative;
    z-index: 1;
}

:where(.ui-page-scene-themes) .scene-theme-preview-car {
    --car-visual-layer-scale: 0.9;
    --car-visual-layer-y: 8%;
    position: absolute;
    inset: 0;
    z-index: 2;
    object-position: center 72%;
    padding: 6% 10% 4%;
    transform: translateY(var(--car-visual-layer-y)) scale(var(--car-visual-layer-scale));
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

:where(.ui-page-scene-themes) .garage-scene-preview-root.is-showing-car .scene-theme-preview-car {
    opacity: 1;
    transform: translateY(var(--car-visual-layer-y)) scale(var(--car-visual-layer-scale));
}

:where(.ui-page-scene-themes) .scene-theme-preview-fallback {
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--accent);
}

:where(.ui-page-scene-themes) .scene-theme-card-body {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

:where(.ui-page-scene-themes) .scene-theme-card-body h2 {
    margin: 0;
    font-size: 1.15rem;
}

:where(.ui-page-scene-themes) .scene-theme-hero h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 960px) {

    :where(.ui-page-scene-themes) .scene-theme-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-scene-themes) .scene-theme-card-body {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-scene-themes) .scene-theme-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-scene-themes) .scene-theme-target-panel {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-scene-themes) .scene-theme-target-panel .muted {
        white-space: normal;
    }

    :where(.ui-page-scene-themes) .scene-theme-target-actions {
        justify-content: stretch;
    }
}

:where(.ui-page-scene-themes) .scene-theme-tab-button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-card.is-selected {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-current-pill {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-card {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-preview {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-current-pill {
    background: var(--theme-tint);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-card {
    outline-color: var(--theme-outline-muted);
    box-shadow: 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-preview {
    background: var(--theme-tint-faint);
}

body.theme-colored:where(.ui-page-scene-themes) .scene-theme-card.is-selected {
    outline-color: var(--selected-outline);
}
}/* Source: public/css/source/pages/support/game.css */

@layer base {/* support: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-support) .friends-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 14px;
    align-items: start;
}

:where(.ui-page-support) .friends-layout > aside {
    grid-column: 2;
}

:where(.ui-page-support) .friend-form-footer {
    display: flex;
    gap: 14px;
    align-items: center;
}

:where(.ui-page-support) .support-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
}

:where(.ui-page-support) .support-hero-panel {
    display: block;
}

:where(.ui-page-support) .support-summary-panel {
    padding: 10px 18px;
}

:where(.ui-page-support) .support-messages-layout {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

:where(.ui-page-support) .support-thread-list-panel {
    min-width: 0;
}

:where(.ui-page-support) .support-conversation-panel {
    min-width: 0;
}

:where(.ui-page-support) .support-thread-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
    color: var(--text);
}

:where(.ui-page-support) .support-thread-link.is-active {
    border-color: rgba(var(--theme-border-rgb), 0.56);
    background: rgba(255, 243, 225, 0.92);
}

:where(.ui-page-support) .support-thread-link span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-support) .support-thread-link small {
    color: var(--muted);
}

:where(.ui-page-support) .support-thread-link em {
    display: inline-grid;
    place-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.9);
    color: var(--accent-strong);
    font-style: normal;
    font-weight: 900;
}

:where(.ui-page-support) .support-status-pill {
    display: inline-grid;
    place-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.9);
    color: var(--accent-strong);
    font-style: normal;
    font-weight: 900;
}

:where(.ui-page-support) .support-status-pill.is-open {
    border-color: rgba(var(--success-rgb), 0.32);
    background: rgba(232, 247, 218, 0.86);
    color: #547631;
}

:where(.ui-page-support) .support-status-pill.is-closed {
    border-color: rgba(var(--warning-rgb), 0.24);
    color: var(--muted);
}

:where(.ui-page-support) .support-message-list {
    display: grid;
    gap: 12px;
}

:where(.ui-page-support) .support-message {
    max-width: min(760px, 92%);
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.96);
}

:where(.ui-page-support) .support-message.is-player {
    justify-self: end;
    background: rgba(255, 243, 225, 0.95);
}

:where(.ui-page-support) .support-message.is-admin {
    justify-self: start;
}

:where(.ui-page-support) .support-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: normal;
}

:where(.ui-page-support) .support-message-meta {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

:where(.ui-page-support) .support-reply-form {
    margin-top: 18px;
}

:where(.ui-page-support) .support-close-form {
    margin-top: 18px;
}

:where(.ui-page-support) .support-info-list {
    gap: 10px;
}

:where(.ui-page-support) .support-info-list p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-alt);
}

:where(.ui-page-support) .support-donate-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

:where(.ui-page-support) .support-donate-button {
    width: max-content;
}

:where(.ui-page-support) .friend-form-footer {
    justify-content: flex-end;
}

@media (max-width: 960px) {

    :where(.ui-page-support) .friends-layout {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-support) .friends-layout > aside {
        grid-column: auto;
    }
}

body.theme-colored:where(.ui-page-support) .support-thread-link.is-active {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored:where(.ui-page-support) .support-thread-link em {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-support) .support-status-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-support) .support-thread-link.is-active small {
    color: var(--muted);
}

.game-shell:where(.ui-page-support) .support-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.game-shell:where(.ui-page-support) .support-summary-strip > .support-summary-card {
    min-width: 0;
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: none;
    color: var(--text);
    line-height: 1.1;
    text-align: left;
}

.game-shell:where(.ui-page-support) .support-summary-strip > .support-summary-card > span {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-support) .support-summary-strip > .support-summary-card > strong {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    overflow-wrap: normal;
    text-align: left;
}

.game-shell:where(.ui-page-support) .support-summary-strip > .support-summary-card > span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
}

.game-shell:where(.ui-page-support) .support-summary-strip > .support-summary-card > strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
}
}/* Source: public/css/source/pages/team/game.css */

@layer base {/* team: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-team) .team-hero-head {
    margin-bottom: 0;
}

:where(.ui-page-team) .team-hero-helper {
    border: 1px solid var(--line);
    padding: 14px 16px;
    display: grid;
    gap: 5px;
}

:where(.ui-page-team) .team-hero-helper strong {
    font-size: 1rem;
}

:where(.ui-page-team) .team-hero-helper span {
    color: var(--muted);
    line-height: 1.45;
}

:where(.ui-page-team) .team-tabs-leave-form {
    margin-left: auto;
}

:where(.ui-page-team) .team-tabs-leave-form .button {
    min-height: 44px;
    border-radius: 13px;
    padding: 9px 16px;
}

:where(.ui-page-team) .team-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin: 14px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 243, 0.86));
    box-shadow: 0 14px 30px rgba(83, 58, 34, 0.06);
}

:where(.ui-page-team) .team-search-field {
    display: grid;
    gap: 7px;
}

:where(.ui-page-team) .team-search-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

:where(.ui-page-team) .team-search-field input {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(var(--line-rgb), 0.3);
    background: rgba(255, 255, 255, 0.82);
    padding: 0 14px;
    font: inherit;
    color: var(--text);
}

:where(.ui-page-team) .team-search-field input:focus {
    outline: 3px solid var(--selected-outline);
    border-color: var(--selected-border);
}

:where(.ui-page-team) .team-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-team) .team-field-full {
    grid-column: 1 / -1;
}

:where(.ui-page-team) .team-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

:where(.ui-page-team) .team-danger-zone {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--danger-rgb), 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-team) .team-danger-zone div {
    display: grid;
    gap: 4px;
}

:where(.ui-page-team) .team-danger-zone span {
    color: var(--muted);
}

:where(.ui-page-team) .team-logo-picker-field {
    flex-direction: column;
    gap: 8px;
}

:where(.ui-page-team) .team-logo-picker-field > span {
    margin-bottom: 0;
}

:where(.ui-page-team) .team-settings-name-field > span {
    margin-bottom: 0;
}

:where(.ui-page-team) .team-settings-name-field {
    align-self: end;
    flex-direction: column;
    gap: 8px;
}

:where(.ui-page-team) .team-logo-picker-preview {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(.ui-page-team) .team-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

:where(.ui-page-team) .team-radio-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-team) .team-radio-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.45);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    align-items: start;
    cursor: pointer;
}

:where(.ui-page-team) .team-radio-card strong {
    grid-column: 2;
}

:where(.ui-page-team) .team-radio-card span {
    grid-column: 2;
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-team) .team-radio-card:has(input:checked) {
    border-color: var(--selected-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

:where(.ui-page-team) .team-color-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 58px));
    grid-auto-rows: 58px;
    gap: 10px 12px;
    align-items: center;
    overflow-x: auto;
    padding: 4px 0 6px;
}

:where(.ui-page-team) .team-color-swatch {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

:where(.ui-page-team) .team-color-swatch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

:where(.ui-page-team) .team-color-swatch span {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--team-swatch-color);
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    box-shadow: 0 0 0 1px rgba(84, 58, 34, 0.22), 0 8px 18px rgba(84, 58, 34, 0.12);
}

:where(.ui-page-team) .team-color-swatch:has(input:checked) {
    box-shadow: 0 0 0 3px var(--selected-outline);
    background: rgba(255, 255, 255, 0.62);
}

:where(.ui-page-team) .team-color-swatch:has(input:checked) span {
    width: 52px;
    height: 52px;
    box-shadow: 0 0 0 3px var(--selected-border), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.16);
}

:where(.ui-page-team) .team-active-upgrade-row {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    display: grid;
    grid-template-columns: 128px minmax(180px, 1fr) minmax(180px, 0.28fr) minmax(320px, 0.45fr) minmax(420px, 0.55fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
}

:where(.ui-page-team) .team-active-upgrade-image {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(255, 247, 236, 0.7);
    cursor: zoom-in;
    padding: 0;
}

:where(.ui-page-team) .team-active-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(.ui-page-team) .team-active-upgrade-main {
    display: grid;
    gap: 4px;
}

:where(.ui-page-team) .team-active-upgrade-meta {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.78);
    min-height: 76px;
    align-content: center;
    padding: 12px 16px;
}

:where(.ui-page-team) .team-active-upgrade-main strong {
    color: var(--text);
}

:where(.ui-page-team) .team-active-upgrade-meta strong {
    color: var(--text);
}

:where(.ui-page-team) .team-active-upgrade-main > span {
    color: var(--muted);
}

:where(.ui-page-team) .team-active-upgrade-meta > span {
    color: var(--muted);
}

:where(.ui-page-team) .team-chat-panel {
    display: grid;
    gap: 14px;
}

:where(.ui-page-team) .team-xp-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

:where(.ui-page-team) .team-xp-rule-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.86);
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
}

:where(.ui-page-team) .team-xp-rule-card span {
    color: var(--muted);
}

:where(.ui-page-team) .team-xp-rule-card small {
    color: var(--muted);
}

:where(.ui-page-team) .team-xp-rule-card strong {
    color: var(--text);
    font-size: 1rem;
}

:where(.ui-page-team) .team-members-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

:where(.ui-page-team) .team-members-head h2 {
    margin-bottom: 0;
}

:where(.ui-page-team) .team-member-stat-label {
    color: var(--muted);
}

:where(.ui-page-team) .team-role-inline {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    vertical-align: middle;
}

:where(.ui-page-team) .team-member-row .team-role-inline {
    --role-frame-size: 88px;
    gap: 0;
    align-items: center;
}

:where(.ui-page-team) .team-member-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

:where(.ui-page-team) .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-actions {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-items: flex-end;
    justify-self: end;
    min-width: 0;
    margin-top: 6px;
    padding-right: 16px;
    box-sizing: border-box;
}

:where(.ui-page-team) .team-member-row .team-member-actions:not(.team-request-actions) form {
    width: 132px;
    min-width: 132px;
}

:where(.ui-page-team) .team-member-row .team-member-actions:not(.team-request-actions) .button {
    width: 132px;
    min-width: 132px;
}

:where(.ui-page-team) .team-request-actions {
    flex-direction: row;
    align-items: center;
}

:where(.ui-page-team) .team-request-actions form {
    min-width: 112px;
}

:where(.ui-page-team) .team-request-actions .button {
    min-width: 112px;
}

:where(.ui-page-team) .modal-card.team-role-modal {
    width: min(860px, calc(100vw - 42px));
    max-height: calc(100dvh - 48px);
}

:where(.ui-page-team) .team-role-backdrop {
    align-items: center;
    justify-items: center;
    padding: 24px;
}

:where(.ui-page-team) .team-role-current {
    width: fit-content;
    margin: 10px auto 16px;
    border: 1px solid var(--selected-border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 16px;
}

:where(.ui-page-team) .team-role-current strong {
    color: var(--text);
}

:where(.ui-page-team) .team-role-current .team-role-inline {
    --role-frame-size: 70px;
}

:where(.ui-page-team) .team-role-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

:where(.ui-page-team) .team-role-choice {
    position: relative;
    width: 100%;
    min-height: 152px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--text);
    display: grid;
    grid-template-columns: minmax(120px, 1fr);
    gap: 6px 10px;
    align-items: start;
    text-align: left;
    padding: 18px;
    cursor: pointer;
    font: inherit;
}

:where(.ui-page-team) .team-role-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

:where(.ui-page-team) .team-role-choice strong {
    grid-column: 1;
}

:where(.ui-page-team) .team-role-choice small {
    grid-column: 1;
}

:where(.ui-page-team) .team-role-choice strong.team-role-inline {
    --role-frame-size: 96px;
    gap: 14px;
}

:where(.ui-page-team) .team-role-choice small {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-team) .team-role-radio {
    display: none;
}

:where(.ui-page-team) .team-role-choice:hover {
    border-color: var(--selected-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

:where(.ui-page-team) .team-role-choice:focus-within {
    border-color: var(--selected-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

:where(.ui-page-team) .team-role-choice:has(input:checked) {
    border-color: var(--selected-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

:where(.ui-page-team) .team-donate-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

:where(.ui-page-team) .team-donate-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.44);
}

:where(.ui-page-team) .team-donate-field {
    display: grid;
    gap: 7px;
}

:where(.ui-page-team) .team-donate-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

:where(.ui-page-team) .team-donate-field input {
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(var(--line-rgb), 0.3);
    background: rgba(255, 255, 255, 0.82);
    padding: 0 14px;
    font: inherit;
}

:where(.ui-page-team) .team-cooldown-notice {
    margin: 0 0 14px;
    border-color: rgba(var(--theme-border-rgb), 0.32);
    background: linear-gradient(180deg, rgba(255, 246, 225, 0.82), rgba(255, 255, 255, 0.62));
}

@media (max-width: 820px) {

    :where(.ui-page-team) .team-hero-head {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-donate-form {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-form-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-radio-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-field-full {
        grid-column: auto;
    }

    :where(.ui-page-team) .team-search-card {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-members-head {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-actions {
        grid-column: 1;
        grid-row: auto;
    }

    :where(.ui-page-team) .team-tabs-leave-form {
        margin-left: 0;
        width: 100%;
    }

    :where(.ui-page-team) .team-tabs-leave-form .button {
        width: 100%;
    }
}

:where(.ui-page-team) .upgrade-title-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

:where(.ui-page-team) .upgrade-title-row strong {
    min-width: 0;
}

:where(.ui-page-team) .upgrade-title-row p {
    min-width: 0;
}

:where(.ui-page-team) .row-layout-visual.team-request-row {
    grid-template-columns: minmax(340px, 1fr) minmax(430px, 0.68fr) minmax(250px, auto);
}

:where(.ui-page-team) .team-request-stats {
    justify-self: end;
    width: min(100%, 500px);
}

:where(.ui-page-team) .team-request-stats span {
    min-width: 136px;
}

:where(.ui-page-team) .team-request-stats strong {
    white-space: nowrap;
}

:where(.ui-page-team) .team-request-actions {
    justify-self: end;
    flex-wrap: nowrap;
}

:where(.ui-page-team) .team-history-title-row {
    margin-bottom: 14px;
}

:where(.ui-page-team) .team-history-title-row h2 {
    margin: 0;
}

:where(.ui-page-team) .flow-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-team) .flow-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-team) .flow-entry-main {
    display: grid;
    gap: 8px;
}

:where(.ui-page-team) .flow-entry-main h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
}

:where(.ui-page-team) .flow-entry-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

:where(.ui-page-team) .flow-entry-copy .badge {
    padding: 6px 10px;
}

:where(.ui-page-team) .flow-entry-copy p {
    margin: 0;
}

:where(.ui-page-team) .flow-entry-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:where(.ui-page-team) .flow-entry-detail {
    flex: 1 1 320px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
    min-width: 0;
}

:where(.ui-page-team) .announcement-entry.is-highlighted .flow-entry-main h2 {
    color: var(--action-strong);
}

:where(.ui-page-team) .announcement-entry .flow-entry-head {
    align-items: flex-start;
}

:where(.ui-page-team) .flow-list-panel {
    display: grid;
    gap: 16px;
}

:where(.ui-page-team) .flow-entry-stack {
    gap: 12px;
}

:where(.ui-page-team) .team-hero-panel h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-team) .section-head-copy {
    max-width: 72ch;
    margin: 0;
}

:where(.ui-page-team) .team-summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(360px, 2fr);
    margin-top: 22px;
}

:where(.ui-page-team) .team-summary-grid.is-team-dashboard {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(135px, 0.66fr) minmax(135px, 0.66fr) minmax(135px, 0.66fr) minmax(160px, 0.78fr) minmax(300px, 1.35fr);
    gap: 12px;
}

:where(.ui-page-team) .team-catalog-head {
    align-items: flex-start;
    width: 100%;
}

:where(.ui-page-team) .team-catalog-head > div:first-child {
    min-width: 0;
}

:where(.ui-page-team) .team-upgrades-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

:where(.ui-page-team) .team-upgrades-head > div:first-child {
    display: contents;
}

:where(.ui-page-team) .team-upgrades-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
}

:where(.ui-page-team) .team-upgrades-head h2 {
    grid-column: 1;
    grid-row: 2;
}

:where(.ui-page-team) .team-upgrades-head .team-catalog-pager {
    grid-column: 2;
    grid-row: 1 / span 2;
}

:where(.ui-page-team) .team-upgrade-head-actions .team-catalog-pager {
    grid-column: auto;
    grid-row: auto;
}

:where(.ui-page-team) .team-upgrades-head .section-head-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
    width: 100%;
    margin-top: 4px;
}

:where(.ui-page-team) .team-catalog-pager {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: max-content;
}

:where(.ui-page-team) .team-catalog-pager .race-pager {
    justify-content: flex-end;
}

:where(.ui-page-team) .garage-upgrade-guide-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill {
    margin-left: auto;
}

:where(.ui-page-team) .garage-upgrade-guide-stack {
    gap: 14px;
}

:where(.ui-page-team) .garage-upgrade-guide-card {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    overflow: hidden;
}

:where(.ui-page-team) .garage-upgrade-guide-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-title-row {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
    display: grid;
    align-content: center;
    min-width: 0;
}

:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-visual {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-team) .garage-upgrade-guide-card .team-upgrade-image {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-team) .garage-upgrade-guide-card .team-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-team) .garage-upgrade-guide-card summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-team) .garage-upgrade-guide-card summary > span:last-child {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 999px;
    background: #fff0d7;
    white-space: nowrap;
}

:where(.ui-page-team) .garage-upgrade-guide-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: #f9edda;
    color: #a56521;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

:where(.ui-page-team) .garage-upgrade-guide-card[open] summary::after {
    content: "-";
    padding-bottom: 4px;
    background: linear-gradient(180deg, #ff9b32, #f3741d);
    color: #fff;
    border-color: transparent;
}

:where(.ui-page-team) .garage-upgrade-guide-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-team) .upgrade-star-cycle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
    margin-top: -2px;
}

:where(.ui-page-team) .upgrade-star-cycle-tab.button {
    min-height: 38px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
}

:where(.ui-page-team) .upgrade-star-cycle-tab.button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-team) .upgrade-star-cycle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: none;
}

:where(.ui-page-team) .garage-upgrade-guide-panel {
    overflow: visible;
}

:where(.ui-page-team) .garage-upgrade-guide-panel .team-catalog-head {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-team) .garage-upgrade-guide-panel .team-catalog-head > div:first-child {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-team) .garage-upgrade-card-grid.is-row-layout .upgrade-title-row {
    grid-area: head;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

@media (max-width: 760px) {

    :where(.ui-page-team) .app-compact-viewport .team-role-backdrop {
        place-items: center;
        padding: 14px;
    }

    :where(.ui-page-team) .app-compact-viewport .modal-card.team-role-modal {
        width: min(860px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
    }
}

@media (max-width: 960px) {

    :where(.ui-page-team) .team-summary-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .team-xp-rules-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .flow-entry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-team) .flow-entry-main h2 {
        font-size: 1.05rem;
    }

    :where(.ui-page-team) .team-catalog-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    :where(.ui-page-team) .team-catalog-pager {
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-team) .flow-entry-details {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team) .flow-entry-detail {
        flex-basis: auto;
    }
}

:where(.ui-page-team) .team-hero-helper {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

@media (max-width: 560px) {

    :where(.ui-page-team) .team-hero-helper {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-team) .team-role-choice:hover {
    border-color: var(--action-border);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .team-role-choice:focus-within {
    border-color: var(--action-border);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .team-active-upgrade-meta {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .team-active-upgrade-image {
    background: var(--theme-tint-strong);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card summary > span:last-child {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-visual {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card .team-upgrade-image {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card summary::after {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .garage-upgrade-guide-card[open] summary::after {
    border-color: transparent;
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
}

body.theme-colored:where(.ui-page-team) .team-summary-grid .team-kpi-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team) .team-xp-rule-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team) .team-summary-grid.is-team-dashboard .team-kpi-card {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-team) .team-active-upgrade-row {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-team) .team-history-entry {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team) .team-history-entry .badge:not([class*="badge--"]) {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .team-history-entry .flow-entry-detail {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team) .team-form-grid .field input {
    border-color: var(--theme-border-soft);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-team) .team-form-grid .field textarea {
    border-color: var(--theme-border-soft);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-team) .team-radio-card {
    border-color: var(--theme-border-soft);
    outline-color: var(--theme-outline-muted);
}

body.theme-colored:where(.ui-page-team) .team-form-grid .field input:focus {
    border-color: var(--theme-border);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

body.theme-colored:where(.ui-page-team) .team-form-grid .field textarea:focus {
    border-color: var(--theme-border);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

body.theme-colored:where(.ui-page-team) .team-radio-card:has(input:focus-visible) {
    border-color: var(--theme-border);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

body.theme-colored:where(.ui-page-team) .team-radio-card:has(input:checked) {
    border-color: var(--theme-border);
    background: var(--theme-selected-surface);
    box-shadow: 0 0 0 3px var(--selected-outline);
}

body.theme-colored:where(.ui-page-team) .team-color-row {
    border-bottom-color: var(--theme-border-hairline);
}

body.theme-colored:where(.ui-page-team) .team-danger-zone {
    border-top-color: var(--theme-border-subtle);
}

:where(.ui-page-team) .team-active-upgrade-row {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-team) .team-history-entry {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-team) .team-form-grid > .field {
    min-width: 0;
    max-width: 100%;
}
}/* Source: public/css/source/pages/team-logos/game.css */

@layer base {/* team-logos: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-team-logos) .team-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-team-logos) .team-logo-option-card {
    min-height: 210px;
}

:where(.ui-page-team-logos) .team-logo-missing {
    width: min(180px, 72%);
    aspect-ratio: 1;
    border: 1px dashed var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.5);
}

:where(.ui-page-team-logos) .car-appearance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

:where(.ui-page-team-logos) .car-appearance-grid.team-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-team-logos) .car-appearance-card-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.72);
}

@media (max-width: 980px) {

    :where(.ui-page-team-logos) .car-appearance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-team-logos) .car-appearance-grid.team-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {

    :where(.ui-page-team-logos) .car-appearance-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-logos) .car-appearance-grid.team-logo-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-logos) .car-appearance-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-team-logos) .car-appearance-card-footer .button {
        width: 100%;
    }
}

:where(.ui-page-team-logos) .scene-theme-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

:where(.ui-page-team-logos) .scene-theme-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

@media (max-width: 960px) {

    :where(.ui-page-team-logos) .scene-theme-hero {
        display: grid;
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/team-member-upgrades/game.css */

@layer base {/* team-member-upgrades: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-team-member-upgrades) .team-member-upgrade-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-row {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    display: grid;
    grid-template-columns: 128px minmax(180px, 1fr) minmax(180px, 0.28fr) minmax(320px, 0.45fr) minmax(420px, 0.55fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-image {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(255, 247, 236, 0.7);
    cursor: zoom-in;
    padding: 0;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-main {
    display: grid;
    gap: 4px;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 251, 246, 0.78);
    min-height: 76px;
    align-content: center;
    padding: 12px 16px;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-main strong {
    color: var(--text);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta strong {
    color: var(--text);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-main > span {
    color: var(--muted);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta > span {
    color: var(--muted);
}

:where(.ui-page-team-member-upgrades) .resources-grid.city-job-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

:where(.ui-page-team-member-upgrades) .resources-grid.city-job-shop-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card {
    align-content: start;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(250px, 0.62fr) minmax(250px, 0.62fr) minmax(180px, 0.34fr);
    grid-template-areas: "meta value cost action"
        "copy value cost action";
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-meta {
    grid-area: meta;
    align-self: end;
    display: grid;
    gap: 2px;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card h3 {
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card p {
    grid-area: copy;
    align-self: start;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward-list {
    display: contents;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-value {
    grid-area: value;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-cost {
    grid-area: cost;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
    min-height: 62px;
    height: 100%;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card form {
    grid-area: action;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .button {
    width: 100%;
    min-height: 62px;
    justify-content: flex-start;
    text-align: left;
}

:where(.ui-page-team-member-upgrades) .resource-card.city-job-shop-card h3 {
    font-size: 1.08rem;
    line-height: 1.15;
    overflow-wrap: normal;
}

:where(.ui-page-team-member-upgrades) .resource-card.city-job-shop-card p {
    font-size: 1rem;
    line-height: 1.35;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 0.86rem;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward.city-job-shop-value {
    padding-left: 8px;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward > span:last-child {
    display: grid;
    gap: 2px;
    align-content: center;
    white-space: normal;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card form {
    margin-top: auto;
    justify-self: start;
}

:where(.ui-page-team-member-upgrades) .resource-card.city-job-shop-card .button {
    width: auto;
    min-height: 40px;
    border-radius: 12px;
    padding: 10px 16px;
    justify-self: start;
    font-size: 0.9rem;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid {
    margin-top: 18px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card {
    grid-template-columns: 58px minmax(360px, 1fr) minmax(210px, 0.34fr) minmax(170px, 0.26fr);
    grid-template-areas: "media meta cost action"
        "media copy cost action";
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.78);
    box-shadow: 0 10px 24px rgba(84, 54, 20, 0.05);
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) minmax(140px, 160px);
    grid-template-areas: "reward shop-cost action";
    align-items: stretch;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .city-job-shop-meta {
    grid-area: meta;
    align-self: end;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .daily-gift-reward-list {
    display: grid;
    grid-area: shop-cost;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .city-job-shop-cost {
    grid-area: auto;
    min-height: 86px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .garage-shop-actions {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-self: stretch;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .garage-shop-actions form {
    grid-area: auto;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card):not(.garage-fragment-card) .garage-shop-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 10px;
    justify-content: center;
    text-align: center;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(140px, 160px);
    grid-template-areas: "reward fragments action";
    align-items: stretch;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .daily-gift-reward-list {
    display: grid;
    grid-area: fragments;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-progress {
    grid-area: auto;
    min-height: 104px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions {
    grid-area: action;
    align-self: stretch;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions form {
    min-width: 0;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card h3 {
    color: var(--text);
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card p {
    color: var(--muted);
    line-height: 1.35;
}

:where(.ui-page-team-member-upgrades) .garage-shop-card .daily-gift-reward {
    border-color: rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 247, 232, 0.64);
}

:where(.ui-page-team-member-upgrades) .garage-shop-card .daily-gift-reward img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-card .button {
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-card .city-job-shop-cost:not(.garage-fragment-progress) > span:last-child {
    display: grid;
    gap: 6px;
    align-content: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-card .city-job-shop-cost:not(.garage-fragment-progress) small {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-card .city-job-shop-cost:not(.garage-fragment-progress) strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 980px) {

    :where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card {
        grid-template-columns: 1fr;
        grid-template-areas: "meta"
            "copy"
            "value"
            "cost"
            "action";
    }
}

:where(.ui-page-team-member-upgrades) .upgrade-title-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

:where(.ui-page-team-member-upgrades) .upgrade-title-row strong {
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .upgrade-title-row p {
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .flow-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.05);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-team-member-upgrades) .flow-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

:where(.ui-page-team-member-upgrades) .flow-entry-main {
    display: grid;
    gap: 8px;
}

:where(.ui-page-team-member-upgrades) .flow-entry-main h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
}

:where(.ui-page-team-member-upgrades) .flow-entry-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

:where(.ui-page-team-member-upgrades) .flow-entry-copy .badge {
    padding: 6px 10px;
}

:where(.ui-page-team-member-upgrades) .flow-entry-copy p {
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .flow-entry-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .flow-entry-detail {
    flex: 1 1 320px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .announcement-entry.is-highlighted .flow-entry-main h2 {
    color: var(--action-strong);
}

:where(.ui-page-team-member-upgrades) .announcement-entry .flow-entry-head {
    align-items: flex-start;
}

:where(.ui-page-team-member-upgrades) .flow-entry-stack {
    gap: 12px;
}

:where(.ui-page-team-member-upgrades) .section-head-copy {
    max-width: 72ch;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .team-catalog-head {
    align-items: flex-start;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .team-catalog-head > div:first-child {
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel {
    display: grid;
    gap: 18px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row > div {
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill {
    margin-left: auto;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-stack {
    gap: 14px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    overflow: hidden;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-title-row {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
    display: grid;
    align-content: center;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-visual {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-upgrade-image {
    width: 112px;
    height: 70px;
    min-width: 112px;
    margin: 0;
    padding: 5px;
    aspect-ratio: auto;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-upgrade-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary::-webkit-details-marker {
    display: none;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary > span:last-child {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
    padding: 10px 18px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 999px;
    background: #fff0d7;
    white-space: nowrap;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    background: #f9edda;
    color: #a56521;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card[open] summary::after {
    content: "-";
    padding-bottom: 4px;
    background: linear-gradient(180deg, #ff9b32, #f3741d);
    color: #fff;
    border-color: transparent;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

:where(.ui-page-team-member-upgrades) .upgrade-star-cycle-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
    margin-top: -2px;
}

:where(.ui-page-team-member-upgrades) .upgrade-star-cycle-tab.button {
    min-height: 38px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
}

:where(.ui-page-team-member-upgrades) .upgrade-star-cycle-tab.button.is-active {
    border-color: var(--selected-border);
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
    box-shadow: 0 4px 9px var(--action-shadow);
}

:where(.ui-page-team-member-upgrades) .upgrade-star-cycle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: none;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel {
    overflow: visible;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel .team-catalog-head {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel .team-catalog-head > div:first-child {
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel .team-member-upgrades-copy {
    max-width: none;
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
}

:where(.ui-page-team-member-upgrades) .team-member-time-stack {
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

:where(.ui-page-team-member-upgrades) .team-member-time-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

:where(.ui-page-team-member-upgrades) .team-member-time-card summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 46px;
}

:where(.ui-page-team-member-upgrades) .team-member-time-card summary > span:last-child {
    justify-self: end;
    width: fit-content;
    max-width: min(52vw, 100%);
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

:where(.ui-page-team-member-upgrades) .team-member-time-content {
    display: grid;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-time-content .upgrade-star-cycle-tabs {
    justify-content: flex-end;
    padding: 0 16px 12px;
    margin-top: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-time-content .garage-upgrade-guide-table-wrap {
    max-height: 520px;
    min-width: 0;
    overflow: auto;
}

:where(.ui-page-team-member-upgrades) .team-member-time-content .garage-upgrade-guide-table {
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .team-repair-history-list {
    gap: 12px;
}

:where(.ui-page-team-member-upgrades) .team-repair-history-entry .badge {
    white-space: nowrap;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-list {
    gap: 12px;
}

:where(.ui-page-team-member-upgrades) .team-member-active-work {
    margin-bottom: 18px;
}

:where(.ui-page-team-member-upgrades) .team-member-active-work h3 {
    margin: 0;
    font-size: 1.35rem;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrades-copy {
    max-width: none;
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-form {
    flex: 0 0 auto;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-button {
    white-space: nowrap;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-areas: "media main"
        "media pending"
        ". action";
    align-items: start;
    gap: 12px 18px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-media {
    grid-area: media;
    width: 160px;
    height: 160px;
    padding: 6px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.92);
    overflow: hidden;
    cursor: zoom-in;
    box-sizing: border-box;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-main {
    grid-area: main;
    display: grid;
    gap: 7px;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-main strong {
    font-size: 1.06rem;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress {
    display: grid;
    gap: 7px;
    margin-top: 4px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress .garage-upgrade-progress-head {
    align-items: center;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress .garage-upgrade-progress-foot {
    margin-top: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-upgrade-meta-stack {
    display: grid;
    gap: 7px;
    min-width: 0;
    align-content: start;
    justify-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-chance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-card {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.9);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-card > span {
    min-width: 0;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.08;
    overflow-wrap: normal;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-card > strong {
    min-width: 0;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: normal;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-card.is-time-card {
    grid-column: 1 / -1;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-upgrade-meta-stack span {
    color: var(--muted);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-upgrade-meta-stack small {
    color: var(--muted);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card form {
    grid-area: action;
    display: grid;
    align-content: center;
    justify-self: end;
    width: min(240px, 100%);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-actions {
    grid-area: action;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
    width: min(420px, 100%);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-actions form {
    grid-area: auto;
    flex: 1 1 0;
    justify-self: stretch;
    width: auto;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card form .button {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    padding-block: 8px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-pending {
    grid-area: pending;
    justify-self: stretch;
    align-self: start;
}

@media (max-width: 980px) {

    :where(.ui-page-team-member-upgrades) .team-member-upgrades-copy {
        white-space: normal;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-head-actions {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-head-actions .action-pill {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-form {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-button {
        width: 100%;
        max-width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "pending"
            "action";
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-chance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-actions {
        justify-self: stretch;
        width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card form {
        justify-self: stretch;
        width: 100%;
    }
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-card-grid.is-row-layout .upgrade-title-row {
    grid-area: head;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions {
    align-self: stretch;
    align-content: center;
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    grid-template-columns: none;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-actions {
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-actions .button {
    min-height: 52px;
    min-width: 210px;
    width: auto;
    border-radius: 14px;
    padding-inline: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-actions form {
    width: auto;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-actions form {
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-upgrade-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-content: center;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form:nth-child(1) {
    grid-row: 1;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form:nth-child(2) {
    grid-row: 2;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 10px;
    justify-content: center;
    text-align: center;
}

:where(.ui-page-team-member-upgrades) .resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

:where(.ui-page-team-member-upgrades) .resource-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.16);
    outline: 1px solid rgba(var(--action-rgb), 0.22);
}

:where(.ui-page-team-member-upgrades) .resource-card h3 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.05;
}

:where(.ui-page-team-member-upgrades) .resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

:where(.ui-page-team-member-upgrades) .resource-card form {
    margin-top: 4px;
}

:where(.ui-page-team-member-upgrades) .resource-card .button {
    width: 100%;
    min-height: 64px;
    border-radius: 999px;
    font-size: 1.05rem;
}

:where(.ui-page-team-member-upgrades) .resource-card.is-danger {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 234, 0.98));
}

:where(.ui-page-team-member-upgrades) .daily-gift-reward {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.5);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    font-weight: 400;
    font-size: 0.76rem;
}

:where(.ui-page-team-member-upgrades) .daily-gift-reward > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {

    :where(.ui-page-team-member-upgrades) .resources-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-member-upgrades) .flow-entry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card {
        grid-template-columns: 1fr;
        grid-template-areas: "meta"
            "copy"
            "value"
            "cost"
            "action";
    }

    :where(.ui-page-team-member-upgrades) .flow-entry-main h2 {
        font-size: 1.05rem;
    }

    :where(.ui-page-team-member-upgrades) .team-catalog-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {

    :where(.ui-page-team-member-upgrades) .flow-entry-details {
        display: grid;
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-member-upgrades) .flow-entry-detail {
        flex-basis: auto;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-team-member-upgrades) .resource-card {
        min-width: 0;
    }

    :where(.ui-page-team-member-upgrades) .daily-gift-reward > span:last-child {
        overflow-wrap: normal;
        white-space: normal;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-team-member-upgrades) .resource-card {
        padding: 12px;
    }
}

:where(.ui-page-team-member-upgrades) .resource-card {
    border-color: var(--line);
    border-radius: var(--compact-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-team-member-upgrades) .resource-card p {
    line-height: 1.45;
}

@media (max-width: 560px) {

    :where(.ui-page-team-member-upgrades) .resource-card {
        border-radius: 8px;
    }
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card {
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-fragment-card .garage-fragment-progress {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-shop-card .daily-gift-reward {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-active-upgrade-image {
    background: var(--theme-tint-strong);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary > span:last-child {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card {
    border-color: var(--theme-border-muted);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-visual {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-upgrade-image {
    border-color: var(--theme-border-subtle);
    background: var(--theme-tint);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary::after {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card[open] summary::after {
    border-color: transparent;
    background: linear-gradient(180deg, var(--selected-bg-top), var(--selected-bg-bottom));
    color: var(--selected-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-active-upgrade-row {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-member-upgrade-card {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-member-upgrade-media {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-upgrade-meta-stack {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-member-upgrade-media {
    outline-color: var(--theme-outline-soft);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-repair-history-entry {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-repair-history-entry .badge:not([class*="badge--"]) {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-repair-history-entry .flow-entry-detail {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-row {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-team-member-upgrades) .team-repair-history-entry {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card {
    border-color: var(--detail-border-soft);
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card {
    border-color: var(--detail-border-soft);
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
    --structured-action-image-size: 200px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card {
    --structured-action-image-size: 200px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card {
    --structured-action-image-size: 200px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) {
    --structured-action-image-size: 200px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) {
    --structured-action-image-size: 200px;
}

@media (max-width: 760px) {

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-bulk-button {
        padding-block: 8px;
    }
}
}/* Source: public/css/source/pages/team-public/game.css */

@layer base {/* team-public: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-team-public) .team-member-stat-label {
    color: var(--muted);
}

:where(.ui-page-team-public) .team-member-info {
    display: grid;
    align-content: start;
    gap: 0;
    min-width: 0;
}

:where(.ui-page-team-public) .team-role-inline {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    vertical-align: middle;
}

:where(.ui-page-team-public) .team-role-line {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

:where(.ui-page-team-public) .team-member-row .team-role-inline {
    --role-frame-size: 88px;
    gap: 0;
    align-items: center;
}

:where(.ui-page-team-public) .team-member-row .team-role-line {
    margin: 0;
}

:where(.ui-page-team-public) .team-member-role-copy {
    display: grid;
    align-content: center;
    gap: 5px;
    line-height: 1.15;
    min-height: var(--role-frame-size, 88px);
}

:where(.ui-page-team-public) .team-member-role-copy .team-member-name {
    color: var(--text);
    font-weight: 900;
}

:where(.ui-page-team-public) .team-member-role-copy > span {
    color: var(--muted);
    font-weight: 700;
}

:where(.ui-page-team-public) .team-member-role-copy .team-member-level {
    font-size: 0.9em;
}

@media (max-width: 820px) {

    :where(.ui-page-team-public) .team-public-member-row .team-member-stats {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-team-public) .profile-capacity-progress {
    display: grid;
    gap: 12px;
}

:where(.ui-page-team-public) .profile-showcase-summary .dealership-summary-card {
    min-width: 0;
}

:where(.ui-page-team-public) .profile-showcase-summary .dealership-summary-card strong {
    overflow-wrap: normal;
}

:where(.ui-page-team-public) .profile-capacity-progress {
    margin-top: 18px;
}

:where(.ui-page-team-public) .profile-showcase-summary {
    align-content: start;
}

:where(.ui-page-team-public) .profile-showcase-summary h2 {
    font-size: 1.06rem;
}

:where(.ui-page-team-public) .profile-showcase-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

:where(.ui-page-team-public) .public-profile-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ui-page-team-public) .public-profile-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

:where(.ui-page-team-public) .public-profile-strip > div:first-child {
    min-width: 0;
}

:where(.ui-page-team-public) .public-profile-strip h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.05;
    overflow-wrap: normal;
}

:where(.ui-page-team-public) .public-profile-strip-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-team-public) .public-profile-strip-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.82);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

:where(.ui-page-team-public) .public-profile-strip-stats .is-status-pill {
    border-color: rgba(var(--warning-rgb), 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
    font-weight: 800;
}

:where(.ui-page-team-public) .public-profile-strip-stats a {
    color: var(--accent-strong);
    font-weight: 900;
}

:where(.ui-page-team-public) .team-public-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

:where(.ui-page-team-public) .team-public-heading p {
    margin: 6px 0 0;
    max-width: 70ch;
}

:where(.ui-page-team-public) .team-public-member-row.row-layout-visual {
    grid-template-columns: minmax(420px, 1fr) minmax(540px, auto);
}

:where(.ui-page-team-public) .row-layout-visual.team-public-member-row {
    grid-template-columns: minmax(420px, 1fr) minmax(540px, auto);
}

:where(.ui-page-team-public) .team-public-member-row .team-member-stats {
    grid-template-columns: repeat(3, minmax(132px, 170px));
    justify-self: end;
    width: auto;
}

:where(.ui-page-team-public) .public-profile-strip .button {
    flex: 0 0 auto;
}

@media (max-width: 960px) {

    :where(.ui-page-team-public) .profile-showcase-metrics {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-public) .public-profile-strip {
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-team-public) .public-profile-strip-stats {
        justify-content: flex-start;
    }
}
}/* Source: public/css/source/pages/tours/game.css */

@layer base {/* tours: game.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-tours) .city-jobs-hero-title-row .garage-hourglass-stock-pill {
    flex: 0 0 auto;
}

:where(.ui-page-tours) .tour-fuel-head {
    display: grid;
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-tours) .tour-fuel-head h1 {
    margin: 0;
}

:where(.ui-page-tours) .tour-fuel-head .muted {
    margin: 0;
    text-align: right;
}

:where(.ui-page-tours) .tour-fuel-head > div:first-child {
    min-width: 0;
}

:where(.ui-page-tours) .tour-fuel-head > div:first-child .muted {
    max-width: 24ch;
    text-align: left;
    line-height: 1.25;
}

:where(.ui-page-tours) .race-row {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-color: rgba(var(--theme-border-rgb), 0.16);
    box-shadow: 0 10px 24px rgba(var(--theme-shadow-rgb), 0.04);
    outline: 1px solid rgba(var(--action-rgb), 0.24);
}

:where(.ui-page-tours) .tour-row-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-self: stretch;
    align-content: stretch;
    justify-items: stretch;
    text-align: left;
}

:where(.ui-page-tours) .tour-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

:where(.ui-page-tours) .tour-title-row > strong {
    min-width: 0;
}

:where(.ui-page-tours) .tour-job-row.has-tour-image {
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) minmax(260px, 360px) minmax(170px, 220px);
    grid-template-areas: "image main main action"
        "image meta rewards action"
        "progress progress progress action"
        "cooldown cooldown cooldown cooldown";
    align-items: stretch;
    gap: 14px 20px;
    padding: 16px 18px;
}

:where(.ui-page-tours) .tour-job-row:not(.has-tour-image) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(170px, 220px);
    grid-template-areas: "main main action"
        "meta rewards action"
        "progress progress action"
        "cooldown cooldown cooldown";
    gap: 14px 20px;
    padding: 16px 18px;
}

:where(.ui-page-tours) .tour-job-row .tour-job-image {
    grid-area: image;
}

:where(.ui-page-tours) .tour-job-row .row-main {
    grid-area: main;
}

:where(.ui-page-tours) .tour-job-row .tour-row-rewards-strip {
    grid-area: rewards;
}

:where(.ui-page-tours) .tour-job-row .tour-row-meta {
    grid-area: meta;
}

:where(.ui-page-tours) .tour-job-row .tour-row-progress {
    grid-area: progress;
}

:where(.ui-page-tours) .tour-job-row .tour-job-actions {
    grid-area: action;
}

:where(.ui-page-tours) .tour-job-row .tour-inline-cooldown {
    grid-area: cooldown;
    margin-top: 0;
}

:where(.ui-page-tours) .tour-job-row.has-tour-image .row-main {
    align-self: start;
}

:where(.ui-page-tours) .tour-job-row.has-tour-image .tour-job-actions {
    align-self: end;
}

:where(.ui-page-tours) .tour-job-row .tour-job-actions {
    align-self: end;
}

:where(.ui-page-tours) .tour-job-row.has-tour-image .tour-row-meta {
    align-self: stretch;
}

:where(.ui-page-tours) .tour-job-actions {
    display: grid;
    align-content: end;
    gap: 10px;
    justify-items: stretch;
}

:where(.ui-page-tours) .tour-job-actions > .button {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
}

:where(.ui-page-tours) .tour-job-actions > form > .button {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
}

:where(.ui-page-tours) .tour-job-actions .hourglass-action-button {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
}

:where(.ui-page-tours) .tour-job-actions > form {
    display: grid;
    gap: 8px;
    margin: 0;
}

:where(.ui-page-tours) .tour-job-actions .hourglass-action-group {
    display: grid;
    gap: 8px;
    margin: 0;
}

:where(.ui-page-tours) .tour-job-actions .hourglass-action-button {
    justify-content: center;
    font-size: 0.88rem;
}

:where(.ui-page-tours) .tour-job-image {
    width: 100%;
    min-height: 280px;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 12px;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
}

:where(.ui-page-tours) .tour-job-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.ui-page-tours) .tour-row-section {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.94);
    text-align: left;
    justify-items: start;
}

:where(.ui-page-tours) .tour-row-section.is-requirements {
    grid-column: 1 / -1;
    min-height: 88px;
}

:where(.ui-page-tours) .tour-row-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
}

:where(.ui-page-tours) .tour-row-section strong {
    font-size: 1.06rem;
    line-height: 1.25;
}

:where(.ui-page-tours) .tour-progress-block {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

:where(.ui-page-tours) .tour-row-progress {
    align-self: stretch;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.9);
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    align-content: stretch;
    gap: 10px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-meta:not(:has(> :nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-meta:has(> :nth-child(2)):not(:has(> :nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-section {
    align-content: start;
    min-width: 0;
    min-height: 76px;
    border-radius: 14px;
    padding: 11px 14px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-section.is-requirements {
    grid-column: auto;
    min-height: 76px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-section.is-cost {
    padding-inline: 12px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip {
    align-self: stretch;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip .tour-resource-lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-resource-lines {
    gap: 5px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip .tour-resource-lines .resource-metric-chip {
    align-self: center;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-section.is-cost .tour-resource-lines .resource-metric-chip {
    align-self: center;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-row-progress {
    min-width: 0;
    padding: 11px 14px;
    border-radius: 14px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-job-actions {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(180px, 300px);
    justify-content: space-between;
    gap: 12px;
    justify-self: stretch;
    align-self: start;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-inline-cooldown {
    justify-self: stretch;
    align-self: start;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-job-actions > form {
    width: 100%;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-job-actions > form > .button {
    width: 100%;
    font-size: 1rem;
    min-height: 68px;
    border-radius: 12px;
    padding-block: 9px;
}

:where(.ui-page-tours) .tour-job-card--structured .tour-job-image {
    align-self: start;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
}

:where(.ui-page-tours) .tour-capacity-progress {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 246, 0.88);
}

:where(.ui-page-tours) .tour-fuel-storage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-width: 230px;
    margin-top: 14px;
}

:where(.ui-page-tours) .tour-row-stats {
    display: grid;
    gap: 3px;
    margin-top: 0;
    justify-items: start;
    text-align: left;
}

:where(.ui-page-tours) .tour-resource-lines {
    display: grid;
    gap: 7px;
    width: 100%;
}

:where(.ui-page-tours) .tour-row-rewards-strip {
    align-self: stretch;
}

:where(.ui-page-tours) .tour-row-rewards-strip .tour-resource-lines {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    align-items: center;
    gap: 8px 12px;
}

:where(.ui-page-tours) .tour-row-rewards-strip .tour-resource-line {
    width: auto;
}

:where(.ui-page-tours) .tour-row-requirements {
    grid-template-columns: 1fr;
}

:where(.ui-page-tours) .tour-row-requirements span {
    display: block;
    overflow-wrap: normal;
}

@media (max-width: 900px) {

    :where(.ui-page-tours) .tour-row-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-tours) .tour-job-card--structured .tour-row-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip .tour-resource-lines {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-tours) .tour-job-card--structured .tour-job-actions {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-tours) .tour-row-rewards-strip .tour-resource-lines {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-tours) .tour-fuel-head h1 {
    font-size: clamp(1.02rem, 0.28vw + 0.86rem, 1.16rem);
    line-height: 1.08;
}

:where(.ui-page-tours) .tour-fuel-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

:where(.ui-page-tours) .tour-fuel-stat-grid .dealership-chip {
    display: grid;
    align-content: center;
    justify-content: stretch;
    gap: 8px;
    min-height: 70px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 253, 249, 0.94);
    white-space: normal;
    text-align: left;
}

:where(.ui-page-tours) .tour-fuel-stat-box > span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.08;
    text-transform: none;
}

:where(.ui-page-tours) .tour-fuel-stat-box > strong {
    color: var(--text);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 1180px) {

    :where(.ui-page-tours) .tour-fuel-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    :where(.ui-page-tours) .tour-fuel-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {

    :where(.ui-page-tours) .tour-fuel-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {

    :where(.ui-page-tours) .tour-fuel-stat-grid {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-tours) .garage-upgrade-inline-job {
    grid-area: job;
    display: grid;
    align-items: stretch;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card {
    min-width: 0;
    min-height: 0;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.15;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

:where(.ui-page-tours) .garage-jobs-title-row {
    align-items: center;
    margin-bottom: 14px;
}

:where(.ui-page-tours) .garage-hourglass-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    vertical-align: middle;
}

:where(.ui-page-tours) .garage-hourglass-stock-pill .button-resource-icon {
    width: 1.3em;
    height: 1.3em;
}

:where(.ui-page-tours) .garage-panel-pill-stack {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

:where(.ui-page-tours) .tour-jobs-title-row {
    align-items: flex-start;
}

:where(.ui-page-tours) .tour-controls-stack {
    flex-direction: column;
    align-items: flex-end;
}

:where(.ui-page-tours) .tour-controls-stack .garage-hourglass-stock-pill {
    justify-content: flex-end;
}

:where(.ui-page-tours) .tour-controls-stack .race-pager {
    justify-content: flex-end;
}

:where(.ui-page-tours) .tour-auto-toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: -2px 0 14px;
    width: 100%;
}

:where(.ui-page-tours) .tour-auto-toggle-row .tour-auto-toggle {
    flex: 0 0 auto;
}

:where(.ui-page-tours) .tour-auto-toggle-row .tour-fuel-storage-button {
    margin-top: 0;
}

@media (max-width: 1180px) {

    :where(.ui-page-tours) .garage-upgrade-inline-job {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass {
        padding-left: 6px;
        border-left: 0;
    }
}

@media (max-width: 960px) {

    :where(.ui-page-tours) .race-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {

    :where(.ui-page-tours) .race-row {
        min-width: 0;
    }

    :where(.ui-page-tours) .tour-row-meta {
        justify-self: stretch;
        text-align: left;
        justify-items: start;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-tours) .race-row {
        padding: 12px;
        border-radius: 16px;
    }

    :where(.ui-page-tours) .tour-job-image {
        width: 100%;
    }
}

body.theme-colored:where(.ui-page-tours) .tour-job-row.has-tour-image {
    border-color: var(--theme-border-muted);
    outline-color: var(--theme-outline-soft);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-tours) .tour-job-image {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-grid .tour-fuel-stat-box {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

.game-shell:where(.ui-page-tours) .tour-row-section {
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section {
    grid-template-rows: 1.15em max-content;
}
}/* Source: public/css/source/shared/navigation/game-overrides-01.css */

@layer legacy {/* Shared navigation; game-overrides.css. Order is registered in manifest.json. */

.nav-tab {
    font-size: 0.89rem;
}

.nav-sub .nav-tab {
    font-size: 0.9rem;
}
}/* Source: public/css/source/shared/shell/game-overrides-01.css */

@layer legacy {/* Shared shell; game-overrides.css. Order is registered in manifest.json. */

.app-main-column .nav-sub .nav-tab {
    font-size: 0.86rem;
}
}/* Source: public/css/source/shared/home-notifications/game-overrides-01.css */

@layer legacy {/* Shared home-notifications; game-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    ) {
        overflow-x: auto;
    }
}
}/* Source: public/css/source/shared/garage/game-overrides-01.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.garage-infrastructure-summary-lead {
    text-align: left;
}

.repair-status-badge {
    border-color: rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
}

.game-shell .garage-detail-tabs .garage-detail-tab.is-active {
    border-color: rgba(var(--action-rgb), 0.42);
}

.game-shell .garage-upgrade-card-grid.is-row-layout .resource-preview-item > strong:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .garage-upgrade-card-grid.is-row-layout .resource-preview-item > span:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .garage-upgrade-progress {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin-top: 0;
}

.game-shell .garage-upgrade-progress-head,
.game-shell .garage-upgrade-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.game-shell .garage-upgrade-progress-head,
.game-shell .garage-upgrade-progress-foot:where(:not(.race-track-mastery-footer)) {
    gap: 12px;
}

.game-shell .garage-upgrade-progress-head {
    flex-wrap: nowrap;
}

.game-shell .garage-upgrade-progress-foot {
    align-items: flex-start;
}

.game-shell .garage-upgrade-progress-foot:where(:not(.race-track-mastery-footer)) {
    flex-wrap: wrap;
}
}/* Source: public/css/source/shared/race-animation/game-overrides-01.css */

@layer legacy {/* Shared race-animation; game-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.race-compact-viewport .race-sequence-backdrop {
        padding: 8px;
    }

    .game-shell.race-compact-viewport .race-sequence-card {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
        border-radius: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.race-compact-viewport .race-sequence-track,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse {
        --race-track-art-width: 0px;
        min-height: 0;
        padding: 10px;
        gap: 8px;
        overflow: hidden;
    }

    .game-shell.race-compact-viewport .race-sequence-track-art,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-track-art {
        position: relative;
        inset: auto;
        width: 100%;
        height: var(--mobile-race-track-art-height);
        border-radius: 13px;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label,
    .game-shell.race-compact-viewport .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane-label,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-car-frame {
        margin-left: 0;
        margin-right: 0;
    }

    .game-shell.race-compact-viewport .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane {
        min-height: 156px;
        padding-right: 52px;
        padding-left: 0;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-right: 44px;
        align-items: start;
    }

    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane-label {
        padding-left: 24px;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label strong {
        min-width: 0;
        font-size: 0.94rem;
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label span {
        min-width: 0;
        font-size: 0.78rem;
        line-height: 1.18;
        text-align: left;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .game-shell.race-compact-viewport .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-car-frame {
        top: 56px;
        right: 42px;
        left: 0;
        height: calc(100% - 62px);
        --race-car-width: clamp(96px, 31vw, 138px);
    }

    .game-shell.race-compact-viewport .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::before {
        left: 8px;
        right: 8px;
    }

    .game-shell.race-compact-viewport .race-sequence-finish-line {
        top: calc(var(--mobile-race-track-art-height) + 20px);
        right: 10px;
        left: auto;
        bottom: 12px;
        width: 5px;
    }
}
}/* Source: public/css/source/shared/dialogs/game-overrides-01.css */

@layer legacy {/* Shared dialogs; game-overrides.css. Order is registered in manifest.json. */

.image-modal-overlay-car {
    object-fit: contain;
}
}/* Source: public/css/source/shared/navigation/game-overrides-02.css */

@layer legacy {/* Shared navigation; game-overrides.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .nav-main .nav-tab,
    .nav-main .nav-tab:has(.nav-badge),
    .nav-sub .nav-tab {
        font-size: 0.86rem;
    }
}
}/* Source: public/css/source/shared/primitives/game-overrides-01.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

@media (max-width: 900px) {

    .row-layout,
    .row-layout-visual,
    .row-layout-visual:has(.race-history-row-mid) {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
}

@media (max-width: 560px) {

    .stats-strip {
        grid-template-columns: 1fr;
    }
}

.game-shell :where(
.panel,
.topbar,
.modal-card,
.ui-row-card,
.row-card,
.table-row,
.catalog-card,
.resource-card,
.daily-gift-card,
.achievement-card,
.achievement-row,
.friend-gift-card,
.garage-repair-card,
.garage-history-card,
.garage-history-row,
.cup-card,
.cup-summary-strip .cup-stat-box,
.cup-unlock-note,
.cup-feature-image img,
.cup-feature-fallback,
.cup-card-image img,
.cup-card-fallback,
.cup-reward,
.dealership-card,
.dealership-preview-card,
.dealership-summary-card,
.dealership-mini-stats > div,
.dealership-status-pill,
.profile-progress-card,
.profile-stat-card,
.profile-week-current-pill,
.profile-week-card,
.profile-week-cup-image,
.profile-week-highlights .profile-stat-card,
.profile-cup-row,
.profile-cup-image,
.profile-cup-fallback,
.profile-showcase-count-pill,
.profile-mastery-row,
.profile-track-image,
.team-kpi-card,
.team-hero-helper,
.team-upgrade-card,
.team-member-row,
.team-active-upgrade-row,
.team-sponsor-card,
.team-history-entry,
.team-repair-history-entry,
.resource-preview-item,
.opponent-card,
.race-boost-banner,
.race-boost-pill,
.race-mode-card,
.race-mode-stat-box,
.race-track-stat-box,
.race-track-mastery-card,
.race-track-peek,
.race-directory-card,
.race-directory-image,
.race-directory-stats > div,
.race-track-directory-meta-box,
.race-track-directory-mastery,
.race-item-effect,
.race-item-visual,
.track-knowledge-stock-card,
.garage-detail-tab,
.race-pager-count,
.race-pager-button,
.race-pager-number,
.badge,
.action-pill,
.filter-pill,
.chip,
.is-status-pill,
.button-secondary,
.icon-button,
.field input,
.field textarea,
.select,
.car-visual,
.upgrade-visual,
.collection-part-visual,
.team-logo-mark,
.team-role-image-frame,
.home-notice-image,
.unlock-roadmap-row,
.unlock-roadmap-state,
.unlock-roadmap-summary-card,
.garage-shop-card,
.city-job-card,
.city-job-shop-card,
.garage-index-upgrade-card,
.garage-preview-card,
.garage-upgrade-card,
.garage-slot-header,
.garage-upgrade-guide-card,
.garage-upgrade-guide-table-wrap,
.garage-upgrade-guide-table th,
.garage-upgrade-guide-table td,
.empty-state,
.team-empty-state,
.race-item-selected-empty
):where(:not(.race-scale-page .race-mode-card, .race-scale-page .race-mode-stat-box)) {
    border-color: var(--detail-border-soft);
}
}/* Source: public/css/source/shared/navigation/game-overrides-03.css */

@layer legacy {/* Shared navigation; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.nav-tab.is-active,
.garage-detail-tab.is-active,
.chip.is-active,
.race-pager-number.is-active,
.button:not(.button-secondary):not(.button-danger):not(:disabled),
.button.is-active,
.is-selected,
.is-active
) {
    border-color: var(--selected-border);
}
}/* Source: public/css/source/shared/primitives/game-overrides-02.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.profile-background-option.is-selected,
.profile-layout-choice.is-selected,
.car-appearance-card.is-selected,
.scene-theme-card.is-selected,
.race-directory-card.is-active,
.race-track-directory-card.is-active,
.rankings-filter-card.is-active,
.support-thread-link.is-active,
.friend-ranking-row.is-current,
.garage-contract-card.is-active,
.daily-gift-card.is-current-day,
.daily-gift-card.is-available,
.reward-card.is-highlighted,
.profile-stat-card.is-highlighted
) {
    border-color: var(--selected-border);
    background: var(--selected-soft-surface);
}

.game-shell :where(
.button:not(.button-secondary):not(.button-danger):not(:disabled):not(.is-disabled),
.button.is-active:not(.button-secondary):not(.button-danger),
.hourglass-action-button:not(:disabled):not(.is-disabled),
.garage-repair-kit-submit:not(:disabled):not(.is-disabled),
.launch-button:not(:disabled)
) {
    color: var(--action-text);
}

.game-shell :where(
.button:not(.button-secondary):not(.button-danger):not(:disabled):not(.is-disabled),
.button.is-active:not(.button-secondary):not(.button-danger),
.hourglass-action-button:not(:disabled):not(.is-disabled),
.garage-repair-kit-submit:not(:disabled):not(.is-disabled),
.launch-button:not(:disabled)
) :where(span, strong, small, .button-action-icon) {
    color: currentColor;
}

.game-shell :where(
.button:not(.button-secondary):not(.button-danger):not(:disabled):not(.is-disabled),
.button.is-active:not(.button-secondary):not(.button-danger),
.hourglass-action-button:not(:disabled):not(.is-disabled),
.garage-repair-kit-submit:not(:disabled):not(.is-disabled),
.launch-button:not(:disabled)
) :where(.button-action-icon svg, .button-action-icon svg *) {
    color: currentColor;
    stroke: currentColor;
}
}/* Source: public/css/source/shared/garage/game-overrides-02.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.game-shell .garage-upgrade-progress-head > span:first-child:where(:not(.race-track-mastery-heading)),
.game-shell .garage-upgrade-progress-foot > strong {
    min-width: 0;
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: normal;
    line-height: 1.12;
}

.game-shell .garage-upgrade-progress-foot .progress-bar-caption {
    font-weight: 500;
}

.game-shell .garage-upgrade-progress-head > span:first-child:where(:not(.race-track-mastery-heading)) {
    flex: 1 1 auto;
}

.game-shell .garage-upgrade-progress-head .upgrade-stars {
    flex: 0 0 auto;
}

.game-shell .garage-upgrade-progress .meter {
    margin-top: 0;
}

.game-shell .garage-upgrade-progress-foot > strong:last-child {
    text-align: right;
}

@media (max-width: 760px) {

    .game-shell .garage-upgrade-progress-head {
        flex-wrap: wrap;
    }

    .game-shell .garage-upgrade-progress-foot > strong:last-child {
        text-align: left;
    }
}

.game-shell .garage-fragment-progress > span > small:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .garage-fragment-progress > span > strong:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/cars/game-overrides-01.css */

@layer legacy {/* Shared cars; game-overrides.css. Order is registered in manifest.json. */

.game-shell .car-panel-boost-toggle.is-active {
    border-color: rgba(var(--action-rgb), 0.5);
    background: var(--theme-selected-surface, rgba(var(--action-rgb), 0.12));
    color: var(--action-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        0 8px 18px rgba(var(--action-rgb), 0.12);
}

.game-shell .car-panel-boost-toggle.is-active :where(span, strong, small, .button-action-icon) {
    color: currentColor;
}

.game-shell .car-panel-boost-toggle.is-active .button-action-icon :where(svg, svg *) {
    color: currentColor;
    stroke: currentColor;
}

.game-shell :where(
.dealership-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.support-summary-card,
.catalog-card-meta > div,
.dealership-mini-stats > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.race-item-effect
) > :where(strong, b) {
    font-size: var(--stat-box-font-size);
}
}/* Source: public/css/source/shared/primitives/game-overrides-03.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell .stats-strip > .stat-value-card > :where(span:first-child, small:first-child) {
    font-weight: 500;
}
}/* Source: public/css/source/shared/teams/game-overrides-01.css */

@layer legacy {/* Shared teams; game-overrides.css. Order is registered in manifest.json. */

.game-shell .team-upgrade-stat-card {
    min-height: 64px;
    padding: 8px 10px;
    gap: 4px;
    border-width: 1px;
    border-radius: 14px;
    outline: 1px solid rgba(var(--action-rgb), 0.14);
    background: rgba(255, 251, 246, 0.94);
}

.game-shell .team-upgrade-stat-card > :is(strong, span) {
    font-size: var(--stat-box-font-size);
    line-height: 1.08;
}

.game-shell .team-upgrade-stat-card > span {
    color: var(--muted);
    font-weight: 500;
}

.game-shell .team-upgrade-stat-card > strong {
    color: var(--text);
    font-weight: 900;
}

.game-shell .team-upgrade-stat-card:is(.team-upgrade-cost-metric, .team-upgrade-resource-metric, .team-upgrade-unlock-card) {
    align-content: center;
}

.game-shell .team-upgrade-stat-card:is(.team-upgrade-cost-metric, .team-upgrade-resource-metric, .team-upgrade-unlock-card) .resource-metric-chip {
    gap: 8px;
    width: 100%;
}

.game-shell .team-repair-summary-card {
    min-height: 70px;
    padding: 12px 14px;
    gap: 6px;
    border-width: 1px;
    border-radius: 14px;
    outline: 1px solid rgba(var(--action-rgb), 0.14);
    background: rgba(255, 251, 246, 0.94);
    box-shadow: none;
}

.game-shell .team-repair-summary-card > small,
.game-shell .team-repair-summary-card > strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.08;
}

.game-shell .team-repair-summary-card > small {
    color: var(--muted);
    font-weight: 500;
}

.game-shell .team-repair-summary-card > strong {
    color: var(--text);
    font-weight: 800;
}

.game-shell .team-repair-token-value {
    gap: 8px;
}

.game-shell .team-repair-summary-card > :where(small:first-child, span:first-child) {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/primitives/game-overrides-04.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.header-stat,
.home-summary-card,
.dealership-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.scene-theme-current-pill,
.unlock-roadmap-summary-card,
.unlock-roadmap-status,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.team-request-stats > span,
.team-xp-rule-card,
.team-member-upgrade-card .team-upgrade-meta-stack,
.support-summary-card,
.catalog-card-meta > div,
.dealership-mini-stats > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.dealership-chip,
.race-mode-stat-box,
.race-track-stat-box,
.race-preview-stat-card,
.race-latest-card,
.race-item-stat-card,
.result-metric,
.garage-show-value-box,
.garage-history-card,
.garage-job-meta-card,
.daily-gift-reward > span,
.city-job-shop-cost > span,
.garage-fragment-progress > span,
.friend-manage-stats > span,
.team-upgrade-stat-card,
.car-panel-garage-slots-card
) > :where(span:first-child, small:first-child),
.game-shell :where(
.profile-stat-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.race-summary-card-meta,
.opponent-summary-card,
.team-upgrade-stat-card
) > strong:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/shell/game-overrides-02.css */

@layer legacy {/* Shared shell; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.header-stat,
.home-summary-card,
.dealership-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.scene-theme-current-pill,
.unlock-roadmap-summary-card,
.unlock-roadmap-status,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.team-request-stats > span,
.team-xp-rule-card,
.team-member-upgrade-card .team-upgrade-meta-stack,
.support-summary-card,
.catalog-card-meta > div,
.dealership-mini-stats > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.dealership-chip,
.race-mode-stat-box,
.race-track-stat-box,
.race-preview-stat-card,
.race-summary-card-meta,
.race-latest-card,
.race-item-stat-card,
.result-metric,
.garage-show-value-box,
.garage-history-card,
.garage-job-meta-card,
.daily-gift-reward > span,
.city-job-shop-cost > span,
.garage-fragment-progress > span,
.friend-manage-stats > span,
.team-upgrade-stat-card,
.car-panel-garage-slots-card
) > :where(strong:last-child, b:last-child, span:last-child):where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell :where(
.header-stat,
.dealership-summary-card,
.profile-stat-card,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.team-request-stats > span,
.team-xp-rule-card,
.team-active-upgrade-meta.team-upgrade-stat-card,
.race-mode-stat-box,
.race-track-stat-box,
.race-preview-stat-card,
.race-latest-card,
.race-item-stat-card,
.result-metric,
.garage-show-value-box,
.garage-history-card,
.garage-job-meta-card,
.friend-manage-stats > span,
.car-panel-garage-slots-card
) > strong {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell :where(
.header-stat,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.team-kpi-card,
.team-xp-rule-card,
.team-active-upgrade-meta.team-upgrade-stat-card
) > small {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/racing/game-overrides-01.css */

@layer legacy {/* Shared racing; game-overrides.css. Order is registered in manifest.json. */

.game-shell .race-summary-values > span > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-summary-values > span > b:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-selected-summary-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(900px, 1060px) auto;
}

.game-shell .race-selected-summary-toggle-stats {
    grid-template-columns: repeat(3, minmax(170px, 1fr)) minmax(205px, 1.18fr);
    gap: 8px;
    width: 100%;
    justify-self: end;
}

.game-shell .race-selected-summary-toggle-stats.has-weather-preview {
    grid-template-columns: 72px repeat(3, minmax(170px, 1fr)) minmax(205px, 1.18fr);
}

.game-shell .race-selected-summary-weather-cover {
    width: 72px;
    min-width: 72px;
    height: 72px;
}

.game-shell .race-selected-summary-toggle-score.dealership-summary-card {
    min-height: 68px;
    padding: 8px;
    gap: 4px;
    align-content: center;
    justify-items: start;
    text-align: left;
    border-radius: 12px;
}

.game-shell .race-selected-summary-toggle-score.dealership-summary-card .resource-metric-chip,
.game-shell .race-selected-summary-panel .race-summary-card-meta .resource-metric-chip {
    align-self: stretch;
    width: 100%;
}
}/* Source: public/css/source/shared/teams/game-overrides-02.css */

@layer legacy {/* Shared teams; game-overrides.css. Order is registered in manifest.json. */

.game-shell .team-repair-summary-card > strong:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .team-repair-token-value > span {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .team-repair-panel .team-repair-summary-card > small:first-child,
.game-shell .team-repair-panel .team-repair-member-stats small {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .team-repair-panel .team-repair-summary-card > strong,
.game-shell .team-repair-panel .team-repair-token-value > span,
.game-shell .team-repair-panel .team-repair-member-stats strong {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card {
    grid-template-columns: clamp(250px, 22vw, 360px) minmax(0, 1fr);
}
}/* Source: public/css/source/shared/shell/game-overrides-03.css */

@layer legacy {/* Shared shell; game-overrides.css. Order is registered in manifest.json. */

.game-shell .header-stat > span:first-child,
.game-shell .header-stat-level .menu-progress-label > span:first-child {
    font-size: var(--menu-stat-box-font-size);
}

.game-shell .header-stat > small {
    font-size: 0.7rem;
}

.game-shell .header-stat > :where(strong, b),
.game-shell .header-stat-level .menu-progress-label > strong {
    font-size: var(--stat-box-font-size);
}
}/* Source: public/css/source/shared/cars/game-overrides-02.css */

@layer legacy {/* Shared cars; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(.dealership-summary-card, .dealership-chip).is-damage > strong {
    color: rgb(var(--danger-rgb));
}
}/* Source: public/css/source/shared/primitives/game-overrides-05.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell .eyebrow {
    color: var(--detail-text, var(--theme-text, var(--accent-2)));
    font-size: var(--section-title-font-size);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.game-shell .panel-title,
.game-shell .eyebrow + :where(.panel-title, h1, h2, h3) {
    color: var(--detail-text, var(--theme-text, var(--accent-2)));
    font-size: var(--section-subtitle-font-size);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell :where(h1, h2, h3, h4, h5, h6, .empty-state h2, .team-empty-state h2) {
    font-size: var(--ui-max-heading-font-size);
}
}/* Source: public/css/source/shared/racing/game-overrides-02.css */

@layer legacy {/* Shared racing; game-overrides.css. Order is registered in manifest.json. */

.game-shell .race-selected-summary-toggle-score.dealership-summary-card > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-selected-summary-toggle-score.dealership-summary-card > strong:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-selected-summary-toggle-score.is-final-score {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.22), rgba(var(--theme-border-rgb), 0.14));
    border-color: rgba(var(--theme-border-rgb), 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(var(--theme-shadow-rgb), 0.12);
}

.game-shell .race-selected-summary-toggle-score.is-final-score > span:first-child {
    color: var(--text);
    font-size: 1.06rem;
    font-weight: 500;
}

.game-shell .race-selected-summary-panel .race-summary-card {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border-color: rgba(var(--theme-border-rgb), 0.40);
    background: rgba(255, 255, 254, 0.99);
    gap: 10px;
    color: var(--text);
}

.game-shell .race-selected-summary-panel .race-summary-card-head {
    align-items: baseline;
    gap: 10px;
}

.game-shell .race-selected-summary-panel .race-summary-card-head-meta {
    align-items: center;
    gap: 6px;
}

.game-shell .race-selected-summary-panel .race-summary-weather-preview {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.game-shell .race-selected-summary-panel .race-summary-card-head > strong,
.game-shell .race-selected-summary-panel .race-summary-card > strong:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell .race-selected-summary-panel .race-summary-card-head > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.game-shell .race-selected-summary-panel .race-summary-values {
    gap: 4px;
}

.game-shell .race-selected-summary-panel .race-summary-values > span {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    line-height: 1.15;
}

.game-shell .race-selected-summary-panel .race-summary-values > span > span:first-child {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.game-shell .race-selected-summary-panel .race-summary-values > span > b:last-child {
    justify-self: end;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
}

.game-shell .race-selected-summary-panel .race-summary-card-meta > span:first-child {
    justify-self: start;
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    text-align: left;
}

.game-shell .race-selected-summary-panel .race-summary-card-meta > strong:last-child {
    justify-self: start;
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
}

.game-shell .race-selected-summary-panel .race-summary-card-meta {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: stretch;
    justify-items: start;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.94);
}

.game-shell .race-selected-summary-panel .race-selected-summary-meta-grid {
    margin-top: 0;
    gap: 8px;
}

.game-shell .race-selected-summary-panel .race-selected-summary-grid {
    margin-top: 6px;
    gap: 8px;
}

.game-shell .race-selected-summary-panel .race-selected-summary-count-panel {
    gap: 6px;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-card {
    min-height: 0;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.40);
    border-radius: 18px;
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    align-content: start;
    gap: 10px;
    color: var(--text);
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-card-head > span:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-values {
    display: grid;
    gap: 4px;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-values > span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    color: var(--text);
    line-height: 1.15;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-values > span > span:first-child {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.game-shell .race-multi-lineup-accordion-content .lineup-car-summary-values > span > b:last-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    justify-self: end;
    text-align: right;
    white-space: normal;
}
}/* Source: public/css/source/shared/resources/game-overrides-01.css */

@layer legacy {/* Shared resources; game-overrides.css. Order is registered in manifest.json. */

.game-shell .resource-icon-frame {
    box-shadow: none;
}

.resource-icon-frame {
    box-shadow: none;
}
}/* Source: public/css/source/shared/primitives/game-overrides-06.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell img,
.game-shell [data-image-modal]:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .car-visual,
.game-shell .upgrade-visual,
.game-shell .race-item-visual,
.game-shell .collection-part-visual,
.game-shell .team-logo-mark,
.game-shell .team-role-image-frame,
.game-shell .team-upgrade-image,
.game-shell .button-resource-icon,
.game-shell .race-selected-summary-weather-cover,
.game-shell .race-summary-weather-preview,
.game-shell .team-repair-image,
.game-shell .image-modal-frame,
.game-shell .race-sequence-car-visual {
    box-shadow: none;
}

.game-shell .not-found-scene img,
.game-shell .car-visual.is-layered .car-visual-foreground,
.game-shell .announcement-notification-icon img,
.game-shell .modal-game-logo,
.game-shell .modal-icon.has-image img,
.game-shell .image-modal-frame img,
.game-shell .image-modal-frame.has-background img,
.game-shell .race-sequence-car-visual img,
.game-shell .race-sequence-lane::before {
    filter: none;
}

img,
[data-image-modal]:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.car-visual,
.upgrade-visual,
.race-item-visual,
.collection-part-visual,
.team-logo-mark,
.team-role-image-frame,
.team-upgrade-image,
.button-resource-icon,
.race-selected-summary-weather-cover,
.race-summary-weather-preview,
.team-repair-image,
.image-modal-frame,
.race-sequence-car-visual {
    box-shadow: none;
}

.not-found-scene img,
.car-visual.is-layered .car-visual-foreground,
.announcement-notification-icon img,
.modal-game-logo,
.modal-icon.has-image img,
.image-modal-frame img,
.image-modal-frame.has-background img,
.race-sequence-car-visual img,
.race-sequence-lane::before {
    filter: none;
}

.game-shell .active-pill {
    color: #47752c;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}
}/* Source: public/css/source/shared/race-animation/game-overrides-02.css */

@layer legacy {/* Shared race-animation; game-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.race-compact-viewport .race-sequence-backdrop {
        padding: 8px;
    }

    .game-shell.race-compact-viewport .race-sequence-card {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
        border-radius: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.race-compact-viewport .race-sequence-track,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse {
        --race-track-art-width: 0px;
        min-height: 0;
        padding: 10px;
        gap: 8px;
        overflow: hidden;
    }

    .game-shell.race-compact-viewport .race-sequence-track-art,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-track-art {
        position: relative;
        inset: auto;
        width: 100%;
        height: var(--mobile-race-track-art-height);
        border-radius: 13px;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label,
    .game-shell.race-compact-viewport .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane-label,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-car-frame {
        margin-left: 0;
        margin-right: 0;
    }

    .game-shell.race-compact-viewport .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane {
        min-height: 156px;
        padding-right: 52px;
        padding-left: 0;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-right: 44px;
        align-items: start;
    }

    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-lane-label {
        padding-left: 24px;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label strong {
        min-width: 0;
        font-size: 0.94rem;
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .game-shell.race-compact-viewport .race-sequence-lane-label span {
        min-width: 0;
        font-size: 0.78rem;
        line-height: 1.18;
        text-align: left;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .game-shell.race-compact-viewport .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-car-frame,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-car-frame {
        top: 56px;
        right: 42px;
        left: 0;
        height: calc(100% - 62px);
        --race-car-width: clamp(96px, 31vw, 138px);
    }

    .game-shell.race-compact-viewport .race-sequence-track:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse:has(.race-sequence-track-art:not([hidden])) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track:not(.is-pattern-straight) .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight .race-sequence-lane::before,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::before {
        left: 8px;
        right: 8px;
    }

    .game-shell.race-compact-viewport .race-sequence-finish-line {
        top: calc(var(--mobile-race-track-art-height) + 20px);
        right: 10px;
        left: auto;
        bottom: 12px;
        width: 5px;
    }

    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-reverse .race-sequence-finish-line {
        right: auto;
        left: 10px;
    }

    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-straight-reverse .race-sequence-lane::after,
    .game-shell.race-compact-viewport .race-sequence-track.is-pattern-s-reverse .race-sequence-lane::after {
        right: auto;
        left: 16px;
    }
}
}/* Source: public/css/source/shared/racing/game-overrides-03.css */

@layer legacy {/* Shared racing; game-overrides.css. Order is registered in manifest.json. */

.race-active-car-status-pills .lineup-mini-status,
.race-active-car-status-pills .repair-status-badge {
    font-size: 0.78rem;
}

.race-active-car-status-pills .repair-status-badge {
    border-color: rgba(230, 118, 44, 0.42);
    background: rgba(255, 239, 217, 0.94);
    color: #b85b1b;
}

.race-active-car-accordion .race-active-car-summary-bars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: none;
    align-self: stretch;
}
}/* Source: public/css/source/shared/garage/game-overrides-03.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.game-shell .garage-car-progress-grid :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong,
.progress-bar-caption,
.label-row,
.label-row span,
.label-row strong
) {
    color: var(--theme-muted, var(--muted));
}

.game-shell :is(.garage-mastery-meter, .garage-condition-meter) :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong,
.progress-bar-caption,
.label-row,
.label-row span,
.label-row strong
) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
}

.game-shell .garage-detail-progress-block {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    box-sizing: border-box;
}

.game-shell .garage-detail-progress-block :is(
.garage-upgrade-progress-head,
.garage-upgrade-progress-foot,
.label-row
) {
    width: 100%;
}

.game-shell .garage-detail-progress-block :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong,
.progress-bar-caption,
.label-row,
.label-row span,
.label-row strong
) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
    text-align: left;
}

.game-shell .garage-detail-progress-block .garage-upgrade-progress-foot > strong:last-child {
    margin-left: auto;
    text-align: right;
}

.game-shell .garage-detail-progress-block .progress-bar-caption {
    display: block;
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
}
}/* Source: public/css/source/shared/cars/game-overrides-03.css */

@layer legacy {/* Shared cars; game-overrides.css. Order is registered in manifest.json. */

.game-shell .car-panel-analysis-content .car-panel-progress-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.game-shell .car-panel-analysis-content .garage-detail-progress-block {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}
}/* Source: public/css/source/shared/racing/game-overrides-04.css */

@layer legacy {/* Shared racing; game-overrides.css. Order is registered in manifest.json. */

.game-shell .race-active-car-accordion .race-active-car-summary-bars {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: none;
}

.game-shell .race-active-car-accordion .race-active-car-summary-stats {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
}

.game-shell .race-active-car-accordion .race-active-car-summary-stats .dealership-chip {
    min-height: 0;
    padding: 8px;
    align-content: center;
}

.game-shell .race-active-car-accordion .race-active-car-summary-stats .resource-metric-chip.dealership-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-shell .race-active-car-accordion .race-active-car-summary-bar {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    box-sizing: border-box;
}

.game-shell .race-active-car-accordion .race-active-car-summary-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
}

.game-shell .race-active-car-accordion .race-active-car-summary-bar-label span,
.game-shell .race-active-car-accordion .race-active-car-summary-bar .progress-bar-caption {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
}

.game-shell .race-active-car-accordion .race-active-car-summary-bar .progress-bar-caption {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 980px) {

    .game-shell .race-active-car-accordion .race-active-car-summary-bars {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 12px 14px;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-strip {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.game-shell .race-multi-lineup-accordion .race-accordion-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-thumb {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    align-items: start;
    gap: 6px;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    min-width: 0;
    justify-self: end;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-title {
    display: grid;
    gap: 2px;
    width: 100%;
    min-width: 0;
    justify-items: start;
    text-align: left;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-category {
    color: var(--theme-muted, var(--muted));
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-name {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.12;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-thumb .lineup-mini-slot {
    background: rgba(var(--action-rgb), 0.14);
    padding: 5px 9px;
    font-size: 0.78rem;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-body {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    gap: 7px;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-visual-frame {
    position: relative;
    display: grid;
    align-self: start;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    padding: 8px;
    min-width: 0;
    overflow: visible;
    border: 4px solid rgba(var(--action-rgb), 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 244, 0.96));
    box-shadow: 0 10px 22px rgba(58, 38, 18, 0.08);
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-thumb .car-visual.is-compact {
    display: block;
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow: none;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-car-body .lineup-mini-status-list {
    justify-self: center;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip {
    min-height: 78px;
    padding: 12px 14px;
    border-radius: 14px;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.resource-metric-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-stat-power {
    grid-column: 1;
    grid-row: 1;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-stat-traction {
    grid-column: 2;
    grid-row: 1;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-damage {
    grid-column: 3;
    grid-row: 1;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-stat-aerodynamics {
    grid-column: 4;
    grid-row: 1;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-stat-acceleration {
    grid-column: 5;
    grid-row: 1;
}

.game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip.is-score {
    grid-column: 6;
    grid-row: 1;
}

@media (max-width: 1320px) {

    .game-shell .race-multi-lineup-accordion .race-multi-lineup-car-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
        grid-template-columns: repeat(3, minmax(118px, 1fr));
    }
}

@media (max-width: 700px) {

    .game-shell .race-multi-lineup-accordion .race-multi-lineup-car-strip,
    .game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {

    .game-shell .race-multi-lineup-accordion .race-multi-lineup-car-strip,
    .game-shell .race-multi-lineup-accordion .race-multi-lineup-summary-stats {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/shared/activities/game-overrides-01.css */

@layer legacy {/* Shared activities; game-overrides.css. Order is registered in manifest.json. */

.game-shell :is(.tour-capacity-progress, .tour-progress-block.tour-row-progress) {
    gap: 8px;
}

.game-shell :is(.tour-capacity-progress, .tour-progress-block.tour-row-progress) .label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.game-shell :is(.tour-capacity-progress, .tour-progress-block.tour-row-progress) :is(.label-row, .label-row span, .label-row strong, small, .muted) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell :is(.tour-capacity-progress, .tour-progress-block.tour-row-progress) small {
    display: block;
    width: 100%;
    margin: 0;
    text-align: left;
}
}/* Source: public/css/source/shared/teams/game-overrides-03.css */

@layer legacy {/* Shared teams; game-overrides.css. Order is registered in manifest.json. */

.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-image {
    min-height: 205px;
}

.game-shell .team-upgrade-progress.garage-upgrade-progress :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong
) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .team-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: nowrap;
}

.game-shell .team-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:first-child {
    flex: 1 1 auto;
    text-align: left;
}

.game-shell .team-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:last-child {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card {
        grid-template-columns: 1fr;
    }

    .game-shell .team-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot {
        flex-wrap: wrap;
    }

    .game-shell .team-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:last-child {
        flex: 1 1 100%;
        text-align: left;
        white-space: normal;
    }
}
}/* Source: public/css/source/shared/garage/game-overrides-04.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.game-shell .garage-upgrade-progress:not(.race-track-mastery-card) {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.88);
    box-sizing: border-box;
}

.game-shell :where(
.garage-upgrade-progress,
.team-upgrade-progress,
.team-member-upgrade-progress,
.race-track-mastery-card,
.race-track-table-progress,
.garage-mastery-meter,
.car-mastery-compact,
.garage-card-condition,
.garage-car-progress-grid .tour-progress-block,
.tour-progress-block,
.tour-row-progress,
.tour-capacity-progress,
.profile-capacity-progress,
.race-active-car-summary-bar,
.garage-fragment-progress,
.job-time-progress,
.progress-block,
.profile-progress-card,
.cup-progress-meter,
.menu-progress,
.menu-progress-label
) :where(span, strong, b, small, p, .label-row, .progress-bar-caption, .muted):where(:not(.race-track-mastery-heading)),
.game-shell :where(
.garage-upgrade-progress,
.team-upgrade-progress,
.team-member-upgrade-progress,
.race-track-mastery-card,
.race-track-table-progress,
.garage-mastery-meter,
.car-mastery-compact,
.garage-card-condition,
.garage-car-progress-grid .tour-progress-block,
.tour-progress-block,
.tour-row-progress,
.tour-capacity-progress,
.profile-capacity-progress,
.race-active-car-summary-bar,
.garage-fragment-progress,
.job-time-progress,
.progress-block,
.profile-progress-card,
.cup-progress-meter,
.menu-progress,
.menu-progress-label
) > :where(span, strong, b, small, p, .label-row, .progress-bar-caption, .muted):where(:not(.race-track-mastery-heading)) {
    color: var(--theme-muted, var(--muted));
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell :is(.garage-job-meta-card.is-job-completion, .team-active-upgrade-meta.is-active-completion) {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.game-shell :is(.garage-job-meta-card.is-job-completion, .team-active-upgrade-meta.is-active-completion) > .job-time-progress {
    width: 100%;
}

.game-shell .garage-job-meta-card.is-job-completion .hourglass-action-group {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.game-shell :is(
.garage-upgrade-progress,
.team-upgrade-progress,
.team-member-upgrade-progress,
.race-track-mastery-card,
.race-track-table-progress,
.garage-detail-progress-block,
.garage-infrastructure-progress
) :is(
.garage-upgrade-progress-head,
.garage-upgrade-progress-foot,
.garage-upgrade-progress-head > span,
.garage-upgrade-progress-foot > strong,
.garage-upgrade-progress-foot > span,
.progress-bar-caption,
.race-track-mastery-progress-label,
.race-track-mastery-bonus
):where(:not(.race-track-mastery-heading)),
:is(
.garage-upgrade-progress,
.team-upgrade-progress,
.team-member-upgrade-progress,
.race-track-mastery-card,
.race-track-table-progress,
.garage-detail-progress-block,
.garage-infrastructure-progress
) :is(
.garage-upgrade-progress-head,
.garage-upgrade-progress-foot,
.garage-upgrade-progress-head > span,
.garage-upgrade-progress-foot > strong,
.garage-upgrade-progress-foot > span,
.progress-bar-caption,
.race-track-mastery-progress-label,
.race-track-mastery-bonus
):where(:not(.race-track-mastery-heading)) {
    color: var(--theme-muted, var(--muted));
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

:is(
.garage-upgrade-progress,
.team-upgrade-progress,
.team-member-upgrade-progress,
.race-track-mastery-card,
.race-track-table-progress,
.garage-detail-progress-block,
.garage-infrastructure-progress
) :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong:first-child,
.garage-upgrade-progress-foot > strong:last-child,
.progress-bar-caption
):where(:not(.race-track-mastery-heading)) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
}

.garage-job-meta-card.is-job-completion {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

.garage-job-meta-card.is-job-completion > .job-time-progress {
    width: 100%;
}

.garage-job-meta-card.is-job-completion .hourglass-action-group {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
    padding: 12px 14px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress :is(
.garage-upgrade-progress-head,
.garage-upgrade-progress-foot,
.garage-upgrade-progress-head > span,
.garage-upgrade-progress-foot > strong,
.progress-bar-caption
) {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress .garage-upgrade-progress-head,
.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress .garage-upgrade-progress-foot {
    flex-wrap: nowrap;
    align-items: center;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress .garage-upgrade-progress-foot > strong:last-child {
    flex: 0 1 auto;
    text-align: right;
}

.garage-job-row.is-upgrade-job:not(.home-job-row) .garage-job-meta-card.is-job-completion {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 12px;
    align-items: start;
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
}

.garage-job-row.is-upgrade-job:not(.home-job-row) .garage-job-meta-card.is-job-completion > * {
    grid-area: auto;
}

.garage-job-row.is-upgrade-job:not(.home-job-row) .garage-job-meta-card.is-job-completion > .job-time-progress {
    width: 100%;
    margin-top: 0;
}

.garage-job-row.is-upgrade-job:not(.home-job-row) .garage-job-meta-card.is-job-completion > .hourglass-action-group {
    width: 100%;
    justify-content: center;
    justify-self: stretch;
    align-self: start;
    padding-left: 0;
    border-left: 0;
}

body.theme-colored :is(
.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job,
.garage-upgrade-inline-job,
.garage-job-meta-card.is-job-completion,
.team-active-upgrade-meta.is-active-completion,
.team-upgrade-pending,
.team-member-upgrade-pending,
.tour-inline-cooldown,
.city-job-inline-completion
) {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text);
    outline-color: var(--theme-outline-soft);
}
}/* Source: public/css/source/shared/primitives/game-overrides-07.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion,
.home-job-row .garage-job-meta-card.is-job-completion {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 12px;
    align-items: start;
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
}

.garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion > *,
.home-job-row .garage-job-meta-card.is-job-completion > * {
    grid-area: auto;
}

.garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion > .job-time-progress,
.home-job-row .garage-job-meta-card.is-job-completion > .job-time-progress {
    width: 100%;
    margin-top: 0;
}

.garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion > .hourglass-action-group,
.home-job-row .garage-job-meta-card.is-job-completion > .hourglass-action-group {
    width: 100%;
    justify-content: center;
    justify-self: stretch;
    align-self: start;
    padding-left: 0;
    border-left: 0;
}
}/* Source: public/css/source/shared/teams/game-overrides-04.css */

@layer legacy {/* Shared teams; game-overrides.css. Order is registered in manifest.json. */

.team-upgrade-pending {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
    box-sizing: border-box;
}

.team-upgrade-pending > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    white-space: normal;
}

.team-upgrade-pending span + span::before {
    content: none;
    margin: 0;
}

.team-upgrade-pending .job-time-progress {
    width: 100%;
    flex: none;
    margin: 0;
}
}/* Source: public/css/source/shared/primitives/game-overrides-08.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.garage-job-meta-card.is-job-completion,
.team-upgrade-pending {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

.garage-job-meta-card.is-job-completion .job-time-progress .meter,
.team-upgrade-pending .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}
}/* Source: public/css/source/shared/garage/game-overrides-05.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card {
    grid-template-areas: "image head"
        "image offers"
        "image progress"
        "image job"
        "image actions";
    gap: 14px 24px;
    align-items: stretch;
    padding: 14px 16px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-title-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    justify-items: start;
    gap: 2px;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid rgba(var(--action-rgb), 0.28);
    border-radius: 14px;
    background: rgba(var(--action-rgb), 0.08);
    color: var(--theme-muted, var(--muted));
    text-align: left;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge span {
    font-size: var(--stat-box-font-size);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge strong {
    color: var(--accent);
    font-size: var(--stat-value-font-size);
    font-weight: 900;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual {
    grid-area: image;
    align-self: start;
    width: 100%;
    max-width: none;
    min-height: 150px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 6px;
    border-radius: 16px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid {
    grid-area: offers;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-self: start;
    width: 100%;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid .garage-infrastructure-quantity-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid .garage-infrastructure-current-time {
    grid-row: auto;
    min-height: 0;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid .resource-preview-item {
    min-height: 80px;
    padding: 12px 14px;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-progress {
    grid-area: progress;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-progress :is(
.garage-upgrade-progress-head,
.garage-upgrade-progress-foot,
.garage-upgrade-progress-head > span,
.garage-upgrade-progress-foot > strong
) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
}

@media (max-width: 1180px) {

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card {
        grid-template-areas: "image"
            "head"
            "offers"
            "progress"
            "actions"
            "job";
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 14px;
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid {
        grid-template-columns: 1fr;
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid .garage-infrastructure-quantity-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid .garage-infrastructure-quantity-row {
        grid-template-columns: 1fr;
    }

    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual {
        max-width: none;
        aspect-ratio: 16 / 9;
    }
}

.game-shell .garage-job-row.is-infrastructure-job .garage-job-meta-card.is-job-completion,
.garage-job-row.is-infrastructure-job .garage-job-meta-card.is-job-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell .garage-available-upgrades-panel > .garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion,
.garage-available-upgrades-panel > .garage-job-row:not(.home-job-row) .garage-job-meta-card.is-job-completion {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, var(--text));
}
}/* Source: public/css/source/shared/teams/game-overrides-05.css */

@layer legacy {/* Shared teams; game-overrides.css. Order is registered in manifest.json. */

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) {
    grid-template-columns: 140px 88px repeat(5, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 10px 12px;
    align-items: start;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-summary-line {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .car-visual,
.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .team-member-avatar {
    grid-column: 1;
    grid-row: 2;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .team-role-image-frame {
    grid-column: 2;
    grid-row: 2;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
    display: contents;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span {
    grid-row: 2;
    min-height: 88px;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span:nth-child(1) {
    grid-column: 3;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span:nth-child(2) {
    grid-column: 4;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span:nth-child(3) {
    grid-column: 5;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span:nth-child(4) {
    grid-column: 6;
}

.game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span:nth-child(5) {
    grid-column: 7;
}

@media (max-width: 820px) {

    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) {
        grid-template-columns: 1fr;
    }

    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .car-visual,
    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .team-member-avatar,
    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) > .team-role-image-frame,
    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
        grid-column: 1;
        grid-row: auto;
    }

    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .game-shell .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-stats > span {
        grid-column: 1;
        grid-row: auto;
    }
}

.game-shell .team-repair-member-row {
    grid-template-columns: 140px 88px minmax(0, 1fr) repeat(3, minmax(150px, 240px));
    grid-auto-flow: row;
    gap: 10px 12px;
    align-items: start;
}

.game-shell .team-repair-member-row .team-member-summary-line {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.game-shell .team-repair-member-row > .car-visual,
.game-shell .team-repair-member-row > .team-member-avatar {
    grid-column: 1;
    grid-row: 2;
}

.game-shell .team-repair-member-row > .team-role-image-frame {
    grid-column: 2;
    grid-row: 2;
}

.game-shell .team-repair-member-row .team-repair-member-stats {
    display: contents;
}

.game-shell .team-repair-member-row .team-repair-member-stats > span {
    grid-row: 2;
    min-height: 88px;
}

.game-shell .team-repair-member-row .team-repair-member-stats > span:nth-child(1) {
    grid-column: 4;
}

.game-shell .team-repair-member-row .team-repair-member-stats > span:nth-child(2) {
    grid-column: 5;
}

.game-shell .team-repair-member-row .team-repair-member-stats > span:nth-child(3) {
    grid-column: 6;
}

@media (max-width: 980px) {

    .game-shell .team-repair-member-row {
        grid-template-columns: 1fr;
    }

    .game-shell .team-repair-member-row > .car-visual,
    .game-shell .team-repair-member-row > .team-member-avatar,
    .game-shell .team-repair-member-row > .team-role-image-frame,
    .game-shell .team-repair-member-row .team-repair-member-stats {
        grid-column: 1;
        grid-row: auto;
    }

    .game-shell .team-repair-member-row .team-repair-member-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-shell .team-repair-member-row .team-repair-member-stats > span {
        grid-column: auto;
        grid-row: auto;
    }
}
}/* Source: public/css/source/shared/primitives/game-overrides-09.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell .job-time-progress .meter,
.job-time-progress .meter {
    height: 10px;
    min-height: 10px;
}
}/* Source: public/css/source/shared/resources/game-overrides-02.css */

@layer legacy {/* Shared resources; game-overrides.css. Order is registered in manifest.json. */

.game-shell .resource-metric-chip,
.resource-metric-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    width: 100%;
    text-align: left;
}
}/* Source: public/css/source/shared/garage/game-overrides-06.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.game-shell .upgrade-visual-frame-large,
.upgrade-visual-frame-large {
    width: var(--upgrade-visual-frame-size);
    max-width: var(--upgrade-visual-frame-size);
    height: var(--upgrade-visual-frame-size);
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border: 4px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 18px;
    background: rgba(255, 249, 240, 0.94);
    box-shadow: 0 10px 22px rgba(var(--theme-shadow-rgb), 0.1);
    overflow: hidden;
}

.game-shell .upgrade-visual-frame-large img,
.upgrade-visual-frame-large img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card,
.garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card {
    grid-template-columns: 200px minmax(0, 1fr);
}

@media (max-width: 1180px) {

    .game-shell .upgrade-visual-frame-large,
    .upgrade-visual-frame-large {
        width: min(200px, 100%);
        max-width: 200px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
}/* Source: public/css/source/shared/primitives/game-overrides-10.css */

@layer legacy {/* Shared primitives; game-overrides.css. Order is registered in manifest.json. */

.game-shell .structured-action-card,
.structured-action-card {
    display: grid;
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
}

.game-shell .structured-action-card > .upgrade-visual,
.structured-action-card > .upgrade-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
    margin: 0;
}

.game-shell .structured-action-card-body,
.structured-action-card-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head"
        "copy"
        "meta"
        "actions";
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.game-shell .structured-action-card-body > .daily-gift-card-head,
.structured-action-card-body > .daily-gift-card-head {
    grid-area: head;
    align-self: start;
}

.game-shell .structured-action-card-body > p,
.structured-action-card-body > p {
    grid-area: copy;
    margin: 0;
}

.game-shell .structured-action-card-meta,
.structured-action-card-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: minmax(130px, 0.42fr) minmax(220px, 0.72fr) minmax(260px, 0.9fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.game-shell .structured-action-card-meta > :is(.daily-gift-status, .daily-gift-reward),
.structured-action-card-meta > :is(.daily-gift-status, .daily-gift-reward) {
    grid-area: auto;
    height: 100%;
    max-width: none;
    width: 100%;
    align-self: stretch;
}

.game-shell .structured-action-card-actions,
.structured-action-card-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.game-shell .structured-action-card-actions > form,
.structured-action-card-actions > form,
.game-shell .structured-action-card-actions > .button,
.structured-action-card-actions > .button {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    margin: 0;
}

.game-shell .structured-action-card-actions .button,
.structured-action-card-actions .button {
    min-height: 52px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1180px) {

    .game-shell .structured-action-card,
    .structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    .game-shell .structured-action-card > .upgrade-visual,
    .structured-action-card > .upgrade-visual {
        justify-self: center;
    }

    .game-shell .structured-action-card-meta,
    .structured-action-card-meta {
        grid-template-columns: 1fr;
    }

    .game-shell .structured-action-card-actions,
    .structured-action-card-actions {
        justify-content: stretch;
    }

    .game-shell .structured-action-card-actions > form,
    .structured-action-card-actions > form,
    .game-shell .structured-action-card-actions > .button,
    .structured-action-card-actions > .button {
        width: 100%;
    }
}

.game-shell :where(
.section-footer-pager.is-top,
.reward-bottom-pager.is-top,
.cups-archive-top-pager,
.garage-contracts-top-pager
) {
    margin-top: 0;
}

.game-shell :where(
.stat-value-card > strong,
.dealership-summary-card > strong,
.resource-preview-item > strong,
.race-preview-stat-card > strong,
.race-item-stat-card > strong,
.race-mode-stat-box > strong,
.race-track-stat-box > strong
) {
    white-space: nowrap;
}
}/* Source: public/css/source/shared/cars/game-overrides-04.css */

@layer legacy {/* Shared cars; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.dealership-summary-card,
.dealership-mini-stats > div,
.unlock-roadmap-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.collection-reward-line > .resource-metric-chip,
.collection-ready-card > .resource-metric-chip,
.collection-completed-card > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward),
.city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.tour-job-card--structured .tour-row-section,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.race-item-effect,
.team-upgrade-stat-card,
.team-member-upgrade-stat-card,
.garage-upgrade-card-grid.is-row-layout .resource-preview-item:not(.structured-action-card):not(.race-item-stock-card),
.garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-incoming-meta > .resource-preview-item,
.garage-catalog-available-grid.is-row-layout .garage-catalog-upgrade-meta > div,
.garage-catalog-upcoming-grid.is-row-layout .garage-catalog-upgrade-meta > div,
.fan-club-offer-grid.is-row-layout .fan-club-offer-quantity-row > .resource-preview-item,
.fan-club-offer-grid.is-row-layout .structured-action-card-actions > .fan-club-offer-level-info,
.garage-fragments-grid.is-row-layout .garage-fragment-progress-card
) {
    gap: 5px;
}

.game-shell :where(
.dealership-summary-card,
.dealership-mini-stats > div,
.unlock-roadmap-summary-card,
.profile-stat-card,
.stats-strip > .stat-value-card,
.collection-bonus-stats > .resource-metric-chip,
.collection-reward-line > .resource-metric-chip,
.collection-ready-card > .resource-metric-chip,
.collection-completed-card > .resource-metric-chip,
.cup-summary-strip .cup-stat-box,
.city-job-summary-strip .city-job-stat-box,
.city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward),
.city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward,
.tour-fuel-stat-grid .tour-fuel-stat-box,
.tour-job-card--structured .tour-row-section,
.team-repair-summary-card,
.team-kpi-card,
.team-mini-stat,
.support-summary-card,
.catalog-card-meta > div,
.race-directory-stats > div,
.race-track-directory-meta-box,
.race-item-effect,
.team-upgrade-stat-card,
.team-member-upgrade-stat-card,
.garage-upgrade-card-grid.is-row-layout .resource-preview-item:not(.structured-action-card):not(.race-item-stock-card),
.garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-incoming-meta > .resource-preview-item,
.garage-catalog-available-grid.is-row-layout .garage-catalog-upgrade-meta > div,
.garage-catalog-upcoming-grid.is-row-layout .garage-catalog-upgrade-meta > div,
.fan-club-offer-grid.is-row-layout .fan-club-offer-quantity-row > .resource-preview-item,
.fan-club-offer-grid.is-row-layout .structured-action-card-actions > .fan-club-offer-level-info,
.garage-fragments-grid.is-row-layout .garage-fragment-progress-card
):where(:not(.race-scale-page .race-mode-stat-box)) {
    min-height: 58px;
    padding: 8px 8px;
}
}/* Source: public/css/source/shared/activities/game-overrides-02.css */

@layer legacy {/* Shared activities; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward,
.mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward,
.achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward,
.achievement-row.structured-action-card .achievement-pending-claim-card,
.cup-reward
) {
    min-height: 58px;
    padding: 8px 8px 8px 8px;
    gap: 8px;
}
}/* Source: public/css/source/shared/resources/game-overrides-03.css */

@layer legacy {/* Shared resources; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.resource-metric-chip,
.team-upgrade-stat-card .resource-metric-chip,
.team-member-upgrade-stat-card .resource-metric-chip,
.garage-upgrade-card-grid.is-row-layout .resource-preview-item .resource-metric-chip,
.garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-incoming-meta .resource-metric-chip,
.garage-catalog-available-grid.is-row-layout .garage-catalog-upgrade-meta .resource-metric-chip,
.garage-catalog-upcoming-grid.is-row-layout .garage-catalog-upgrade-meta .resource-metric-chip,
.fan-club-offer-grid.is-row-layout .resource-preview-item .resource-metric-chip,
.city-job-grid.is-row-layout .resource-metric-chip,
.city-job-shop-grid.is-row-layout .resource-metric-chip,
.achievement-row.structured-action-card .resource-metric-chip,
.cup-reward .resource-metric-chip
) {
    gap: 8px;
}

.game-shell :where(
.resource-metric-chip,
.stat-value-card,
.stat-value-card > span,
.stat-value-card > strong,
.dealership-summary-card,
.dealership-summary-card > span,
.dealership-summary-card > strong,
.resource-preview-item,
.resource-preview-item > span,
.resource-preview-item > strong,
.race-preview-stat-card,
.race-preview-stat-card > span,
.race-preview-stat-card > strong,
.race-item-stat-card,
.race-item-stat-card > span,
.race-item-stat-card > strong,
.race-mode-stat-box,
.race-mode-stat-box > span,
.race-mode-stat-box > strong,
.race-track-stat-box,
.race-track-stat-box > span,
.race-track-stat-box > strong
) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
}/* Source: public/css/source/shared/garage/game-overrides-07.css */

@layer legacy {/* Shared garage; game-overrides.css. Order is registered in manifest.json. */

.game-shell :where(
.garage-catalog-available-grid.is-row-layout .garage-catalog-upgrade-meta > div,
.garage-catalog-upcoming-grid.is-row-layout .garage-catalog-upgrade-meta > div
) {
    min-height: 58px;
    padding: 6px 8px;
}
}/* Source: public/css/source/shared/home-notifications/game-overrides-02.css */

@layer legacy {/* Shared home-notifications; game-overrides.css. Order is registered in manifest.json. */

.game-shell .home-recent-race-card:has(.race-history-row-mid) .car-visual.is-history-opponent {
    box-sizing: border-box;
    width: 245px;
    min-width: 245px;
    max-width: 245px;
    aspect-ratio: 16 / 9;
    padding: 7px;
    border: 4px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 16px;
    background: rgba(255, 249, 240, 0.94);
    overflow: hidden;
}

.game-shell .home-recent-race-card:has(.race-history-row-mid) .car-visual.is-history-opponent.is-layered img {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 9px;
}

.game-shell .home-recent-race-card:has(.race-history-row-mid) .car-visual.is-history-opponent:not(.is-layered) > img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
}
}/* Source: public/css/source/pages/achievements/game-overrides.css */

@layer legacy {/* achievements: game-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 560px) {

    :where(.ui-page-achievements) .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward {
    font-weight: 400;
}

.game-shell:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward > span:last-child {
    font-weight: 400;
}

.game-shell:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward {
    color: var(--text);
}

.game-shell:where(.ui-page-achievements) .achievement-row-rewards .daily-gift-reward > span:last-child {
    color: var(--text);
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card > .achievement-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card > .achievement-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head"
        "copy"
        "rewards"
        "progress"
        "actions";
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head"
        "copy"
        "rewards"
        "progress"
        "actions";
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-head {
    grid-area: head;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-head {
    grid-area: head;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges .daily-gift-status {
    width: fit-content;
    min-width: 116px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges .daily-gift-status {
    width: fit-content;
    min-width: 116px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-body > p {
    grid-area: copy;
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-body > p {
    grid-area: copy;
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards {
    grid-area: rewards;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards {
    grid-area: rewards;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards > strong {
    font-size: 1rem;
    line-height: 1.35;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards > strong {
    font-size: 1rem;
    line-height: 1.35;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward-list {
    grid-area: auto;
    display: grid;
    grid-template-columns: repeat(var(--achievement-reward-columns, 4), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward-list {
    grid-area: auto;
    display: grid;
    grid-template-columns: repeat(var(--achievement-reward-columns, 4), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-progress {
    grid-area: progress;
    display: block;
    min-width: 0;
    margin-top: -2px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-progress {
    grid-area: progress;
    display: block;
    min-width: 0;
    margin-top: -2px;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-progress {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-progress {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-progress .achievement-levels {
    margin-top: 10px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-progress .achievement-levels {
    margin-top: 10px;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card {
    display: flex;
    align-items: center;
    min-width: 260px;
    min-height: 78px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card {
    display: flex;
    align-items: center;
    min-width: 260px;
    min-height: 78px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card .resource-metric-chip {
    width: 100%;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card .resource-metric-chip {
    width: 100%;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card > .achievement-visual {
        justify-self: start;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card > .achievement-visual {
        justify-self: start;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges {
        justify-content: flex-start;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack {
        justify-content: flex-start;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-badges {
        justify-content: flex-start;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-stack {
        justify-content: flex-start;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card {
        width: 100%;
        min-width: 0;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-pending-claim-card {
        width: 100%;
        min-width: 0;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-action-buttons {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .game-shell:where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-achievements) .achievement-row.structured-action-card .achievement-row-rewards .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
}/* Source: public/css/source/pages/auth-landing/game-overrides.css */

@layer legacy {/* auth-landing: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-auth-landing) .public-landing-logo {
    filter: none;
}

:where(.ui-page-auth-landing) .public-landing-logo {
    filter: none;
}
}/* Source: public/css/source/pages/auth-media/game-overrides.css */

@layer legacy {/* auth-media: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-auth-media) .media-gallery-item {
    box-shadow: none;
}

:where(.ui-page-auth-media) .media-gallery-item {
    box-shadow: none;
}
}/* Source: public/css/source/pages/city-jobs/game-overrides.css */

@layer legacy {/* city-jobs: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-progress {
    grid-area: progress;
    align-self: stretch;
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-progress {
    grid-area: progress;
    align-self: stretch;
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > :is(.daily-gift-status, .daily-gift-reward, form) {
    grid-area: auto;
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > :is(.daily-gift-status, .daily-gift-reward, form) {
    min-height: 72px;
    align-self: center;
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > .city-job-duration-pill {
    padding: 8px 10px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .daily-gift-reward.city-job-active-resource-box {
    min-height: 72px;
    padding: 8px 10px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > form .button {
    min-height: 72px;
}

@media (max-width: 900px) {

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card > * {
        grid-area: auto;
    }

    :where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > * {
        grid-area: auto;
    }

    :where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card > * {
        grid-area: auto;
    }
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.daily-gift-card {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow-card);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.daily-gift-card.is-completed {
    border-color: rgba(var(--success-rgb), 0.3);
    background: rgba(244, 252, 237, 0.86);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-duration-pill {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    color: var(--theme-text);
    box-shadow: inset 0 0 0 1px var(--selected-outline);
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-cost-bundle {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    color: var(--text);
    box-shadow: none;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-reward-bundle {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    color: var(--text);
    box-shadow: none;
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box > span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box > strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-duration-pill {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-duration-pill > span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box > span {
    color: var(--muted);
    font-weight: 500;
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box > strong {
    color: var(--text);
    font-weight: 800;
}

.game-shell:where(.ui-page-city-jobs) .city-job-duration-pill {
    color: var(--text);
    font-weight: 500;
}

.game-shell:where(.ui-page-city-jobs) .city-job-duration-pill > span {
    color: var(--text);
    font-weight: 500;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid .daily-gift-reward {
    color: var(--text);
    font-weight: 500;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward small {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward small {
    color: var(--muted);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward strong {
    color: var(--text);
    font-weight: 500;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward > span > small:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward > span > strong:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward {
    font-weight: 400;
}

.game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-weight: 400;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
    grid-area: job;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
    padding: 14px 16px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .job-time-progress {
    width: 100%;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .city-job-inline-completion {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
    box-sizing: border-box;
}

:where(.ui-page-city-jobs) .city-job-inline-completion .job-time-progress {
    width: 100%;
    flex: none;
    margin: 0;
}

:where(.ui-page-city-jobs) .city-job-inline-completion .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-city-jobs) .city-job-inline-completion .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .city-job-inline-completion .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-inline-completion {
    grid-area: progress;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    align-self: start;
    margin-top: 0;
}

:where(.ui-page-city-jobs) .daily-gift-card.city-job-active-card {
    grid-template-areas: "head"
        "rewards"
        "progress"
        "action";
    align-content: start;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-city-jobs) .city-job-inline-completion {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-city-jobs) .garage-upgrade-inline-job .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-city-jobs) .city-job-inline-completion .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
    min-width: 210px;
    min-height: 52px;
}

:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

@media (max-width: 1180px) {

    :where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-city-jobs) .city-job-summary-strip .city-job-stat-box {
    align-content: start;
    justify-items: start;
}

.game-shell:where(.ui-page-city-jobs) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-city-jobs) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .city-job-inline-completion.garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-inline-completion.garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

.game-shell:where(.ui-page-city-jobs) .city-job-active-card .city-job-inline-completion.garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    background: transparent;
}

:where(.ui-page-city-jobs) .city-job-active-card .city-job-inline-completion.garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    background: transparent;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    .game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }

    :where(.ui-page-city-jobs) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions > form {
    display: flex;
    justify-content: flex-end;
    width: auto;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions > form {
    display: flex;
    justify-content: flex-end;
    width: auto;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-duration {
    grid-area: auto;
    min-height: 52px;
    width: 100%;
    max-width: none;
    min-width: 150px;
    padding: 6px 8px;
    justify-self: stretch;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-duration {
    grid-area: auto;
    min-height: 52px;
    width: 100%;
    max-width: none;
    min-width: 150px;
    padding: 6px 8px;
    justify-self: stretch;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions > form .button {
    min-width: 170px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-actions > form .button {
    min-width: 170px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card {
    padding: 16px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card {
    padding: 16px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: 1fr;
    align-items: stretch;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-stack {
    gap: 10px;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-stack {
    gap: 10px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward) {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward) {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
    padding: 16px;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
    padding: 16px;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-stack {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-stack {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > :is(.city-job-shop-cost, .city-job-shop-value) {
    grid-area: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > :is(.city-job-shop-cost, .city-job-shop-value) {
    grid-area: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-meta {
    grid-area: head;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-meta {
    grid-area: head;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-actions {
    grid-area: actions;
}

:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-actions {
    grid-area: actions;
}

.game-shell:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward:is(.city-job-shop-cost, .city-job-shop-value) {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-city-jobs) .city-job-shop-card .daily-gift-reward:is(.city-job-shop-cost, .city-job-shop-value) {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-message {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    max-width: 260px;
    text-align: left;
}

:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-message {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    max-width: 260px;
    text-align: left;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/collections/game-overrides.css */

@layer legacy {/* collections: game-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 560px) {

    :where(.ui-page-collections) .stats-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/cups/game-overrides.css */

@layer legacy {/* cups: game-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 560px) {

    :where(.ui-page-cups) .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/daily-gifts/game-overrides.css */

@layer legacy {/* daily-gifts: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card > .daily-gift-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card > .daily-gift-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-body {
    grid-area: body;
    display: grid;
    grid-template-areas: "head"
        "copy"
        "meta"
        "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-body {
    grid-area: body;
    display: grid;
    grid-template-areas: "head"
        "copy"
        "meta"
        "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-date {
    grid-area: auto;
    justify-self: auto;
    width: fit-content;
    white-space: nowrap;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-date {
    grid-area: auto;
    justify-self: auto;
    width: fit-content;
    white-space: nowrap;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack > :is(form, .button, small) {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack > :is(form, .button, small) {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack .daily-gift-status {
    justify-self: auto;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-action-stack .daily-gift-status {
    justify-self: auto;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges .daily-gift-status {
    width: fit-content;
    min-width: 96px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges .daily-gift-status {
    width: fit-content;
    min-width: 96px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

@media (max-width: 560px) {

    :where(.ui-page-daily-gifts) .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward {
    font-weight: 400;
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-weight: 400;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges {
        flex-wrap: wrap;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-badges {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-compact-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-compact-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-wide-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-wide-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-compact-reward-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-compact-reward-grid {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-wide-reward-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-daily-gifts) .daily-gift-grid.is-row-layout .daily-gift-card.structured-action-card .daily-gift-reward-list.is-wide-reward-grid {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/dealership/game-overrides.css */

@layer legacy {/* dealership: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-dealership) .dealership-panel-note {
    text-align: left;
}

.game-shell:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 225px;
    aspect-ratio: 16 / 10;
    padding: 10px;
    border-width: 4px;
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.08);
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 225px;
    aspect-ratio: 16 / 10;
    padding: 10px;
    border-width: 4px;
    box-shadow: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.08);
}

.game-shell:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large.is-layered .car-visual-background {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 12px;
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large.is-layered .car-visual-background {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 12px;
}

.game-shell:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large.is-layered .car-visual-foreground {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    padding: 0;
    transform: translateY(7%) scale(0.94);
}

:where(.ui-page-dealership) .dealership-catalog.is-row-layout .dealership-card > .car-visual.upgrade-visual-frame-large.is-layered .car-visual-foreground {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    padding: 0;
    transform: translateY(7%) scale(0.94);
}
}/* Source: public/css/source/pages/garage/game-overrides.css */

@layer legacy {/* garage: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-body > .car-panel-detail-progress-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-main > .car-panel-detail-progress-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-garage) .home-active-car-panel.is-active-car {
    border-color: rgba(var(--success-rgb), 0.48);
    outline: 2px solid rgba(var(--success-rgb), 0.62);
    box-shadow: 0 14px 28px rgba(var(--success-rgb), 0.16);
}

@media (max-width: 900px) {

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-preview-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-garage) .catalog-card-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .catalog-card-meta {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 78px;
    padding: 9px 12px;
}

.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid .dealership-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 78px;
    padding: 9px 12px;
}

.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head {
    grid-template-columns: 200px minmax(0, 1fr);
}

:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head {
    grid-template-columns: 200px minmax(0, 1fr);
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }

    :where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout .garage-index-upgrade-card > .garage-catalog-upgrade-head {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card {
    padding: 14px 16px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card {
    padding: 14px 16px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card {
    padding: 14px 16px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card {
    padding: 14px 16px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-body {
    align-self: stretch;
    align-content: start;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-body {
    align-self: stretch;
    align-content: start;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-body {
    align-self: stretch;
    align-content: start;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-body {
    align-self: stretch;
    align-content: start;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > div {
    min-height: 66px;
    padding: 6px 8px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > div {
    min-height: 66px;
    padding: 6px 8px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > div {
    min-height: 66px;
    padding: 6px 8px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > div {
    min-height: 66px;
    padding: 6px 8px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > div {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > div {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > div {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > div {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
}

.game-shell:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > .garage-catalog-upgrade-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}

:where(.ui-page-garage) .garage-catalog-available-grid.is-row-layout .garage-index-upgrade-card--catalog-available.structured-action-card .garage-catalog-upgrade-meta > .garage-catalog-upgrade-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}

.game-shell:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > .garage-catalog-upgrade-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}

:where(.ui-page-garage) .garage-catalog-upcoming-grid.is-row-layout .garage-index-upgrade-card--catalog-upcoming.structured-action-card .garage-catalog-upgrade-meta > .garage-catalog-upgrade-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}
}/* Source: public/css/source/pages/garage-contracts/game-overrides.css */

@layer legacy {/* garage-contracts: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack .profile-stat-card .resource-metric-chip {
    gap: 8px;
}

:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-unlock-card .resource-metric-chip {
    gap: 8px;
}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-image {
    box-shadow: none;
}

:where(.ui-page-garage-contracts) .team-sponsor-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 8px;
    aspect-ratio: 3 / 2;
}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-image img {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 980px) {

    .game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .stack {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-stat-bonus-card {
        grid-column: 1 / -1;
    }

}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-goal-line > span {
    color: var(--theme-muted, var(--muted));
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-goal > small {
    color: var(--theme-muted, var(--muted));
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-goal > .muted {
    color: var(--theme-muted, var(--muted));
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.game-shell:where(.ui-page-garage-contracts) .garage-contract-grid {
    container-type: inline-size;
    container-name: garage-contracts;
}

@container garage-contracts (max-width: 980px) {
    .game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image" "head" "copy" "stats" "side" "action";
    }
    .game-shell:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .team-sponsor-image {
        width: min(100%, 400px);
        max-width: 100%;
        height: auto;
        justify-self: center;
    }
}
}/* Source: public/css/source/pages/garage-infrastructure/game-overrides.css */

@layer legacy {/* garage-infrastructure: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item {
    min-height: 58px;
    padding: 8px 8px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item.is-compact {
    min-height: 58px;
    padding: 8px 8px;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item .resource-metric-chip {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-garage-infrastructure) .resource-preview-list-compact {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
    grid-area: job;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
    padding: 14px 16px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .job-time-progress {
    width: 100%;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row strong {
    color: var(--accent);
    font-size: var(--heading-font-size);
    line-height: 1.12;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row p {
    color: var(--theme-muted, var(--muted));
    font-size: var(--body-font-size);
    line-height: 1.35;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card {
    margin-right: auto;
    min-width: 260px;
    max-width: 340px;
    align-content: center;
    padding: 8px 12px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
    min-width: 210px;
    min-height: 52px;
}

:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-garage-infrastructure) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-garage-infrastructure) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}
}/* Source: public/css/source/pages/garage-show/game-overrides.css */

@layer legacy {/* garage-show: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-body > .car-panel-detail-progress-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-main > .car-panel-detail-progress-grid {
    grid-template-columns: 1fr;
}

:where(.ui-page-garage-show) .home-active-car-panel.is-active-car {
    border-color: rgba(var(--success-rgb), 0.48);
    outline: 2px solid rgba(var(--success-rgb), 0.62);
    box-shadow: 0 14px 28px rgba(var(--success-rgb), 0.16);
}

:where(.ui-page-garage-show) .garage-repair-panel .garage-repair-inline-job {
    grid-area: auto;
}

.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item {
    min-height: 58px;
    padding: 8px 8px;
    gap: 5px;
}

.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item.is-compact {
    min-height: 58px;
    padding: 8px 8px;
}

.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid .resource-preview-item .resource-metric-chip {
    gap: 8px;
}

@media (max-width: 560px) {

    :where(.ui-page-garage-show) .resource-preview-list-compact {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-shell:where(.ui-page-garage-show) .garage-repair-money-card .resource-icon-frame {
    box-shadow: none;
}

.game-shell:where(.ui-page-garage-show) .garage-repair-kit-preview {
    box-shadow: none;
}

:where(.ui-page-garage-show) .garage-repair-kit-preview {
    box-shadow: none;
}

.game-shell:where(.ui-page-garage-show) .garage-condition-meter .garage-upgrade-progress-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
    grid-area: job;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
    padding: 14px 16px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .job-time-progress {
    width: 100%;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-garage-show) .garage-upgrade-inline-job .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row strong {
    color: var(--accent);
    font-size: var(--heading-font-size);
    line-height: 1.12;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row p {
    color: var(--theme-muted, var(--muted));
    font-size: var(--body-font-size);
    line-height: 1.35;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card {
    margin-right: auto;
    min-width: 260px;
    max-width: 340px;
    align-content: center;
    padding: 8px 12px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .garage-upgrade-unlock-card .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
    min-width: 210px;
    min-height: 52px;
}

:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

@media (max-width: 1180px) {

    :where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-garage-show) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-garage-show) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-meta-card.is-job-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-meta-card.is-job-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-meta-card.is-job-completion .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-garage-show) .garage-detail-job-row.is-upgrade-job .garage-job-meta-card.is-job-completion .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 78px;
    padding: 9px 12px;
}

.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid .dealership-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 78px;
    padding: 9px 12px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
    grid-template-columns: minmax(560px, 1.1fr) minmax(360px, 0.72fr) minmax(220px, 0.42fr);
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
    grid-template-columns: minmax(560px, 1.1fr) minmax(360px, 0.72fr) minmax(220px, 0.42fr);
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock {
    grid-template-columns: minmax(560px, 0.95fr) minmax(0, 1.2fr);
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock {
    grid-template-columns: minmax(560px, 0.95fr) minmax(0, 1.2fr);
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head {
    grid-template-columns: 200px minmax(0, 1fr);
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head {
    grid-template-columns: 200px minmax(0, 1fr);
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.is-level-only-lock {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }

    :where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming > .garage-upgrade-incoming-head {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card {
    padding: 14px 16px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card {
    padding: 14px 16px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card > .upgrade-visual {
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-body {
    align-self: stretch;
    align-content: start;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-body {
    align-self: stretch;
    align-content: start;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-head {
    display: grid;
    gap: 6px;
    align-content: start;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-head {
    display: grid;
    gap: 6px;
    align-content: start;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-head p {
    margin: 0;
    font-size: var(--body-font-size);
    line-height: 1.3;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta > .resource-preview-item {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
    min-height: 78px;
    padding: 8px 10px;
    background: var(--surface);
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta > .resource-preview-item {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
    min-height: 78px;
    padding: 8px 10px;
    background: var(--surface);
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta > .garage-upgrade-incoming-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta > .garage-upgrade-incoming-unlock-card {
    order: 2;
    flex: 0 1 260px;
    width: auto;
    max-width: 340px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming.structured-action-card .garage-upgrade-incoming-meta .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    justify-content: start;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    justify-content: start;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-body {
    justify-self: start;
    justify-items: start;
    text-align: left;
    width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-body {
    justify-self: start;
    justify-items: start;
    text-align: left;
    width: 100%;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-head {
    justify-items: start;
    text-align: left;
    width: 100%;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-head {
    justify-items: start;
    text-align: left;
    width: 100%;
}

.game-shell:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-meta {
    justify-self: start;
    width: 100%;
    max-width: none;
}

:where(.ui-page-garage-show) .garage-upgrade-incoming-grid.is-row-layout .garage-upgrade-card--incoming-left.structured-action-card .garage-upgrade-incoming-meta {
    justify-self: start;
    width: 100%;
    max-width: none;
}
}/* Source: public/css/source/pages/garage-slots/game-overrides.css */

@layer legacy {/* garage-slots: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta dt {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.1;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta dd {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.12;
}

:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta .resource-metric-chip {
    gap: 8px;
}

@media (max-width: 900px) {

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card:not(:has(form)) {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card > * {
        grid-area: auto;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-meta {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/home/game-overrides.css */

@layer legacy {/* home: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-home) .home-active-car-panel.is-active-car {
    border-color: rgba(var(--success-rgb), 0.48);
    outline: 2px solid rgba(var(--success-rgb), 0.62);
    box-shadow: 0 14px 28px rgba(var(--success-rgb), 0.16);
}

.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 78px;
    padding: 9px 12px;
}
}/* Source: public/css/source/pages/home-calendar/game-overrides.css */

@layer legacy {/* home-calendar: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-home-calendar) .race-calendar-hero .race-calendar-lead {
    width: 100%;
    max-width: none;
}
}/* Source: public/css/source/pages/madness/game-overrides.css */

@layer legacy {/* madness: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-details {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.ui-page-madness) .madness-card.structured-action-card .madness-card-details {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-shell:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-details {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.ui-page-madness) .madness-history-card.structured-action-card .madness-history-details {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
}/* Source: public/css/source/pages/missions/game-overrides.css */

@layer legacy {/* missions: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card > .mission-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card > .mission-visual {
    grid-area: image;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-card-body {
    grid-area: body;
    display: grid;
    grid-template-areas: "head"
        "copy"
        "meta"
        "progress"
        "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-card-body {
    grid-area: body;
    display: grid;
    grid-template-areas: "head"
        "copy"
        "meta"
        "progress"
        "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges .daily-gift-status {
    width: fit-content;
    min-width: 116px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges .daily-gift-status {
    width: fit-content;
    min-width: 116px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: none;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-progress {
    grid-area: progress;
    align-self: stretch;
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-progress {
    grid-area: progress;
    align-self: stretch;
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward {
    display: flex;
    min-height: 78px;
    padding: 8px 10px;
    align-items: center;
    border-color: var(--selected-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack > :is(form, .button) {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack > :is(form, .button) {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-action-stack .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
}

@media (max-width: 900px) {

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card > * {
        grid-area: auto;
    }
}

@media (max-width: 560px) {

    :where(.ui-page-missions) .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward {
    font-weight: 400;
}

.game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .daily-gift-reward > span:last-child {
    font-weight: 400;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
    }

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card > .mission-visual {
        justify-self: center;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card > .mission-visual {
        justify-self: center;
    }

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-reward-list {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .daily-gift-card-head {
        flex-wrap: wrap;
    }

    .game-shell:where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges {
        flex-wrap: wrap;
    }

    :where(.ui-page-missions) .mission-grid.is-row-layout .mission-card.structured-action-card .mission-badges {
        flex-wrap: wrap;
    }
}
}/* Source: public/css/source/pages/profile-show/game-overrides.css */

@layer legacy {/* profile-show: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-profile-show) .profile-progression-layout {
    display: grid;
    gap: 14px;
}

.game-shell:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-head-panel {
    padding-top: 10px;
    padding-bottom: 10px;
}

.game-shell:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-body-panel {
    padding-top: 10px;
    padding-bottom: 10px;
}

.game-shell:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-head-panel .panel-title-row {
    margin: 0;
}

.game-shell:where(.ui-page-profile-show) .profile-progression-layout > .profile-progression-body-panel .profile-capacity-progress {
    margin-top: 0;
}

.game-shell:where(.ui-page-profile-show) .profile-public-preview-panel .section-title-row > .button {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}
}/* Source: public/css/source/pages/race/game-overrides.css */

@layer legacy {/* race: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect b {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect span {
    color: var(--muted);
    font-weight: 500;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card .race-item-effect b {
    color: var(--text);
    font-weight: 800;
}

.game-shell:where(.ui-page-race) .race-tab-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
    display: grid;
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    min-height: 0;
    padding: 16px;
}

.game-shell:where(.ui-page-race) .race-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
    display: grid;
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    min-height: 0;
    padding: 16px;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 4px;
    border-radius: 18px;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .structured-action-card-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head"
        "meta";
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-stock-card-header {
    grid-area: head;
    align-self: start;
    min-width: 0;
    width: 100%;
    padding-right: 80px;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-toggle-title .muted {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
    grid-area: meta;
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 0;
    width: 100%;
    align-self: center;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect {
    min-height: 64px;
    padding: 8px 8px;
    align-content: center;
}

.game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 244, 227, 0.98);
    color: var(--text);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    z-index: 1;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-race) .race-tab-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
        padding: 52px 16px 16px;
    }

    .game-shell:where(.ui-page-race) .race-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
        padding: 52px 16px 16px;
    }

    .game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large {
        justify-self: center;
    }

    .game-shell:where(.ui-page-race) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race) .race-directory-stock-grid .track-knowledge-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable {
    border-color: rgba(112, 85, 54, 0.24);
    background: rgba(112, 85, 54, 0.1);
    color: rgba(72, 48, 28, 0.62);
    box-shadow: none;
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:hover {
    border-color: rgba(112, 85, 54, 0.32);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    border-color: rgba(112, 85, 54, 0.32);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable :where(span, strong, small, .button-action-icon) {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon :where(svg, svg *) {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race) .race-item-effect > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .race-item-effect > b:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .opponent-summary-values > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .opponent-summary-card-head > small {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .opponent-summary-values b {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head-meta {
    align-items: center;
    gap: 6px;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .race-summary-weather-preview {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-grid {
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(0, 1.333fr));
    gap: 8px;
    margin-right: 0;
    padding-top: 6px;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border-color: rgba(var(--theme-border-rgb), 0.40);
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    align-content: start;
    gap: 10px;
    color: var(--text);
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head > span:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card > strong:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head > small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-card-head-meta small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values {
    display: grid;
    gap: 4px;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values > span {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--text);
    line-height: 1.15;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values > span > span:first-child {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race) .opponent-accordion-content .opponent-summary-values > span > b:last-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    justify-self: end;
    text-align: right;
    white-space: normal;
}

.game-shell:where(.ui-page-race) .opponent-card-meta {
    gap: 6px;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > * {
    min-height: 72px;
    padding: 8px;
    border-radius: 12px;
    border-color: rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: none;
    align-content: start;
    align-items: start;
    gap: 4px;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > * .resource-metric-chip {
    align-self: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > * > span:first-child {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > * > strong {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race) .opponent-card-meta .opponent-match-meter {
    height: 5px;
    margin-top: 2px;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > .opponent-match-meter-row {
    grid-column: 3;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.game-shell:where(.ui-page-race) .opponent-card-meta > .opponent-match-meter-row .opponent-match-meter {
    width: 100%;
    margin-top: 0;
}

.game-shell:where(.ui-page-race) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-single-media.car-visual {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 112px;
    aspect-ratio: 16 / 9;
    justify-self: stretch;
    padding: 7px;
    border: 4px solid rgba(var(--action-rgb), 0.30);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 244, 0.96));
    overflow: hidden;
}

.game-shell:where(.ui-page-race) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-single-media.car-visual.is-layered img {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 9px;
}

.game-shell:where(.ui-page-race) .race-directory-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-race) .opponent-action-weather-preview {
    box-shadow: none;
}

:where(.ui-page-race) .race-directory-image {
    box-shadow: none;
}

:where(.ui-page-race) .opponent-action-weather-preview {
    box-shadow: none;
}

.game-shell:where(.ui-page-race) [data-track-knowledge-preview-root] .race-item-toggle-title .muted {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.game-shell:where(.ui-page-race) [data-track-knowledge-preview-root] .race-item-toggle-title-row {
    align-items: start;
}

.game-shell:where(.ui-page-race) [data-track-knowledge-preview-root] .race-item-toggle-title {
    display: grid;
    gap: 5px;
    align-content: start;
}
}/* Source: public/css/source/pages/race-history/game-overrides.css */

@layer legacy {/* The history badge shares normal flow with the heading at every width. */
.game-shell:where(.ui-page-race-history) .race-history-page-hero {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 12px;
}
.game-shell:where(.ui-page-race-history) .race-history-page-hero > div {
    flex: 1 1 260px;
    min-width: 0;
}
.game-shell:where(.ui-page-race-history) .race-history-page-hero > .race-history-total-badge {
    position: static;
    order: 1;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    justify-content: center;
}
}/* Source: public/css/source/pages/race-multi-index/game-overrides.css */

@layer legacy {/* race-multi-index: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect b {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect span {
    color: var(--muted);
    font-weight: 500;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card .race-item-effect b {
    color: var(--text);
    font-weight: 800;
}

.game-shell:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
    display: grid;
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    min-height: 0;
    padding: 16px;
}

.game-shell:where(.ui-page-race-multi-index) .race-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
    display: grid;
    position: relative;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    min-height: 0;
    padding: 16px;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    padding: 10px;
    border-width: 4px;
    border-radius: 18px;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .structured-action-card-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head"
        "meta";
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-stock-card-header {
    grid-area: head;
    align-self: start;
    min-width: 0;
    width: 100%;
    padding-right: 80px;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-toggle-title .muted {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
    grid-area: meta;
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 0;
    width: 100%;
    align-self: center;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect {
    min-height: 64px;
    padding: 8px 8px;
    align-content: center;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 244, 227, 0.98);
    color: var(--text);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    z-index: 1;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-race-multi-index) .race-tab-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
        padding: 52px 16px 16px;
    }

    .game-shell:where(.ui-page-race-multi-index) .race-inventory-panel .race-directory-stock-grid .race-item-stock-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
            "body";
        padding: 52px 16px 16px;
    }

    .game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card > .race-item-visual.upgrade-visual-frame-large {
        justify-self: center;
    }

    .game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .race-item-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race-multi-index) .race-directory-stock-grid .track-knowledge-stock-card.structured-action-card .race-item-effect-list.structured-action-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable {
    border-color: rgba(112, 85, 54, 0.24);
    background: rgba(112, 85, 54, 0.1);
    color: rgba(72, 48, 28, 0.62);
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:hover {
    border-color: rgba(112, 85, 54, 0.32);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable:focus-visible {
    border-color: rgba(112, 85, 54, 0.32);
    background: rgba(112, 85, 54, 0.14);
    color: rgba(72, 48, 28, 0.72);
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable :where(span, strong, small, .button-action-icon) {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-actions .button.opponent-action-unavailable .button-action-icon :where(svg, svg *) {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race-multi-index) .race-item-effect > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .race-item-effect > b:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-values > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-card-head > small {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-values b {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head-meta {
    align-items: center;
    gap: 6px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .race-summary-weather-preview {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-grid {
    grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(0, 1.333fr));
    gap: 8px;
    margin-right: 0;
    padding-top: 6px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-car-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border-color: rgba(var(--theme-border-rgb), 0.40);
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    align-content: start;
    gap: 10px;
    color: var(--text);
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head > span:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card > strong:first-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head > small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-card-head-meta small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values {
    display: grid;
    gap: 4px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values > span {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--text);
    line-height: 1.15;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values > span > span:first-child {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-values > span > b:last-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    justify-self: end;
    text-align: right;
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta {
    gap: 6px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > * {
    min-height: 72px;
    padding: 8px;
    border-radius: 12px;
    border-color: rgba(var(--theme-border-rgb), 0.18);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: none;
    align-content: start;
    align-items: start;
    gap: 4px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > * .resource-metric-chip {
    align-self: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > * > span:first-child {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > * > strong {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta .opponent-match-meter {
    height: 5px;
    margin-top: 2px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > .opponent-match-meter-row {
    grid-column: 3;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-card-meta > .opponent-match-meter-row .opponent-match-meter {
    width: 100%;
    margin-top: 0;
}

.game-shell:where(.ui-page-race-multi-index) .race-directory-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-action-weather-preview {
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .race-directory-image {
    box-shadow: none;
}

:where(.ui-page-race-multi-index) .opponent-action-weather-preview {
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-title {
    display: grid;
    gap: 2px;
    min-width: 0;
    justify-items: start;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-category {
    color: var(--theme-muted, var(--muted));
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-head strong {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-head .lineup-mini-slot {
    justify-self: end;
    background: rgba(var(--action-rgb), 0.14);
    padding: 5px 9px;
    font-size: 0.78rem;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-body {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    gap: 7px;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-visual-frame {
    position: relative;
    display: grid;
    align-self: start;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    padding: 8px;
    min-width: 0;
    overflow: visible;
    border: 4px solid rgba(var(--action-rgb), 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 244, 0.96));
    box-shadow: 0 10px 22px rgba(58, 38, 18, 0.08);
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-visual-frame .car-visual.is-compact {
    display: block;
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-index) .opponent-summary-lineup .lineup-mini-card-body .lineup-mini-status-list {
    justify-self: center;
    justify-content: center;
}

.game-shell:where(.ui-page-race-multi-index) [data-track-knowledge-preview-root] .race-item-toggle-title .muted {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.game-shell:where(.ui-page-race-multi-index) [data-track-knowledge-preview-root] .race-item-toggle-title-row {
    align-items: start;
}

.game-shell:where(.ui-page-race-multi-index) [data-track-knowledge-preview-root] .race-item-toggle-title {
    display: grid;
    gap: 5px;
    align-content: start;
}
}/* Source: public/css/source/pages/race-multi-preview/game-overrides.css */

@layer legacy {/* race-multi-preview: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-multi-preview) .race-preview-opponent-button {
    box-shadow: none;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-good {
    border-color: rgba(118, 173, 70, 0.32);
    background: rgba(233, 247, 221, 0.94);
    color: #497b1f;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-even {
    border-color: rgba(210, 147, 48, 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-risky {
    border-color: rgba(193, 84, 54, 0.32);
    background: rgba(255, 232, 224, 0.96);
    color: #b15136;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-good .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-good .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-even .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-even .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-risky .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-multi-preview) .race-preview-opponent-button.is-risky .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid > .panel > .car-visual.is-featured {
    box-sizing: border-box;
    padding: 8px;
    border: 4px solid rgba(var(--action-rgb), 0.30);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 240, 216, 0.92));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid > .panel > .car-visual.is-featured.is-layered img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 10px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid > .panel > .car-visual.is-featured:not(.is-layered) > img {
    border-radius: 10px;
}

:where(.ui-page-race-multi-preview) .race-latest-summary-rewards {
    grid-area: auto;
}

.game-shell:where(.ui-page-race-multi-preview) .race-item-effect > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-preview) .race-item-effect > b:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-stat-card.is-damage > strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card {
    min-width: 0;
    overflow: hidden;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.resource-metric-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    white-space: normal;
    overflow-wrap: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-good {
    border-color: rgba(var(--success-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--success-rgb), 0.18), rgba(var(--success-rgb), 0.08));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-good strong {
    color: rgb(var(--success-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-even {
    border-color: rgba(210, 147, 48, 0.34);
    background: linear-gradient(180deg, rgba(249, 237, 214, 0.92), rgba(249, 237, 214, 0.46));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-even strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: #9a641d;
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-risky {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--danger-rgb), 0.14), rgba(var(--danger-rgb), 0.06));
}

.game-shell:where(.ui-page-race-multi-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-risky strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-normal-chip {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-normal-chip > span {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-normal-chip > span:last-child {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-total-chip > span:last-child {
    font-weight: 900;
}

.game-shell:where(.ui-page-race-multi-preview) .race-latest-rewards-card .race-reward-line-chip .resource-icon-stack.is-chip .resource-icon-frame {
    border: 1px solid rgba(var(--theme-border-rgb), 0.44);
    background: rgba(255, 249, 240, 0.92);
    overflow: hidden;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-grid > .panel {
    width: 100%;
    height: auto;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel.is-player {
    order: 1;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel.is-opponent {
    order: 2;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel {
    order: 3;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel > .eyebrow {
    margin-bottom: 2px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel > h2 {
    margin: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel > .race-sidebar-copy {
    line-height: 1.35;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row > h2 {
    margin: 0;
    min-width: 0;
    line-height: 1.18;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-title-row > h2 {
    margin: 0;
    min-width: 0;
    line-height: 1.18;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-title-row > .eyebrow {
    margin: 0;
    min-width: 0;
    line-height: 1.18;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row > .race-sidebar-copy {
    min-width: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row > h2 {
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row .player-name-link {
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-title-row > h2 {
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-title-row > .eyebrow {
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-title-row > .race-sidebar-copy {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    line-height: 1.18;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 7px;
    min-height: 0;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-title {
    display: grid;
    gap: 2px;
    min-width: 0;
    justify-items: start;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-category {
    color: var(--theme-muted, var(--muted));
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-head strong {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.16;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-head .lineup-mini-slot {
    justify-self: end;
    background: rgba(var(--action-rgb), 0.14);
    padding: 5px 9px;
    font-size: 0.78rem;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-body {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    gap: 7px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-visual-frame {
    position: relative;
    display: grid;
    align-self: start;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    padding: 8px;
    min-width: 0;
    overflow: visible;
    border: 4px solid rgba(var(--action-rgb), 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(255, 251, 244, 0.96));
    box-shadow: 0 10px 22px rgba(58, 38, 18, 0.08);
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-visual-frame .car-visual.is-compact {
    display: block;
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow: none;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card-body .lineup-mini-status-list {
    justify-self: center;
    justify-content: center;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    color: var(--theme-muted, var(--muted));
    font-size: 0.82rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-meta span {
    flex: 0 0 auto;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-card > .lineup-mini-status-list {
    justify-self: center;
    justify-content: center;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-grid.is-lineup {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card {
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 16px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card:not(.resource-metric-chip) > span {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
    white-space: normal;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card:not(.resource-metric-chip) > strong {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.05;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-score {
    border-color: rgba(var(--action-rgb), 0.32);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.18), rgba(var(--theme-border-rgb), 0.12));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-good {
    border-color: rgba(var(--success-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--success-rgb), 0.18), rgba(var(--success-rgb), 0.08));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-good strong {
    color: rgb(var(--success-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-even {
    border-color: rgba(210, 147, 48, 0.34);
    background: linear-gradient(180deg, rgba(249, 237, 214, 0.92), rgba(249, 237, 214, 0.46));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-even strong {
    color: #9a641d;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-risky {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--danger-rgb), 0.14), rgba(var(--danger-rgb), 0.06));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-card.is-win-chance.is-risky strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel {
    display: grid;
    gap: 12px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance {
    grid-column: auto;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-good {
    border-color: rgba(var(--success-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--success-rgb), 0.18), rgba(var(--success-rgb), 0.08));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-good strong {
    color: rgb(var(--success-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-even {
    border-color: rgba(210, 147, 48, 0.34);
    background: linear-gradient(180deg, rgba(249, 237, 214, 0.92), rgba(249, 237, 214, 0.46));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-even strong {
    color: #9a641d;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-risky {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--danger-rgb), 0.14), rgba(var(--danger-rgb), 0.06));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-row-chance.is-risky strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .race-launch-form {
    display: grid;
    gap: 14px;
}

.game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .race-launch-action {
    justify-self: end;
    width: min(420px, 100%);
}

@media (max-width: 1320px) {

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-grid.is-lineup {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-grid.is-lineup {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .lineup-mini-grid {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-lineup-panel .race-preview-stat-grid.is-lineup {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-race-multi-preview) .race-multi-preview-launch-panel .launch-vs-list {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-race-multi-preview) [data-track-knowledge-preview-root] .race-item-toggle-title .muted {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.game-shell:where(.ui-page-race-multi-preview) [data-track-knowledge-preview-root] .race-item-toggle-card-header {
    align-items: start;
}

.game-shell:where(.ui-page-race-multi-preview) [data-track-knowledge-preview-root] .race-item-toggle-title-row {
    align-items: start;
}

.game-shell:where(.ui-page-race-multi-preview) [data-track-knowledge-preview-root] .race-item-toggle-card-header {
    grid-template-columns: auto minmax(0, 1fr);
}

.game-shell:where(.ui-page-race-multi-preview) [data-track-knowledge-preview-root] .race-item-toggle-title {
    display: grid;
    gap: 5px;
    align-content: start;
}
}/* Source: public/css/source/pages/race-preview/game-overrides.css */

@layer legacy {/* race-preview: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-race-preview) .race-preview-opponent-button {
    box-shadow: none;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-good {
    border-color: rgba(118, 173, 70, 0.32);
    background: rgba(233, 247, 221, 0.94);
    color: #497b1f;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-even {
    border-color: rgba(210, 147, 48, 0.32);
    background: rgba(249, 237, 214, 0.96);
    color: #9a641d;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-risky {
    border-color: rgba(193, 84, 54, 0.32);
    background: rgba(255, 232, 224, 0.96);
    color: #b15136;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-good .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-good .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-even .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-even .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-risky .button-action-icon svg {
    color: currentColor;
    stroke: currentColor;
}

:where(.ui-page-race-preview) .race-preview-opponent-button.is-risky .button-action-icon svg * {
    color: currentColor;
    stroke: currentColor;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid > .panel > .car-visual.is-featured {
    box-sizing: border-box;
    padding: 8px;
    border: 4px solid rgba(var(--action-rgb), 0.30);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 240, 216, 0.92));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid > .panel > .car-visual.is-featured.is-layered img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 10px;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid > .panel > .car-visual.is-featured:not(.is-layered) > img {
    border-radius: 10px;
}

:where(.ui-page-race-preview) .race-latest-summary-rewards {
    grid-area: auto;
}

.game-shell:where(.ui-page-race-preview) .launch-vs-row.resource-metric-chip {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) max-content;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    padding: 8px;
    min-height: 64px;
}

.game-shell:where(.ui-page-race-preview) .race-item-effect > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-preview) .race-item-effect > b:last-child:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-race-preview) .race-preview-stat-card.is-damage > strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card {
    min-width: 0;
    overflow: hidden;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.resource-metric-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    white-space: normal;
    overflow-wrap: normal;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-good {
    border-color: rgba(var(--success-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--success-rgb), 0.18), rgba(var(--success-rgb), 0.08));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-good strong {
    color: rgb(var(--success-rgb));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-even {
    border-color: rgba(210, 147, 48, 0.34);
    background: linear-gradient(180deg, rgba(249, 237, 214, 0.92), rgba(249, 237, 214, 0.46));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-even strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: #9a641d;
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-risky {
    border-color: rgba(var(--danger-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--danger-rgb), 0.14), rgba(var(--danger-rgb), 0.06));
}

.game-shell:where(.ui-page-race-preview) .race-preview-grid .race-preview-stat-card.is-win-chance.is-risky strong {
    color: rgb(var(--danger-rgb));
}

.game-shell:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-normal-chip {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-normal-chip > span {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-normal-chip > span:last-child {
    font-weight: 400;
}

.game-shell:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-total-chip > span:last-child {
    font-weight: 900;
}

.game-shell:where(.ui-page-race-preview) .race-latest-rewards-card .race-reward-line-chip .resource-icon-stack.is-chip .resource-icon-frame {
    border: 1px solid rgba(var(--theme-border-rgb), 0.44);
    background: rgba(255, 249, 240, 0.92);
    overflow: hidden;
}

.game-shell:where(.ui-page-race-preview) [data-track-knowledge-preview-root] .race-item-toggle-title .muted {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.game-shell:where(.ui-page-race-preview) [data-track-knowledge-preview-root] .race-item-toggle-card-header {
    align-items: start;
}

.game-shell:where(.ui-page-race-preview) [data-track-knowledge-preview-root] .race-item-toggle-title-row {
    align-items: start;
}

.game-shell:where(.ui-page-race-preview) [data-track-knowledge-preview-root] .race-item-toggle-card-header {
    grid-template-columns: auto minmax(0, 1fr);
}

.game-shell:where(.ui-page-race-preview) [data-track-knowledge-preview-root] .race-item-toggle-title {
    display: grid;
    gap: 5px;
    align-content: start;
}
}/* Source: public/css/source/pages/race-tracks/game-overrides.css */

@layer legacy {/* race-tracks: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-race-tracks) .race-directory-image {
    box-shadow: none;
}

:where(.ui-page-race-tracks) .race-directory-image {
    box-shadow: none;
}
}/* Source: public/css/source/pages/rankings/game-overrides.css */

@layer legacy {/* rankings: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-rankings) .rankings-hero-grid :where(.eyebrow, .muted, small, span, p, a, strong, em) {
    font-size: max(1rem, 1em);
}

:where(.ui-page-rankings) .rankings-podium-grid :where(.eyebrow, .muted, small, span, p, a, strong, em) {
    font-size: max(1rem, 1em);
}

:where(.ui-page-rankings) .rankings-row :where(.eyebrow, .muted, small, span, p, a, strong, em) {
    font-size: max(1rem, 1em);
}

:where(.ui-page-rankings) .rankings-filter-card :where(.eyebrow, .muted, small, span, p, a, strong, em) {
    font-size: max(1rem, 1em);
}

:where(.ui-page-rankings) .rankings-team-line {
    font-size: max(1rem, 1em);
}

@media (max-width: 900px) {

    :where(.ui-page-rankings) .rankings-row {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
}
}/* Source: public/css/source/pages/rewards/game-overrides.css */

@layer legacy {/* rewards: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-rewards) .reward-pending-meta.structured-action-card-meta {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.ui-page-rewards) .reward-recent-meta.structured-action-card-meta {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
}/* Source: public/css/source/pages/scene-themes/game-overrides.css */

@layer legacy {/* scene-themes: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-scene-themes) .scene-theme-preview-car {
    object-fit: contain;
}

.game-shell:where(.ui-page-scene-themes) .scene-theme-preview-car {
    filter: none;
}

:where(.ui-page-scene-themes) .scene-theme-preview-car {
    filter: none;
}
}/* Source: public/css/source/pages/support/game-overrides.css */

@layer legacy {/* support: game-overrides.css. Scoped to this page; registered in manifest.json. */

.game-shell:where(.ui-page-support) .support-summary-panel {
    padding: 10px 18px;
}

.game-shell:where(.ui-page-support) .support-summary-panel .support-summary-strip {
    margin: 0;
    gap: 10px;
}

.game-shell:where(.ui-page-support) .support-summary-panel .support-summary-strip > .support-summary-card {
    min-height: 48px;
    padding: 8px 10px;
    gap: 3px;
}
}/* Source: public/css/source/pages/team/game-overrides.css */

@layer legacy {/* team: game-overrides.css. Scoped to this page; registered in manifest.json. */

:where(.ui-page-team) .team-color-swatch input {
    width: 1px;
    height: 1px;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.team-upgrade-stat-card > small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.15;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.team-upgrade-stat-card > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.team-upgrade-stat-card > strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-image {
    box-shadow: none;
}

:where(.ui-page-team) .team-active-upgrade-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-row {
    grid-template-columns: 128px minmax(180px, 1fr) minmax(180px, 0.32fr) minmax(360px, 0.68fr);
    align-items: stretch;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion > strong {
    white-space: normal;
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion .job-time-progress {
    width: 100%;
}

@media (max-width: 960px) {

    .game-shell:where(.ui-page-team) .team-active-upgrade-row {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion > .job-time-progress {
    width: 100%;
}

:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion {
    border-color: rgba(var(--action-rgb), 0.18);
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row strong {
    color: var(--accent);
    font-size: var(--heading-font-size);
    line-height: 1.12;
}

:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row p {
    color: var(--theme-muted, var(--muted));
    font-size: var(--body-font-size);
    line-height: 1.35;
}

@media (max-width: 1180px) {

    :where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.game-shell:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-team) .team-active-upgrade-meta.is-active-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-team) .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    padding-right: 0;
    margin-top: 2px;
    box-sizing: border-box;
}

@media (max-width: 820px) {

    .game-shell:where(.ui-page-team) .team-member-row:not(.team-request-row):not(.team-repair-member-row) .team-member-actions {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        padding-right: 0;
    }
}
}/* Source: public/css/source/pages/team-member-upgrades/game-overrides.css */

@layer legacy {/* team-member-upgrades: game-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 900px) {

    :where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    :where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card > * {
        grid-area: auto;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward small {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward small {
    color: var(--muted);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward strong {
    color: var(--text);
    font-weight: 500;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.team-upgrade-stat-card > small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.15;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.team-upgrade-stat-card > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.team-upgrade-stat-card > strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-upgrade-meta-stack > span:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-inline-stats {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: 0;
    box-shadow: none;
}

body.theme-colored:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-inline-stats {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: 0;
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-card .city-job-shop-cost > span > small:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward > span > small:first-child {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-card .city-job-shop-cost > span > strong:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward > span > strong:last-child {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-image {
    box-shadow: none;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress :is(
.garage-upgrade-progress-head > span:first-child,
.garage-upgrade-progress-foot > strong
) {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:first-child {
    flex: 1 1 auto;
    text-align: left;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:last-child {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot {
        flex-wrap: wrap;
    }

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-progress.garage-upgrade-progress .garage-upgrade-progress-foot > strong:last-child {
        flex: 1 1 100%;
        text-align: left;
        white-space: normal;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-row {
    grid-template-columns: 128px minmax(180px, 1fr) minmax(180px, 0.32fr) minmax(360px, 0.68fr);
    align-items: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-active-work .team-active-upgrade-row {
    grid-template-columns: minmax(220px, 280px) minmax(200px, 280px) minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px 16px;
    align-items: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-active-work .team-active-upgrade-main {
    min-height: 86px;
    align-content: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-active-work .team-active-upgrade-meta:not(.is-active-completion) {
    min-height: 86px;
    align-content: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-active-work .team-active-upgrade-meta.is-active-completion {
    margin-top: 4px;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion > strong {
    white-space: normal;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion .job-time-progress {
    width: 100%;
}

@media (max-width: 960px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-row {
        grid-template-columns: 1fr;
    }
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion > .job-time-progress {
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-pending {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
    box-sizing: border-box;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-pending > span {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    white-space: normal;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-pending .job-time-progress {
    width: 100%;
    flex: none;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-pending {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion {
    border-color: rgba(var(--action-rgb), 0.18);
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-pending .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row strong {
    color: var(--accent);
    font-size: var(--heading-font-size);
    line-height: 1.12;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row p {
    color: var(--theme-muted, var(--muted));
    font-size: var(--body-font-size);
    line-height: 1.35;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
    min-width: 210px;
    min-height: 52px;
}

@media (max-width: 1180px) {

    :where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        flex-wrap: wrap;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-stat-card.is-time-card {
    grid-column: auto;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-pending {
    grid-area: pending;
    grid-column: auto;
    width: 100%;
    margin-top: 0;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card .team-member-upgrade-chance-grid {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-team-member-upgrades) .team-active-upgrade-meta.is-active-completion {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card {
    grid-template-columns: 180px minmax(0, 1fr);
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-media {
    width: 160px;
    height: 160px;
}

@media (max-width: 980px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card {
        grid-template-columns: 1fr;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "media main"
        "media pending"
        "media action";
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "media main"
        "media pending"
        "media action";
    gap: 14px 24px;
    padding: 16px;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
    grid-area: media;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
    grid-area: media;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card {
    min-height: 78px;
    padding: 8px 10px;
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card {
    min-height: 78px;
    padding: 8px 10px;
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card .resource-metric-chip {
    width: 100%;
    gap: 8px;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-self: stretch;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-self: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
    padding-inline: 20px;
}

:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions .button {
    width: auto;
    min-width: 180px;
    min-height: 52px;
    padding-inline: 20px;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "pending"
            "action";
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "pending"
            "action";
    }

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
        justify-self: center;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
        justify-self: center;
    }
}

@media (max-width: 760px) {

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
        flex-direction: column;
        align-items: stretch;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
        width: 100%;
    }

    :where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
        width: 100%;
    }
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > .daily-gift-reward {
    display: flex;
    min-height: 64px;
    padding: 8px 10px;
    align-items: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
    padding: 16px;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
    padding: 16px;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > :is(.city-job-shop-cost, .city-job-shop-value) {
    grid-area: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row > :is(.city-job-shop-cost, .city-job-shop-value) {
    grid-area: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-meta {
    grid-area: head;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-meta {
    grid-area: head;
}

.game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward:is(.city-job-shop-cost, .city-job-shop-value) {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-team-member-upgrades) .city-job-shop-card .daily-gift-reward:is(.city-job-shop-cost, .city-job-shop-value) {
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    padding: 16px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    padding: 16px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    padding: 16px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) {
    grid-template-columns: var(--structured-action-image-size) minmax(0, 1fr);
    grid-template-areas: "image body";
    padding: 16px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) > .upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) > .upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .garage-shop-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .garage-shop-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .garage-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .garage-shop-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .structured-action-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card.structured-action-card:not(.garage-fragment-card) .structured-action-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card > .upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card > .upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-quantity-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-quantity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 78px;
    padding: 8px 10px;
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 78px;
    padding: 8px 10px;
    border-color: var(--selected-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-progress-card .meter {
    height: 8px;
    width: 100%;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-progress-card .meter {
    height: 8px;
    width: 100%;
    margin: 0;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-cost-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-content: center;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-cost-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-content: center;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-cost-card .meter {
    height: 8px;
    width: 100%;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .garage-fragment-cost-card .meter {
    height: 8px;
    width: 100%;
    margin: 0;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions > .garage-fragment-progress-card {
    margin-right: auto;
    width: min(360px, 100%);
    min-width: 260px;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions > .garage-fragment-progress-card {
    margin-right: auto;
    width: min(360px, 100%);
    min-width: 260px;
}

.game-shell:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card.structured-action-card .structured-action-card-actions > form {
    width: auto;
    min-width: 180px;
    margin: 0;
}

@media (max-width: 1180px) {

    .game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: 1fr;
    }

    .game-shell:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .city-job-shop-quantity-row {
        grid-template-columns: 1fr;
    }
}
}/* Source: public/css/source/pages/tours/game-overrides.css */

@layer legacy {/* tours: game-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 900px) {

    :where(.ui-page-tours) .tour-job-row.has-tour-image {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-grid .tour-fuel-stat-box {
    min-height: 70px;
    padding: 12px 14px;
    gap: 6px;
    border-radius: 14px;
    background: rgba(255, 251, 246, 0.94);
    box-shadow: none;
}

.game-shell:where(.ui-page-tours) .tour-row-section {
    min-height: 70px;
    padding: 12px 14px;
    gap: 6px;
    border-radius: 14px;
    background: rgba(255, 251, 246, 0.94);
    box-shadow: none;
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-box > span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-box > strong {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-tours) .tour-row-stats {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-tours) .tour-row-stats span {
    font-size: var(--stat-box-font-size);
    line-height: 1.12;
    letter-spacing: 0;
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-box > span {
    color: var(--muted);
    font-weight: 500;
    text-transform: none;
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-box > strong {
    color: var(--text);
    font-weight: 800;
}

.game-shell:where(.ui-page-tours) .tour-row-stats span {
    color: var(--text);
    font-weight: 800;
}

.game-shell:where(.ui-page-tours) .tour-row-section:is(.is-requirements, .is-required-fans) {
    min-height: 70px;
}

.game-shell:where(.ui-page-tours) .tour-row-requirements {
    display: grid;
    gap: 6px;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section {
    align-content: start;
    min-height: 64px;
    padding: 8px 10px;
    gap: 5px;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section:is(.is-completions, .is-cost, .is-requirements, .is-required-fans) {
    align-content: center;
    grid-template-rows: auto;
    min-height: 68px;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section.is-cost {
    grid-template-rows: auto;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip {
    padding: 10px 12px;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-rewards-strip .tour-resource-lines {
    gap: 6px 8px;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section:is(.is-cost, .is-requirements) .tour-resource-lines {
    align-self: center;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section:is(.is-completions, .is-cost, .is-requirements, .is-required-fans) .resource-metric-chip {
    align-self: center;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-section > strong {
    margin: 0;
    padding: 0;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-stats {
    margin: 0;
    padding: 0;
}

.game-shell:where(.ui-page-tours) .tour-job-card--structured .tour-row-requirements {
    margin: 0;
    padding: 0;
}

.game-shell:where(.ui-page-tours) .tour-row-kicker {
    color: var(--muted);
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-tours) .tour-row-section > strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: var(--stat-box-font-size);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell:where(.ui-page-tours) .tour-job-image {
    box-shadow: none;
}

:where(.ui-page-tours) .tour-job-image {
    box-shadow: none;
}

.game-shell:where(.ui-page-tours) .tour-fuel-stat-grid .tour-fuel-stat-box {
    align-content: start;
    justify-content: stretch;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.9);
    box-sizing: border-box;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-tours) .garage-upgrade-inline-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .garage-upgrade-inline-job-card .job-time-progress {
    width: 100%;
    margin-top: 0;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    width: 100%;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    box-sizing: border-box;
    grid-area: job;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
    padding: 14px 16px;
    border-top: 1px solid rgba(var(--theme-border-rgb), 0.18);
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .job-time-progress {
    width: 100%;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .tour-inline-cooldown {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
    box-sizing: border-box;
}

:where(.ui-page-tours) .tour-inline-cooldown .job-time-progress {
    width: 100%;
    flex: none;
    margin: 0;
}

:where(.ui-page-tours) .tour-inline-cooldown .garage-upgrade-inline-job-card.is-hourglass {
    justify-items: stretch;
}

:where(.ui-page-tours) .tour-inline-cooldown .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-group {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .tour-inline-cooldown .garage-upgrade-inline-job-card.is-hourglass .hourglass-action-form {
    width: 100%;
    justify-content: center;
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-tours) .garage-upgrade-inline-job {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-tours) .tour-inline-cooldown {
    border-color: rgba(var(--action-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
    color: var(--theme-text, #9a641d);
    outline-color: var(--theme-outline-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 28px rgba(var(--theme-shadow-rgb), 0.12);
}

:where(.ui-page-tours) .garage-upgrade-inline-job .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-tours) .tour-inline-cooldown .job-time-progress .meter {
    background: rgba(var(--line-rgb), 0.22);
}

:where(.ui-page-tours) .tour-inline-cooldown .job-time-progress-percent {
    color: var(--theme-text, var(--muted));
}

:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-inline-job {
    grid-area: job;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.game-shell:where(.ui-page-tours) .tour-inline-cooldown.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-tours) .tour-inline-cooldown.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

.game-shell:where(.ui-page-tours) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}

:where(.ui-page-tours) .garage-infrastructure-inline-job.garage-upgrade-inline-job {
    background: linear-gradient(180deg, rgba(var(--action-rgb), 0.1), rgba(var(--action-rgb), 0.045));
}
}/* Source: public/css/source/shared/primitives/responsive-01.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

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

@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,
    html,
    body,
    html:has(.game-shell.app-scale-page),
    body:has(.game-shell.app-scale-page) {
        overflow-x: hidden;
    }
}
}/* Source: public/css/source/shared/navigation/responsive-01.css */

@layer base {/* Shared navigation; responsive.css. Order is registered in manifest.json. */

body.mobile-menu-open {
    overflow: hidden;
}
}/* Source: public/css/source/shared/shell/responsive-01.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-02.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .mobile-current-location {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 8px 10px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.36);
        border-radius: 12px;
        background: rgba(255, 248, 239, 0.72);
        color: var(--accent-2);
        font-size: 0.84rem;
        font-weight: 900;
        line-height: 1.1;
        overflow: hidden;
    }

    .game-shell.app-scale-page .mobile-current-location-item {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .game-shell.app-scale-page .mobile-current-location-separator {
        color: var(--muted);
        flex: 0 0 auto;
        font-weight: 900;
    }
}
}/* Source: public/css/source/shared/shell/responsive-02.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .header-stats {
        grid-column: 1 / -1;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page .header-stat {
        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;
    }
}
}/* Source: public/css/source/shared/navigation/responsive-02.css */

@layer base {/* Shared navigation; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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;
    }
}
}/* Source: public/css/source/shared/shell/responsive-03.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .topbar-lower {
        display: none;
    }
}
}/* Source: public/css/source/shared/navigation/responsive-03.css */

@layer base {/* Shared navigation; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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 {
        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-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: flex-start;
        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));
        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.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;
    }
}
}/* Source: public/css/source/shared/shell/responsive-04.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell .topbar-upper .guest-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: stretch;
        align-items: stretch;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-03.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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 > * {
        scroll-snap-align: start;
    }
}
}/* Source: public/css/source/shared/navigation/responsive-04.css */

@layer base {/* Shared navigation; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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;
    }
}
}/* Source: public/css/source/shared/shell/responsive-05.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page .page-scroll-actions {
        gap: 8px;
        z-index: 60;
    }

    .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 {
        grid-column: span 2;
    }

    .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;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-04.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page.app-compact-viewport :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%;
    }
}
}/* Source: public/css/source/shared/garage/responsive-01.css */

@layer base {/* Shared garage; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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
    ) {
        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
    ) > * {
        scroll-snap-align: start;
    }

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

    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-detail-tab,
    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs :where(a, button, label) {
        justify-content: flex-start;
    }

    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-detail-tab {
        position: relative;
        text-align: left;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-05.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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 :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 :where(.badge, .action-pill, .filter-pill, .pill) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.app-compact-viewport :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,
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    ),
    .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;
        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);
    }
}
}/* Source: public/css/source/shared/cars/responsive-01.css */

@layer base {/* Shared cars; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page :where(img, .car-visual, .upgrade-visual, .race-item-visual, .collection-part-visual) {
        max-width: 100%;
    }
}
}/* Source: public/css/source/shared/racing/responsive-01.css */

@layer base {/* Shared racing; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .race-pager-actions {
        -webkit-overflow-scrolling: touch;
    }

    .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-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
    ):where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        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;
        gap: 10px;
        padding: 12px;
        align-items: start;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-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-bars {
        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 {
        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 {
        z-index: 2;
    }

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

    .game-shell.app-scale-page.race-scale-page .race-accordion-toggle > .race-accordion-icon {
        z-index: 2;
    }

    .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 {
        align-items: start;
        gap: 10px;
        padding: 12px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-copy {
        grid-area: copy;
        gap: 3px;
    }
}
}/* Source: public/css/source/shared/shell/responsive-06.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .game-shell.app-scale-page .topbar {
        padding: 10px;
        border-radius: 14px;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-06.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .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%;
    }
}
}/* Source: public/css/source/shared/racing/responsive-02.css */

@layer base {/* Shared racing; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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) {
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-weather-cover {
        align-self: stretch;
        scroll-snap-align: 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
    ) {
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .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;
    }

    .game-shell.app-scale-page.race-scale-page :where(
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    ) {
        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 .opponent-summary-grid {
        padding-top: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-07.css */

@layer base {/* Shared primitives; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .car-panel-breakdown-card-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head-meta,
    .game-shell.app-scale-page.race-scale-page .race-summary-values > span,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-line {
        min-width: 0;
    }

    .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,
    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-main {
        min-width: 0;
    }
}

@media (max-width: 768px) {

    body.auth-background,
    body.public-landing-body.auth-background,
    body.app-background-dark {
        background-image: url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/shared/racing/responsive-03.css */

@layer base {/* Shared racing; responsive.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-bars {
        min-width: 0;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page :where(
    .race-panel-toolbar,
    .race-track-toolbar,
    .race-list-actions,
    .section-footer-pager
    ) {
        min-height: 0;
        height: auto;
        overflow-y: hidden;
        -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
    ) {
        flex: 0 0 auto;
        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
    ) > * {
        max-width: none;
        min-height: 34px;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats > .race-selected-summary-weather-cover {
        z-index: 1;
    }

    .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-pager {
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .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;
    }
}
}/* Source: public/css/source/shared/shell/responsive-07.css */

@layer base {/* Shared shell; responsive.css. Order is registered in manifest.json. */

@media (max-width: 768px) {

    body.app-background-light {
        background-image: url("/images-mob/background/bg-light.png");
    }
}
}/* Source: public/css/source/shared/authentication/responsive-01.css */

@layer base {/* Shared authentication; responsive.css. Order is registered in manifest.json. */

@media (max-width: 768px) {

    .not-found-hero {
        background-image: linear-gradient(90deg, rgba(36, 28, 21, 0.9), rgba(57, 39, 25, 0.62) 42%, rgba(246, 237, 225, 0.1)),
            url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/pages/auth-compatibility/responsive.css */

@layer base {/* auth-compatibility: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 768px) {

    :where(.ui-page-auth-compatibility) .info-hero-panel {
        background-image: linear-gradient(90deg, rgba(255, 251, 246, 0.98), rgba(255, 251, 246, 0.86)),
            url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/pages/auth-info/responsive.css */

@layer base {/* auth-info: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 768px) {

    :where(.ui-page-auth-info) .info-hero-panel {
        background-image: linear-gradient(90deg, rgba(255, 251, 246, 0.98), rgba(255, 251, 246, 0.86)),
            url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/pages/errors-419/responsive.css */

@layer base {/* errors-419: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 768px) {

    :where(.ui-page-errors-419) .session-expired-hero {
        background-image: linear-gradient(90deg, rgba(36, 28, 21, 0.92), rgba(70, 45, 26, 0.66) 43%, rgba(246, 237, 225, 0.12)),
            url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/pages/legal-show/responsive.css */

@layer base {/* legal-show: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 768px) {

    :where(.ui-page-legal-show) .legal-hero-panel {
        background-image: linear-gradient(90deg, rgba(255, 251, 246, 0.98), rgba(255, 251, 246, 0.9)),
            url("/images-mob/background/bg-race.png");
    }
}
}/* Source: public/css/source/pages/race/responsive.css */

@layer base {/* race: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page:where(.ui-page-race) .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:where(.ui-page-race) .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:where(.ui-page-race) .race-index-hero-actions .race-active-car-switcher form {
        display: flex;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-race) .race-index-hero-actions .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:where(.ui-page-race) .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:where(.ui-page-race) .race-index-hero-actions .button .button-action-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .game-shell.app-scale-page:where(.ui-page-race) .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:where(.ui-page-race) .race-index-hero-actions .race-active-car-switch-button span:last-child {
        overflow-wrap: normal;
        word-break: normal;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card-head-meta {
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values > span {
        min-width: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
        gap: 8px 10px;
        align-items: start;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-single-info strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-single-info p {
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-single-media {
        min-width: 0;
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .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:where(.ui-page-race) .opponent-single-actions-row .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:where(.ui-page-race) .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:where(.ui-page-race) .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:where(.ui-page-race) .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:where(.ui-page-race) .opponent-accordion-icon {
        z-index: 2;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-card-meta {
        margin-right: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-content .opponent-summary-grid {
        padding-top: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values > span > span {
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-list-filters {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .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:where(.ui-page-race) .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:where(.ui-page-race) .race-list-filters .race-open-only-toggle::before {
        width: 38px;
        height: 22px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-list-filters .race-open-only-toggle.is-active::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:where(.ui-page-race) .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:where(.ui-page-race) .opponent-card-bottom.opponent-single-actions-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-index-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-index-hero-actions .race-active-car-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-index-hero-actions .button {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.82rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-index-hero-actions .race-active-car-switch-button {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.82rem;
    }
}
}/* Source: public/css/source/pages/race-multi-index/responsive.css */

@layer base {/* race-multi-index: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head-meta {
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values > span {
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
        gap: 8px 10px;
        align-items: start;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .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:where(.ui-page-race-multi-index) .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:where(.ui-page-race-multi-index) .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:where(.ui-page-race-multi-index) .opponent-accordion-icon {
        z-index: 2;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-content {
        padding: 10px 10px 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-card-meta {
        margin-right: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-grid {
        padding-top: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values > span > span {
        min-width: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-filters {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .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:where(.ui-page-race-multi-index) .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:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle::before {
        width: 38px;
        height: 22px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-filters .race-open-only-toggle.is-active::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:where(.ui-page-race-multi-index) .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));
    }
}
}/* Source: public/css/source/pages/race-multi-preview/responsive.css */

@layer base {/* race-multi-preview: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-accordion .race-section-head > div:first-child {
        padding-right: 42px;
    }
}
}/* Source: public/css/source/pages/race-preview/responsive.css */

@layer base {/* race-preview: responsive.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-options-accordion .race-section-head > div:first-child {
        padding-right: 42px;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-01.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell.app-compact-viewport :where(
    .ui-row-card,
    .structured-action-card,
    .catalog-card,
    .panel,
    .profile-card,
    .garage-contract-card,
    .team-sponsor-card
    ) :where(
    .badge:not(.nav-badge):not(.garage-tab-badge):not(.mobile-menu-admin-badge),
    .garage-detail-status-pill,
    .is-status-pill
    ) {
        box-sizing: border-box;
        display: inline-flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        justify-self: stretch;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.game-shell :is(
    .stats-grid,
    .stats-strip,
    .profile-stats-grid,
    .public-profile-strip-stats,
    .profile-public-stat-grid,
    .profile-week-stat-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .dealership-summary-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .home-race-stats-summary,
    .home-race-summary-grid,
    .unlock-roadmap-summary,
    .team-summary-grid,
    .team-upgrade-overview-grid,
    .team-repair-summary-grid,
    .team-leaderboard-stats,
    .garage-car-progress-grid,
    .garage-job-meta,
    .garage-summary-actions,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .friend-manage-stats,
    .gift-choice-grid,
    .reward-pending-meta,
    .reward-recent-meta,
    .reward-bulk-buttons,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .opponent-summary-grid,
    .opponent-car-summary-grid,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell :is(
    .stats-grid,
    .stats-strip,
    .profile-stats-grid,
    .public-profile-strip-stats,
    .profile-public-stat-grid,
    .profile-week-stat-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .dealership-summary-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .home-race-stats-summary,
    .home-race-summary-grid,
    .unlock-roadmap-summary,
    .team-summary-grid,
    .team-upgrade-overview-grid,
    .team-repair-summary-grid,
    .team-leaderboard-stats,
    .garage-car-progress-grid,
    .garage-job-meta,
    .garage-summary-actions,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .friend-manage-stats,
    .gift-choice-grid,
    .reward-pending-meta,
    .reward-recent-meta,
    .reward-bulk-buttons,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .opponent-summary-grid,
    .opponent-car-summary-grid,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) > * {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

.game-shell.app-scale-page .job-time-progress .meter,
.game-shell .job-time-progress .meter,
.job-time-progress .meter {
    height: 10px;
    min-height: 10px;
}

@media (max-width: 760px) {

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

    .game-shell .legal-tabs,
    .game-shell .support-tabs {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        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-inline: var(--mobile-scroll-cue-size) solid transparent;
        padding-inline: 4px;
        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 .legal-tabs > *,
    .game-shell .support-tabs > * {
        flex: 0 0 auto;
    }
}
}/* Source: public/css/source/shared/resources/responsive-overrides-01.css */

@layer legacy {/* Shared resources; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell.app-compact-viewport :is(div, section, ul, dl):has(> :is(
    .resource-metric-chip,
    .dealership-summary-card,
    .profile-stat-card,
    .stat-value-card,
    .resource-preview-item,
    .race-preview-stat-card,
    .race-item-stat-card,
    .race-mode-stat-box,
    .race-track-stat-box,
    .team-upgrade-stat-card,
    .team-member-upgrade-stat-card,
    .daily-gift-reward,
    .cup-reward
    )) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport :is(div, section, ul, dl):has(> :is(
    .resource-metric-chip,
    .dealership-summary-card,
    .profile-stat-card,
    .stat-value-card,
    .resource-preview-item,
    .race-preview-stat-card,
    .race-item-stat-card,
    .race-mode-stat-box,
    .race-track-stat-box,
    .team-upgrade-stat-card,
    .team-member-upgrade-stat-card,
    .daily-gift-reward,
    .cup-reward
    )) > * {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/shared/teams/responsive-overrides-01.css */

@layer legacy {/* Shared teams; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell :is(
    .team-upgrade-grid.is-row-layout .team-upgrade-image,
    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual,
    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual,
    .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large
    ) img,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-grid.is-row-layout .team-upgrade-image,
    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual,
    .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual,
    .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large
    ) img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    body.game-shell :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-head,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        justify-items: start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-head > span:first-child,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-head > span:first-child {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        text-align: left;
    }

    body.game-shell :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .upgrade-stars,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .upgrade-stars {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    body.game-shell :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-foot,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-foot {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-foot > strong,
    body.game-shell.app-compact-viewport :is(
    .team-upgrade-progress,
    .team-member-upgrade-progress,
    .garage-upgrade-card--available > .garage-upgrade-progress,
    .garage-infrastructure-progress
    ) .garage-upgrade-progress-foot > strong {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .game-shell.app-scale-page.app-compact-viewport :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;
    }
}
}/* Source: public/css/source/shared/garage/responsive-overrides-01.css */

@layer legacy {/* Shared garage; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "head"
            "offers"
            "progress"
            "job"
            "actions"
            "lock";
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px;
        overflow: hidden;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual {
        grid-area: image;
        justify-self: center;
        width: 100%;
        max-width: var(--upgrade-visual-frame-size, 200px);
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        margin: 0;
        padding: 10px;
        border: 4px solid rgba(var(--theme-border-rgb), 0.38);
        border-radius: 18px;
        background: rgba(255, 249, 240, 0.94);
        overflow: hidden;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual img,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-visual img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        border-radius: 10px;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-items: start;
        align-items: start;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        text-align: left;
        border-radius: 14px;
        box-sizing: border-box;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge :is(span, strong),
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge :is(span, strong) {
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-offer-grid {
        grid-area: offers;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .garage-infrastructure-quantity-row,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid > .garage-infrastructure-quantity-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid .resource-preview-item,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-offer-grid .resource-preview-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-progress,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-progress {
        grid-area: progress;
        margin: 0;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-inline-job,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-infrastructure-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "head"
            "offers"
            "progress"
            "job"
            "actions";
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px;
        overflow: hidden;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > *,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual {
        grid-area: image;
        justify-self: center;
        width: 100%;
        max-width: var(--upgrade-visual-frame-size, 200px);
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 10px;
        border: 4px solid rgba(var(--theme-border-rgb), 0.38);
        margin: 0;
        border-radius: 18px;
        background: rgba(255, 249, 240, 0.94);
        overflow: hidden;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual img,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .upgrade-visual img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: contain;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-card-head {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    body.game-shell .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress,
    body.game-shell.app-compact-viewport .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-progress {
        grid-area: progress;
        margin: 0;
    }

    .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;
        flex-wrap: nowrap;
    }

    .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;
    }
}
}/* Source: public/css/source/shared/shell/responsive-overrides-01.css */

@layer legacy {/* Shared shell; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell .topbar-upper .guest-actions {
        display: grid;
    }

    .game-shell.app-scale-page .page-scroll-actions {
        top: auto;
        right: max(10px, calc(env(safe-area-inset-right) + 10px));
        bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
        transform: none;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-02.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport :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;
        grid-template-areas: none;
    }

    .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;
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        background-image: none;
        border-inline: 0;
        padding-inline: 0;
        box-shadow: none;
    }
}
}/* Source: public/css/source/shared/activities/responsive-overrides-01.css */

@layer legacy {/* Shared activities; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport :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;
    }
}
}/* Source: public/css/source/shared/home-notifications/responsive-overrides-01.css */

@layer legacy {/* Shared home-notifications; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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);
    }

    .game-shell.app-scale-page.app-compact-viewport .home-pinned-notice,
    .game-shell.app-scale-page .app-compact-viewport .home-pinned-notice {
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-01.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .race-pager {
        justify-items: start;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        background-image: none;
        border-inline: 0;
        padding: 0;
        scroll-padding-inline: 0;
        box-shadow: none;
    }

    .game-shell.app-scale-page .race-pager:where(:not(.race-track-toolbar, .race-track-toolbar-side, .race-track-pager, .race-track-maps-button)) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
    }

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

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

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

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

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

    .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;
        place-items: center;
        flex: 0 0 30px;
        width: 30px;
        min-width: 30px;
        padding: 0;
        border-radius: 10px;
        gap: 0;
        white-space: nowrap;
    }

    .game-shell.app-scale-page .race-pager-actions > .race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page .race-pager-actions > a.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page .race-pager-actions > span.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page .race-pager-number:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 30px;
        min-height: 30px;
    }

    .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;
        width: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .game-shell.app-scale-page .race-pager-actions > .race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page .race-pager-actions > a.race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page .race-pager-actions > span.race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)) {
        height: 1px;
    }

    .game-shell.app-scale-page .race-pager-icon,
    .game-shell.app-scale-page .race-pager-icon svg {
        width: 13px;
        height: 13px;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-03.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .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;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .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%;
        min-width: 0;
        margin-left: 0;
    }

    .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%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .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;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-02.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .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%;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
}
}/* Source: public/css/source/shared/garage/responsive-overrides-02.css */

@layer legacy {/* Shared garage; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .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%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

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

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

    .game-shell.app-scale-page .garage-upgrade-guide-table th,
    .game-shell.app-scale-page .garage-upgrade-guide-table td {
        padding: 8px 10px;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
        font-size: 0.86rem;
        line-height: 1.18;
    }
}
}/* Source: public/css/source/shared/home-notifications/responsive-overrides-02.css */

@layer legacy {/* Shared home-notifications; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page .notifications-summary-badges {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .game-shell.app-scale-page .notifications-summary-badge {
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        text-align: center;
    }

    .game-shell.app-scale-page .announcement-show-content.has-media {
        justify-items: center;
    }

    .game-shell.app-scale-page .announcement-show-media.upgrade-visual-frame-large {
        justify-self: center;
        margin-inline: auto;
    }
}
}/* Source: public/css/source/shared/garage/responsive-overrides-03.css */

@layer legacy {/* Shared garage; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .upgrade-stars {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
    }

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

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

    .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;
        max-width: 100%;
        min-width: 0;
        min-height: 72px;
        margin: 0;
        padding: 10px 12px;
    }

    .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;
        grid-row: auto;
        min-height: 72px;
    }

    .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;
    }

    .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;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card .garage-infrastructure-current-time-badge {
        display: grid;
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: stretch;
        justify-items: start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        border-radius: 14px;
        text-align: left;
    }

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

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

    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-detail-tab,
    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs :where(a, button, label) {
        white-space: normal;
    }

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

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

    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-active-jobs-toggle {
        margin-left: 0;
        justify-content: flex-start;
        gap: 10px;
    }
}
}/* Source: public/css/source/shared/shell/responsive-overrides-02.css */

@layer legacy {/* Shared shell; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport :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,
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    ) {
        overflow-x: scroll;
        overflow-y: auto;
        scrollbar-gutter: stable;
        scrollbar-width: auto;
        scrollbar-color: rgba(var(--action-rgb), 0.58) rgba(47, 37, 30, 0.12);
        -webkit-overflow-scrolling: touch;
        padding-inline: 4px;
        padding-bottom: 16px;
    }
}
}/* Source: public/css/source/shared/home-notifications/responsive-overrides-03.css */

@layer legacy {/* Shared home-notifications; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar {
        display: block;
        height: 14px;
    }

    .game-shell.app-scale-page.app-compact-viewport :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar-track {
        border-radius: 999px;
        background: rgba(47, 37, 30, 0.12);
    }

    .game-shell.app-scale-page.app-compact-viewport :where(
    .home-race-table-scroll,
    .garage-upgrade-guide-table-wrap,
    .race-multi-lineup-format-table-wrap,
    .opponent-summary-format-table-wrap
    )::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(var(--action-rgb), 0.58);
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-03.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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
    ) {
        padding-inline: 4px;
    }
}
}/* Source: public/css/source/shared/shell/responsive-overrides-03.css */

@layer legacy {/* Shared shell; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .header-stats {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
        scrollbar-width: none;
        background-image: none;
        border-inline: 0;
        box-shadow: 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;
        min-width: 0;
        min-height: 62px;
        padding: 8px;
        scroll-snap-align: none;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-04.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 560px) {

    .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;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-04.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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;
        gap: 0;
    }

    .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
    ):where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary {
        position: relative;
    }

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

    .game-shell.app-scale-page.race-scale-page .race-accordion-toggle {
        grid-template-columns: minmax(0, 1fr) 38px;
        position: relative;
    }

    .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;
    }

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

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

    .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) {
        justify-self: stretch;
        justify-content: start;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score {
        border-radius: 10px;
        gap: 4px;
        justify-items: start;
        text-align: left;
        align-content: start;
    }

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

    .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-height: 0;
        padding: 10px 11px;
        border-radius: 10px;
        gap: 7px;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-05.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head,
    .game-shell.app-scale-page.race-scale-page .car-panel-breakdown-card-head {
        display: grid;
        align-items: start;
        gap: 7px;
    }

    .game-shell.app-scale-page.race-scale-page .race-summary-values,
    .game-shell.app-scale-page.race-scale-page .home-race-summary-lines {
        gap: 4px;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-05.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-summary-card-head-meta {
        justify-content: end;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-06.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .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;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-06.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page.race-scale-page .opponent-summary-grid {
        margin-right: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page .race-active-car-summary-main {
        grid-area: main;
    }

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

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

    .game-shell.app-scale-page.race-scale-page :where(
    .race-panel-toolbar,
    .race-track-toolbar,
    .race-list-actions,
    .section-footer-pager
    ) {
        flex-wrap: nowrap;
        align-items: center;
    }

    .game-shell.app-scale-page.race-scale-page :where(
    .race-panel-toolbar,
    .race-track-toolbar,
    .race-list-actions,
    .section-footer-pager
    ):where(:not(.race-track-toolbar, .race-track-toolbar-side, .race-track-pager, .race-track-maps-button)) {
        display: flex;
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page :where(
    .race-pager,
    .race-pager-actions,
    .race-track-nav-top,
    .race-track-toolbar-side
    ) {
        flex-wrap: nowrap;
        align-items: center;
    }

    .game-shell.app-scale-page.race-scale-page :where(
    .race-pager,
    .race-pager-actions,
    .race-track-nav-top,
    .race-track-toolbar-side
    ):where(:not(.race-track-toolbar, .race-track-toolbar-side, .race-track-pager, .race-track-maps-button)) {
        display: flex;
        gap: 6px;
        width: 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;
    }

    .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
    ) > *:where(:not(.race-track-toolbar, .race-track-toolbar-side, .race-track-pager, .race-track-maps-button)) {
        width: auto;
    }

    .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-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-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-summary-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-07.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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 {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-07.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .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,
    .game-shell.app-scale-page.race-scale-page .race-active-car-compact-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-stats > .race-selected-summary-weather-cover {
        position: absolute;
        top: 56px;
        right: 14px;
        grid-column: auto;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-08.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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 {
        width: 100%;
        max-width: 100%;
        scroll-snap-align: none;
    }

    .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);
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-08.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    .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: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .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;
        border-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0;
        box-shadow: none;
    }

    .game-shell.app-scale-page.race-scale-page .race-selected-summary-toggle-score span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
    .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:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
    .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;
        line-height: 1.15;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-09.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .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;
        padding: 9px 10px;
    }

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

    .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 [data-analysis-counts] {
        scroll-padding-inline: 0;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-09.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .game-shell.app-scale-page.race-scale-page .race-pager,
    .game-shell.app-scale-page.race-scale-page .race-pager-actions {
        height: auto;
        min-height: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-number-set {
        align-items: center;
        justify-content: flex-start;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager form,
    .game-shell.app-scale-page.race-scale-page .race-pager-button {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager form:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-button:where(:not(.race-track-toolbar .race-pager-button)) {
        min-height: 34px;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-count {
        width: auto;
        max-width: none;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-count {
        flex: 0 0 auto;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions {
        flex: 0 0 auto;
        overflow-x: visible;
        overflow-y: hidden;
    }

    .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;
        width: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button > span:not(.race-pager-icon):where(:not(.race-track-toolbar .race-pager-button)) {
        height: 1px;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-number {
        height: 36px;
        min-height: 36px;
    }

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

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

    .game-shell.app-scale-page.race-scale-page .race-section-head:has(.race-tab-count-controls) .race-pager {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-10.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts,
    .game-shell.app-scale-page.race-scale-page [data-analysis-counts] {
        overflow-x: visible;
        overflow-y: visible;
    }

    .game-shell.app-scale-page.race-scale-page .section-footer-pager > .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-10.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page .race-pager {
        align-items: start;
        justify-content: stretch;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        padding-bottom: 0;
        background-image: none;
        scrollbar-width: auto;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager:where(:not(.race-track-toolbar, .race-track-toolbar-side, .race-track-pager, .race-track-maps-button)) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
    }

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

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

    .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 {
        padding: 0;
        border-radius: 8px;
        gap: 0;
    }

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

    .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;
        overflow-x: visible;
        padding-bottom: 0;
        scrollbar-width: none;
        scroll-padding-inline: 0;
    }

    .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;
    }

    .game-shell.app-scale-page.race-scale-page .race-persistent-choice-toggle {
        width: auto;
        min-height: 38px;
        max-width: none;
        white-space: nowrap;
        font-size: 0.78rem;
    }

    .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 {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

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

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

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

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

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

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

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

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

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

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

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

    .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));
    }

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

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

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

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

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

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-accordion .race-multi-lineup-summary-stats .dealership-chip strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.1;
        font-size: 1rem;
    }

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

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

    .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 {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline: 0;
        -webkit-overflow-scrolling: touch;
    }

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

    .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%;
        max-width: 100%;
        min-height: 0;
        padding: 12px;
        border-radius: 10px;
    }

    .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;
    }

    .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;
        width: 30px;
        min-width: 30px;
    }

    .game-shell.app-scale-page.race-scale-page .race-pager-actions > .race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > a.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-actions > span.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)),
    .game-shell.app-scale-page.race-scale-page .race-pager-number:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 30px;
        min-height: 30px;
    }

    .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;
        height: 13px;
    }
}
}/* Source: public/css/source/shared/activities/responsive-overrides-02.css */

@layer legacy {/* Shared activities; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page .tour-job-card--structured:not(.has-tour-image) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/shared/teams/responsive-overrides-02.css */

@layer legacy {/* Shared teams; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

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

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

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

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

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

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

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

    .game-shell.app-scale-page .team-upgrade-grid.is-row-layout .team-upgrade-report-button {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        justify-self: stretch;
    }

    .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;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.14;
    }

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

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

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

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

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

    .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: auto;
    }

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

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

    .game-shell.app-scale-page .team-upgrade-head-actions,
    .game-shell.app-scale-page .team-upgrade-bulk-actions,
    .game-shell.app-scale-page .team-upgrade-bulk-form,
    .game-shell.app-scale-page .team-upgrade-bulk-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page .team-upgrade-head-actions {
        display: grid;
        justify-items: stretch;
        gap: 8px;
    }

    .game-shell.app-scale-page .team-upgrade-bulk-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

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

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

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

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

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

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

    .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%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .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 {
        display: none;
    }

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

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

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

    .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;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
}/* Source: public/css/source/shared/primitives/responsive-overrides-11.css */

@layer legacy {/* Shared primitives; responsive-overrides.css. Order is registered in manifest.json. */

@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 [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;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
        background-image: none;
        border-inline: 0;
        box-shadow: none;
        overflow: visible;
        scrollbar-width: none;
    }

    .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;
    }

    .game-shell.app-scale-page.race-scale-page .race-multi-lineup-analysis-counts .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);
        width: auto;
        min-width: 0;
        max-width: calc((100% - 24px) / 5);
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 12px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 0.88rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .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 [data-analysis-count-button] .button-action-icon {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .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;
    }

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

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

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

    body.game-shell.app-compact-viewport :is(
    .stats-grid,
    .profile-stats-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .car-panel-full-summary-grid,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-chance-grid,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-actions,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .structured-action-card-meta
    ) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport :is(
    .stats-grid,
    .profile-stats-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .car-panel-full-summary-grid,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-chance-grid,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-actions,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .structured-action-card-meta
    ) > * {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell :is(
    .stats-grid,
    .profile-stats-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .garage-car-progress-grid,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell :is(
    .stats-grid,
    .profile-stats-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .garage-car-progress-grid,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) > * {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell :is(
    .stats-grid,
    .stats-strip,
    .profile-stats-grid,
    .public-profile-strip-stats,
    .profile-public-stat-grid,
    .profile-week-stat-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .dealership-summary-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .home-race-stats-summary,
    .home-race-summary-grid,
    .unlock-roadmap-summary,
    .team-summary-grid,
    .team-upgrade-overview-grid,
    .team-repair-summary-grid,
    .team-leaderboard-stats,
    .garage-car-progress-grid,
    .garage-job-meta,
    .garage-summary-actions,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .opponent-summary-grid,
    .opponent-car-summary-grid,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell :is(
    .stats-grid,
    .stats-strip,
    .profile-stats-grid,
    .public-profile-strip-stats,
    .profile-public-stat-grid,
    .profile-week-stat-grid,
    .resource-preview-grid,
    .resource-metric-grid,
    .dealership-summary-grid,
    .car-panel-full-summary-grid,
    .home-active-summary-grid,
    .home-race-stats-summary,
    .home-race-summary-grid,
    .unlock-roadmap-summary,
    .team-summary-grid,
    .team-upgrade-overview-grid,
    .team-repair-summary-grid,
    .team-leaderboard-stats,
    .garage-car-progress-grid,
    .garage-job-meta,
    .garage-summary-actions,
    .garage-upgrade-offer-grid,
    .garage-upgrade-offer-row,
    .garage-infrastructure-offer-grid,
    .garage-infrastructure-quantity-row,
    .garage-upgrade-incoming-meta,
    .garage-catalog-upgrade-meta,
    .garage-history-stat-grid,
    .garage-condition-forecast-cards,
    .garage-mastery-stat-grid,
    .garage-mastery-next-grid,
    .garage-slot-roadmap-meta,
    .daily-gift-reward-list,
    .mission-reward-list,
    .achievement-row-rewards,
    .collection-bonus-stats,
    .collection-reward-line,
    .fan-club-offer-quantity-stack,
    .fan-club-offer-quantity-row,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards,
    .city-job-active-meta,
    .city-job-shop-meta,
    .city-job-shop-quantity-row,
    .garage-shop-meta,
    .garage-shop-actions,
    .garage-fragments-grid .daily-gift-reward-list,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-grid,
    .race-preview-stats,
    .race-options-summary-stats,
    .race-item-effects,
    .race-item-effect-summary,
    .race-directory-stats,
    .race-mode-stat-grid,
    .race-track-stat-grid,
    .race-active-car-summary-stats,
    .race-multi-lineup-summary-stats,
    .race-multi-preview-lineup-stats,
    .race-multi-preview-launch-grid,
    .opponent-card-meta,
    .opponent-summary-grid,
    .opponent-car-summary-grid,
    .team-upgrade-card > .stack,
    .team-upgrade-stat-grid,
    .team-member-upgrade-stat-grid,
    .team-member-upgrade-quantity-stack,
    .team-member-upgrade-quantity-row,
    .team-member-upgrade-chance-grid,
    .structured-action-card-meta
    ) > * {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/shared/racing/responsive-overrides-11.css */

@layer legacy {/* Shared racing; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 640px) {

    .game-shell .race-active-car-accordion .race-active-car-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
        padding: 10px 12px;
    }

    .game-shell .race-active-car-accordion .race-active-car-summary-main {
        grid-column: 1 / -1;
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        gap: 8px;
        padding: 9px;
        padding-right: 42px;
    }

    .game-shell .race-active-car-summary-card-head {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        gap: 7px;
    }

    .game-shell .race-active-car-summary-card-topline {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 6px;
    }

    .game-shell .race-active-car-summary-card-head .race-active-car-summary-card-category {
        display: block;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell .race-active-car-summary-card-head strong {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell .race-active-car-status-pills {
        justify-content: flex-start;
        margin-left: 0;
    }

    .game-shell .race-active-car-status-pills .lineup-mini-status,
    .game-shell .race-active-car-status-pills .repair-status-badge {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 0.7rem;
    }

    .game-shell .race-active-car-summary-card-body {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        width: 100%;
    }

    .game-shell .race-active-car-summary-visual-frame {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .game-shell .race-active-car-accordion .race-active-car-summary-visual.car-visual {
        width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
    }

    .game-shell .race-active-car-accordion .race-accordion-icon {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        z-index: 2;
    }
}
}/* Source: public/css/source/shared/activities/responsive-overrides-03.css */

@layer legacy {/* Shared activities; responsive-overrides.css. Order is registered in manifest.json. */

.game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-card--structured:not(.has-tour-image) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}
}/* Source: public/css/source/shared/teams/responsive-overrides-03.css */

@layer legacy {/* Shared teams; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

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

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card > *,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-card > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-image,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-image {
        grid-area: image;
        justify-self: stretch;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin: 0;
        border-radius: 12px;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-head,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-head {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        align-items: start;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card > p,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-card > p {
        grid-area: copy;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-progress,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-progress {
        grid-area: progress;
        margin: 0;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-pending,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-pending {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 8px 6px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-pending .job-time-progress,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-pending .job-time-progress {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack {
        grid-area: stats;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .team-upgrade-stat-card,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .team-upgrade-stat-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 8px 10px;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .resource-metric-chip,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-card > .stack .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-head :is(.eyebrow, h3),
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-head :is(.eyebrow, h3) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-report-button,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-report-button {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        justify-self: stretch;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-footer,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-footer {
        grid-area: footer;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "pending"
            "cost"
            "actions";
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-unlock-card,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-unlock-card {
        grid-area: cost;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-actions,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-actions form,
    body.game-shell .team-upgrade-grid.is-row-layout .team-upgrade-actions .button,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-actions form,
    body.game-shell.app-compact-viewport .team-upgrade-grid.is-row-layout .team-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/shared/resources/responsive-overrides-02.css */

@layer legacy {/* Shared resources; responsive-overrides.css. Order is registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell.app-compact-viewport :is(
    .resource-metric-chip,
    .dealership-summary-card,
    .profile-stat-card,
    .stat-value-card,
    .resource-preview-item,
    .race-preview-stat-card,
    .race-item-stat-card,
    .race-mode-stat-box,
    .race-track-stat-box,
    .race-directory-stats > div,
    .race-track-directory-meta-box,
    .race-item-effect,
    .team-upgrade-stat-card,
    .team-member-upgrade-stat-card,
    .daily-gift-reward,
    .cup-reward,
    .collection-ready-card,
    .collection-completed-card,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .garage-upgrade-unlock-card,
    .team-upgrade-unlock-card,
    .team-member-upgrade-unlock-card
    ) {
        box-sizing: border-box;
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    body.game-shell :is(
    .resource-metric-chip,
    .dealership-summary-card,
    .profile-stat-card,
    .stat-value-card,
    .resource-preview-item,
    .daily-gift-reward,
    .cup-reward,
    .collection-ready-card,
    .collection-completed-card,
    .garage-upgrade-offer-card,
    .garage-infrastructure-cost-card,
    .garage-upgrade-unlock-card,
    .team-upgrade-unlock-card,
    .team-member-upgrade-unlock-card,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-stat-card,
    .race-item-stat-card,
    .race-mode-stat-box,
    .race-track-stat-box,
    .race-directory-stats > div,
    .race-track-directory-meta-box,
    .race-item-effect,
    .team-upgrade-stat-card,
    .team-member-upgrade-stat-card
    ) {
        box-sizing: border-box;
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    body.game-shell :is(
    .resource-metric-chip,
    .dealership-summary-card,
    .profile-stat-card,
    .stat-value-card,
    .stats-strip > *,
    .unlock-roadmap-summary-card,
    .team-repair-summary-card,
    .team-kpi-card,
    .support-summary-card,
    .garage-job-meta-card,
    .home-race-summary-card,
    .opponent-summary-card,
    .opponent-car-stat-card,
    .resource-preview-item,
    .daily-gift-reward,
    .cup-reward,
    .collection-ready-card,
    .collection-completed-card,
    .garage-upgrade-offer-card,
    .garage-infrastructure-cost-card,
    .garage-upgrade-unlock-card,
    .team-upgrade-unlock-card,
    .team-member-upgrade-unlock-card,
    .garage-fragment-progress-card,
    .garage-fragment-cost-card,
    .race-preview-stat-card,
    .race-item-stat-card,
    .race-mode-stat-box,
    .race-track-stat-box,
    .race-directory-stats > div,
    .race-track-directory-meta-box,
    .race-item-effect,
    .team-upgrade-stat-card,
    .team-member-upgrade-stat-card
    ) {
        box-sizing: border-box;
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}
}/* Source: public/css/source/pages/announcements/responsive-overrides.css */

@layer legacy {/* announcements: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page:where(.ui-page-announcements) .flow-entry-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }
}
}/* Source: public/css/source/pages/announcements-show/responsive-overrides.css */

@layer legacy {/* announcements-show: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page:where(.ui-page-announcements-show) .flow-entry-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }
}
}/* Source: public/css/source/pages/city-jobs/responsive-overrides.css */

@layer legacy {/* city-jobs: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .garage-available-upgrades-panel .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-active-card .city-job-active-meta > :is(.daily-gift-status, .daily-gift-reward, form) {
        width: 100%;
        max-width: 100%;
        min-height: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > .city-job-list-visual {
        grid-area: image;
        justify-self: center;
        width: min(200px, 100%);
        max-width: 200px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

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

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

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

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:first-child {
        grid-area: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .daily-gift-reward-list .daily-gift-reward:last-child {
        grid-area: auto;
    }

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > form {
        grid-area: action;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > .button {
        grid-area: action;
        max-width: 100%;
        min-width: 0;
        margin-top: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card > .button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        text-align: center;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card {
        grid-template-areas: "image"
            "body";
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-body {
        grid-area: body;
        display: grid;
        grid-template-areas: "head"
            "copy"
            "meta"
            "actions";
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-meta {
        grid-area: meta;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-rewards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs {
        order: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-rewards {
        order: 2;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs > .city-job-cost-bundle {
        order: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs > .city-job-action-duration {
        order: 2;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row > :is(.daily-gift-reward, .daily-gift-status) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-cost-bundle {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-reward-bundle {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-action-duration {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-actions > form {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-actions > .button {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-actions .button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        text-align: center;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card h3 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card p {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        grid-area: copy;
        margin: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-value {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-cost {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 8px 10px;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions {
        grid-area: action;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions form {
        grid-area: auto;
        align-self: stretch;
        justify-self: stretch;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card .city-job-shop-actions .button {
        min-height: 44px;
        border-radius: 14px;
        gap: 6px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "body";
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-body {
        grid-area: body;
        display: grid;
        grid-template-areas: "head"
            "copy"
            "meta"
            "actions";
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-area: meta;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-city-jobs) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }
}

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .structured-action-card-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-rewards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs {
        order: 1;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-rewards {
        order: 2;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs > .city-job-cost-bundle {
        order: 1;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row-costs > .city-job-action-duration {
        order: 2;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row > :is(.daily-gift-reward, .daily-gift-status) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-cost-bundle {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-reward-bundle {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-action-duration {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card .city-job-meta-row .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head"
            "copy"
            "meta"
            "actions";
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-stack {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        order: 1;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        order: 2;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs > .city-job-cost-bundle {
        order: 1;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs > .city-job-action-duration {
        order: 2;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward) {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-cost-bundle {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-reward-bundle {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-duration {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head"
        "copy"
        "meta"
        "actions";
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .structured-action-card-meta {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-stack {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs {
        order: 1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-rewards {
        order: 2;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs > .city-job-cost-bundle {
        order: 1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row-costs > .city-job-action-duration {
        order: 2;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > :is(.daily-gift-status, .daily-gift-reward) {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-cost-bundle {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-reward-bundle {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-action-duration {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        align-items: center;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card :is(
    .structured-action-card-meta,
    .city-job-meta-stack,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards
    ) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card :is(
    .structured-action-card-meta,
    .city-job-meta-stack,
    .city-job-meta-row,
    .city-job-meta-row-costs,
    .city-job-meta-row-rewards
    ) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-city-jobs) .city-job-grid.is-row-layout .city-job-card.structured-action-card .city-job-meta-row > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
    }
}
}/* Source: public/css/source/pages/cups/responsive-overrides.css */

@layer legacy {/* cups: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 560px) {

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

    .game-shell.app-scale-page:where(.ui-page-cups) .cup-summary-strip > .cup-stat-box {
        width: auto;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-cups) .cup-summary-strip > .cup-stat-box:first-child {
        grid-column: 1 / -1;
    }
}
}/* Source: public/css/source/pages/dealership/responsive-overrides.css */

@layer legacy {/* dealership: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 560px) {

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

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

    .game-shell.app-scale-page:where(.ui-page-dealership) .dealership-catalog .dealership-mini-stats > div {
        width: auto;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-dealership) .dealership-preview-catalog .dealership-mini-stats > div {
        width: auto;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }
}
}/* Source: public/css/source/pages/fan-club/responsive-overrides.css */

@layer legacy {/* fan-club: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page:where(.ui-page-fan-club) .team-summary-grid.is-team-dashboard > * {
        grid-column: auto;
        grid-row: auto;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-fan-club) .team-summary-grid.is-team-dashboard > .team-kpi-card:nth-child(5) {
        grid-column: 1 / -1;
    }
}
}/* Source: public/css/source/pages/flow/responsive-overrides.css */

@layer legacy {/* flow: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

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

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-right: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero-copy .eyebrow {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero-copy h1 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero-copy p {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero .resources-lead {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-hero-copy h1 {
        font-size: 1.28rem;
        line-height: 1.12;
    }

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

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-entry-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-entry-side {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
        min-width: 0;
        max-width: 100%;
        text-align: left;
    }

    .game-shell.app-scale-page:where(.ui-page-flow) .flow-entry-badge {
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        justify-self: start;
        text-align: center;
    }
}
}/* Source: public/css/source/pages/garage/responsive-overrides.css */

@layer legacy {/* garage: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .home-active-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(7) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(12) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-display-order-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-display-order-actions form {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-display-order-actions .garage-order-button {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-panel {
        gap: 12px;
        padding: 14px;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-head > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-head h1 {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-head .muted {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-actions p {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-panel .garage-next-slot-box > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-panel .garage-next-slot-box form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-summary-panel .garage-unlock-slot-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .garage-available-upgrades-panel .garage-jobs-title-row > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage) .garage-available-upgrades-panel .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-jobs-title-row:has(+ .stack .tour-job-row) .panel-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage) .city-jobs-tab-panel .garage-jobs-title-row > div:first-child {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "body";
        gap: 12px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "body";
        gap: 12px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card > .upgrade-visual {
        grid-area: image;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin: 0;
        padding: 8px;
        border-radius: 14px;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card > .upgrade-visual {
        grid-area: image;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin: 0;
        padding: 8px;
        border-radius: 14px;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card > .upgrade-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card > .upgrade-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-body {
        grid-area: body;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-content: start;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-body {
        grid-area: body;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-content: start;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-head {
        display: grid;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: left;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-head {
        display: grid;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: left;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-head :where(strong, p) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-head :where(strong, p) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta::before {
        content: none;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta::before {
        content: none;
    }

    body.game-shell:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta > * {
        grid-column: 1 / -1;
        grid-row: auto;
        order: initial;
        flex: initial;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
    .garage-index-upgrade-card--catalog-available,
    .garage-index-upgrade-card--catalog-upcoming
    ).structured-action-card .garage-catalog-upgrade-meta > * {
        grid-column: 1 / -1;
        grid-row: auto;
        order: initial;
        flex: initial;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
    }
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "image"
        "body";
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card > .upgrade-visual {
    grid-area: image;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card > .upgrade-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-content: start;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-head {
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-head :where(strong, p) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-meta::before {
    content: none;
}

.game-shell.app-scale-page:where(.ui-page-garage) .garage-index-upgrade-grid.is-row-layout :is(
.garage-index-upgrade-card--catalog-available,
.garage-index-upgrade-card--catalog-upcoming
).structured-action-card .garage-catalog-upgrade-meta > * {
    grid-column: 1 / -1;
    grid-row: auto;
    order: initial;
    flex: initial;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 8px 10px;
}
}/* Source: public/css/source/pages/garage-appearance/responsive-overrides.css */

@layer legacy {/* garage-appearance: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-appearance) .car-appearance-hero-pills {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        justify-content: stretch;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-appearance) .car-appearance-hero-pills .scene-theme-current-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
}
}/* Source: public/css/source/pages/garage-contracts/responsive-overrides.css */

@layer legacy {/* garage-contracts: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell.app-compact-viewport:where(.ui-page-garage-contracts) .garage-contract-head-badges > :where(
    .badge,
    .garage-contract-minimum-races-badge
    ) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        justify-self: stretch;
        text-align: center;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-contracts) .team-sponsor-grid.garage-contract-grid.is-row-layout .garage-contract-card > .team-sponsor-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell.app-scale-page:where(.ui-page-garage-contracts) .garage-contract-head-badges {
        justify-content: stretch;
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-contracts) .garage-contract-minimum-races-badge {
        width: 100%;
        min-width: 0;
        justify-items: center;
        text-align: center;
    }
}
}/* Source: public/css/source/pages/garage-infrastructure/responsive-overrides.css */

@layer legacy {/* garage-infrastructure: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) {
        grid-area: offers;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) {
        grid-area: offers;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .garage-upgrade-unlock-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        justify-self: stretch;
        position: static;
        transform: none;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .garage-upgrade-unlock-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        justify-self: stretch;
        position: static;
        transform: none;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-stack {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card summary {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card {
        overflow: hidden;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-visual {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .team-upgrade-image {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-title-row strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-guide-card .upgrade-title-row small {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) [data-star-guide] .upgrade-star-cycle-tabs > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: initial;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-panel {
        gap: 12px;
        padding: 14px;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-head > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-head h1 {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-head .muted {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-summary-actions p {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-balance-head > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-jobs-title-row > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-bulk-actions {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-bulk-form {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-bulk-button {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-bulk-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-balance-actions > .garage-detail-status-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div {
        display: contents;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > strong {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > p {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta > .badge {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta {
        display: contents;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .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;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .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;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > strong {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > p {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-jobs-title-row:has(+ .stack .tour-job-row) .panel-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .garage-jobs-title-row:has(+ .stack .tour-job-row) .race-pager {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .city-jobs-tab-panel .garage-jobs-title-row > div:first-child {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-infrastructure) .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }
}
}/* Source: public/css/source/pages/garage-show/responsive-overrides.css */

@layer legacy {/* garage-show: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) {
        grid-area: offers;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) {
        grid-area: offers;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(.garage-infrastructure-offer-grid) > .garage-upgrade-offer-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(:where(.garage-infrastructure-offer-grid)) > .garage-upgrade-offer-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(:where(.garage-infrastructure-offer-grid)) .garage-upgrade-offer-row > .resource-preview-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) :where(.garage-available-upgrades-panel) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-offer-grid:not(:where(.garage-infrastructure-offer-grid)) .garage-upgrade-offer-row > .resource-preview-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .garage-upgrade-unlock-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        justify-self: stretch;
        position: static;
        transform: none;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .garage-upgrade-unlock-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        justify-self: stretch;
        position: static;
        transform: none;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6) {
        grid-column: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11) {
        grid-column: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(7) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(12) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-stack {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card summary {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel {
        overflow: hidden;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card {
        overflow: hidden;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-panel > .panel-title-row .badge {
        justify-self: start;
        margin-left: 0;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-visual {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .team-upgrade-image {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-title-row strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-title-row small {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-guide-bonus-label {
        display: block;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-guide-bonus-stats {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        overflow-wrap: normal;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-guide-card .upgrade-guide-bonus-stats::-webkit-scrollbar {
        display: none;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) [data-star-guide] .upgrade-star-cycle-tabs > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: initial;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-detail-head-buttons .garage-detail-car-nav-actions {
        display: flex;
        flex-flow: row wrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-detail-head-buttons .garage-detail-car-nav-actions > .button:only-child {
        grid-column: 1 / -1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-detail-head-buttons .garage-detail-car-nav-actions > .button {
        flex: 1 1 160px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

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

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-balance-head > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-jobs-title-row > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-bulk-form {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-bulk-button {
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-balance-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-balance-actions > .garage-detail-status-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-repair-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-repair-panel .garage-panel-pill-stack .badge {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-panel {
        gap: 12px;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-panel > .panel-title-row .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-stat-grid .profile-stat-card span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-stat-grid .profile-stat-card strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-stat-grid .profile-stat-card span {
        font-size: 1rem;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card {
        min-width: 0;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card p {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card span {
        font-size: 1rem;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-card strong {
        font-size: 1rem;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-row .car-visual {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 72px;
        max-width: 72px;
        min-width: 0;
        aspect-ratio: 1 / 1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-row .ui-row-media {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 72px;
        max-width: 72px;
        min-width: 0;
        aspect-ratio: 1 / 1;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-row > small {
        grid-column: 1 / -1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-history-stats {
        font-size: 0.92rem;
        white-space: normal;
    }

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

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

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

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card {
        width: auto;
        max-width: 100%;
        min-width: 0;
        min-height: 72px;
        padding: 10px 12px;
        overflow: hidden;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-stat-grid .profile-stat-card strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-next-grid .profile-stat-card span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.1;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-next-grid .profile-stat-card strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.1;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-panel .garage-mastery-next-panel > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle {
        position: relative;
        display: block;
        min-height: 0;
        padding: 16px 16px 14px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-content {
        padding: 0 16px 16px;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-accordion-toggle .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-upgrade-guide-table-wrap {
        overflow-x: auto;
        overflow-y: auto;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-mastery-scale-panel .garage-upgrade-guide-table-wrap {
        box-sizing: border-box;
        width: min(100%, calc(100vw - 42px));
        max-width: min(100%, calc(100vw - 42px));
        min-width: 0;
        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;
        border-inline: var(--mobile-scroll-cue-size) solid transparent;
        padding-inline: 4px;
        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:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row {
        display: grid;
        grid-template-columns: minmax(118px, 140px) minmax(0, 1fr);
        grid-auto-rows: auto;
        align-items: start;
        gap: 8px 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div {
        display: contents;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > .garage-upgrade-title-copy > .garage-upgrade-progress {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-head {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .garage-upgrade-progress-foot {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > strong {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > p {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta > .badge {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card .upgrade-title-row > div > .upgrade-meta {
        display: contents;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .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;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .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;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > strong {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > p {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-jobs-title-row:has(+ .stack .tour-job-row) .panel-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-jobs-title-row:has(+ .stack .tour-job-row) .race-pager {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-show) .city-jobs-tab-panel .garage-jobs-title-row > div:first-child {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .garage-car-detail-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-show) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }
}
}/* Source: public/css/source/pages/garage-slots/responsive-overrides.css */

@layer legacy {/* garage-slots: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 10px;
        justify-items: stretch;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card-head > div {
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-card-head .badge {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-garage-slots) .garage-slot-roadmap-grid.is-row-layout .garage-slot-roadmap-visual {
        justify-self: center;
        margin-inline: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-panel {
        gap: 12px;
        padding: 14px;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-head > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-head h1 {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-head .muted {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-actions p {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-panel .garage-next-slot-box > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-panel .garage-next-slot-box form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-panel .garage-unlock-slot-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-garage-slots) .garage-summary-panel .garage-next-slot-box p {
        font-size: 0.9rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}
}/* Source: public/css/source/pages/home/responsive-overrides.css */

@layer legacy {/* home: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .home-active-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(6) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(7) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(11) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .home-active-summary-grid.car-panel-full-summary-grid > .dealership-summary-card:nth-child(12) {
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-home) .home-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }
}
}/* Source: public/css/source/pages/home-calendar/responsive-overrides.css */

@layer legacy {/* home-calendar: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell:where(.ui-page-home-calendar) .race-calendar-weekdays {
        display: none;
    }

    .game-shell:where(.ui-page-home-calendar) .race-calendar-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-shell:where(.ui-page-home-calendar) .race-calendar-day-name {
        display: inline;
    }

    .game-shell:where(.ui-page-home-calendar) .race-calendar-day {
        min-height: 104px;
    }
}
}/* Source: public/css/source/pages/home-unlocks/responsive-overrides.css */

@layer legacy {/* home-unlocks: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card {
        min-width: 0;
        min-height: 62px;
        padding: 9px 10px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card span {
        font-size: 1rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-summary-card strong {
        font-size: 1rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-list {
        gap: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas: "state main"
            "state status"
            "actions actions";
        align-items: start;
        gap: 8px 10px;
        padding: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-state {
        grid-area: state;
        align-self: center;
        justify-self: center;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-main {
        grid-area: main;
        display: grid;
        gap: 5px;
        min-width: 0;
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-title-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        align-items: start;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-title-line strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-title-line span {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-main p {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-title-line strong {
        font-size: 1rem;
        line-height: 1.14;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-title-line span {
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-main p {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.28;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-status {
        grid-area: status;
        min-width: 0;
        width: 100%;
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-status strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-status span {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-actions {
        grid-area: actions;
        display: flex;
        flex-flow: row wrap;
        gap: 8px;
        width: 100%;
        justify-content: stretch;
    }

    .game-shell.app-scale-page:where(.ui-page-home-unlocks) .unlock-roadmap-button {
        flex: 1 1 140px;
        width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: nowrap;
    }
}
}/* Source: public/css/source/pages/madness/responsive-overrides.css */

@layer legacy {/* madness: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

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

    .game-shell.app-scale-page:where(.ui-page-madness) .madness-tab-panel > .section-title-row:has(> .race-pager) :where(.eyebrow, .panel-title) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
}/* Source: public/css/source/pages/missions/responsive-overrides.css */

@layer legacy {/* missions: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page:where(.ui-page-missions) .mission-bulk-claim-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-missions) .mission-panel-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-missions) .mission-panel-actions .race-pager {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/profile-public/responsive-overrides.css */

@layer legacy {/* profile-public: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-overview-layout.hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-overview-layout > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-mini > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-showcase-summary > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-mini strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-mini span {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-showcase-summary h2 {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-showcase-summary .dealership-summary-card :where(span, strong) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-mini .car-visual {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
    }

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

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-panel .home-active-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-statistics-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-statistics-layout > .panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-statistics-layout > .panel > .stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-statistics-layout .profile-stat-card {
        min-width: 0;
        min-height: 64px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-public) .profile-statistics-layout .profile-stat-card :where(span, strong) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
}/* Source: public/css/source/pages/profile-show/responsive-overrides.css */

@layer legacy {/* profile-show: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-capacity-guide {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-capacity-guide > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-capacity-guide .garage-accordion-content {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-capacity-guide {
        overflow: hidden;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-background-preview {
        width: 72px;
        max-width: 72px;
        min-width: 0;
        border-radius: 7px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-background-option-body {
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-background-option-body strong {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-background-option-body span {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-background-option-form {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-overview-layout.hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-public-preview-frame {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-public-preview-heading > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-public-preview-frame > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-overview-layout > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-mini > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-showcase-summary > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-public-preview-heading h2 {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-mini strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-mini span {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-showcase-summary h2 {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-showcase-summary .dealership-summary-card :where(span, strong) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

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

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

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-mini .car-visual {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
    }

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-panel .home-active-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid .dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid {
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-active-car-panel .car-panel-full-summary-grid > .dealership-summary-card {
        min-height: 78px;
        padding: 9px 12px;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout > .panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout > .panel > .stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout .profile-stat-card {
        min-width: 0;
        min-height: 64px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout .profile-stat-card :where(span, strong) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-statistics-layout .profile-progress-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }

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

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

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

    .game-shell.app-scale-page:where(.ui-page-profile-show) .profile-progression-layout .garage-upgrade-guide-table :where(th, td):nth-child(3) {
        min-width: 96px;
        white-space: nowrap;
    }
}
}/* Source: public/css/source/pages/race/responsive-overrides.css */

@layer legacy {/* race: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card-head {
        display: grid;
        align-items: start;
        gap: 7px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card-head-meta {
        justify-content: end;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values {
        gap: 4px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values > span {
        display: grid;
        gap: 8px;
        align-items: start;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values b {
        justify-self: end;
        text-align: right;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-summary {
        padding: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-areas: "media info"
            "winrate winrate"
            "actions actions";
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-single-info {
        padding-right: 44px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-single-media {
        width: 82px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        align-self: auto;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-card > summary {
        position: relative;
        padding-right: 10px;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-content .opponent-summary-grid {
        margin-right: 0;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-values > span > span {
        display: block;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-accordion-content .opponent-summary-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card {
        width: 100%;
        max-width: 100%;
        scroll-snap-align: none;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-panel-toolbar .action-pill {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-panel-toolbar .action-pill:where(:not(.race-track-toolbar .race-pager-button)) {
        min-height: 34px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-panel-toolbar > .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-list-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-card-bottom.opponent-single-actions-row {
        display: grid;
        gap: 8px;
        width: 100%;
        height: auto;
        min-height: 0;
        align-self: start;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-item-effect span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-item-effect b:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .opponent-summary-card-head small {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-directory-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-directory-card-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-directory-card-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race) .race-directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/race-multi-index/responsive-overrides.css */

@layer legacy {/* race-multi-index: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head {
        display: grid;
        align-items: start;
        gap: 7px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head-meta {
        justify-content: end;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values {
        gap: 4px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values > span {
        display: grid;
        gap: 8px;
        align-items: start;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values b {
        justify-self: end;
        text-align: right;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-summary {
        padding: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-card:not(.opponent-multi-accordion-card) .opponent-accordion-main {
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-areas: "media info"
            "winrate winrate"
            "actions actions";
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        align-self: auto;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-card > summary {
        position: relative;
        padding-right: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-grid {
        margin-right: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head {
        grid-template-columns: minmax(0, 1fr) minmax(56px, auto);
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values > span {
        grid-template-columns: minmax(0, 1fr) minmax(56px, auto);
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-values > span > span {
        display: block;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-accordion-content .opponent-summary-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card {
        width: 100%;
        max-width: 100%;
        scroll-snap-align: none;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-panel-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-content: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions {
        align-items: start;
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-panel-toolbar .action-pill {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .action-pill {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-panel-toolbar .action-pill:where(:not(.race-track-toolbar .race-pager-button)) {
        min-height: 34px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .action-pill:where(:not(.race-track-toolbar .race-pager-button)) {
        min-height: 34px;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        background-image: none;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > .race-pager-button {
        width: 32px;
        min-width: 32px;
        padding: 0;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > a.race-pager-button {
        width: 32px;
        min-width: 32px;
        padding: 0;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > span.race-pager-button {
        width: 32px;
        min-width: 32px;
        padding: 0;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-number {
        width: 32px;
        min-width: 32px;
        padding: 0;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > .race-pager-button:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 32px;
        min-height: 32px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > a.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 32px;
        min-height: 32px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-actions > span.race-pager-button:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 32px;
        min-height: 32px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-number:where(:not(.race-track-toolbar .race-pager-button)) {
        height: 32px;
        min-height: 32px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions .race-pager-number-set {
        gap: 4px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-tab-count-controls {
        scroll-padding-inline: 0;
        overflow-x: visible;
        overflow-y: visible;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-panel-toolbar > .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-actions > .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-list-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-item-effect span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-item-effect b:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-summary-card-head small {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-sidebar-copy {
        font-size: 0.9rem;
        line-height: 1.35;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .lineup-mini-card .car-visual.is-compact {
        grid-area: media;
        width: 82px;
        min-width: 82px;
        aspect-ratio: 1 / 1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .lineup-mini-card strong {
        grid-area: title;
        font-size: 0.95rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .lineup-mini-meta span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        min-width: 0;
        padding: 5px 6px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.14);
        border-radius: 7px;
        background: rgba(255, 251, 246, 0.84);
        font-size: 1rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-multi-hero {
        gap: 10px;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-multi-accordion-card {
        overflow: hidden;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-accordion-summary {
        padding: 10px;
    }

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

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

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-card .car-visual.is-compact {
        width: 64px;
        min-width: 64px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-summary-lineup .lineup-mini-card strong {
        font-size: 0.88rem;
        line-height: 1.12;
    }

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

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

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .opponent-multi-accordion-card .opponent-card-meta > * > strong {
        font-size: 0.98rem;
        line-height: 1.08;
    }

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-directory-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-directory-card-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-directory-card-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-tab-count-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
        background-image: none;
        border-inline: 0;
        box-shadow: none;
        overflow: visible;
        scrollbar-width: none;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-tab-count-controls .button {
        flex: 0 1 64px;
        width: auto;
        min-width: 0;
        max-width: 100%;
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 12px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 0.88rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-index) .race-tab-count-controls .button .button-action-icon {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }
}
}/* Source: public/css/source/pages/race-multi-preview/responsive-overrides.css */

@layer legacy {/* race-multi-preview: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-button-panel {
        padding: 8px;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-button-row .race-stamina-storage-button {
        flex: initial;
        min-width: 0;
        width: 100%;
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 0.82rem;
        line-height: 1.1;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-button-row .race-boost-storage-button {
        flex: initial;
        min-width: 0;
        width: 100%;
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 0.82rem;
        line-height: 1.1;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-button-row .race-preview-opponent-button small {
        font-size: 0.68rem;
        line-height: 1.05;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid > .panel {
        height: auto;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.08;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-accordion .race-options-accordion-summary .race-section-head .action-pill {
        justify-self: start;
        max-width: 100%;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-accordion-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        align-self: auto;
        justify-self: auto;
        margin: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-accordion-body {
        padding: 0 12px 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-accordion[open] .race-options-accordion-summary {
        margin-bottom: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        margin: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card {
        min-height: 48px;
        padding: 7px 8px;
        border-radius: 9px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-options-summary-stats .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.08;
    }

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-item-selected-head .race-item-visual.is-selected img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
    }

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect {
        min-height: 42px;
        padding: 7px 8px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect span {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-item-effect b {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-item-effect span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-item-effect b:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-options-accordion-body .race-item-effect > span:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-options-accordion-body .race-item-stat-card > span:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-options-accordion-body .race-item-selected-card > strong:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-items-panel .race-options-accordion-body .race-item-toggle-title > strong:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-summary-rewards {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body {
        padding: 0 12px 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-single {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "winner prize"
            "time track"
            "mode mode"
            "items items"
            "knowledge knowledge";
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "winner prize"
            "time track"
            "mode mode"
            "items items"
            "knowledge knowledge";
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-winner {
        grid-area: winner;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-prize {
        grid-area: prize;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-time {
        grid-area: time;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-track {
        grid-area: track;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-mode {
        grid-area: mode;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-items {
        grid-area: items;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-knowledge {
        grid-area: knowledge;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card span {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.12;
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card strong {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.12;
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-items {
        align-content: start;
        overflow: visible;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-accordion-body .race-latest-card-knowledge {
        align-content: start;
        overflow: visible;
    }

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-card-knowledge .race-item-visual.is-used {
        width: 42px;
        min-width: 42px;
        height: 42px;
        aspect-ratio: 1 / 1;
        padding: 4px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-card-items .race-item-visual.is-used img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-card-knowledge .race-item-visual.is-used img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-latest-card-knowledge .race-used-item > span:last-child {
        min-width: 0;
        font-size: 1rem;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-hero {
        gap: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-hero h1 {
        font-size: 1.32rem;
        line-height: 1.12;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-hero .resources-lead {
        font-size: 0.95rem;
        line-height: 1.38;
    }

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid > .panel {
        display: grid;
        align-content: start;
        gap: 9px;
        padding: 12px;
        overflow: hidden;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-sidebar-copy {
        font-size: 0.9rem;
        line-height: 1.35;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-grid {
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-grid.is-lineup {
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-launch-panel {
        gap: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .launch-vs-list {
        gap: 7px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .launch-vs-row-chance {
        min-height: 46px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-launch-form {
        gap: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-launch-form .launch-button {
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: 0.96rem;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .lineup-mini-card .car-visual.is-compact {
        grid-area: media;
        width: 82px;
        min-width: 82px;
        aspect-ratio: 1 / 1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .lineup-mini-card strong {
        grid-area: title;
        font-size: 0.95rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .lineup-mini-meta span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        min-width: 0;
        padding: 5px 6px;
        border: 1px solid rgba(var(--theme-border-rgb), 0.14);
        border-radius: 7px;
        background: rgba(255, 251, 246, 0.84);
        font-size: 1rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid > .panel:nth-child(1) {
        order: 1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid > .panel:nth-child(3) {
        order: 2;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-multi-preview) .race-preview-grid > .race-launch-panel {
        order: 3;
    }
}
}/* Source: public/css/source/pages/race-preview/responsive-overrides.css */

@layer legacy {/* race-preview: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-button-panel {
        padding: 8px;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-button-row .race-stamina-storage-button {
        flex: initial;
        min-width: 0;
        width: 100%;
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 0.82rem;
        line-height: 1.1;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-button-row .race-boost-storage-button {
        flex: initial;
        min-width: 0;
        width: 100%;
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 0.82rem;
        line-height: 1.1;
        white-space: normal;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-grid > .panel {
        height: auto;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.08;
    }

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-options-accordion-body {
        padding: 0 12px 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-options-accordion[open] .race-options-accordion-summary {
        margin-bottom: 10px;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-options-summary-stats .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-options-summary-stats .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.08;
    }

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

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

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

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

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-item-effect {
        min-height: 42px;
        padding: 7px 8px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-item-effect span {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-item-effect b {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-item-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-item-stat-card strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-item-effect span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-item-effect b:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-options-accordion-body .race-item-effect > span:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-options-accordion-body .race-item-stat-card > span:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-options-accordion-body .race-item-selected-card > strong:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-items-panel .race-options-accordion-body .race-item-toggle-title > strong:first-child {
        font-size: 1rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-summary-rewards {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body {
        padding: 0 12px 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-single {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "winner prize"
            "time track"
            "mode mode"
            "items items"
            "knowledge knowledge";
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-grid.is-multi {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "winner prize"
            "time track"
            "mode mode"
            "items items"
            "knowledge knowledge";
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-winner {
        grid-area: winner;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-prize {
        grid-area: prize;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-time {
        grid-area: time;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-track {
        grid-area: track;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-mode {
        grid-area: mode;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-items {
        grid-area: items;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-knowledge {
        grid-area: knowledge;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card span {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.12;
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card strong {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.12;
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-items {
        align-content: start;
        overflow: visible;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-accordion-body .race-latest-card-knowledge {
        align-content: start;
        overflow: visible;
    }

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-card-knowledge .race-item-visual.is-used {
        width: 42px;
        min-width: 42px;
        height: 42px;
        aspect-ratio: 1 / 1;
        padding: 4px;
        border-radius: 10px;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-card-knowledge .race-item-visual.is-used img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-latest-card-knowledge .race-used-item > span:last-child {
        min-width: 0;
        font-size: 1rem;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-hero {
        gap: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-hero h1 {
        font-size: 1.32rem;
        line-height: 1.12;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-hero .resources-lead {
        font-size: 0.95rem;
        line-height: 1.38;
    }

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

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

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

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

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

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

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-sidebar-copy {
        font-size: 0.9rem;
        line-height: 1.35;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-grid {
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-grid.is-lineup {
        align-items: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-stat-card span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-launch-panel {
        gap: 10px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-list {
        gap: 7px;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-row span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-row strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-row span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        font-size: 1rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-row strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        justify-self: end;
        font-size: 1rem;
        text-align: right;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-breakdown-repair-action {
        display: flex;
        justify-content: center;
        margin-top: -2px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-breakdown-repair-button {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 0.85rem;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .launch-vs-row-chance {
        min-height: 46px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-launch-form {
        gap: 8px;
    }

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

@media (max-width: 640px) {

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-grid > .panel:nth-child(1) {
        order: 1;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-grid > .panel:nth-child(3) {
        order: 2;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-preview) .race-preview-grid > .race-launch-panel {
        order: 3;
    }
}
}/* Source: public/css/source/pages/race-tracks/responsive-overrides.css */

@layer legacy {/* race-tracks: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel {
        overflow: hidden;
    }

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

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-upgrade-guide-panel > .panel-title-row .badge {
        justify-self: start;
        margin-left: 0;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

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

    .game-shell.app-scale-page:where(.ui-page-race-tracks) [data-star-guide] .upgrade-star-cycle-tabs > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: initial;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-history-stat-grid .profile-stat-card {
        min-width: 0;
        min-height: 64px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-history-stat-grid .profile-stat-card span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-history-stat-grid .profile-stat-card strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-race-tracks) .garage-history-stat-grid .profile-stat-card span {
        font-size: 1rem;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-card-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-card-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-card-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-card-actions {
        justify-content: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-actions {
        justify-content: stretch;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-actions .button {
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page:where(.ui-page-race-tracks) .race-directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/rewards/responsive-overrides.css */

@layer legacy {/* rewards: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

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

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

    .game-shell.app-scale-page:where(.ui-page-rewards) .reward-bulk-label {
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-rewards) .reward-bulk-buttons form {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-rewards) .reward-bulk-buttons .button {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 10px;
        justify-content: center;
        font-size: 0.78rem;
        line-height: 1.05;
        white-space: normal;
    }
}
}/* Source: public/css/source/pages/scene-themes/responsive-overrides.css */

@layer legacy {/* scene-themes: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

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

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

    .game-shell.app-scale-page:where(.ui-page-scene-themes) .garage-scene-hero-actions .button {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-scene-themes) .garage-scene-hero-actions .button:only-child {
        grid-column: 1 / -1;
    }
}
}/* Source: public/css/source/pages/team/responsive-overrides.css */

@layer legacy {/* team: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-stack {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card summary {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel {
        overflow: hidden;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card {
        overflow: hidden;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-panel > .panel-title-row .badge {
        justify-self: start;
        margin-left: 0;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-visual {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .team-upgrade-image {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-title-row strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-title-row small {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-guide-bonus-label {
        display: block;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-guide-bonus-stats {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        overflow-wrap: normal;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-upgrade-guide-card .upgrade-guide-bonus-stats::-webkit-scrollbar {
        display: none;
    }

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

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

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

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

    .game-shell.app-scale-page:where(.ui-page-team) .flow-entry-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > strong {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > p {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team) .team-summary-grid.is-team-dashboard > * {
        grid-column: auto;
        grid-row: auto;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-summary-grid.is-team-dashboard > .team-kpi-card:nth-child(5) {
        grid-column: 1 / -1;
    }

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

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

    :where(.ui-page-team) .app-compact-viewport .team-role-modal .modal-title {
        font-size: 1.25rem;
        line-height: 1.15;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-modal .modal-title {
        font-size: 1.25rem;
        line-height: 1.15;
    }

    :where(.ui-page-team) .app-compact-viewport .team-role-modal .modal-message {
        font-size: 1rem;
        line-height: 1.35;
        margin: 12px 0;
        text-align: left;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-modal .modal-message {
        font-size: 1rem;
        line-height: 1.35;
        margin: 12px 0;
        text-align: left;
    }

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

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

    :where(.ui-page-team) .app-compact-viewport .team-role-current .team-role-inline {
        --role-frame-size: 58px;
        justify-content: center;
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-current .team-role-inline {
        --role-frame-size: 58px;
        justify-content: center;
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

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

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

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

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

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

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

    :where(.ui-page-team) .app-compact-viewport .team-role-choice strong.team-role-inline > span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 1rem;
        line-height: 1.1;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-choice strong.team-role-inline > span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 1rem;
        line-height: 1.1;
    }

    :where(.ui-page-team) .app-compact-viewport .team-role-choice .team-role-image-frame {
        width: 60px;
        height: 60px;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-choice .team-role-image-frame {
        width: 60px;
        height: 60px;
    }

    :where(.ui-page-team) .app-compact-viewport .team-role-choice small {
        font-size: 0.86rem;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-team) .team-role-choice small {
        font-size: 0.86rem;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team) .team-history-title-row > .race-pager {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0;
    }
}
}/* Source: public/css/source/pages/team-member-upgrades/responsive-overrides.css */

@layer legacy {/* team-member-upgrades: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions.has-unlock-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-progress {
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-progress {
        margin: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        margin: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 8px 6px;
        align-items: center;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 8px 6px;
        align-items: center;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(1) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form:only-of-type {
        grid-column: 1 / -1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-stack {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card > * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-member-time-content {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel {
        overflow: hidden;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card {
        overflow: hidden;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-member-time-content {
        overflow: hidden;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row .muted {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row .garage-detail-status-pill {
        justify-self: start;
        margin-left: 0;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-panel > .panel-title-row .badge {
        justify-self: start;
        margin-left: 0;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: left;
        line-height: 1.15;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-visual {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .team-upgrade-image {
        width: 74px;
        max-width: 74px;
        min-width: 0;
        height: 50px;
        margin: 0;
        padding: 3px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-title-row > span:last-child {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-title-row strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-title-row small {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-guide-bonus-label {
        display: block;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-guide-bonus-stats {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        overflow-wrap: normal;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card .upgrade-guide-bonus-stats::-webkit-scrollbar {
        display: none;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-upgrade-guide-card summary::after {
        grid-column: 2;
        grid-row: 1;
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) [data-star-guide] .upgrade-star-cycle-tabs > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: initial;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) [data-star-guide] .upgrade-star-cycle-tab.button {
        min-height: 38px;
        padding: 8px 6px;
        border-radius: 10px;
        gap: 4px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .flow-entry-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy {
        display: grid;
        grid-column: 1 / -1;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > strong {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-infrastructure-upgrade-card > .upgrade-title-row > .garage-infrastructure-title-copy > p {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-meta {
        grid-area: meta;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: start;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card h3 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card p {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        grid-area: copy;
        margin: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-value {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-cost {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 8px 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .daily-gift-reward strong {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card form {
        grid-area: action;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card .button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        text-align: center;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card {
        grid-template-columns: 1fr;
        grid-template-areas: "reward"
            "fragments"
            "action";
        align-items: stretch;
        align-content: start;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .daily-gift-reward-list {
        display: grid;
        grid-area: fragments;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-progress {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        justify-self: stretch;
        padding: 8px 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-progress .meter {
        grid-column: 1 / -1;
        height: 8px;
        width: 100%;
        margin-top: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions {
        grid-area: action;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions form {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions .button {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form {
        grid-column: 1 / -1;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form:nth-child(1) {
        grid-row: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-fragments-grid.is-row-layout .garage-fragment-card .garage-fragment-actions.garage-upgrade-actions form:nth-child(2) {
        grid-row: 2;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) {
        grid-template-columns: 1fr;
        grid-template-areas: "reward"
            "shop-cost"
            "action";
        align-items: stretch;
        align-content: start;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) .daily-gift-reward-list {
        display: grid;
        grid-area: shop-cost;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) .city-job-shop-cost {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        justify-self: stretch;
        padding: 8px 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) > .garage-shop-actions {
        grid-area: action;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-rows: auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) > .garage-shop-actions form {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) > .garage-shop-actions .button {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) > .garage-shop-actions form {
        grid-area: auto;
        align-self: stretch;
        justify-self: stretch;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .garage-shop-grid.is-row-layout .garage-shop-card:has(.garage-shop-reward-card) > .garage-shop-actions .button {
        min-height: 44px;
        border-radius: 14px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 900px) {

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "body";
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-body {
        grid-area: body;
        display: grid;
        grid-template-areas: "head"
            "copy"
            "meta"
            "actions";
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-meta {
        grid-area: meta;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-team-member-upgrades) .city-job-shop-grid.is-row-layout .city-job-shop-card.structured-action-card .structured-action-card-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }
}

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "media"
            "main"
            "pending"
            "action";
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
        grid-area: media;
        justify-self: center;
        width: min(180px, 100%);
        max-width: 180px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-main {
        grid-area: main;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-main :is(strong, p, .eyebrow) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-chance-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 8px 10px;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-progress {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        grid-area: pending;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
        grid-area: action;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "media"
        "main"
        "pending"
        "action";
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card > .team-member-upgrade-media.upgrade-visual-frame-large {
        grid-area: media;
        justify-self: center;
        width: min(180px, 100%);
        max-width: 180px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-main {
        grid-area: main;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-main :is(strong, p, .eyebrow) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-chance-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-quantity-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 8px 10px;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-stat-card .resource-metric-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-progress {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-pending {
        grid-area: pending;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions {
        grid-area: action;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-team-member-upgrades) .team-member-upgrade-card.structured-action-card .team-member-upgrade-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/pages/team-public/responsive-overrides.css */

@layer legacy {/* team-public: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

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

    .game-shell.app-scale-page:where(.ui-page-team-public) .profile-showcase-summary > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-team-public) .profile-showcase-summary h2 {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-team-public) .profile-showcase-summary .dealership-summary-card :where(span, strong) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .game-shell.app-scale-page:where(.ui-page-team-public) .profile-showcase-summary .profile-showcase-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/pages/tours/responsive-overrides.css */

@layer legacy {/* tours: responsive-overrides.css. Scoped to this page; registered in manifest.json. */

@media (max-width: 760px) {

    body.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-time {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.game-shell:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-tours) .garage-upgrade-inline-job-card.is-time .job-time-progress {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    body.game-shell:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job {
        grid-area: job;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    body.game-shell:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.game-shell.app-compact-viewport:where(.ui-page-tours) .garage-available-upgrades-panel .garage-upgrade-card-grid.is-row-layout .garage-upgrade-card--available > .garage-upgrade-inline-job .garage-upgrade-inline-job-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-tours) .garage-available-upgrades-panel .garage-jobs-title-row > .panel-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        line-height: 1.15;
    }

    .game-shell.app-scale-page.app-compact-viewport:where(.ui-page-tours) .garage-available-upgrades-panel .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

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

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-fuel-panel .tour-fuel-stat-box {
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-fuel-panel .tour-fuel-stat-box > span {
        font-size: 1rem;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-fuel-panel .tour-fuel-stat-box > strong {
        font-size: 1rem;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
        font-weight: 900;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-fuel-storage-button {
        width: 100%;
        min-width: 0;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-tours) .garage-jobs-title-row:has(+ .stack .tour-job-row) .panel-title {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-tours) .garage-jobs-title-row:has(+ .stack .tour-job-row) .race-pager {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-jobs-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        justify-items: stretch;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-jobs-title-row > div:first-child {
        order: 1;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-jobs-title-row .tour-controls-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        order: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-items: stretch;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-jobs-title-row .garage-hourglass-stock-pill {
        display: flex;
        width: 100%;
        min-height: 54px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-jobs-title-row .tour-auto-toggle {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-auto-toggle-row {
        justify-content: center;
        gap: 8px;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-auto-toggle-row .tour-auto-toggle {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.86rem;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-auto-toggle-row .tour-fuel-storage-button {
        flex: 0 1 48%;
        width: auto;
        min-width: 0;
        max-width: 48%;
        padding-inline: 10px;
        white-space: normal;
        text-align: center;
    }

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

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

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-job-image {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .row-main {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-rewards-strip {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-meta {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-progress {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-job-actions {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-inline-cooldown {
        grid-area: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .row-main {
        order: 1;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-meta {
        display: contents;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-row-section.is-cost {
        order: 2;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-rewards-strip {
        order: 3;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-row-section.is-completions {
        order: 4;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-row-section.is-required-fans {
        order: 5;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-row-section.is-extra-requirements {
        order: 6;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-row-progress {
        order: 7;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-job-actions {
        order: 8;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row > .tour-inline-cooldown {
        order: 9;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-row-section {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 10px 12px;
        align-content: center;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-resource-lines {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-row-rewards-strip .tour-resource-lines {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .resource-metric-chip {
        width: 100%;
        min-width: 0;
        gap: 9px;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-job-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-job-actions > form {
        width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .tour-job-row .tour-job-actions .button {
        width: 100%;
        min-width: 0;
    }

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

    .game-shell.app-scale-page:where(.ui-page-tours) .city-jobs-tab-panel .garage-jobs-title-row > div:first-child {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .game-shell.app-scale-page:where(.ui-page-tours) .city-jobs-tab-panel .garage-jobs-title-row .garage-hourglass-stock-pill {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

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

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-job-image {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .row-main {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-rewards-strip {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-meta {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-progress {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-job-actions {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-inline-cooldown {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .row-main {
    order: 1;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-meta {
    display: contents;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-row-section.is-cost {
    order: 2;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-rewards-strip {
    order: 3;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-row-section.is-completions {
    order: 4;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-row-section.is-required-fans {
    order: 5;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-row-section.is-extra-requirements {
    order: 6;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-row-progress {
    order: 7;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-job-actions {
    order: 8;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row > .tour-inline-cooldown {
    order: 9;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-resource-lines {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-row-rewards-strip .tour-resource-lines {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-job-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-row-section {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10px 12px;
    align-content: center;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .resource-metric-chip {
    width: 100%;
    min-width: 0;
    gap: 9px;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-job-actions > form {
    width: 100%;
    min-width: 0;
}

:where(.ui-page-tours) .game-shell:is(.app-scale-page.app-compact-viewport, .race-compact-viewport) .tour-job-row .tour-job-actions .button {
    width: 100%;
    min-width: 0;
}
}/* Source: public/css/source/components/job-completion.css */

@layer components {/* Shared completion text, with explicit container roles for mobile layouts. */

.ui-completion-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.18;
    white-space: nowrap;
}

.ui-completion-label,
.ui-completion-line > [data-local-countdown] {
    flex: 0 0 auto;
    color: var(--theme-muted, var(--muted));
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    white-space: nowrap;
}

.ui-completion-time,
.ui-completion-progress {
    font-size: inherit;
    font-weight: 900;
    line-height: inherit;
    white-space: nowrap;
}

.ui-completion-time {
    flex: 0 0 auto;
    color: var(--text);
}

.ui-completion-progress {
    margin-left: auto;
    color: var(--theme-text, #a85f18);
    text-align: right;
}

.ui-completion-clip .ui-completion-line {
    overflow: hidden;
}

@media (max-width: 760px) {

    .ui-completion-line {
        flex-wrap: wrap;
        gap: 4px 6px;
        white-space: normal;
        overflow: visible;
    }

    .ui-completion-grid .ui-completion-line {
        display: contents;
    }

    .ui-completion-progress {
        flex: 1 1 100%;
        grid-column: 1 / -1;
        justify-self: start;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        text-align: left;
        white-space: normal;
    }

    .ui-completion-grid--team .ui-completion-label {
        grid-column: 1;
        grid-row: 1;
    }

    .ui-completion-grid--team .ui-completion-time {
        grid-column: 2;
        grid-row: 1;
    }

    .ui-completion-grid--team .ui-completion-line > [data-local-countdown] {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .ui-completion-grid--team .ui-completion-progress {
        grid-row: 3;
        overflow-wrap: normal;
        word-break: normal;
    }
}
}/* Source: public/css/source/components/progress-meter.css */

@layer components {/* Shared progress track and explicit condition states; no page-specific fill overrides. */

.ui-meter {
    border-radius: 999px;
    overflow: hidden;
}

.ui-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f6a144, #ef7d26);
}

.ui-meter--good > .ui-meter-fill {
    background: linear-gradient(90deg, #78b66a, #4f9a58);
}

.ui-meter--warning > .ui-meter-fill {
    background: linear-gradient(90deg, #e4b84f, #d99032);
}

.ui-meter--danger > .ui-meter-fill {
    background: linear-gradient(90deg, #d9653b, #b94435);
}

.ui-meter--timed > .ui-meter-fill {
    background-color: #ef7d26;
    background-image: linear-gradient(90deg, #f6a144 0%, #ef7d26 100%);
}
}/* Source: public/css/source/components/resource-artwork.css */

@layer components {/* Shared dimensions for inline resources, stacks and modal result artwork. */

.ui-resource-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: max-content;
    min-width: 56px;
    max-width: 100%;
    min-height: 56px;
    height: auto;
    gap: 3px;
}

.ui-resource-frame {
    display: inline-grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 3px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.24);
    border-radius: 12px;
    background: rgba(255, 247, 236, 0.92);
    overflow: hidden;
    box-shadow: none;
    transform: none;
}

.ui-resource-image {
    display: block;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 9px;
    object-fit: contain;
}

.ui-resource-stack > .ui-resource-frame + .ui-resource-frame {
    margin-left: -16px;
}
}/* Source: public/css/source/components/rating.css */

@layer components {/* Rating artwork has one size in every screen and edition. */

.ui-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 4px;
    white-space: normal;
}

.ui-rating-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    color: #d8c6a8;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.42;
    filter: grayscale(1) saturate(0.25);
}

.ui-rating-star.is-lit {
    color: #e98935;
    opacity: 1;
    filter: none;
}

.ui-rating-star > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
}/* Source: public/css/source/components/race-track.css */

@layer components {/* Race track cards and selection. No priority overrides. */

.race-track-summary-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 16px 16px;
}

.race-track-summary-copy {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 0;
}

.race-track-summary-copy .eyebrow {
    margin-bottom: 0;
}

.race-track-summary-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.08;
}

.race-track-location-line {
    margin: 0;
    font-size: var(--section-subtitle-font-size);
    line-height: 1.45;
}

.race-track-selected-stats,
.race-track-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 7px;
    min-width: 0;
}

.race-track-selected-stats {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
}

.race-track-stat-grid {
    width: 100%;
}

.race-track-copy .race-track-stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.race-track-stat-box {
    min-width: 0;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 14px;
    align-content: center;
    gap: 6px;
    background: rgba(255, 253, 249, 0.94);
    border-color: var(--detail-border-soft);
    box-shadow: none;
}

.race-track-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: normal;
}

.race-track-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.race-scale-page .race-track-summary-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(760px, 940px) auto;
}

.race-scale-page .race-track-selected-stats {
    grid-column: auto;
    justify-self: end;
    width: min(940px, 100%);
}

.race-track-panel {
    display: grid;
    align-content: start;
    gap: 10px;
}

.race-track-pager form {
    margin: 0;
}

.race-track-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.race-track-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    align-items: center;
}

.race-track-toolbar-side {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.race-track-nav-top {
    margin-top: 0;
    justify-content: flex-end;
}

.race-track-showcase {
    display: grid;
    gap: clamp(22px, 3vw, 48px);
    align-items: center;
}

.race-track-showcase.has-track-image {
    grid-template-columns: minmax(210px, 235px) minmax(0, 1fr);
}

.race-track-copy {
    min-width: 0;
    align-self: center;
    display: grid;
    gap: 11px;
}

.race-track-meta-line {
    align-items: stretch;
}

.race-track-image {
    width: 100%;
    min-height: 280px;
    max-height: 305px;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 16px;
    background: rgba(255, 249, 240, 0.96);
    cursor: zoom-in;
}

.race-track-title {
    margin: 0;
    font-size: var(--section-title-font-size);
    line-height: 1.1;
}

.race-track-title-location {
    font-size: var(--section-subtitle-font-size);
    font-weight: 500;
}

.race-track-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-track-mastery-card {
    display: grid;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid var(--detail-border-soft);
    border-radius: 16px;
    background: rgba(255, 251, 246, 0.88);
}

.race-track-mastery-card .label-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}

.race-track-mastery-card .label-row span,
.race-track-mastery-card .label-row strong {
    line-height: 1.15;
}

.race-track-mastery-bonus {
    color: var(--detail-text);
    font-size: var(--section-subtitle-font-size);
    font-weight: 700;
}

.race-track-mastery-card .meter {
    height: 8px;
}

.race-track-mastery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.race-track-mastery-bonus {
    text-align: right;
    white-space: nowrap;
}

.race-track-mastery-progress-label {
    color: var(--theme-muted);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.15;
}

.race-track-mastery-progress-label.progress-bar-caption {
    font-size: 0.86rem;
    text-align: left;
}

.race-track-directory-mastery .label-row .track-mastery-stars {
    justify-content: flex-end;
}

.race-track-directory-grid {
    grid-template-columns: 1fr;
}

.race-track-directory-card {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    align-items: stretch;
}

.race-track-short-copy {
    color: var(--text);
    font-weight: 500;
}

.race-track-directory-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.race-track-directory-meta-grid.is-single {
    grid-template-columns: 1fr;
    width: 100%;
}

.race-track-directory-meta-grid.is-single .race-track-directory-meta-box {
    width: 100%;
}

.race-track-directory-meta-box {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.96);
    display: grid;
    gap: 3px;
}

.race-directory-stats .race-track-stat-metric {
    order: 1;
}

.race-directory-stats .race-track-drop-metric {
    order: 2;
    grid-column: 1 / -1;
}

.race-track-directory-meta-box span {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

.race-track-directory-meta-box strong {
    font-size: 1.1rem;
    line-height: 1.12;
}

.race-track-directory-meta-grid.is-single .race-track-directory-meta-box strong {
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 800;
}

.race-track-directory-mastery {
    gap: 7px;
}

.race-track-stats-list {
    margin-top: 4px;
}

.race-track-peek-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.race-track-peek {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 254, 0.99);
    display: grid;
    gap: 3px;
}

.race-track-peek span {
    color: var(--muted);
    font-size: 0.74rem;
}

.race-track-peek strong {
    font-size: 0.86rem;
    line-height: 1.25;
}

.race-chip-row.race-track-stat-grid {
    display: grid;
}

.race-track-head {
    margin-bottom: 12px;
}

@media (max-width: 980px) {

    .race-track-summary-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-track-selected-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .race-track-copy .race-track-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dealership-summary-card.race-track-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.dealership-summary-card.race-track-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: normal;
}

@media (max-width: 960px) {

    .race-track-directory-grid {
        grid-template-columns: 1fr;
    }

    .race-track-selected-stats,
    .race-track-stat-grid {
        grid-template-columns: 1fr;
    }

    .race-track-showcase.has-track-image {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .race-track-directory-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .race-track-image {
        min-height: 180px;
        max-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .race-track-toolbar,
    .race-track-toolbar-side {
        flex-direction: column;
        align-items: flex-start;
    }

    .race-track-nav-top {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {

    .race-track-toolbar,
    .race-track-nav-top {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }
}

body.theme-colored .race-track-stat-box,
body.theme-colored .race-track-mastery-card,
body.theme-colored .race-track-peek {
    border-color: var(--theme-border-muted);
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .race-track-directory-card {
    border-color: var(--theme-border-muted);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored .race-track-directory-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored .race-track-directory-meta-box,
body.theme-colored .race-track-directory-mastery {
    border-color: var(--theme-border-soft);
}

body.theme-colored .race-directory-card.is-active .race-track-directory-mastery {
    border-color: var(--theme-border-muted);
}

.race-track-mastery-card .label-row span {
    color: var(--detail-text);
}

.game-shell .race-track-mastery-card .label-row > span:first-child {
    color: var(--text);
}

.game-shell .race-track-mastery-card .race-track-mastery-bonus {
    color: var(--text);
}

.game-shell .garage-upgrade-progress-foot .race-track-mastery-bonus {
    font-weight: 500;
}

.game-shell .race-accordion-toggle .race-track-stat-box > span:first-child {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-track-selected-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.game-shell .race-track-copy .race-track-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 1.45fr);
    gap: 8px;
    width: 100%;
}

.game-shell .race-track-summary-toggle {
    padding-bottom: 6px;
}

.game-shell .race-track-stat-box.dealership-summary-card {
    min-height: 58px;
    padding: 10px 12px;
    gap: 5px;
    align-content: center;
    border-radius: 12px;
}

.game-shell .race-track-stat-box.dealership-summary-card > span,
.game-shell .race-track-stat-box.dealership-summary-card > strong {
    font-size: 1rem;
    line-height: 1.08;
    white-space: normal;
}

.game-shell .race-track-stat-box.dealership-summary-card > span {
    color: var(--muted);
    font-weight: 500;
}

.game-shell .race-track-stat-box.dealership-summary-card > strong {
    color: var(--text);
    font-weight: 800;
}

.game-shell .race-track-summary-toggle .race-track-selected-stats {
    grid-template-columns: repeat(4, minmax(215px, 1fr));
}

.game-shell .race-track-summary-toggle .race-track-selected-stats .race-track-stat-box.dealership-summary-card {
    min-width: 215px;
    padding: 8px;
}

.game-shell .race-track-summary-toggle .race-track-selected-stats .race-track-stat-box.dealership-summary-card .resource-metric-chip {
    width: 100%;
}

.game-shell .race-track-image {
    box-shadow: none;
}

.race-track-image {
    box-shadow: none;
}

.race-track-mastery-heading {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: normal;
}

.game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-heading,
.game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-progress-label,
.game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-bonus {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
}

.game-shell .race-track-mastery-card.garage-upgrade-progress .garage-upgrade-progress-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
}

.game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-progress-label {
    flex: 1 1 auto;
    text-align: left;
}

.game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-bonus {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 760px) {

    .race-track-panel.race-setup-accordion {
        gap: 0;
    }

    .game-shell .race-track-mastery-card.garage-upgrade-progress .garage-upgrade-progress-foot {
        flex-wrap: wrap;
    }

    .game-shell .race-track-mastery-card.garage-upgrade-progress .race-track-mastery-bonus {
        flex: 1 1 100%;
        text-align: left;
        white-space: normal;
    }

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

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

    .game-shell.app-scale-page.race-scale-page .race-track-selected-stats {
        grid-column: 1 / -1;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-stat-box {
        min-height: 58px;
        align-content: start;
        padding: 8px 9px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
    .game-shell.app-scale-page.race-scale-page .race-track-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-showcase.has-track-image {
        grid-template-columns: 1fr;
        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-mastery-card .label-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-mastery-footer {
        display: flex;
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: left;
    }

    .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));
    }

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

    .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 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-maps-button {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-height: 34px;
        white-space: normal;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .action-pill {
        flex: 0 0 auto;
        max-width: none;
    }

    .game-shell.app-scale-page.race-scale-page .race-track-toolbar .race-pager {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

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

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

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

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

    .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;
        width: 32px;
        min-width: 32px;
        max-width: 32px;
    }

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

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

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

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

    .game-shell.app-scale-page.race-scale-page .race-track-directory-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
}/* Source: public/css/source/components/race-mode.css */

@layer components {/* Race mode selection cards. No priority overrides. */

.race-mode-stat-box.resource-metric-chip {
    --race-mode-stat-gap: 10px;
}

.race-mode-summary-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.race-mode-summary-copy {
    min-width: 0;
}

.race-mode-summary-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.race-mode-selected-stats,
.race-mode-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 8px;
    min-width: 0;
}

.race-mode-selected-stats {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
}

.race-mode-stat-grid {
    width: 100%;
}

.race-mode-stat-box {
    min-width: 0;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 14px;
    align-content: center;
    gap: 6px;
    background: rgba(255, 253, 249, 0.94);
    border-color: var(--detail-border-soft);
    box-shadow: none;
}

.race-mode-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
}

.race-mode-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.08;
    white-space: nowrap;
}

.race-scale-page .race-mode-summary-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(680px, 760px) auto;
}

.race-scale-page .race-mode-selected-stats {
    grid-column: auto;
    justify-self: end;
    width: min(760px, 100%);
}

.race-mode-card h3 {
    margin: 0;
}

.race-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.race-mode-grid.is-row-layout {
    grid-template-columns: 1fr;
}

.race-mode-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 253, 0.96);
}

.race-mode-grid.is-row-layout .race-mode-card {
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(500px, 0.95fr) minmax(220px, auto);
    grid-template-areas: "media main meta actions";
    align-items: center;
    gap: 16px;
    border-radius: 14px;
}

.race-mode-grid.is-row-layout .race-mode-image {
    grid-area: media;
}

.race-mode-grid.is-row-layout .race-mode-head {
    grid-area: main;
}

.race-mode-grid.is-row-layout .race-chip-row {
    grid-area: meta;
}

.race-mode-grid.is-row-layout .race-mode-action {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
}

.race-mode-grid.is-row-layout .race-mode-action .button {
    width: 100%;
    max-width: 220px;
}

.race-mode-card.is-active {
    color: var(--text);
}

.race-mode-card.is-active .dealership-chip {
    color: var(--text);
}

.race-mode-card.is-active .badge,
.race-mode-card.is-active .action-pill {
    color: #d46b1f;
}

.race-mode-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.race-mode-image {
    width: 100%;
    min-width: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-border-rgb), 0.18);
    border-radius: 12px;
    background: rgba(255, 247, 232, 0.76);
    cursor: zoom-in;
}

.race-mode-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-mode-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 980px) {

    .race-mode-summary-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .race-mode-selected-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .race-mode-grid.is-row-layout .race-mode-card {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "meta"
            "actions";
        align-items: stretch;
    }

    .race-mode-grid.is-row-layout .race-mode-image {
        max-height: 220px;
    }

    .race-mode-grid.is-row-layout .race-mode-action {
        justify-content: flex-start;
    }

    .race-mode-grid.is-row-layout .race-mode-action .button {
        max-width: none;
    }
}

.dealership-summary-card.race-mode-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.08;
    min-width: 0;
    overflow-wrap: normal;
}

.dealership-summary-card.race-mode-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: normal;
}

@media (max-width: 960px) {

    .race-mode-grid {
        grid-template-columns: 1fr;
    }

    .race-mode-selected-stats,
    .race-mode-stat-grid {
        grid-template-columns: 1fr;
    }
}

body.theme-colored .race-mode-card.is-active {
    border-color: var(--theme-border);
    background: var(--theme-surface-strong);
    box-shadow: 0 10px 22px var(--theme-shadow-medium);
}

body.theme-colored .race-mode-card.is-active .dealership-chip,
body.theme-colored .race-mode-card.is-active .badge:not([class*="badge--"]),
body.theme-colored .race-mode-card.is-active .action-pill {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text);
}

body.theme-colored .race-mode-card.is-active p {
    color: var(--muted);
}

.race-mode-grid.is-row-layout .race-mode-card {
    border-color: var(--line);
}

.game-shell .race-accordion-toggle .race-mode-stat-box > span:first-child {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.race-mode-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

.game-shell.race-scale-page .race-mode-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

.race-mode-card.is-active .race-mode-stat-box,
.race-mode-card.is-active .dealership-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-shell.race-scale-page .race-mode-card.is-active .race-mode-stat-box,
.game-shell.race-scale-page .race-mode-card.is-active .dealership-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.race-mode-card.is-active h3,
.race-mode-card.is-active .race-mode-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-mode-card.is-active .dealership-chip strong {
    color: var(--text);
}

.race-mode-card.is-active p,
.race-mode-card.is-active .race-mode-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.race-mode-card.is-active .dealership-chip span {
    color: var(--muted);
}

.race-setup-accordion .race-mode-card.is-active {
    border-color: var(--line);
    background: rgba(255, 255, 253, 0.96);
    box-shadow: none;
}

.race-setup-accordion .race-mode-card.is-active .race-mode-stat-box,
.race-setup-accordion .race-mode-card.is-active .dealership-chip {
    border-color: var(--line);
    background: rgba(255, 251, 245, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card.is-active {
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(620px, 1.2fr);
    grid-template-areas: "media main meta";
}

.game-shell .race-mode-selected-stats,
.game-shell .race-mode-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.game-shell .race-mode-grid.is-row-layout .race-mode-stat-grid {
    display: grid;
    width: 100%;
    min-width: 620px;
}

.game-shell .race-mode-grid.is-row-layout .race-mode-card {
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(620px, 1.2fr) minmax(220px, auto);
    grid-template-areas: "media main meta actions";
}

.game-shell .race-mode-stat-box.dealership-summary-card {
    min-height: 58px;
    padding: 10px 12px;
    gap: var(--race-mode-stat-gap, 5px);
    align-content: center;
    border-radius: 12px;
}

.game-shell .race-mode-stat-box.dealership-summary-card > span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
.game-shell .race-mode-stat-box.dealership-summary-card > strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    font-size: 1rem;
    line-height: 1.08;
    white-space: normal;
}

.game-shell .race-mode-stat-box.dealership-summary-card > span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--muted);
    font-weight: 500;
}

.game-shell .race-mode-stat-box.dealership-summary-card > strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
    color: var(--text);
    font-weight: 800;
}

.game-shell .race-mode-summary-toggle .race-mode-selected-stats .race-mode-stat-box.dealership-summary-card {
    min-width: 255px;
    padding: 8px;
}

.game-shell .race-mode-summary-toggle .race-mode-selected-stats {
    grid-template-columns: repeat(3, minmax(255px, 1fr));
}

.game-shell .race-mode-summary-toggle .race-mode-selected-stats .race-mode-stat-box.dealership-summary-card .resource-metric-chip {
    width: 100%;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card,
.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card.is-active {
    border-color: var(--line);
    background: var(--panel-alt);
    box-shadow: none;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card .race-mode-stat-box,
.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card.is-active .race-mode-stat-box,
.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card .dealership-chip,
.game-shell.race-scale-page .race-mode-grid.is-row-layout .race-mode-card.is-active .dealership-chip {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active {
    border-color: var(--selected-border);
    background: var(--theme-selected-surface);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--action-shadow);
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active .race-mode-stat-box,
.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active .dealership-chip {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-shell .race-mode-image {
    box-shadow: 0 10px 22px rgba(var(--theme-shadow-rgb), 0.1);
}

.race-mode-image {
    box-shadow: none;
}

.game-shell .race-mode-grid.is-row-layout .race-mode-image {
    width: 140px;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    padding: 5px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.38);
    border-radius: 12px;
    background: rgba(255, 249, 240, 0.94);
    overflow: hidden;
}

.game-shell .race-mode-grid.is-row-layout .race-mode-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card,
.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card.is-active {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas: "media main"
        "media meta"
        "media actions";
    align-items: start;
    gap: 12px 18px;
    padding: 16px 18px;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-image {
    grid-area: media;
    align-self: start;
    width: 150px;
    max-width: 150px;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-head {
    grid-area: main;
    min-width: 0;
    width: 100%;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-head > div {
    display: grid;
    gap: 6px;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-head h3,
.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-head p {
    margin: 0;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-head p {
    max-width: none;
    color: var(--theme-muted, var(--muted));
    line-height: 1.35;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-stat-grid {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-stat-box.dealership-summary-card {
    min-height: 76px;
    padding: 12px 14px;
    align-content: center;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-action {
    grid-area: actions;
    justify-self: end;
    align-self: end;
    width: min(360px, 100%);
    margin-top: 2px;
}

.game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-action .button {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card,
    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card.is-active {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-image {
        width: 120px;
        max-width: 120px;
    }

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card,
    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-card.is-active {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "meta"
            "actions";
    }

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-image {
        width: 100%;
        max-width: 180px;
    }

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-stat-grid {
        grid-template-columns: 1fr;
    }

    .game-shell .race-setup-accordion .race-mode-grid.is-row-layout .race-mode-action {
        justify-self: stretch;
        width: 100%;
    }
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card,
.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active {
    display: grid;
    grid-template-areas: "media main"
        "media meta"
        "media actions";
    align-items: start;
    gap: 12px 18px;
    padding: 16px 18px;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-image {
    grid-area: media;
    align-self: start;
    width: 150px;
    max-width: 150px;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-head {
    grid-area: main;
    min-width: 0;
    width: 100%;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-head > div {
    display: grid;
    gap: 6px;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-head h3,
.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-head p {
    margin: 0;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-head p {
    max-width: none;
    color: var(--theme-muted, var(--muted));
    line-height: 1.35;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-stat-grid {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-stat-box.dealership-summary-card {
    min-height: 76px;
    padding: 8px 8px;
    align-content: center;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-stat-box.dealership-summary-card .resource-metric-chip {
    width: 100%;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-action {
    grid-area: actions;
    justify-self: end;
    align-self: end;
    width: min(360px, 100%);
    margin-top: 2px;
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-action .button {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card,
    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-image {
        width: 120px;
        max-width: 120px;
    }

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card,
    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active {
        grid-template-columns: 1fr;
        grid-template-areas: "media"
            "main"
            "meta"
            "actions";
    }

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-image {
        width: 100%;
        max-width: 180px;
    }

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-stat-grid {
        grid-template-columns: 1fr;
    }

    .game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-action {
        justify-self: stretch;
        width: 100%;
    }
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card,
.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-card.is-active {
    grid-template-columns: 200px minmax(0, 1fr);
}

.game-shell.race-scale-page .race-mode-grid.is-row-layout.race-mode-directory-grid .race-mode-image.upgrade-visual-frame-large {
    grid-area: media;
    width: min(200px, 100%);
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    padding: 10px;
    border-width: 4px;
    border-radius: 18px;
}

@media (max-width: 760px) {

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

    .game-shell.app-scale-page.race-scale-page .race-mode-selected-stats {
        grid-column: 1 / -1;
        width: 100%;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box {
        min-height: 58px;
        align-content: start;
        padding: 8px 9px;
        border-radius: 8px;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box span:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)),
    .game-shell.app-scale-page.race-scale-page .race-mode-stat-box strong:where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-areas: "media main"
            "meta meta"
            "actions actions";
        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;
        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;
        width: 100%;
    }

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

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

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

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

    .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%;
    }

    .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 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {

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

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

@media (max-width: 640px) {

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

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-image {
        grid-area: media;
        width: min(100%, 210px);
        max-width: 210px;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1 / 1;
        justify-self: center;
    }

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

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-head > div {
        display: grid;
        gap: 6px;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-head h3,
    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-head p {
        max-width: 100%;
        margin: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-grid {
        grid-area: meta;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-box.dealership-summary-card {
        min-width: 0;
        min-height: 64px;
        padding: 10px 12px;
        align-content: center;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-box.dealership-summary-card .resource-metric-chip {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-stat-box :where(span, strong):where(:not(.resource-metric-icon-frame, .resource-metric-icon, .resource-metric-copy, .resource-metric-copy > *)) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
        text-align: left;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-action {
        grid-area: actions;
        width: 100%;
        justify-self: stretch;
        margin: 0;
    }

    .game-shell.app-scale-page.race-scale-page .race-mode-grid.is-row-layout .race-mode-action .button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}
}/* Source: public/css/source/components/race-analysis.css */

@layer components {/* Format selection owns visibility. Grid/card presentation must not reveal
   inactive x2/x3/x4/x5 values or put their score cards in the same grid cell. */

.race-multi-lineup-accordion [data-analysis-header-count-card][hidden],
.race-multi-lineup-accordion [data-analysis-count-panel][hidden],
.race-multi-lineup-accordion [data-analysis-panel][hidden] {
    display: none;
}

.race-selected-summary-panel [data-analysis-header-count-card][hidden],
.race-selected-summary-panel [data-analysis-count-panel][hidden],
.race-selected-summary-panel [data-analysis-panel][hidden] {
    display: none;
}
}/* Source: public/css/source/components/count-badge.css */

@layer components {/* count-badge: component rules and local variants; inactive state stays hidden. */

.nav-tab .nav-badge {
    margin-left: 4px;
}

.nav-main .nav-icon-tab .nav-badge {
    position: static;
    margin-left: 2px;
    min-width: 20px;
    max-width: 28px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.66rem;
}

.app-primary-sidebar .nav-tab .nav-badge,
.app-main-column .nav-sub .nav-tab .nav-badge {
    margin-left: auto;
}

.nav-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 22px;
    max-width: 34px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(var(--info-rgb), 0.18);
    background: rgba(var(--info-rgb), 0.1);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.city-jobs-tabs .garage-detail-tab .nav-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
}

.city-jobs-tabs .garage-detail-tab.is-active .nav-badge {
    background: #ffffff;
    border: 1px solid rgba(var(--info-rgb), 0.28);
    color: #527f90;
}

:where(.ui-page-race) .race-index-hero-actions .race-storage-shortcut-button .nav-badge {
    background: rgba(255, 248, 239, 0.24);
    color: var(--selected-text);
}

:where(.ui-page-race-multi-index) .race-multi-hero .race-storage-shortcut-button .nav-badge {
    background: rgba(255, 248, 239, 0.24);
    color: var(--selected-text);
}

:where(.ui-page-race-multi-preview, .ui-page-race-preview) .race-preview-button-row .race-stamina-storage-button .nav-badge,
:where(.ui-page-race-multi-preview, .ui-page-race-preview) .race-preview-button-row .race-boost-storage-button .nav-badge {
    background: rgba(255, 248, 239, 0.24);
    color: var(--selected-text);
}

:where(.ui-page-tours) .tour-auto-toggle-row .tour-fuel-storage-button .nav-badge {
    background: rgba(255, 248, 239, 0.24);
    color: var(--selected-text);
}

.garage-detail-tab .garage-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(var(--action-rgb), 0.22);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.garage-detail-tab.is-active .garage-tab-badge {
    box-shadow: none;
}

.garage-detail-tab .garage-tab-badge {
    background: rgba(var(--theme-border-rgb), 0.12);
    color: #9a703d;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-border-rgb), 0.08);
}

.garage-detail-tab.is-active .nav-badge {
    border: 1px solid rgba(var(--info-rgb), 0.28);
    box-shadow: 0 4px 12px rgba(var(--info-rgb), 0.2);
}

.nav-tab.is-active .nav-badge,
.garage-detail-tab.is-active .nav-badge,
.garage-detail-tab.is-active .garage-tab-badge {
    background: rgba(255, 255, 255, 0.22);
    color: var(--selected-text);
}

.garage-detail-tabs .garage-detail-tab.is-active .nav-badge,
.garage-detail-tabs .garage-detail-tab.is-active .garage-tab-badge {
    background: rgba(var(--action-rgb), 0.16);
    border-color: rgba(var(--action-rgb), 0.24);
    color: var(--action-strong);
}

@media (max-width: 760px) {

    .game-shell.app-scale-page .mobile-menu-link .nav-badge {
        margin-left: auto;
    }

    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-active-jobs-toggle .garage-tab-badge,
    .game-shell.app-scale-page.app-compact-viewport .garage-detail-tabs .garage-active-jobs-toggle .nav-badge {
        margin-left: auto;
    }
}

/* An empty counter must not become an empty pill when grid styles apply. */

.nav-badge[hidden],
.garage-tab-badge[hidden] {
    display: none;
}

@media (max-width: 760px) {

    :where(.ui-page-race-preview, .ui-page-race-multi-preview) .race-preview-button-row .nav-badge {
        min-width: 0;
        max-width: 100%;
    }
}
}/* Source: public/css/source/components/modal-content.css */

@layer components {/* modal-content: component rules and local variants; inactive state stays hidden. */

.modal-scroll-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    margin-top: 18px;
    overflow: hidden;
    overscroll-behavior: contain;
}

.modal-scroll-body[hidden] {
    display: none;
}

.modal-scroll-body > .modal-gains,
.modal-scroll-body > .modal-details {
    margin-top: 0;
}

.modal-scroll-body.is-scrollable {
    max-height: var(--modal-scroll-area-max-height, min(48vh, 440px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 22px 8px 8px;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: rgba(var(--action-rgb), 0.72) rgba(var(--theme-border-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) top / calc(100% - 18px) 18px no-repeat,
        linear-gradient(0deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) bottom / calc(100% - 18px) 22px no-repeat;
}

.modal-scroll-body.is-scrollable::-webkit-scrollbar {
    width: 14px;
}

.modal-scroll-body.is-scrollable::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(var(--theme-border-rgb), 0.16);
}

.modal-scroll-body.is-scrollable::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 250, 243, 0.95);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.72);
}

.modal-details {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details,
.modal-backdrop.is-confirm-modal .modal-details {
    overscroll-behavior: contain;
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable,
.modal-backdrop.is-confirm-modal .modal-details.is-scrollable {
    overflow-y: auto;
    padding-right: 18px;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: rgba(var(--action-rgb), 0.72) rgba(var(--theme-border-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) top / calc(100% - 18px) 18px no-repeat,
        linear-gradient(0deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0)) bottom / calc(100% - 18px) 22px no-repeat;
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable {
    max-height: var(--modal-scroll-area-max-height, min(30vh, 320px));
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable::-webkit-scrollbar,
.modal-backdrop.is-confirm-modal .modal-details.is-scrollable::-webkit-scrollbar {
    width: 14px;
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable::-webkit-scrollbar-track,
.modal-backdrop.is-confirm-modal .modal-details.is-scrollable::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(var(--theme-border-rgb), 0.16);
}

.modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable::-webkit-scrollbar-thumb,
.modal-backdrop.is-confirm-modal .modal-details.is-scrollable::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 250, 243, 0.95);
    border-radius: 999px;
    background: rgba(var(--action-rgb), 0.72);
}

.modal-detail {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(var(--theme-border-rgb), 0.12);
    color: var(--text);
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-backdrop.is-bulk-status:not(.is-confirm-modal) .modal-details.is-scrollable {
        max-height: var(--modal-scroll-area-max-height, min(28vh, 260px));
    }
}

.modal-backdrop.is-confirm-modal .modal-details.is-scrollable {
    max-height: var(--modal-scroll-area-max-height, min(32vh, 360px));
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-backdrop.is-confirm-modal .modal-details.is-scrollable {
        max-height: var(--modal-scroll-area-max-height, min(34vh, 320px));
    }
}

.modal-details[hidden] {
    display: none;
}

@media (max-width: 760px) {

    .app-compact-viewport .modal-scroll-body > .modal-gains {
        margin-top: 12px;
    }
}
}/* Source: public/css/source/components/notice-banner.css */

@layer components {/* All full notices share this layout; pinned notices and announcement cards are separate. */

.notice-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background: linear-gradient(90deg, rgba(255, 245, 226, 0.98), rgba(255, 251, 245, 0.98));
}

.notice-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.notice-content,
.notice-text {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.notice-content {
    flex: 1 1 0;
    overflow-wrap: anywhere;
}

.notice-label {
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
}

.notice-content strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.notice-content span {
    color: var(--muted);
    line-height: 1.4;
}

.notice-image {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 251, 245, 0.95);
    cursor: zoom-in;
}

.notice-image img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: none;
    border-radius: 8px;
    object-fit: cover;
}

.notice-image--resource img {
    object-fit: contain;
}

.notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.notice-actions form {
    margin: 0;
    max-width: 100%;
}

.notice-pill {
    padding: 10px 14px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.notice-action {
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
}

.notice-icon-action {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

.notice-banner.is-crazy-offer {
    border-color: rgba(var(--action-rgb), 0.7);
}

@media (max-width: 760px) {

    .notice-banner {
        padding: 12px;
        gap: 12px;
    }

    .notice-main {
        gap: 12px;
    }

    .notice-actions {
        justify-content: flex-start;
    }

    .notice-pill {
        flex: 1 0 100%;
    }
}

body.theme-colored .notice-banner {
    border-color: var(--theme-border-muted);
}

body.theme-colored .notice-banner.is-crazy-offer {
    border-color: var(--theme-border-strong);
    background: linear-gradient(90deg, rgba(255, 248, 239, 0.98), rgba(255, 251, 245, 0.98)),
        radial-gradient(circle at 8% 50%, var(--theme-tint-muted), transparent 34%);
}

body.theme-colored .notice-pill {
    border-color: var(--theme-border-soft);
    color: var(--theme-text);
}
}/* Source: public/css/source/components/pagination.css */

@layer layout {/* Shared pager: compact controls depend on the pager's own available width. */
.ui-pager {
    container-type: inline-size;
    container-name: pagination;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.ui-pager .race-pager-count {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.ui-pager .race-pager-actions,
.ui-pager .race-pager-number-set {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    width: auto;
}
.ui-pager .race-pager-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
}
.ui-pager .race-pager-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 36px;
    max-width: 100%;
    height: auto;
    min-height: 42px;
}
@container pagination (max-width: 720px) {
    .ui-pager .race-pager-label {
        display: none;
    }
    .ui-pager .race-pager-button {
        padding-inline: 9px;
    }
}
@container pagination (max-width: 380px) {
    .ui-pager .race-pager-number:not(.is-active) {
        display: none;
    }
}
}/* Source: public/css/source/components/tab-layout.css */

@layer layout {/* Navigation groups wrap in their actual container at every viewport width. */
:is(
    .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
):not([hidden]) {
    display: flex;
    flex-flow: row wrap;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-gutter: auto;
    background-image: none;
    border-inline-width: 0;
}
:is(
    .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
) > :is(a, button, .button, .nav-tab, .garage-detail-tab) {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}
}/* Source: public/css/source/components/job-layout.css */

@layer layout {/* Shared job identity: image and description wrap together by available width. */
.garage-job-main {
    display: flex;
    flex-flow: row wrap;
    min-width: 0;
    max-width: 100%;
}
.garage-job-main > div {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
}
}/* Source: public/css/source/components/race-history-layout.css */

@layer layout {/* Full race history entries share one flow in lists that include race metadata. */
.race-history-entry {
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
    min-width: 0;
}
.race-history-entry > * {
    min-width: 0;
    max-width: 100%;
}
.race-history-entry > .row-main {
    flex: 2 1 360px;
    display: flex;
    flex-flow: row wrap;
}
.race-history-entry > .row-main > div {
    flex: 1 1 180px;
    min-width: 0;
}
.race-history-entry > .race-history-row-mid,
.race-history-entry > .row-meta {
    flex: 1 1 220px;
}
.race-history-entry .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.race-history-entry > .row-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
    align-content: start;
    gap: 8px;
}
}/* Source: public/css/source/components/card-grid.css */

@layer layout {/* Each container is one semantic group. Never flatten multiplier panels or
   use display:contents here: x1/x3 and inactive formats must stay separate. */

.resource-metric-chip .resource-metric-copy,
.resource-metric-chip .resource-metric-copy > :is(strong, span) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

@media (max-width: 760px) {

    .ui-card-grid:not([hidden]):not(.ui-quantity-group):not(.ui-header-card-grid) {
        display: flex;
        flex-flow: row wrap;
        gap: 10px;
        min-width: 0;
        max-width: 100%;
    }

    .ui-card-grid:not(.ui-quantity-group):not(.ui-header-card-grid) > :where(:not([hidden])) {
        flex: 1 1 max(180px, calc((100% - 10px) / 2));
        min-width: 0;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .ui-quantity-group {
        display: contents;
    }
}

.structured-action-card {
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
    min-width: 0;
}

.structured-action-card > .upgrade-visual {
    flex: 0 1 var(--structured-action-image-size, 200px);
    max-width: 100%;
}

.structured-action-card > .structured-action-card-body {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 100%;
    width: auto;
}
}/* Source: public/css/source/components/car-panel-layout.css */

@layer layout {/* Analysis uses the available panel width, including when descriptions or
   boosted formulas are longer than the ordinary fixture values. */
}/* Source: public/css/source/components/resource-metric.css */

@layer components {/* Resource metric internals. One icon size across pages and viewport widths.
   Container placement/surfaces remain with the owning card. */

.resource-metric-chip {
    --resource-icon-size: 48px;
    --resource-icon-frame-size: 56px;
}

.resource-metric-icon-frame {
    display: grid;
    place-items: center;
    flex: 0 0 var(--resource-icon-frame-size);
    width: var(--resource-icon-frame-size);
    height: var(--resource-icon-frame-size);
    padding: 3px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.44);
    border-radius: 12px;
    background: rgba(255, 249, 240, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    cursor: zoom-in;
    overflow: hidden;
}

.resource-metric-icon {
    width: var(--resource-icon-size);
    height: var(--resource-icon-size);
    max-width: var(--resource-icon-size);
    max-height: var(--resource-icon-size);
    object-fit: contain;
    border-radius: 9px;
}

.resource-metric-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    line-height: 1.16;
}

.resource-metric-copy > strong,
.resource-metric-copy > span {
    font-size: 1rem;
    line-height: 1.12;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.resource-metric-copy > strong {
    color: var(--muted);
    font-weight: 400;
}

.resource-metric-copy > span {
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
}
}/* Source: public/css/source/components/metrics/dealership.css */

@layer components {/* Resource metric variants owned by dealership. Keep every selector inside its owner. */

:is(.dealership-summary-card) .resource-metric-copy > :is(strong, span) {
    min-width: 0;
}

:is(.dealership-summary-card).is-damage .resource-metric-copy > span,
:is(.dealership-chip).is-damage .resource-metric-copy > span {
    color: rgb(var(--danger-rgb));
}
}/* Source: public/css/source/components/metrics/profile.css */

@layer components {/* Resource metric variants owned by profile. Keep every selector inside its owner. */

:is(.profile-stat-card) .resource-metric-copy > :is(strong, span) {
    min-width: 0;
}

:is(.profile-stat-card).is-damage .resource-metric-copy > span {
    color: rgb(var(--danger-rgb));
}
}/* Source: public/css/source/components/metrics/race.css */

@layer components {/* Resource metric variants owned by race. Keep every selector inside its owner. */

.race-summary-card-meta .resource-metric-copy > span {
    min-width: 0;
}

:is(.race-preview-stat-card).is-damage .resource-metric-copy > span {
    color: rgb(var(--danger-rgb));
}

.race-preview-grid .race-preview-stat-card.is-win-chance.is-even .resource-metric-copy > strong {
    color: #9a641d;
}

.race-active-car-accordion .race-active-car-summary-stats .resource-metric-copy {
    gap: 2px;
}

.launch-vs-row .resource-metric-copy {
    display: contents;
    color: var(--muted);
}

.launch-vs-row .resource-metric-copy > strong {
    font-weight: 800;
    justify-self: start;
    align-self: center;
}

.launch-vs-row .resource-metric-copy > span {
    font-size: var(--launch-value-font-size, 1.05rem);
    line-height: var(--launch-value-line-height, 1.05);
    justify-self: end;
    text-align: right;
}

.launch-vs-row-chance .resource-metric-copy {
    color: inherit;
}

.launch-vs-row-chance .resource-metric-copy > :is(strong, span) {
    color: inherit;
}

.race-preview-grid .race-preview-stat-card .resource-metric-copy,
.race-multi-lineup-summary-stats .resource-metric-copy {
    align-items: flex-start;
    gap: 2px;
}

.race-preview-grid .race-preview-stat-card .resource-metric-copy > :is(strong, span),
.race-multi-lineup-summary-stats .resource-metric-copy > :is(strong, span) {
    white-space: normal;
}

.race-summary-card-meta .resource-metric-copy {
    font-size: 0.96rem;
    justify-self: end;
}

.race-multi-preview-lineup-panel .resource-metric-copy,
.race-mode-stat-box .resource-metric-copy {
    white-space: nowrap;
}

.race-selected-summary-panel .race-accordion-content .resource-metric-copy {
    align-items: flex-start;
    justify-items: start;
    text-align: left;
}

.race-selected-summary-panel .race-accordion-content .resource-metric-copy > span {
    align-self: start;
    justify-self: start;
    text-align: left;
}

:is(.race-multi-preview-lineup-panel, .race-multi-preview-launch-panel) .resource-metric-copy > strong {
    color: var(--theme-muted, var(--muted));
    font-size: var(--stat-box-font-size);
    font-weight: 500;
}

.race-multi-preview-lineup-panel .resource-metric-copy > span,
.race-multi-preview-launch-panel .launch-vs-row .resource-metric-copy > span {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.05;
}

@media (max-width: 760px) {

    .game-shell.race-scale-page .race-multi-lineup-summary-stats .resource-metric-copy > :is(strong, span) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .game-shell.race-scale-page .race-selected-summary-toggle-score .resource-metric-copy > :is(strong, span) {
        line-height: 1.15;
    }

    .game-shell.race-scale-page .race-multi-preview-lineup-panel .resource-metric-copy > strong {
        white-space: normal;
    }

    .game-shell.race-scale-page .launch-vs-row .resource-metric-copy > strong {
        text-align: right;
        justify-self: end;
    }

    .game-shell.race-scale-page .launch-vs-row {
        --launch-value-font-size: 1rem;
        --launch-value-line-height: 1.12;
    }

    .game-shell.race-scale-page :is(.launch-vs-row, .race-summary-card-meta, .race-multi-preview-lineup-panel) .resource-metric-copy > span {
        white-space: normal;
    }

    .game-shell.race-scale-page .race-options-summary-stats .race-item-stat-card .resource-metric-copy > strong,
    .game-shell.race-scale-page .race-preview-grid .race-preview-stat-card .resource-metric-copy > strong {
        line-height: 1.08;
    }

    .game-shell.race-scale-page .race-options-summary-stats .race-item-stat-card .resource-metric-copy > span,
    .game-shell.race-scale-page .race-preview-grid .race-preview-stat-card .resource-metric-copy > span,
    .game-shell.race-scale-page .race-multi-lineup-summary-stats .resource-metric-copy > :is(strong, span) {
        line-height: 1.1;
    }

    .game-shell.app-scale-page :is(.race-mode-stat-box) .resource-metric-copy > :is(strong, span) {
        max-width: 100%;
        white-space: normal;
        hyphens: manual;
    }
}

/* Multi-race launch cards use the same icon + stacked copy as this page's stats.
   The ordinary race keeps its launch-vs-row layout. */

.race-multi-preview-launch-panel .race-multi-launch-stat .resource-metric-copy > span {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.05;
}

.race-multi-preview-launch-panel .race-multi-launch-stat.launch-vs-row-chance .resource-metric-copy > span {
    color: inherit;
}

.race-multi-preview-launch-panel .race-multi-launch-stat.is-repairing {
    background: rgba(255, 239, 217, 0.94);
    border-color: rgba(230, 118, 44, 0.42);
}

@media (max-width: 760px) {

    .race-multi-preview-launch-panel .race-multi-launch-stat {
        min-height: 56px;
    }
}
}/* Source: public/css/source/components/metrics/madness.css */

@layer components {/* Resource metric variants owned by madness. Keep every selector inside its owner. */

.madness-history-chip.is-cost .resource-metric-copy > span {
    color: #a43a2f;
}
}/* Source: public/css/source/components/metrics/garage.css */

@layer components {/* Resource metric variants owned by garage. Keep every selector inside its owner. */

.garage-slot-roadmap-meta .resource-metric-copy > strong {
    font-size: 0.95rem;
    line-height: 1.1;
}

.garage-slot-roadmap-meta .resource-metric-copy > span {
    font-weight: 800;
}
}/* Source: public/css/source/components/metrics/cups.css */

@layer components {/* Resource metric variants owned by cups. Keep every selector inside its owner. */

.cup-reward .resource-metric-copy > :is(strong, span) {
    display: block;
    overflow: visible;
    text-overflow: clip;
}
}/* Source: public/css/source/components/metrics/car-panel.css */

@layer components {/* Resource metric variants owned by car-panel. Keep every selector inside its owner. */

:is(.home-active-car-panel, .garage-car-detail-panel) .car-panel-full-summary-grid .resource-metric-icon {
    display: block;
}
}/* Source: public/css/source/components/metrics/tours.css */

@layer components {/* Resource metric variants owned by tours. Keep every selector inside its owner. */

@media (max-width: 760px) {

    .game-shell.app-scale-page :is(.tour-job-row) .resource-metric-copy > :is(strong, span) {
        max-width: 100%;
        white-space: normal;
        hyphens: manual;
    }
}
}/* Source: public/css/source/components/metrics/team.css */

@layer components {/* Resource metric variants owned by team. Keep every selector inside its owner. */

@media (max-width: 760px) {

    .game-shell.app-scale-page :is(.team-member-upgrade-stat-card, .team-upgrade-card > .stack) .resource-metric-copy > :is(strong, span) {
        max-width: 100%;
        white-space: normal;
        hyphens: manual;
    }
}
}/* Source: public/css/source/pages/race-multi-index/mobile.css */

@layer components {/* Multi-race opponent grid: local layout, independent of generic race pagers. */

@media (max-width: 760px) {

    :where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-section-head {
        display: flex;
        flex-flow: row wrap;
        align-items: start;
        gap: 8px 10px;
    }

    :where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-section-head > div:first-child {
        grid-area: title;
        flex: 1 1 220px;
        min-width: 0;
    }

    :where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-list-actions {
        display: contents;
    }

    :where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-tab-count-controls {
        grid-area: count;
        justify-self: end;
        align-self: start;
        width: auto;
    }

    :where(.ui-page-race-multi-index) .race-multi-opponents-panel .race-pager {
        grid-area: pager;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}
}/* Source: public/css/source/pages/fan-club/common.css */

@layer components {/* Fan Club only. Page scope must remain on every selector. */

:where(.ui-page-fan-club) .fan-club-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(560px, 0.72fr);
    gap: 24px;
    align-items: center;
}

:where(.ui-page-fan-club) .fan-club-hero .resources-lead {
    max-width: 82ch;
    margin: 10px 0 0;
    line-height: 1.55;
}

:where(.ui-page-fan-club) .fan-club-unlock-note {
    margin: 12px 0 0;
    width: fit-content;
    font-size: 0.95rem;
}

:where(.ui-page-fan-club) .fan-club-hero-side {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.72fr);
    gap: 12px;
    align-items: stretch;
}

:where(.ui-page-fan-club) .fan-club-current-rank {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    padding: 14px;
}

:where(.ui-page-fan-club) .fan-club-wallet {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.9);
    padding: 14px;
}

:where(.ui-page-fan-club) .fan-club-current-rank {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

:where(.ui-page-fan-club) .fan-club-rank-image-frame {
    width: 76px;
    aspect-ratio: 1;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-border-rgb), 0.45);
    background: linear-gradient(180deg, rgba(255, 247, 233, 0.96), rgba(255, 239, 212, 0.78));
    display: grid;
    place-items: center;
    color: var(--accent-2);
    font-weight: 900;
    letter-spacing: 0.02em;
}

:where(.ui-page-fan-club) .fan-club-rank-image-frame::before {
    content: var(--rank-level);
    font-size: 1.35rem;
}

:where(.ui-page-fan-club) .fan-club-rank-image-frame img {
    display: none;
}

:where(.ui-page-fan-club) .fan-club-wallet {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 230px;
}

:where(.ui-page-fan-club) .fan-club-current-rank span,
:where(.ui-page-fan-club) .fan-club-wallet span,
:where(.ui-page-fan-club) .fan-club-current-rank small,
:where(.ui-page-fan-club) .fan-club-wallet small {
    color: var(--muted);
}

:where(.ui-page-fan-club) .fan-club-current-rank strong,
:where(.ui-page-fan-club) .fan-club-wallet strong {
    display: block;
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-fan-club) .fan-club-summary-grid {
    grid-template-columns: minmax(240px, 0.62fr) minmax(420px, 1.18fr) minmax(240px, 0.62fr);
    gap: 16px;
    margin-top: 0;
}

:where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge {
    grid-template-columns: 1fr;
    align-items: stretch;
}

:where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge > div:first-child strong {
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge > div:last-child {
    display: grid;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge small {
    font-size: 1rem;
    line-height: 1.15;
}

:where(.ui-page-fan-club) .fan-club-progress-grid .team-kpi-card {
    align-content: center;
}

:where(.ui-page-fan-club) .fan-club-rank-pager {
    justify-content: flex-end;
    min-width: min(100%, 560px);
}

:where(.ui-page-fan-club) .fan-club-offer-card {
    min-height: 100%;
    gap: 10px;
    padding: 18px;
    outline: none;
}

:where(.ui-page-fan-club) .resources-grid.fan-club-offer-grid.is-row-layout,
:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card {
    min-height: 0;
    display: grid;
    grid-template-areas: "main cost reward level action";
    align-items: center;
    border-radius: 20px;
}

:where(.ui-page-fan-club) .fan-club-offer-main {
    grid-area: main;
    display: grid;
    gap: 6px;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-main p {
    margin: 0;
    max-width: 46ch;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-meta {
    grid-area: meta;
    margin-top: 0;
    display: contents;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-reward-row {
    grid-area: reward;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-cost-row {
    grid-area: cost;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card form {
    grid-area: action;
    margin: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card .button {
    width: 100%;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card {
    display: grid;
    grid-template-columns: 76px minmax(260px, 0.72fr) minmax(0, 1.4fr) auto;
    grid-template-areas: "image main perk badge";
    align-items: center;
    border-radius: 18px;
    outline: none;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card.is-active {
    box-shadow: inset 0 0 0 1px rgba(var(--action-rgb), 0.28);
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-image-frame-small {
    grid-area: image;
    width: 64px;
    border-radius: 14px;
}

:where(.ui-page-fan-club) .fan-club-rank-main {
    grid-area: main;
    display: grid;
    gap: 4px;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card > small {
    grid-area: perk;
    min-width: 0;
    text-align: left;
    color: var(--muted);
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-current-badge {
    position: static;
    grid-area: badge;
    justify-self: end;
    border-radius: 999px;
    padding: 9px 14px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    font-weight: 900;
}

:where(.ui-page-fan-club) .fan-club-offer-card h3 {
    font-size: 1rem;
    line-height: 1.2;
}

:where(.ui-page-fan-club) .fan-club-offer-card p {
    font-size: 1rem;
}

:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-list {
    gap: 8px;
    margin-top: 6px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card .resource-preview-list {
    margin-top: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-item {
    min-height: 66px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    overflow: hidden;
}

:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-item strong,
:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-item span {
    font-size: 1rem;
}

:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-item em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.14;
}

:where(.ui-page-fan-club) .resource-preview-item.fan-club-offer-reward-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    justify-content: stretch;
    align-items: start;
    align-content: start;
    gap: 7px;
}

:where(.ui-page-fan-club) .resource-preview-item.fan-club-offer-cost-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    justify-content: stretch;
    align-items: start;
    align-content: start;
    gap: 7px;
    text-align: left;
}

:where(.ui-page-fan-club) .fan-club-offer-reward-row > span,
:where(.ui-page-fan-club) .fan-club-offer-cost-row > span {
    display: grid;
    min-width: 0;
    gap: 3px;
    line-height: 1.14;
    text-align: left;
}

:where(.ui-page-fan-club) .fan-club-offer-cost-row > span > strong,
:where(.ui-page-fan-club) .fan-club-offer-reward-row > span > strong {
    display: block;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.12;
}

:where(.ui-page-fan-club) .fan-club-offer-cost-row > span > em {
    display: block;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.14;
    white-space: normal;
    overflow-wrap: normal;
}

:where(.ui-page-fan-club) .fan-club-offer-reward-row > span > em {
    display: block;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.14;
    white-space: normal;
}

:where(.ui-page-fan-club) .fan-club-offer-resource-lines {
    display: grid;
    gap: 5px;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-resource-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.12;
}

:where(.ui-page-fan-club) .fan-club-offer-resource-line > span:last-child {
    min-width: 0;
    overflow-wrap: normal;
}

:where(.ui-page-fan-club) .resource-preview-item.fan-club-offer-reward-row > span:last-child {
    text-align: left;
}

:where(.ui-page-fan-club) .fan-club-offer-reward-row > span em {
    max-width: 100%;
    overflow-wrap: normal;
}

:where(.ui-page-fan-club) .fan-club-offer-reward-row .resource-icon-stack {
    align-self: center;
    justify-self: start;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

:where(.ui-page-fan-club) .fan-club-offer-resource-line .resource-icon-stack {
    align-self: center;
    justify-self: start;
}

:where(.ui-page-fan-club) .fan-club-offer-cost-row .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame,
:where(.ui-page-fan-club) .fan-club-offer-reward-row .resource-icon-stack.is-chip .resource-icon-frame + .resource-icon-frame {
    margin-left: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-card form {
    justify-self: start;
}

:where(.ui-page-fan-club) .resource-card.fan-club-offer-card .button {
    width: auto;
    min-height: 0;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-card.fan-club-offer-card .button {
    width: 100%;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-preview-item.fan-club-offer-cost-row > span,
:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-preview-item.fan-club-offer-reward-row > span {
    justify-items: start;
    text-align: left;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-preview-item.fan-club-offer-cost-row > span > *,
:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-preview-item.fan-club-offer-reward-row > span > * {
    text-align: left;
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card.is-active {
    background: var(--theme-surface-strong);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card {
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-offer-card .resource-preview-item,
body.theme-colored:where(.ui-page-fan-club) .fan-club-offer-cost-row,
body.theme-colored:where(.ui-page-fan-club) .fan-club-offer-reward-row {
    border-color: var(--theme-border-soft);
    background: rgba(255, 253, 249, 0.92);
    color: var(--text);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card {
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card.is-active {
    border-color: var(--selected-border);
    box-shadow: inset 0 0 0 1px var(--selected-outline), 0 12px 26px var(--theme-shadow-soft);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-image-frame-small {
    border-color: var(--theme-border-soft);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-current-rank,
body.theme-colored:where(.ui-page-fan-club) .fan-club-wallet,
body.theme-colored:where(.ui-page-fan-club) .fan-club-progress-grid .team-kpi-card {
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 22px var(--theme-shadow-subtle);
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-rank-image-frame {
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text);
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout {
    display: grid;
    row-gap: 16px;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card > small {
    font-size: var(--stat-box-font-size);
    line-height: 1.25;
}

:where(.ui-page-fan-club) .fan-club-rank-image-frame {
    box-shadow: none;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card {
    grid-template-columns: minmax(250px, 1fr) minmax(160px, 0.5fr) minmax(220px, 0.72fr) minmax(145px, 0.42fr) minmax(132px, 0.3fr);
    gap: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    max-width: 100%;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card form {
    min-width: 0;
    justify-self: stretch;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .resource-card.fan-club-offer-card .button,
:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card .button {
    min-width: 0;
    min-height: 48px;
    padding: 9px 10px;
    font-size: 0.88rem;
    white-space: nowrap;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card .resource-preview-item {
    min-height: 58px;
    padding: 8px 10px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-resource-line {
    gap: 6px;
    font-size: 0.95rem;
}

:where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-current-badge {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "image body";
    align-items: start;
    gap: 14px 24px;
    padding: 16px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card > .upgrade-visual-frame-large {
    grid-area: image;
    width: 200px;
    max-width: 200px;
    height: 200px;
    align-self: start;
    justify-self: start;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card > .structured-action-card-body {
    grid-area: body;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-main {
    grid-area: head;
    width: 100%;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-main p {
    max-width: none;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-main .fan-club-offer-level-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.25;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-main .fan-club-offer-level-info strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-meta {
    width: 100%;
    grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1fr) minmax(160px, 0.5fr);
    justify-content: stretch;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-stack.structured-action-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-row {
    display: grid;
    grid-template-columns: repeat(var(--fan-club-offer-metric-columns, 4), minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-meta > .resource-preview-item {
    grid-area: auto;
    min-height: 62px;
    padding: 8px 10px;
    align-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-row > .resource-preview-item {
    grid-area: auto;
    min-height: 62px;
    padding: 8px 10px;
    align-content: center;
    gap: 5px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > form {
    grid-area: auto;
    justify-self: end;
    min-width: 180px;
    width: auto;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

:where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions .fan-club-offer-level-info {
    display: grid;
    grid-area: auto;
    min-height: 52px;
    padding: 8px 10px;
    align-content: center;
    margin-right: auto;
    width: min(300px, 100%);
    border: 1px solid var(--theme-border);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: none;
}

body.theme-colored:where(.ui-page-fan-club) .fan-club-current-rank,
body.theme-colored:where(.ui-page-fan-club) .fan-club-wallet {
    border-color: var(--theme-border-muted);
}
}/* Source: public/css/source/pages/fan-club/compact.css */

@layer components {/* Tablet and mobile layouts; never included in the desktop bundle. */

@media (max-width: 1180px) {

    :where(.ui-page-fan-club) .fan-club-hero,
    :where(.ui-page-fan-club) .fan-club-summary-grid {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-fan-club) .fan-club-hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card {
        grid-template-areas: "main cost action"
            "main reward action"
            "level reward action";
    }

    :where(.ui-page-fan-club) .fan-club-offer-main p {
        max-width: none;
    }

    :where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card {
        grid-template-columns: 72px minmax(220px, 0.72fr) minmax(0, 1fr);
        grid-template-areas: "image main badge"
            "image perk perk";
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-meta,
    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-row {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > form {
        width: 100%;
    }
}
}/* Source: public/css/source/pages/fan-club/mobile.css */

@layer components {@media (max-width: 760px) {
}

/* Fan Club only. Page scope must remain on every selector. */

@media (max-width: 760px) {

    :where(.ui-page-fan-club) .fan-club-hero-side,
    :where(.ui-page-fan-club) .fan-club-summary-grid .team-kpi-card-gauge {
        grid-template-columns: 1fr;
    }

    :where(.ui-page-fan-club) .fan-club-unlock-note {
        text-align: left;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card {
        grid-template-columns: 1fr;
        grid-template-areas: "main"
            "cost"
            "reward"
            "level"
            "action";
    }

    :where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-rank-card {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas: "image main"
            "perk perk"
            "badge badge";
    }

    :where(.ui-page-fan-club) .fan-club-rank-grid.is-row-layout .fan-club-current-badge {
        justify-self: start;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "image"
            "body";
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card > .upgrade-visual-frame-large {
        grid-area: image;
        justify-self: center;
        width: min(180px, 100%);
        max-width: 180px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card > .structured-action-card-body {
        grid-area: body;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .fan-club-offer-quantity-row > .resource-preview-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 62px;
        padding: 8px 10px;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > :is(.resource-preview-item, form) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > .fan-club-offer-level-info {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        justify-self: stretch;
        position: static;
        transform: none;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > form:nth-of-type(1),
    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions > form:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    :where(.ui-page-fan-club) .fan-club-offer-grid.is-row-layout .fan-club-offer-card.structured-action-card .structured-action-card-actions .button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}
}/* Source: public/css/source/mobile.css */

@layer edition {/* Mobile-only changes (<=760px). No tablet/desktop runtime dependency. */
}
