@layer legacy-components {
* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 4%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(0deg, color-mix(in srgb, var(--brand) 3.4%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--bg);
    color: var(--text);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-bottom: 28px;
    transition: background 0.2s ease, color 0.2s ease;
}

body.app-loading {
    overflow: hidden;
    padding-bottom: 0;
    background: #22241f;
}

body.app-loading > :not(#appLoadingScreen):not(script):not(noscript) {
    visibility: hidden;
}

.app-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(201, 154, 61, 0.16), transparent 48%),
        linear-gradient(145deg, #2a2c27, #3a3c36 52%, #222420);
    color: #fffdf3;
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.app-loading-screen::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(rgba(255, 253, 243, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 253, 243, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
    pointer-events: none;
}

.app-loading-screen.is-leaving {
    opacity: 0;
    visibility: hidden;
}

.app-loading-content {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.app-loading-content img {
    width: 104px;
    height: 104px;
}

.app-loading-content strong {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.app-loading-content span {
    color: rgba(255, 253, 243, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.app-loading-content i {
    width: 30px;
    height: 30px;
    margin-top: 8px;
    border: 3px solid rgba(255, 253, 243, 0.22);
    border-top-color: #c99a3d;
    border-radius: 50%;
    animation: app-loading-spin 800ms linear infinite;
}

@keyframes app-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .app-loading-screen {
        transition: none;
    }

    .app-loading-content i {
        animation-duration: 1600ms;
    }
}

body.dark,
html.dark body {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 3.5%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(0deg, color-mix(in srgb, var(--brand) 2.8%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--bg);
}

button,
select {
    font: inherit;
}

button {
    touch-action: manipulation;
}

a {
    color: inherit;
}

.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;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    min-height: var(--target-min);
    display: inline-flex;
    align-items: center;
    transform: translateY(-160%);
    border-radius: var(--radius-control);
    background: var(--ink);
    color: var(--bg-card);
    padding: 10px 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-tight);
    transition: transform 0.16s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

#main-content:focus {
    outline: none;
}

.theme-toggle {
    width: var(--target-min);
    height: var(--target-min);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.16s ease, background 0.16s ease;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

body.dark .theme-toggle {
    background: rgba(0, 0, 0, 0.34);
    border-color: rgba(255, 255, 255, 0.16);
}

.header {
    position: relative;
    overflow: hidden;
    min-height: 162px;
    padding: 24px 80px 64px;
    background:
        linear-gradient(115deg, rgba(201, 154, 61, 0.18), transparent 34%),
        linear-gradient(135deg, var(--brand-header-a) 0%, var(--brand-header-b) 54%, var(--brand-header-c) 100%);
    color: white;
}

.header::before,
.header::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.header::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 68px 68px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 68px 68px;
    opacity: 0.42;
}

.header::after {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -280px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width, 1180px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: transparent;
    color: inherit;
    display: grid;
    place-items: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.logo svg,
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-text h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 800;
}

.subtitle {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
}

.product-disclosure {
    margin-top: 5px;
    color: rgba(255, 253, 243, 0.68);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refresh-btn {
    width: var(--target-min);
    height: var(--target-min);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
}

.refresh-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.refresh-btn:hover .refresh-icon {
    animation: spin-once 0.45s ease;
}

.refresh-btn:disabled {
    cursor: wait;
    opacity: 0.78;
}

.refresh-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.12);
}

.refresh-btn.is-refreshing .refresh-icon {
    animation: spin-once 0.76s linear infinite;
}

.refresh-icon {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
}

body.native-shell .header-actions,
body.native-shell .tabs {
    display: none;
}

body.native-shell .header-content {
    padding-right: 0;
}

@keyframes spin-once {
    to { transform: rotate(360deg); }
}

.container {
    width: min(
        var(--content-max-width, 1180px),
        calc(100% - (2 * var(--content-page-gutter, 24px)))
    );
    margin: -44px auto 0;
    position: relative;
    z-index: 2;
}

.hero-hub,
.card,
.tabs,
.calendar-hub > .card {
    box-shadow: var(--shadow);
}

.hero-hub {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    min-height: 286px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-card);
    background:
        linear-gradient(120deg, rgba(201, 154, 61, 0.12), transparent 38%),
        linear-gradient(135deg, var(--brand-hero-a) 0%, var(--brand-hero-b) 55%, var(--brand-hero-c) 100%);
    color: white;
}

.hero-hub::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 86px 86px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 86px 86px;
    opacity: 0.32;
    pointer-events: none;
}

.hero-hub > * {
    position: relative;
    z-index: 1;
}

.hero-card {
    grid-column: 1;
    grid-row: 1;
    padding: 34px 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 22px;
}

.hero-card.live {
    box-shadow: inset 0 0 0 3px var(--live);
}

.hero-comp {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f1d588;
    padding: 7px 12px;
    font-size: 0.73rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 4px rgba(217, 61, 55, 0.18);
    vertical-align: 1px;
    animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.22); }
}

.hero-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.hero-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-team:last-child {
    flex-direction: row-reverse;
}

.hero-team-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.hero-team:last-child .hero-team-copy {
    text-align: right;
}

.hero-team-role {
    color: rgba(255, 253, 243, 0.68);
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-marker {
    --team-marker-bg: var(--brand);
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fffdf3;
    background:
        linear-gradient(90deg, transparent 48%, rgba(255, 253, 243, 0.22) 48%, rgba(255, 253, 243, 0.22) 52%, transparent 52%),
        radial-gradient(circle at center, transparent 0 25%, rgba(255, 253, 243, 0.2) 26% 29%, transparent 30%),
        var(--team-marker-bg);
    border: 1px solid rgba(255, 253, 243, 0.72);
    border-radius: 50%;
    box-shadow: var(--shadow-team-marker);
    font-size: 0.55rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
}

.team-marker[data-team-tone="1"] { --team-marker-bg: var(--brand-strong); }
.team-marker[data-team-tone="2"] { --team-marker-bg: var(--ink); }
.team-marker[data-team-tone="3"] {
    --team-marker-bg: var(--gold);
    color: var(--brand-strong);
    border-color: var(--border-team-marker-accent);
}

.hero-team .team-marker {
    width: 72px;
    height: 72px;
    min-width: 72px;
    flex-basis: 72px;
    border-width: 2px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.22);
    font-size: 1rem;
}

.hero-team-name {
    min-width: 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.05;
    font-weight: 800;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-empty-state {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.08);
    padding: 24px;
}

.hero-empty-state strong,
.hero-empty-state span {
    display: block;
}

.hero-empty-state strong {
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-empty-state span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 700;
}

.hero-center-score {
    justify-self: center;
    min-width: 96px;
    display: grid;
    place-items: center;
    gap: 6px;
}

.hero-vs {
    color: rgba(255, 255, 255, 0.82);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.hero-score {
    color: #fff;
    font-size: 3.25rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hero-score .score-sep {
    color: rgba(255, 255, 255, 0.52);
}

.hero-score.live-score {
    animation: scorePulse 2.8s ease-in-out infinite;
}

@keyframes scorePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.86; }
}

.hero-minute,
.hero-ht {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 4px 10px;
    color: #f6d889;
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-ht {
    color: rgba(255, 255, 255, 0.72);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.25;
}

.hero-meta-date {
    color: #fff;
    font-weight: 800;
}

.hero-meta-sep {
    opacity: 0.36;
}

.hero-meta-pill {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 9px;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.hero-bottom {
    grid-column: 2;
    grid-row: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: color-mix(in srgb, var(--brand-950) 50%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 30px;
}

.hero-context {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-context-loading,
.hero-context-empty {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-record-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-record-title strong {
    color: #f2cf7a;
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
}

.hero-record-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.hero-record-stats div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 4px 8px;
    text-align: center;
}

.hero-record-stats strong,
.hero-record-stats span {
    display: block;
}

.hero-record-stats strong {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-record-stats span {
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.hero-record.is-empty p,
.hero-record.is-loading p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-icon-actions {
    display: flex;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-icon-action {
    width: 44px;
    height: 44px;
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background var(--motion), border-color var(--motion), transform var(--motion);
}

.hero-icon-action:hover {
    border-color: rgba(255, 253, 243, 0.56);
    background: rgba(255, 253, 243, 0.14);
    transform: translateY(-1px);
}

.hero-icon-action:focus-visible {
    border-color: var(--focus);
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.hero-icon-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-countdown {
    text-align: left;
}

.countdown-label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.countdown-digits {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.cd-unit {
    min-width: 54px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 8px 8px;
    display: grid;
    justify-items: center;
    gap: 3px;
}

.cd-val {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cd-lbl {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.cd-sep {
    display: none;
}

.hero-brazil-next {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-brazil-list {
    display: grid;
    gap: 8px;
}

.hero-brazil-item {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-brazil-summary {
    padding: 9px 76px 9px 10px;
}

.hero-brazil-item span,
.hero-brazil-item strong {
    display: block;
    min-width: 0;
}

.hero-brazil-item span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-brazil-item strong {
    margin-top: 5px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.match-card > summary {
    list-style: none;
}

.match-card > summary::-webkit-details-marker {
    display: none;
}

.match-card-summary {
    position: relative;
    cursor: pointer;
    transition: background var(--motion);
}

.match-card-summary:hover {
    background: color-mix(in srgb, var(--control-accent-soft) 48%, var(--bg-card));
}

.match-card-summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.hero-brazil-item .match-card-summary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-brazil-item .cal-match-prediction {
    border-top-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.16);
}

.hero-brazil-item .prediction-card.compact {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.hero-brazil-item .prediction-match,
.hero-brazil-item .prob-value {
    color: #fff;
}

.hero-brazil-item .match-details-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.hero-brazil-item .match-detail-title,
.hero-brazil-item .match-detail-score,
.hero-brazil-item .match-detail-stat strong,
.hero-brazil-item .match-detail-meta strong {
    color: #fff;
}

.hero-brazil-item .match-detail-stat,
.hero-brazil-item .match-detail-score {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.club-home-shell {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.club-home-panel,
.club-match-board {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: var(--shadow-tight);
}

.club-home-panel {
    overflow: hidden;
    padding: 22px;
    background: var(--bg-card);
}

.club-match-board {
    padding: 18px;
}

.club-board-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.club-board-head.compact {
    align-items: start;
    margin-bottom: 14px;
}

.club-kicker {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.club-board-head h2,
.club-board-head h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.club-board-head h2 {
    font-size: 1.28rem;
    line-height: 1.12;
}

.club-board-head h3,
.club-snapshot-head h3 {
    font-size: 1.04rem;
    line-height: 1.2;
}

.club-board-head p,
.club-snapshot-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
}

.club-actions,
.match-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ds-action,
.match-filter {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text);
    padding: 8px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.ds-action:hover,
.match-filter:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--control-accent-soft);
}

.ds-action.primary,
.match-filter.active {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.club-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.club-snapshot-head {
    margin-bottom: 10px;
}

.club-snapshot-head h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.match-preview-list {
    display: grid;
    gap: 10px;
}

.match-preview-card {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
    border-radius: var(--radius-card);
    background: var(--bg-card);
    overflow: hidden;
}

.match-preview-summary {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
}

@media (min-width: 721px) {
    .match-preview-summary {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .match-preview-date {
        grid-template-columns: auto auto;
        justify-content: start;
        align-items: baseline;
        gap: 6px;
    }
}

.match-preview-card.loss {
    border-color: color-mix(in srgb, var(--loss) 58%, var(--line));
}

.match-preview-card.draw {
    border-color: color-mix(in srgb, var(--draw) 58%, var(--line));
}

.match-preview-card.live {
    border-color: color-mix(in srgb, var(--live) 58%, var(--line));
    background: rgba(217, 61, 55, 0.06);
}

.match-preview-date,
.match-date {
    display: grid;
    justify-items: start;
    gap: 4px;
}

.match-preview-date strong,
.match-date strong {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.match-preview-date span,
.match-date span {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 800;
}

.match-preview-main,
.match-body {
    min-width: 0;
}

.match-preview-teams,
.match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.match-preview-teams > .match-preview-team,
.match-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.match-preview-teams > .match-preview-team:last-child,
.match-team.away {
    justify-content: flex-end;
    text-align: right;
}

.match-preview-team-name,
.match-team-name {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-team-copy,
.cal-match-team-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.match-preview-team:last-child .match-team-copy,
.match-team.away .match-team-copy,
.cal-match-team-right .cal-match-team-copy {
    text-align: right;
}

.match-team-role,
.cal-match-team-role {
    color: var(--text-muted);
    font-size: 0.56rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.match-preview-teams .team-marker,
.match-team .team-marker {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 22px;
}

.match-preview-teams strong,
.club-score {
    justify-self: center;
    min-width: 42px;
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    color: var(--ink);
    padding: 6px 7px;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 800;
}

.match-meta span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.match-preview-card .match-meta {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.match-preview-card .match-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

.match-preview-card .match-meta .match-result {
    flex: 0 0 auto;
}

.match-result {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 3px;
    background: var(--bg-soft);
    color: var(--text-secondary);
    padding: 3px 7px;
    line-height: 1;
}

.match-result.win {
    color: var(--win);
    background: color-mix(in srgb, var(--win) 13%, transparent);
}

.match-result.loss {
    color: var(--loss);
    background: color-mix(in srgb, var(--loss) 13%, transparent);
}

.match-result.draw {
    color: var(--draw);
    background: color-mix(in srgb, var(--draw) 13%, transparent);
}

.match-result.live {
    color: var(--live);
    background: color-mix(in srgb, var(--live) 13%, transparent);
}

.match-result.pending {
    color: var(--gold-strong);
    background: color-mix(in srgb, var(--gold) 14%, transparent);
}

.match-group + .match-group {
    margin-top: 14px;
}

.match-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: capitalize;
}

.match-group-heading strong {
    color: var(--brand);
    font-size: 0.7rem;
    white-space: nowrap;
}

.match-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.match-row {
    border-top: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent);
    background: var(--bg-card);
    overflow: hidden;
}

.match-row-summary {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.match-row:first-child {
    border-top: 0;
}

.match-row.live {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 58%, transparent);
    background: rgba(217, 61, 55, 0.06);
}

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

.agenda-content-grid {
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.agenda-content-grid .calendar-hub {
    position: sticky;
    top: 16px;
}

.agenda-feed {
    min-width: 0;
}

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

.card {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: 22px;
}

.card-title {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 800;
}

.competition-hub {
    padding: 20px;
}

.competition-hub .card-title {
    margin-bottom: 0;
}

.competition-hub-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.competition-hub-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
}

.competition-card-action {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text);
    padding: 8px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.competition-card-action:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--control-accent-soft);
}

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

.competition-card {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--comp-color, var(--comp-other)) 52%, var(--line));
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 14px;
}

.competition-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.competition-code {
    display: inline-block;
    color: var(--comp-color, var(--brand));
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.competition-card h3 {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.18;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.competition-status {
    justify-self: end;
    border-radius: 999px;
    background: rgba(10, 122, 74, 0.12);
    color: var(--brand);
    padding: 6px 8px;
    font-size: 0.64rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.competition-status.live {
    color: var(--live);
    background: rgba(217, 61, 55, 0.14);
}

.competition-status.finished,
.competition-status.idle {
    color: var(--text-secondary);
    background: var(--bg-card);
}

.competition-status.warning {
    color: var(--warning-text, #8a4b00);
    background: rgba(216, 137, 20, 0.14);
}

.competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.69rem;
    line-height: 1.25;
    font-weight: 800;
}

.competition-record {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.competition-record div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    padding: 8px 5px;
    text-align: center;
}

.competition-record strong,
.competition-record span {
    display: block;
}

.competition-record strong {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
}

.competition-record span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.competition-match {
    min-width: 0;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    overflow: hidden;
}

.competition-match-summary {
    padding: 10px;
}

.competition-match.empty-line {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
}

.competition-match span,
.competition-match strong,
.competition-match small {
    display: block;
    min-width: 0;
}

.competition-match span,
.competition-match small {
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.competition-match strong {
    margin-top: 6px;
    color: var(--text);
    font-size: 0.83rem;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.competition-match strong em {
    color: var(--comp-color, var(--brand));
    font-style: normal;
    white-space: nowrap;
}

.competition-match small {
    margin-top: 7px;
    color: var(--comp-color, var(--brand));
}

.competition-card-action {
    width: 100%;
    margin-top: 12px;
    border-color: color-mix(in srgb, var(--comp-color, var(--brand)) 28%, var(--line));
    color: var(--comp-color, var(--brand));
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-nav);
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

body.dark .tabs {
    background: var(--surface-nav);
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    min-height: var(--target-min);
    flex: 1 0 max-content;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tab-icon {
    display: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab-btn:hover {
    background: var(--control-accent-soft);
    color: var(--ink);
}

.tab-btn.active {
    background: var(--action-bg);
    color: var(--action-text);
}

.tab-btn:active {
    transform: scale(0.98);
}

.tab-content[hidden] {
    display: none;
}

.tab-content.active {
    display: block;
}

.comp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.comp-legend-item {
    min-height: var(--target-min);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 7px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.comp-legend-item:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    color: var(--ink);
}

.comp-legend-item.active {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.comp-legend-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.comp-legend-label {
    color: inherit;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cal-title {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-title::before {
    content: "";
    width: 8px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(var(--brand), var(--gold));
}

.cal-title select {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    color: var(--text);
    padding: 4px 26px 4px 8px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
}

.calendar-nav {
    display: grid;
    grid-template-columns: var(--target-min) 1fr var(--target-min);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-nav span {
    color: var(--ink);
    text-align: center;
    font-size: 0.98rem;
    font-weight: 800;
}

.cal-nav-btn {
    width: var(--target-min);
    height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    transition: background 0.16s ease, transform 0.16s ease;
}

.cal-nav-btn:hover {
    background: var(--control-accent-soft);
}

.cal-nav-btn:active {
    transform: scale(0.94);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
}

.calendar-grid > .empty {
    grid-column: 1 / -1;
}

.cal-head {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 7px 3px 5px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    position: relative;
}

.cal-day:not(.other-month):hover {
    background: var(--control-accent-soft);
    border-color: var(--line);
}

.cal-day:active {
    transform: scale(0.96);
}

.cal-day.other-month {
    pointer-events: none;
    opacity: 0.2;
}

.cal-day.today {
    border-color: var(--gold);
    background: rgba(201, 154, 61, 0.12);
}

.cal-day.has-match {
    background: var(--bg-soft);
}

.cal-day.selected {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.cal-day.is-live {
    box-shadow: inset 0 0 0 2px rgba(217, 61, 55, 0.7);
}

.cal-day-num {
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 800;
}

.cal-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 7px;
}

.cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cal-dot.bsa,
.cal-match.bsa,
.cal-match-comp.bsa {
    --comp-color: var(--comp-bsa);
}

.cal-dot.cli,
.cal-match.cli,
.cal-match-comp.cli {
    --comp-color: var(--comp-cli);
}

.cal-dot.copa,
.cal-match.copa,
.cal-match-comp.copa,
.competition-card.copa {
    --comp-color: var(--comp-copa);
}

.cal-dot.paulista,
.cal-match.paulista,
.cal-match-comp.paulista,
.competition-card.paulista {
    --comp-color: var(--comp-paulista);
}

.cal-dot.other,
.cal-match.other,
.cal-match-comp.other,
.competition-card.other {
    --comp-color: var(--comp-other);
}

.competition-card.bsa {
    --comp-color: var(--comp-bsa);
}

.competition-card.cli {
    --comp-color: var(--comp-cli);
}

.cal-dot {
    background: var(--comp-color, var(--comp-other));
}

.cal-overflow {
    color: var(--text-muted);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
}

.cal-day.selected .cal-overflow {
    color: rgba(255, 255, 255, 0.76);
}

.cal-score {
    max-width: 100%;
    border-radius: 999px;
    padding: 2px 5px;
    color: var(--brand);
    background: rgba(10, 122, 74, 0.13);
    font-size: 0.58rem;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-score.win {
    color: var(--win);
    background: rgba(10, 122, 74, 0.14);
}

.cal-score.loss {
    color: var(--loss);
    background: rgba(185, 59, 54, 0.14);
}

.cal-score.draw {
    color: var(--draw);
    background: rgba(109, 116, 111, 0.14);
}

.cal-score.neutral {
    color: var(--comp-other);
    background: rgba(139, 63, 104, 0.14);
}

.cal-score.live {
    color: var(--live);
    background: rgba(217, 61, 55, 0.16);
}

.cal-day.selected .cal-score {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.cal-expanded {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    overflow: hidden;
}

.cal-expanded-header {
    padding: 12px 14px 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.cal-match {
    border-top: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--comp-color, var(--comp-other)) 48%, transparent);
}

.cal-match-main {
    display: grid;
    grid-template-columns: 46px 86px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

/* The selected-day card lives in the narrow desktop calendar rail. Give its
   metadata and matchup separate rows so team names never collapse to 0px. */
.cal-expanded .cal-match-main {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
        "time competition status"
        "teams teams teams";
    row-gap: 10px;
}

.cal-expanded .cal-match-time {
    grid-area: time;
}

.cal-expanded .cal-match-comp {
    grid-area: competition;
}

.cal-expanded .cal-match-teams {
    grid-area: teams;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.cal-expanded .cal-match-status {
    grid-area: status;
    justify-self: end;
}

.cal-match-time {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cal-match-comp {
    color: var(--comp-color, var(--text-secondary));
    font-size: 0.68rem;
    line-height: 1.1;
    font-weight: 800;
}

.cal-match-comp-name {
    display: block;
}

.cal-match-stage {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.2;
    font-weight: 700;
}

.cal-match-teams {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.cal-match-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cal-match-team-right {
    justify-content: flex-end;
}

.cal-match-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-match-team-copy {
    overflow: hidden;
}

.cal-match-vs {
    color: var(--text-muted);
    flex: 0 0 auto;
}

.cal-match-crest {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 22px;
}

.cal-match-score {
    min-width: 42px;
    margin: 0;
    padding: 5px 7px;
    text-align: center;
    color: var(--ink);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
    border-radius: var(--radius-control);
    font-size: 0.84rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cal-match-status {
    justify-self: end;
    border-radius: 3px;
    background: var(--bg-soft);
    color: var(--text-secondary);
    padding: 5px 8px;
    font-size: 0.65rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.cal-match-status.live {
    color: var(--live);
    background: rgba(217, 61, 55, 0.14);
}

.cal-match-status.finished {
    color: var(--brand);
    background: var(--brand-soft);
}

.cal-match-status.win {
    color: var(--win);
    background: color-mix(in srgb, var(--win) 13%, transparent);
}

.cal-match-status.loss {
    color: var(--loss);
    background: color-mix(in srgb, var(--loss) 13%, transparent);
}

.cal-match-status.draw {
    color: var(--draw);
    background: color-mix(in srgb, var(--draw) 13%, transparent);
}

.cal-match-status.scheduled,
.cal-match-status.neutral {
    color: var(--text-secondary);
    background: var(--bg-soft);
}

.cal-match-prediction {
    border-top: 1px solid var(--line);
    padding: 10px 14px 12px;
    background: var(--bg-soft);
}

.position-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--action-bg);
    color: var(--action-text);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: var(--shadow-position-badge);
}

.section-head,
.standings-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}

.section-head .card-title,
.standings-head .card-title {
    margin-bottom: 0;
}

.section-head p,
.standings-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
}

.standings-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.standings-filter {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.standings-filter:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--control-accent-soft);
    color: var(--ink);
}

.standings-filter.active {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.stat-box {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    padding: 12px 8px;
    text-align: center;
}

.stat-value {
    color: var(--brand);
    font-size: 1.12rem;
    line-height: 1.1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stat-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 800;
}

.standings-section {
    min-width: 0;
}

.standings-section + .standings-section,
.standings-campaign .standings-section {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.standings-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.standings-section-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 800;
}

.standings-section-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
    font-weight: 700;
}

.standings-section-head > span:not(.competition-status) {
    align-self: start;
    border-radius: var(--radius-control);
    background: var(--brand-soft);
    color: var(--brand);
    padding: 6px 8px;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.standings-data-note {
    margin-top: 16px;
    border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--gold) 10%, var(--bg-card));
    color: var(--text-secondary);
    padding: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 800;
}

.standings-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.standings-focus-grid .competition-match {
    margin-top: 0;
}

.standings-match-group + .standings-match-group {
    margin-top: 14px;
}

.standings-table {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.standings-table .standings-row {
    padding: 10px;
}

.standings-table .standings-row:first-child {
    border-top: 0;
}

.standings-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 10px 0;
}

.standings-row.is-favorite {
    margin: 6px -10px;
    border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--line));
    border-radius: var(--radius-card);
    background: var(--brand-soft);
    padding: 10px;
}

.standings-row .pos {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.standings-row .team {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-row .stats {
    display: flex;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.standings-row .pts {
    color: var(--brand);
    text-align: right;
    font-size: 0.92rem;
    font-weight: 800;
}

.stats-summary {
    margin-bottom: 16px;
}

.stats-summary .stats-grid {
    grid-auto-rows: 1fr;
    gap: 10px;
    margin-top: 0;
}

.stats-summary .stat-box {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 10px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.stats-col {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 14px;
}

.stats-col-title {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 800;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.chart-container {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 14px;
}

.chart-container canvas {
    max-height: 300px;
}

#news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.news-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 106px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.news-item + .news-item {
    margin-top: 0;
}

.news-item:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--control-accent-soft);
}

.news-item:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.news-thumbnail {
    position: relative;
    display: grid;
    width: 112px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-card);
    isolation: isolate;
}

.news-thumbnail-fallback {
    --news-placeholder-paper: color-mix(
        in srgb,
        var(--bg-card) 78%,
        var(--bg-soft)
    );
    --news-placeholder-ink: color-mix(
        in srgb,
        var(--text) 14%,
        transparent
    );
    --news-placeholder-ink-strong: color-mix(
        in srgb,
        var(--text) 30%,
        transparent
    );
    --news-placeholder-rule: color-mix(
        in srgb,
        var(--text) 9%,
        transparent
    );
    --news-placeholder-gold: color-mix(
        in srgb,
        var(--gold) 55%,
        transparent
    );
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            120% 100% at 100% 0%,
            color-mix(in srgb, var(--gold) 8%, transparent),
            transparent 62%
        ),
        var(--news-placeholder-paper);
}

.news-thumbnail-fallback::after {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        color-mix(in srgb, var(--text) 3%, transparent) 0 1px,
        transparent 1px 3px
    );
    content: "";
    opacity: 0.7;
    pointer-events: none;
}

.news-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-placeholder-masthead {
    fill: var(--news-placeholder-ink-strong);
}

.news-placeholder-rule {
    fill: var(--news-placeholder-rule);
}

.news-placeholder-accent {
    fill: var(--news-placeholder-gold);
    transition: fill 0.22s ease;
}

.news-placeholder-lines rect {
    fill: var(--news-placeholder-ink);
}

.news-placeholder-calendar-mark {
    opacity: 0.9;
    transform-origin: 82px 50px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.news-placeholder-mark-outline,
.news-placeholder-mark-bindings path {
    fill: none;
    stroke: var(--news-placeholder-ink);
    stroke-width: 1.25;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.news-placeholder-mark-point {
    fill: var(--news-placeholder-ink);
}

.news-placeholder-mark-bindings path {
    stroke: var(--news-placeholder-gold);
    stroke-width: 1.75;
}

.news-item:hover .news-placeholder-calendar-mark,
.news-item:focus-visible .news-placeholder-calendar-mark {
    opacity: 1;
    transform: translateY(-1px);
}

.news-item:hover .news-placeholder-accent,
.news-item:focus-visible .news-placeholder-accent {
    fill: var(--gold);
}

.news-thumbnail img {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.035);
}

.news-thumbnail.is-failed img {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .news-item:hover .news-placeholder-calendar-mark,
    .news-item:focus-visible .news-placeholder-calendar-mark {
        transform: none;
    }
}

.news-copy {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.news-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.news-source {
    overflow: hidden;
    max-width: 100%;
    color: var(--brand);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 18px;
}

.prediction-card.compact {
    border-radius: 6px;
    background: var(--bg-card);
    padding: 12px;
}

.prediction-card.compact.result {
    background: transparent;
}

.match-details-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 12px;
}

.match-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.match-detail-title {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 800;
}

.match-detail-subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
    font-weight: 800;
}

.match-detail-score {
    border-radius: var(--radius-control);
    background: var(--brand-soft);
    color: var(--brand);
    padding: 7px 9px;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.match-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.match-detail-stat {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    padding: 9px 8px;
}

.match-detail-stat span,
.match-detail-meta span {
    display: block;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

.match-detail-stat strong,
.match-detail-meta strong {
    display: block;
    min-width: 0;
    margin-top: 5px;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.match-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.match-data-status {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.match-card > .match-data-status,
.match-card > .match-enriched-details,
.match-card > .match-event-statistics {
    margin-right: 14px;
    margin-left: 14px;
}

.match-data-status-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.match-data-status-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-soft) 78%, var(--bg-card));
    color: var(--brand);
}

.match-data-status-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.match-data-status-copy {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.match-data-status-copy strong {
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.25;
    font-weight: 800;
}

.match-data-status-copy span {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
    font-weight: 700;
}

.match-data-status.is-official .match-data-status-icon,
.match-data-status.is-verified .match-data-status-icon {
    background: color-mix(in srgb, var(--success) 12%, var(--bg-card));
    color: var(--success);
}

.match-data-status.is-stale .match-data-status-icon,
.match-data-status.is-cached .match-data-status-icon,
.match-data-status.is-conflict .match-data-status-icon {
    background: color-mix(in srgb, var(--gold) 16%, var(--bg-card));
    color: var(--warning-text, #8a4b00);
}

.match-data-status.is-stale .match-data-status-copy strong,
.match-data-status.is-cached .match-data-status-copy strong,
.match-data-status.is-conflict .match-data-status-copy strong {
    color: var(--warning-text, #8a4b00);
}

.match-data-sources {
    margin-top: 10px;
    padding-left: 37px;
}

.match-data-sources > summary {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 800;
    cursor: pointer;
}

.match-data-sources > summary:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.match-data-sources-body {
    max-width: 720px;
    padding: 8px 0 2px;
}

.match-data-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.match-data-facts div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    padding: 8px;
}

.match-data-facts dt,
.match-data-facts dd {
    margin: 0;
}

.match-data-facts dt {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.match-data-facts dd {
    margin-top: 4px;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
}

.match-source-list {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.match-source-list li {
    display: grid;
    grid-template-columns: minmax(100px, 0.34fr) minmax(0, 1fr);
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.match-source-list strong,
.match-source-list span,
.match-source-link,
.match-data-cache-note,
.match-data-conflict-note {
    font-size: 0.66rem;
    line-height: 1.4;
}

.match-source-list strong { color: var(--text); }
.match-source-list span { color: var(--text-muted); }

.match-source-link {
    min-height: 32px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    font-weight: 800;
}

.match-data-cache-note {
    margin: 8px 0 0;
    color: var(--warning-text, #8a4b00);
    font-weight: 700;
}

.match-data-conflict-note {
    margin: 8px 0 0;
    color: var(--warning-text, #8a4b00);
    font-weight: 700;
}

.match-enriched-details:empty { display: none; }

.match-fact-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.match-fact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.match-fact-heading > div > span,
.match-fact-heading > div > strong {
    display: block;
}

.match-fact-heading > div > span,
.match-fact-heading > span {
    color: var(--text-muted);
    font-size: 0.6rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.match-fact-heading > div > strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.25;
    font-weight: 800;
}

.match-timeline-list {
    display: grid;
    gap: 0;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.match-timeline-list li {
    min-height: 42px;
    display: grid;
    grid-template-columns: 34px 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
}

.match-timeline-minute,
.match-timeline-score {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.match-timeline-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--brand);
}

.match-timeline-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.match-timeline-copy { min-width: 0; }
.match-timeline-copy strong,
.match-timeline-copy span { display: block; }
.match-timeline-copy strong {
    color: var(--text);
    font-size: 0.7rem;
    line-height: 1.3;
}
.match-timeline-copy span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.3;
}

.match-lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cal-match .match-lineup-grid,
.match-preview-card .match-lineup-grid,
.competition-match .match-lineup-grid {
    grid-template-columns: minmax(0, 1fr);
}

.match-lineup-side {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    padding: 9px;
}

.match-lineup-team {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
}

.match-lineup-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.match-lineup-team small,
.match-lineup-team strong { display: block; }
.match-lineup-team small {
    color: var(--text-muted);
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}
.match-lineup-team strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 0.7rem;
    line-height: 1.2;
}
.match-lineup-team em {
    color: var(--brand);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 800;
}

.match-lineup-coach,
.match-lineup-unavailable {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.35;
}

.match-lineup-side ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.match-lineup-side li {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 4px;
    color: var(--text);
    font-size: 0.62rem;
    line-height: 1.25;
}
.match-lineup-side li span { color: var(--text-muted); }
.match-lineup-side li strong { overflow-wrap: anywhere; }

.match-official-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.match-official-facts span,
.match-official-facts strong { display: block; }
.match-official-facts span {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}
.match-official-facts strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 0.7rem;
    line-height: 1.35;
}

.match-event-statistics {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.match-statistics-heading,
.match-statistics-teams,
.match-statistics-source {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.match-statistics-heading {
    align-items: center;
}

.match-statistics-heading > div {
    display: grid;
    gap: 2px;
}

.match-statistics-heading > div > span,
.match-statistics-teams span,
.match-statistics-source {
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 800;
}

.match-statistics-heading > div > span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-statistics-heading strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.match-statistics-coverage {
    border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-soft) 68%, var(--bg-card));
    color: var(--brand);
    padding: 5px 8px;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}

.match-statistics-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    margin-top: 13px;
    padding-bottom: 8px;
}

.match-statistics-teams strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.7rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-statistics-teams strong:last-child {
    text-align: right;
}

.match-statistics-teams span {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.match-statistics-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--brand-soft) 46%, transparent),
            transparent 34%,
            transparent 66%,
            color-mix(in srgb, var(--gold) 8%, transparent)
        ),
        var(--bg-soft);
}

.match-statistics-row {
    display: grid;
    grid-template-columns: minmax(38px, 0.25fr) minmax(120px, 1fr) minmax(38px, 0.25fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
}

.match-statistics-row + .match-statistics-row {
    border-top: 1px solid var(--line);
}

.match-statistics-value {
    color: var(--ink);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.match-statistics-value.is-away {
    text-align: right;
}

.match-statistics-metric {
    display: grid;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.match-statistics-metric > span {
    overflow: hidden;
    color: var(--text);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-statistics-rail {
    display: flex;
    gap: 3px;
    width: 100%;
    height: 3px;
}

.match-statistics-rail i {
    display: block;
    min-width: 2px;
    border-radius: 999px;
}

.match-statistics-rail .is-home {
    margin-left: auto;
    background: var(--brand);
}

.match-statistics-rail .is-away {
    margin-right: auto;
    background: var(--gold);
}

.match-statistics-source {
    flex-wrap: wrap;
    margin-top: 9px;
    line-height: 1.35;
}

.match-statistics-source a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.match-statistics-loading,
.match-statistics-empty {
    border: 1px dashed color-mix(in srgb, var(--line) 82%, var(--brand));
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.match-statistics-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
}

.match-statistics-loading > span {
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--brand) 20%, var(--line));
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: app-loading-spin 800ms linear infinite;
}

.match-statistics-empty {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.match-statistics-empty strong {
    color: var(--ink);
    font-size: 0.74rem;
}

.match-statistics-empty span {
    line-height: 1.4;
}

.prediction-match {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 800;
}

.prediction-card.compact .prediction-match {
    font-size: 0.88rem;
}

.prediction-badge {
    width: fit-content;
    margin-top: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--brand);
    background: rgba(10, 122, 74, 0.14);
    font-size: 0.76rem;
    font-weight: 800;
}

.prediction-badge.likely {
    color: var(--win);
    background: rgba(10, 122, 74, 0.14);
}

.prediction-badge.maybe {
    color: var(--gold);
    background: rgba(201, 154, 61, 0.16);
}

.prediction-badge.risky {
    color: var(--loss);
    background: rgba(185, 59, 54, 0.14);
}

.prediction-card.compact .prediction-badge {
    margin-top: 8px;
    padding: 5px 8px;
    font-size: 0.68rem;
}

.prediction-probs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.prediction-card.compact .prediction-probs {
    gap: 8px;
    margin-top: 10px;
}

.prob-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: 14px 10px;
    text-align: center;
}

.prediction-card.compact .prob-box {
    border-radius: 6px;
    padding: 10px 6px;
}

.prob-box.primary {
    border-color: rgba(10, 122, 74, 0.32);
    background: var(--brand-soft);
}

.prob-value {
    color: var(--brand);
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 800;
}

.prediction-card.compact .prob-value {
    font-size: 1rem;
}

.prob-label {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.prediction-card.compact .prob-label {
    font-size: 0.66rem;
}

.prediction-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.prediction-card.compact .prediction-factors {
    gap: 6px;
    margin-top: 10px;
}

.prediction-factor {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.prediction-card.compact .prediction-factor {
    padding: 5px 7px;
    font-size: 0.66rem;
}

.prediction-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.prediction-card.compact .prediction-note {
    margin-top: 9px;
    font-size: 0.68rem;
}

.skeleton-card,
.empty,
.error-state {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-soft);
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 700;
}

.skeleton-card + .skeleton-card {
    margin-top: 10px;
}

.skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--line), var(--bg-card), var(--line));
    background-size: 220% 100%;
    animation: shimmer 1.25s ease-in-out infinite;
}

.skeleton-line.short { width: 38%; }
.skeleton-line.medium { width: 68%; margin-top: 10px; }

.skeleton-hero {
    padding: 32px;
}

.skeleton-hero-title {
    width: min(50%, 260px);
    height: 24px;
    margin: 0 auto 18px;
}

.skeleton-hero-match {
    display: grid;
    grid-template-columns: 80px 60px 80px;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin: 16px 0;
}

.skeleton-hero-crest {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.skeleton-hero-score {
    width: 60px;
    height: 40px;
}

@keyframes shimmer {
    from { background-position: 160% 0; }
    to { background-position: -60% 0; }
}

.error-message {
    color: var(--text);
    margin-bottom: 12px;
}

@media (max-width: 520px) {
    .skeleton-hero {
        padding: 24px 16px;
    }

    .skeleton-hero-match {
        grid-template-columns: 64px 48px 64px;
        gap: 12px;
    }

    .skeleton-hero-crest {
        width: 64px;
        height: 64px;
    }

    .skeleton-hero-score {
        width: 48px;
        height: 34px;
    }
}

.toast-region {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3200;
    width: min(380px, calc(100% - 48px));
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.toast {
    position: relative;
    border: 1px solid var(--toast-success-border);
    border-radius: 10px;
    background: var(--toast-success-surface);
    color: var(--toast-success-text);
    padding: 11px 8px 11px 12px;
    box-shadow: var(--toast-shadow);
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
    pointer-events: auto;
    animation: toastIn 0.18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--toast-success-icon) 14%, transparent);
    color: var(--toast-success-icon);
}

.toast-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast.error .toast-icon {
    background: color-mix(in srgb, var(--toast-error-accent) 14%, transparent);
    color: var(--toast-error-accent);
}

.toast.warning .toast-icon {
    background: color-mix(in srgb, var(--toast-warning-accent) 14%, transparent);
    color: var(--toast-warning-accent);
}

.toast-content {
    min-width: 0;
    flex: 1;
    display: grid;
    align-self: center;
    gap: 8px;
}

.toast-message {
    overflow-wrap: anywhere;
}

.toast-action {
    width: fit-content;
    min-height: var(--target-min);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--toast-action-surface);
    color: var(--toast-action-text);
    padding: 6px 10px;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.toast-dismiss {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: -7px -5px -7px 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--toast-muted-text);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.toast:has(.toast-action) {
    align-items: flex-start;
}

.toast:has(.toast-action) .toast-icon {
    margin-top: 1px;
}

.toast:has(.toast-action) .toast-content,
.toast:has(.toast-action) .toast-dismiss {
    align-self: flex-start;
}

.toast-action:focus-visible,
.toast-dismiss:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .toast-region {
        right: auto;
        left: 50%;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        width: min(420px, calc(100% - 24px));
        transform: translateX(-50%);
    }

    body.native-shell .toast-region {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast.is-leaving {
        animation: none;
        transition: none;
    }
}

.retry-btn {
    min-height: var(--target-min);
    border: 0;
    border-radius: var(--radius-control);
    background: var(--action-bg);
    color: var(--action-text);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 800;
}

.footer {
    width: min(
        var(--content-max-width, 1180px),
        calc(100% - (2 * var(--content-page-gutter, 24px)))
    );
    margin: 24px auto 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer p {
    margin: 4px 0;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-btn {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.16s ease, transform 0.16s ease;
}

.footer-btn:hover {
    transform: translateY(-1px);
    background: var(--control-accent-soft);
}

@media (max-width: 1080px) {
    .header {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-hub,
    .agenda-content-grid {
        grid-template-columns: 1fr;
    }

    .agenda-content-grid .calendar-hub {
        position: static;
    }

    .hero-bottom {
        grid-column: 1;
        grid-row: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }

    .competition-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body:not(.native-shell) {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .theme-toggle {
        width: var(--target-min);
        height: var(--target-min);
    }

    .header {
        min-height: 154px;
        padding: 22px 18px 58px;
    }

    .header-content {
        gap: 12px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .logo svg,
    .logo img {
        width: 100%;
        height: 100%;
    }

    .header-text h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .product-disclosure {
        font-size: 0.58rem;
        letter-spacing: 0.055em;
    }

    .refresh-btn {
        width: var(--target-min);
        height: var(--target-min);
    }

    .header-actions {
        gap: 8px;
    }

    .container,
    .footer {
        width: min(100% - 20px, 440px);
    }

    .container {
        margin-top: -38px;
    }

    .hero-hub {
        min-height: auto;
        margin-bottom: 12px;
    }

    .hero-card {
        padding: 22px 18px 18px;
        gap: 18px;
    }

    .hero-comp {
        font-size: 0.68rem;
        white-space: normal;
    }

    .hero-teams {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 8px;
    }

    .hero-team,
    .hero-team:last-child {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .hero-team-copy,
    .hero-team:last-child .hero-team-copy {
        text-align: center;
    }

    .hero-team .team-marker {
        width: 54px;
        height: 54px;
        min-width: 54px;
        flex-basis: 54px;
    }

    .hero-team-name {
        font-size: 0.92rem;
        line-height: 1.15;
    }

    .hero-empty-state {
        padding: 18px;
    }

    .hero-empty-state strong {
        font-size: 1rem;
    }

    .hero-empty-state span {
        font-size: 0.78rem;
    }

    .hero-center-score {
        min-width: 54px;
    }

    .hero-vs {
        font-size: 2rem;
    }

    .hero-score {
        font-size: 2rem;
    }

    .hero-meta {
        gap: 6px;
        font-size: 0.72rem;
    }

    .hero-meta-sep {
        display: none;
    }

    .hero-meta-pill {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-bottom {
        padding: 18px;
        gap: 18px;
    }

    .hero-brazil-next {
        padding-top: 16px;
    }

    .hero-brazil-summary {
        padding: 8px;
    }

    .hero-brazil-item strong {
        font-size: 0.76rem;
    }

    .club-home-shell {
        gap: 12px;
        margin-bottom: 12px;
    }

    .club-home-panel,
    .club-match-board {
        padding: 16px;
    }

    .club-board-head,
    .club-board-head.compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .club-board-head h2 {
        font-size: 1.08rem;
    }

    .club-board-head h3,
    .club-snapshot-head h3 {
        font-size: 0.94rem;
    }

    .club-actions,
    .match-filter-group {
        justify-content: stretch;
    }

    .ds-action,
    .match-filter {
        flex: 1 1 auto;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.72rem;
    }

    .club-snapshot-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-preview-summary,
    .match-row-summary {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .match-preview-teams,
    .match-teams {
        grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
        gap: 6px;
    }

    .match-preview-teams > .match-preview-team,
    .match-team {
        gap: 5px;
        font-size: 0.72rem;
    }

    .match-preview-teams .team-marker,
    .match-team .team-marker {
        width: 18px;
        height: 18px;
        min-width: 18px;
        flex-basis: 18px;
    }

    .match-preview-teams strong,
    .club-score {
        min-width: 36px;
        padding: 5px;
        font-size: 0.76rem;
    }

    .match-meta {
        font-size: 0.6rem;
    }

    .countdown-digits {
        gap: 6px;
    }

    .cd-unit {
        min-width: 0;
        flex: 1;
        padding: 8px 4px 7px;
    }

    .cd-val {
        font-size: 1.1rem;
    }

    .cd-lbl {
        font-size: 0.52rem;
    }

    .card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .competition-hub {
        padding: 16px;
    }

    .competition-hub-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .competition-card-top {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .competition-status {
        justify-self: start;
    }

    .competition-record {
        gap: 5px;
    }

    .competition-record div {
        padding: 7px 3px;
    }

    .competition-record strong {
        font-size: 0.78rem;
    }

    .competition-record span {
        font-size: 0.52rem;
    }

    body:not(.native-shell) .tabs {
        position: fixed;
        z-index: 50;
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        width: min(calc(100% - 20px), 420px);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2px;
        border-color: var(--line-strong);
        border-radius: 12px;
        background: var(--surface-nav-strong);
        padding: 5px;
        overflow: hidden;
        box-shadow: var(--shadow-nav-floating);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    body.dark:not(.native-shell) .tabs {
        background: var(--surface-nav-strong);
    }

    body:not(.native-shell) .tab-btn {
        min-width: 0;
        min-height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border-radius: 8px;
        padding: 5px 2px;
        font-size: 0.6rem;
        line-height: 1;
        white-space: nowrap;
    }

    body:not(.native-shell) .tab-btn::after {
        content: attr(data-mobile-label);
    }

    body:not(.native-shell) .tab-btn.active {
        background: var(--brand-soft);
        color: var(--brand);
    }

    body:not(.native-shell) .tab-label {
        display: none;
    }

    body:not(.native-shell) .tab-icon {
        width: 21px;
        height: 21px;
        display: block;
        flex: 0 0 21px;
    }

    .comp-legend {
        gap: 6px;
    }

    .comp-legend-item {
        font-size: 0.72rem;
        padding: 7px 9px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .cal-head {
        font-size: 0.58rem;
    }

    .cal-day {
        min-height: 43px;
        padding: 5px 1px 3px;
        gap: 2px;
    }

    .cal-day-num {
        font-size: 0.68rem;
    }

    .cal-dot {
        width: 5px;
        height: 5px;
    }

    .cal-score {
        max-width: 34px;
        font-size: 0.48rem;
        padding: 1px 3px;
    }

    .cal-match-main {
        grid-template-columns: 48px minmax(0, 1fr) 60px;
        gap: 6px;
        padding: 10px;
    }

    .cal-match-time {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .cal-match-comp {
        min-width: 0;
        overflow: hidden;
    }

    .cal-match-comp-name,
    .cal-match-stage {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cal-match-teams {
        font-size: 0.72rem;
    }

    .cal-match-crest {
        width: 18px;
        height: 18px;
        min-width: 18px;
        flex-basis: 18px;
    }

    .cal-match-status {
        font-size: 0.56rem;
        padding: 5px 6px;
    }

    .cal-match-prediction {
        padding: 9px 10px 10px;
    }

    .prediction-card.compact .prediction-probs {
        grid-template-columns: 1fr;
    }

    .match-detail-head,
    .match-detail-meta {
        grid-template-columns: 1fr;
    }

    .match-detail-score {
        justify-self: start;
    }

    .match-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .match-data-sources { padding-left: 0; }
    .match-data-facts,
    .match-lineup-grid,
    .match-official-facts { grid-template-columns: 1fr; }
    .match-source-list li { grid-template-columns: 1fr; gap: 2px; }
    .match-lineup-side ol { grid-template-columns: 1fr; }
    .match-timeline-list li {
        grid-template-columns: 30px 22px minmax(0, 1fr) auto;
        gap: 6px;
    }

    .standings-row {
        grid-template-columns: 24px minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .section-head,
    .standings-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .standings-filter-group {
        justify-content: stretch;
    }

    .standings-filter {
        flex: 1 1 auto;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.72rem;
    }

    .standings-section-head,
    .standings-focus-grid {
        grid-template-columns: 1fr;
    }

    .standings-section-head > span:not(.competition-status),
    .standings-section-head .competition-status {
        justify-self: start;
    }

    .standings-row .stats {
        display: none;
    }

    .stats-grid {
        gap: 6px;
    }

    .stats-summary .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-box {
        padding: 10px 5px;
    }

    .stats-summary .stat-box {
        min-height: 64px;
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stats-summary .stat-label {
        font-size: 0.66rem;
        white-space: nowrap;
    }

    .stats-row,
    .prediction-probs {
        grid-template-columns: 1fr;
    }

    .news-item {
        padding: 12px;
    }

    .footer-actions {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Feature expansion: shared team scope, next-match banner, history and preferences. */
.experience-toolbar {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: 8px 10px;
}

.team-scope-control {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    padding: 3px;
}

.team-scope-control button {
    min-height: var(--target-min);
    border: 0;
    border-radius: calc(var(--radius-control) - 2px);
    background: transparent;
    color: var(--text-secondary);
    padding: 7px 12px;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
}

.team-scope-control button.active {
    background: var(--action-bg);
    color: var(--action-text);
}

.quick-preference-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.utility-icon-action {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.utility-icon-action:hover,
.utility-icon-action:focus-visible,
.utility-icon-action:focus-within {
    border-color: var(--control-accent);
    color: var(--control-accent);
    transform: translateY(-1px);
}

.utility-icon-action.active,
.notification-toggle[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--control-accent) 46%, var(--line));
    background: var(--control-accent-soft);
    color: var(--control-accent);
}

.utility-icon-action:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}

.utility-icon-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-alerts-on,
.notification-toggle[aria-pressed="true"] .icon-alerts-off {
    display: none;
}

.notification-toggle[aria-pressed="true"] .icon-alerts-on {
    display: block;
}

.settings-section input {
    accent-color: var(--brand);
}

.toolbar-status {
    margin: 0;
}

body[data-team-scope="women"] .men-competition,
body[data-team-scope="men"] .women-competition {
    display: none;
}

.settings-section h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: .92rem;
}

.history-export-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.history-export-actions .ds-action {
    display: inline-flex;
    width: var(--target-min);
    height: var(--target-min);
    min-width: var(--target-min);
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--target-min);
    padding: 0;
}

.history-export-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.history-record {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 7px;
    margin-top: 10px;
}

.history-record div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    padding: 8px 4px;
    text-align: center;
}

.history-record strong,
.history-record span {
    display: block;
}

.history-record strong { color: var(--ink); font-size: .9rem; }
.history-record span { margin-top: 3px; color: var(--text-muted); font-size: .57rem; font-weight: 800; text-transform: uppercase; }

.history-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr .7fr auto;
    gap: 10px;
    margin-bottom: 16px;
}

.history-filters label {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.history-filters select,
.history-filters button {
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
}

.history-filters button { align-self: end; cursor: pointer; color: var(--brand); font-weight: 800; }
.history-record { margin: 0 0 14px; }

.history-match {
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--bg-card);
}

.history-match:first-child { border-top: 1px solid var(--line); border-radius: var(--radius-control) var(--radius-control) 0 0; }
.history-match:last-child { border-radius: 0 0 var(--radius-control) var(--radius-control); }
.history-match summary { display: grid; grid-template-columns: 145px minmax(0,1fr) 130px; gap: 12px; align-items: center; padding: 12px; cursor: pointer; }
.history-match summary time,
.history-match summary small { color: var(--text-muted); font-size: .67rem; font-weight: 700; }
.history-match summary > div { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 8px; align-items: center; }
.history-match summary > div span:last-child { text-align: right; }
.history-match summary strong { color: var(--ink); text-align: center; }
.history-match > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 10px 12px; color: var(--text-muted); font-size: .7rem; }
.history-match a { color: var(--brand); font-weight: 800; }

.account-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(250px, auto);
    gap: 18px;
    align-items: center;
    margin: 16px 0;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    border-radius: var(--radius-card);
    background:
        linear-gradient(110deg, color-mix(in srgb, var(--brand) 7%, var(--bg-card)), var(--bg-card) 64%);
    padding: 20px;
}

.account-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--brand);
}

.account-avatar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar.has-image { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.account-copy h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.account-copy > p { margin: 5px 0 0; max-width: 620px; color: var(--text-muted); font-size: .73rem; line-height: 1.45; }
.account-status { min-height: 1.1em; font-weight: 700; }
.account-status[data-variant="error"] { color: var(--danger, #a5332e); }
.account-action { justify-self: end; min-width: 250px; }
.web-account-action > p,
.native-account-message > p { margin: 6px 0 0; color: var(--text-muted); font-size: .62rem; text-align: center; }
.web-account-action { width: min(100%, 360px); }
.account-auth-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 10px;
    border-radius: var(--radius-control);
    border: 1px solid var(--control-neutral-border);
    background: var(--control-neutral-bg);
    padding: 3px;
}
.account-auth-mode[hidden],
.account-auth-divider[hidden],
.google-sign-in[hidden] { display: none; }
.account-auth-mode button {
    min-height: var(--target-min);
    border: 0;
    border-radius: calc(var(--radius-control) - 2px);
    background: transparent;
    color: var(--control-neutral-text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
}
.account-auth-mode button[aria-pressed="true"] {
    background: var(--control-neutral-selected-bg);
    color: var(--control-neutral-selected-text);
    box-shadow: var(--shadow-control);
}
.account-auth-mode button:hover {
    background: var(--control-neutral-bg-hover);
    color: var(--control-neutral-text);
}
.account-auth-mode button[aria-pressed="true"]:hover {
    background: var(--control-neutral-selected-bg-hover);
    color: var(--control-neutral-selected-text);
}
.account-auth-mode button:focus-visible {
    outline-color: var(--control-neutral-focus);
}
.password-auth-form { display: grid; gap: 8px; }
.password-auth-form label {
    display: grid;
    gap: 4px;
    color: var(--text-muted);
    font-size: .61rem;
    font-weight: 800;
    text-transform: uppercase;
}
.password-auth-form label[hidden] { display: none; }
.password-auth-form input {
    width: 100%;
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
    font-size: .76rem;
    text-transform: none;
}
.password-caps-lock-warning {
    color: var(--danger, #a5332e);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: none;
}
.password-caps-lock-warning[hidden] { display: none; }
.password-auth-form button { width: 100%; min-height: var(--target-min); }
.password-auth-form[hidden] { display: none; }
.password-recovery-form > p {
    margin: 0 0 2px;
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.45;
}
.password-auth-form .account-auth-link {
    min-height: var(--target-min);
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
}
.password-auth-form .account-auth-link:hover { text-decoration: underline; }
.password-auth-form .account-auth-link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.account-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--text-muted);
    font-size: .62rem;
    text-transform: uppercase;
}
.account-auth-divider::before,
.account-auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.google-sign-in {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}
.google-sign-in > div,
.google-sign-in > div > div {
    max-width: 100%;
    border: 0;
    background: transparent !important;
    padding: 0;
    box-shadow: none;
}
.google-sign-in [role="button"] {
    background: transparent !important;
    box-shadow: none !important;
}
.google-sign-in iframe {
    display: block;
    margin: 0;
    border: 0;
    background: transparent;
    -webkit-clip-path: inset(2px 10px round 4px);
    clip-path: inset(2px 10px round 4px);
}
.google-provider-start {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #747775;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    padding: 9px 12px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: 0;
}
.google-provider-start[hidden] { display: none; }
.google-provider-start img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}
.google-provider-start:hover:not(:disabled) {
    border-color: #5f6368;
    background: #f8faff;
}
.google-provider-start:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}
.google-provider-start:disabled {
    opacity: .72;
    cursor: wait;
}
.account-signed-in { display: grid; grid-template-columns: minmax(120px, auto) minmax(260px, 1fr) auto; gap: 14px; align-items: end; width: min(100%, 760px); }
.account-signed-in[hidden] { display: none; }
.account-identity { display: grid; min-width: 0; }
.account-identity strong { color: var(--ink); font-size: .78rem; }
.account-identity span { overflow: hidden; color: var(--text-muted); font-size: .66rem; text-overflow: ellipsis; }
.account-profile-form label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.account-profile-form > div { display: flex; gap: 6px; }
.account-profile-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
    font-size: .74rem;
}
.account-linked-provider {
    grid-column: 1 / -1;
    min-height: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
    padding: 9px 10px;
}
.account-linked-provider[hidden] { display: none; }
.account-linked-provider > div:first-child {
    min-width: min(100%, 220px);
    flex: 1 1 220px;
    display: grid;
    gap: 2px;
    justify-items: start;
}
.account-linked-provider strong { color: var(--ink); font-size: .72rem; }
.account-linked-provider span {
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: .64rem;
    line-height: 1.35;
}
.account-linked-provider .ds-action {
    flex: 0 1 240px;
    width: min(100%, 240px);
    margin-left: auto;
    white-space: nowrap;
}
.account-linked-provider.is-linked {
    justify-content: flex-start;
}
.account-linked-provider.is-linked > div:first-child {
    flex-basis: 100%;
    width: 100%;
}
.account-linked-provider.is-linking {
    align-items: flex-start;
}
.google-link-sign-in {
    width: 100%;
    min-width: min(100%, 240px);
    max-width: 360px;
    flex: 0 1 300px;
    margin-left: auto;
    justify-content: flex-end;
}
.google-link-sign-in[hidden] { display: none; }
.google-link-sign-in[aria-busy="true"]::before {
    width: 100%;
    min-height: var(--target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text-muted);
    content: "Preparando Google...";
    font-size: .68rem;
    font-weight: 800;
}
.account-session-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}
.account-sign-out {
    min-height: var(--target-min);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
}
.account-sign-out:hover { color: var(--danger, #a5332e); }
.account-delete-open {
    min-height: var(--target-min);
    border: 1px solid color-mix(in srgb, var(--danger, #a5332e) 34%, var(--line));
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--danger, #a5332e) 8%, transparent);
    color: var(--danger, #a5332e);
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    padding: 0 10px;
}
.account-delete-open:hover {
    background: color-mix(in srgb, var(--danger, #a5332e) 14%, transparent);
}
.native-account-message { min-width: 230px; }

.settings-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.settings-section { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-soft); padding: 18px; }
.settings-section > p { color: var(--text-muted); font-size: .75rem; line-height: 1.45; }
.settings-section > label { min-height: var(--target-min); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--text); font-size: .78rem; font-weight: 700; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.settings-status { min-height: 18px; margin-bottom: 0; }
.settings-link { width: 100%; min-height: var(--target-min); display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--bg-card); color: var(--brand); padding: 9px 11px; cursor: pointer; text-decoration: none; font: inherit; font-size: .76rem; font-weight: 800; }
.settings-link + .settings-link { margin-top: 8px; }
.email-communications-section[hidden] { display: none; }
.email-communication-list { display: grid; gap: 8px; margin-top: 12px; }
.email-communication-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: var(--target-min);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    padding: 10px 11px;
    color: var(--text);
}
.email-communication-row input { margin: 0; }
.email-communication-row span { min-width: 0; display: grid; gap: 3px; }
.email-communication-row strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: .78rem;
    line-height: 1.25;
}
.email-communication-row small {
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
}
.email-communication-row em {
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text-muted);
    padding: 5px 7px;
    font-size: .6rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.email-communication-row em[data-state="active"] {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
}
.email-communication-row em[data-state="required"] {
    background: color-mix(in srgb, var(--gold) 18%, transparent);
    color: var(--gold);
}
.email-communication-row.is-locked { opacity: .78; }

.shortcut-help-dialog {
    width: min(92vw, 440px);
    border: 1px solid var(--line);
    border-radius: var(--radius-modal);
    background: var(--bg-card);
    color: var(--text);
    padding: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.shortcut-help-dialog::backdrop { background: rgba(16, 18, 15, .62); }
.shortcut-help-content { display: grid; gap: 18px; padding: 24px; }
.shortcut-help-content h2 { margin: 3px 0 0; font-size: 1.35rem; }
.shortcut-help-content dl { display: grid; gap: 8px; margin: 0; }
.shortcut-help-content dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    border-bottom: 1px solid var(--line);
}
.shortcut-help-content dt,
.shortcut-help-content dd { margin: 0; }
.shortcut-help-content kbd {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--bg-soft);
    padding: 2px 7px;
    font: 700 .75rem/1 "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
.calendar-manager {
    margin: 20px 16px 16px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.calendar-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.calendar-manager-heading > div { display: grid; gap: 5px; }
.calendar-manager-heading strong { color: var(--text); font-size: .88rem; line-height: 1.3; }
.calendar-manager-heading small { max-width: 52ch; color: var(--text-muted); font-size: .72rem; line-height: 1.5; }
.calendar-manager-heading .ds-action { flex: 0 0 auto; }
.calendar-manager > .settings-status {
    min-height: 0;
    margin: 14px 0 0;
    border-radius: var(--radius-control);
    background: var(--bg-soft);
    padding: 10px 12px;
    line-height: 1.45;
}
.calendar-manager > .settings-status:empty { display: none; }
.calendar-configuration-form { display: grid; gap: 20px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-card); padding: 18px; }
.calendar-configuration-form[hidden] { display: none; }
.calendar-configuration-form > label,
.calendar-configuration-fields label { display: grid; gap: 8px; color: var(--text); font-size: .74rem; font-weight: 800; }
.calendar-configuration-form input,
.calendar-configuration-form select { width: 100%; min-height: var(--target-min); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--bg-soft); color: var(--text); padding: 8px 10px; font: inherit; }
.calendar-configuration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calendar-configuration-form fieldset { min-width: 0; border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 0; }
.calendar-configuration-form legend { color: var(--text); font-size: .74rem; font-weight: 900; padding-right: 8px; }
.calendar-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 10px; }
.calendar-option-grid label { min-width: 0; min-height: var(--target-min); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--bg-soft); color: var(--text); padding: 8px 10px; font-size: .7rem; font-weight: 700; }
.calendar-option-grid input { width: auto; min-height: auto; margin: 0; }
.calendar-configuration-form > .settings-actions { margin-top: 0; padding-top: 2px; }
.calendar-configuration-list { display: grid; gap: 10px; margin-top: 12px; }
.calendar-configuration-empty {
    margin: 0;
    padding: 4px 0;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.4;
}
.calendar-configuration-card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-card); padding: 13px; }
.calendar-configuration-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.calendar-configuration-card h4 { margin: 0; color: var(--text); font-size: .84rem; }
.calendar-configuration-card header span { border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); padding: 4px 7px; font-size: .62rem; font-weight: 900; }
.calendar-configuration-summary { margin: 7px 0 0; color: var(--text-muted); font-size: .68rem; line-height: 1.45; }
.calendar-configuration-actions,
.calendar-subscription-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 7px; margin-top: 10px; }
.calendar-configuration-actions button,
.calendar-subscription-actions button,
.calendar-subscription-actions a,
.calendar-subscription-row button { width: 100%; min-height: var(--target-min); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--bg-soft); color: var(--brand); padding: 7px 9px; text-decoration: none; cursor: pointer; font: inherit; font-size: .68rem; line-height: 1; font-weight: 800; }
.calendar-subscription-list { display: grid; gap: 6px; margin-top: 10px; }
.calendar-subscription-row { color: var(--text-muted); font-size: .66rem; }
.calendar-subscription-row .calendar-subscription-actions { margin-top: 6px; }
.calendar-subscription-row[data-revoked="true"] { opacity: .55; }

.cal-dot.bfa1,
.cal-match.bfa1,
.cal-match-comp.bfa1,
.competition-card.bfa1 { --comp-color: #8b3f68; }

@media (max-width: 720px) {
    body:not(.native-shell) .tabs .tab-desktop-only { display: none; }
    .agenda-content-grid { gap: 12px; }
    .experience-toolbar { margin: 10px 0; padding: 7px 8px; }
    .team-scope-control { flex: 1 1 auto; }
    .team-scope-control button { flex: 1; }
    .quick-preference-actions { flex: 0 0 auto; gap: 6px; }
    .hero-context { gap: 14px; padding-top: 16px; }
    .hero-record-stats { gap: 5px; }
    .hero-record-stats div { padding-inline: 2px; }
    .hero-icon-actions { padding-top: 14px; }
    .history-filters { grid-template-columns: 1fr 1fr; }
    .history-export-actions { justify-content: flex-start; }
    .history-record { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .history-match summary { grid-template-columns: 1fr; gap: 7px; }
    .history-match summary small { text-align: left; }
    .account-panel { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
    .account-action { grid-column: 1 / -1; justify-self: stretch; min-width: 0; }
    .web-account-action { width: 100%; }
    .google-sign-in { justify-content: flex-start; }
    .account-signed-in { grid-template-columns: 1fr; width: 100%; }
    .account-profile-form,
    .account-linked-provider,
    .account-session-actions { grid-column: 1 / -1; }
    .account-linked-provider .ds-action,
    .google-provider-start,
    .google-link-sign-in {
        width: 100%;
        flex-basis: 100%;
        margin-left: 0;
    }
    .account-session-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .settings-grid { grid-template-columns: 1fr; }
    .calendar-manager-heading { align-items: stretch; flex-direction: column; }
    .calendar-manager-heading .ds-action { width: 100%; }
    .calendar-configuration-form { gap: 18px; padding: 16px; }
    .calendar-configuration-fields,
    .calendar-option-grid { grid-template-columns: 1fr; }
    .calendar-configuration-form > .settings-actions { display: grid; }
}

@media (max-width: 380px) {
    .team-scope-control button { padding-inline: 8px; font-size: .72rem; }
    .experience-toolbar { gap: 6px; }
    .history-filters { grid-template-columns: 1fr; }
    .account-panel { grid-template-columns: 1fr; }
    .account-avatar { width: 46px; height: 46px; }
    .account-copy { grid-column: 1; }
    .account-profile-form > div { display: grid; }
}

/* Club flags are supplied by the API or the local fallback map. */
.hero-team img {
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
}

.match-preview-teams img,
.match-team img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.cal-match-crest {
    object-fit: contain;
}
}
