/* OrangeDemo Nextgen: global foundation. Keep components theme-neutral; only tokens differ. */
:root {
    --ng-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ng-weight-regular: 400;
    --ng-weight-medium: 400;
    --ng-weight-semibold: 400;
    --ng-weight-bold: 500;
    --ng-radius-sm: 6px;
    --ng-radius-md: 8px;
    --ng-border-width: 1px;
    --ng-page-max: 1680px;
    /* Scanner/comparator desktop geometry shared by Favor and LEV. */
    --ng-tool-max: 1840px;
    --ng-scanner-config-col: 342px;
    --ng-scanner-list-col: 678px;
    --ng-scanner-gap: 16px;
    --ng-scanner-panel-height: calc(95vh - 170px);
    --ng-accent: #00c875;
    --ng-accent-strong: #22ff91;
    --ng-accent-warm: var(--ng-global-13);
    --ng-accent-text: #003c25;
    --ng-event-table-title: #f4fbf7;
    --ng-bg-base: #eef2f7;
    --ng-bg-top: #f6fbf8;
    --ng-bg-middle: #edf4f0;
    --ng-bg-bottom: #e4ede8;
    --ng-bg-glow-primary: rgba(0, 200, 117, .12);
    --ng-bg-glow-secondary: rgba(0, 125, 85, .08);
    --ng-bg-grid: rgba(1, 90, 60, .08);
    --ng-particle-connection: rgba(0, 126, 84, .35);
    --ng-particle-pointer: rgba(0, 91, 64, .55);
    --ng-particle-glow-core: rgba(0, 166, 103, .86);
    --ng-particle-glow-edge: rgba(0, 166, 103, .44);
    --ng-particle-center: rgba(244, 255, 249, .98);
    /* Global 1 is the navigation/configuration surface; Global 2 is the primary light surface. */
    --ng-global-1: #015a3c;
    --ng-global-2: #ffffff;
    --ng-global-3: #2f6b56;
    --ng-text-on-global-3: #f4fbf7;
    --ng-global-4: #b3cdc4;
    --ng-text-on-global-4: #1e293b;
    --ng-global-5: #e4edea;
    --ng-global-6: #e4edea;
    --ng-global-7: #076b4b;
    --ng-text-on-global-7: #f4fbf7;
    --ng-global-8: #a5c3b8;
    /* Global 9 is reserved for interactive event-badge hover states. */
    --ng-global-9: #b3cdc4;
    --ng-text-on-global-9: #1e293b;
    /* Global 10 is the positive rating value. */
    --ng-global-10: #007a52;
    /* Global 11 is reserved for structural component borders and separators. */
    --ng-global-11: #004c35;
    /* Global 12 is the base surface for Global Button 1. */
    --ng-global-12: #007a52;
    --ng-text-on-global-12: #f4fbf7;
    /* Global 13 is the warm emphasis color for events and bookmakers. */
    --ng-global-13: #007a52;
    /* Global 14 is reserved for the selected LEV market during row hover. */
    --ng-global-14: #c7dbd3;
    /* Global 15 is reserved for the active option in a selector. */
    --ng-global-15: #007a52;
    --ng-text-on-global-15: #f4fbf7;
    --ng-input-border: var(--ng-global-11);
    --ng-input-prefix-color: #006b47;
    --ng-input-text: #1e293b;
    --ng-input-placeholder: #64748b;
    --ng-bg: #eef2f7;
    --ng-surface-1: var(--ng-global-2);
    --ng-surface-2: #f5f8fb;
    --ng-surface-3: #e8eef4;
    --ng-control: #ffffff;
    --ng-text: #1e293b;
    --ng-text-muted: #64748b;
    --ng-text-on-dark: #f4fbf7;
    --ng-text-muted-on-dark: #b4c7bd;
    --ng-text-on-global-1: #f4fbf7;
    --ng-text-muted-on-global-1: #b4c7bd;
    --ng-border: #b7c5d3;
    --ng-border-subtle: #d8e0e8;
    --ng-header: var(--ng-global-1);
    --ng-header-hover: #08734e;
    --ng-shadow: 0 12px 32px rgba(15, 23, 42, .10);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ng-accent: #00c875;
    --ng-accent-strong: #22ff91;
    --ng-accent-warm: var(--ng-global-13);
    --ng-accent-text: #001b10;
    --ng-event-table-title: var(--ng-accent-warm);
    --ng-bg-base: #00291f;
    --ng-bg-top: #004d39;
    --ng-bg-middle: #003326;
    --ng-bg-bottom: #000f0c;
    --ng-bg-glow-primary: rgba(52, 255, 180, .13);
    --ng-bg-glow-secondary: rgba(0, 220, 160, .09);
    --ng-bg-grid: rgba(64, 255, 190, .038);
    --ng-particle-connection: rgba(64, 255, 190, .36);
    --ng-particle-pointer: rgba(218, 255, 238, .72);
    --ng-particle-glow-core: rgba(64, 255, 190, .98);
    --ng-particle-glow-edge: rgba(0, 230, 160, .42);
    --ng-particle-center: rgba(226, 255, 242, .94);
    --ng-global-1: #002e21;
    --ng-global-2: #002e21;
    --ng-global-3: #013a27;
    --ng-text-on-global-3: #f4fbf7;
    --ng-global-4: #034f38;
    --ng-text-on-global-4: #f4fbf7;
    --ng-global-5: #01422e;
    --ng-global-6: #01422e;
    --ng-global-7: #076b4b;
    --ng-text-on-global-7: #f4fbf7;
    --ng-global-8: #005b40;
    --ng-global-9: #013a27;
    --ng-text-on-global-9: #f4fbf7;
    --ng-global-10: #22ff91;
    --ng-global-11: #004c35;
    --ng-global-12: #013a27;
    --ng-text-on-global-12: #f4fbf7;
    --ng-global-13: #ffd60a;
    --ng-global-14: #004c35;
    --ng-global-15: #076b4b;
    --ng-text-on-global-15: #f4fbf7;
    --ng-input-border: var(--ng-global-6);
    --ng-input-prefix-color: var(--ng-accent-strong);
    --ng-input-text: #f4fbf7;
    --ng-input-placeholder: #b4c7bd;
    --ng-bg: var(--ng-global-1);
    --ng-surface-1: var(--ng-global-2);
    --ng-surface-2: var(--ng-global-8);
    --ng-surface-3: #005d41;
    --ng-control: #003621;
    --ng-text: #f4fbf7;
    --ng-text-muted: #b4c7bd;
    --ng-text-on-dark: #f4fbf7;
    --ng-text-muted-on-dark: #b4c7bd;
    --ng-text-on-global-1: #f4fbf7;
    --ng-text-muted-on-global-1: #b4c7bd;
    --ng-border: #087a55;
    --ng-border-subtle: #07533b;
    --ng-header: var(--ng-global-1);
    --ng-header-hover: #00563c;
    --ng-shadow: 0 14px 36px rgba(0, 0, 0, .22);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ng-bg);
}

body.od-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--ng-bg);
    color: var(--ng-text);
    font-family: var(--ng-font);
    font-size: 14px;
    font-weight: var(--ng-weight-regular);
    line-height: 1.45;
}

body.od-body {
    background-color: var(--ng-bg-base);
    background-image:
        radial-gradient(circle at 18% 8%, var(--ng-bg-glow-primary), transparent 34rem),
        radial-gradient(circle at 82% 20%, var(--ng-bg-glow-secondary), transparent 30rem),
        linear-gradient(var(--ng-bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ng-bg-grid) 1px, transparent 1px),
        linear-gradient(180deg, var(--ng-bg-top) 0%, var(--ng-bg-middle) 42%, var(--ng-bg-bottom) 100%);
    background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px, 100% 100%;
}

/* Escritorio HD compacto. El body conserva el viewport real; el escalado se
   aísla en el shell de la aplicación para que el zoom del navegador no altere
   el punto de centrado de los contenedores. */
@media (min-width: 901px) and (max-width: 1440px) and (max-height: 900px) {
    html {
        height: 100%;
        overflow: hidden;
    }

    body.od-body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .od-hd-scale-shell {
        width: calc(100vw / .67);
        height: calc(100dvh / .67);
        overflow-x: hidden;
        overflow-y: auto;
        zoom: .67;
        --favor-hd-zoom: .67;
    }
}

body.od-body :is(button, input, select, textarea) {
    font: inherit;
}

/* Global input 1: direct fields and prefixed/composite fields share the same tokens. */
.od-input-global-1 {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: var(--ng-border-width) solid var(--od-input-border, var(--ng-input-border));
    border-radius: var(--ng-radius-sm);
    background: var(--od-input-bg, var(--ng-control));
    color: var(--od-input-color, var(--ng-input-text));
    font-size: 16px;
    outline: 0;
}

.od-input-global-1:focus {
    border-color: var(--od-input-focus-border, var(--ng-global-7));
    background: var(--od-input-bg, var(--ng-control));
    color: var(--od-input-color, var(--ng-input-text));
    box-shadow: none;
}

.od-input-shell-global-1 {
    display: flex;
    align-items: center;
    min-height: 36px;
    gap: 8px;
    padding: 0 10px;
    border: var(--ng-border-width) solid var(--od-input-border, var(--ng-input-border));
    border-radius: var(--ng-radius-sm);
    background: var(--od-input-bg, var(--ng-control));
    color: var(--od-input-color, var(--ng-input-text));
    font-size: 16px;
}

.od-input-shell-global-1:focus-within {
    border-color: var(--od-input-focus-border, var(--ng-global-7));
}

.od-input-shell-global-1 > :is(input, select, textarea) {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--od-input-color, var(--ng-input-text));
}

.od-input-global-1::placeholder,
.od-input-shell-global-1 > :is(input, textarea)::placeholder {
    color: var(--ng-input-placeholder);
    opacity: 1;
}

.od-input-shell-global-1 > .od-input-global-1 {
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.od-input-shell-global-1 > .od-input-global-1:focus {
    background: transparent;
    box-shadow: none;
}

.od-input-shell-global-1 > :is(.od-input-prefix, span:first-child) {
    flex: 0 0 auto;
    color: var(--ng-input-prefix-color);
    font-weight: var(--ng-weight-semibold);
}

/* Global scrollbar 1: applies equally to vertical and horizontal overflow. */
.od-scrollbar-global-1 {
    scrollbar-color: var(--ng-global-8) var(--ng-global-2);
    scrollbar-width: thin;
}

.od-scrollbar-global-1::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.od-scrollbar-global-1::-webkit-scrollbar-track {
    background: var(--ng-global-2);
}

.od-scrollbar-global-1::-webkit-scrollbar-thumb {
    border: 2px solid var(--ng-global-2);
    border-radius: 999px;
    background: var(--ng-global-8);
}

.od-scrollbar-global-1::-webkit-scrollbar-thumb:hover {
    background: var(--ng-global-7);
}

body.od-body :is(h1, h2, h3, h4, h5, h6, p) {
    margin-top: 0;
}

body.od-body :is(h1, h2, h3, h4, h5, h6, strong, b, th) {
    font-weight: var(--ng-weight-semibold);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
}

button {
    cursor: pointer;
}

[x-cloak] {
    display: none !important;
}

.od-particle-bg {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .68;
}

:root:not([data-theme="dark"]) .od-particle-bg {
    opacity: .62;
}

.od-container {
    width: min(100% - 32px, var(--ng-page-max));
    margin-inline: auto;
}

.od-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: var(--ng-header);
    border-bottom: var(--ng-border-width) solid var(--ng-border-subtle);
    --ng-text: var(--ng-text-on-global-1);
    --ng-text-muted: var(--ng-text-muted-on-global-1);
}

.od-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.od-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
}

.od-nav-tile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 13px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ng-text);
    font-size: 13px;
    font-weight: var(--ng-weight-semibold);
}

.od-nav-tile:hover,
.od-nav-tile:focus-visible,
.od-nav-tile.is-active,
.od-dropdown.is-open > .od-nav-tile {
    background: var(--ng-header-hover);
    border-bottom-color: var(--ng-accent-strong);
    color: var(--ng-accent-strong);
    outline: 0;
}

.od-nav-tile > i:first-child {
    display: inline-block;
}

.od-nav-utility-link > i:first-child {
    display: inline-block;
}

.od-nav-chevron {
    font-size: 10px;
}

.od-dropdown {
    position: relative;
}

.od-dropdown-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: var(--ng-border-width) solid var(--ng-global-11);
    border-radius: var(--ng-radius-md);
    background: var(--ng-global-1);
    box-shadow: var(--ng-shadow);
    --ng-text: var(--ng-text-on-global-1);
}

.od-dropdown.is-open .od-dropdown-menu {
    display: grid;
}

.od-dropdown-menu a {
    padding: 10px 12px;
    border-radius: var(--ng-radius-sm);
    color: var(--ng-text);
    font-weight: var(--ng-weight-medium);
}

.od-dropdown-menu a:hover,
.od-dropdown-menu a:focus-visible {
    background: var(--ng-global-12);
    color: var(--ng-text-on-global-12);
    outline: 0;
}

.od-nav-separator {
    width: 1px;
    min-height: 24px;
    margin: auto 7px;
    background: var(--ng-border);
}

.od-nav-utilities {
    display: flex;
}

.od-main {
    position: relative;
    z-index: 1;
    padding: 10px 0 48px;
}

/* Keep every page close to the navbar; individual page margins must not reintroduce a large empty band. */
.od-main > :first-child {
    margin-top: 16px !important;
}

.od-page-head {
    margin-bottom: 22px;
}

.od-kicker,
.od-stat-label {
    display: block;
    margin: 0 0 6px;
    color: var(--ng-accent-strong);
    font-size: 12px;
    font-weight: var(--ng-weight-semibold);
    text-transform: uppercase;
}

.od-gradient-text {
    color: var(--ng-text);
}

.od-page-head h1,
.od-page-head h2 {
    margin: 0;
    color: var(--ng-text);
    font-weight: var(--ng-weight-semibold);
}

.od-page-head h1 {
    font-size: 38px;
}

.od-page-head p {
    margin: 8px 0 0;
    color: var(--ng-text-muted);
}

/* Global page title 1: compact centered heading for tool panels. */
.od-page-title-global-1 {
    margin: 0;
    color: var(--ng-global-13);
    font-size: 24px;
    font-weight: var(--ng-weight-medium);
    text-align: center;
    text-transform: uppercase;
}

.od-page-title-row-global-1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.od-page-title-row-global-1 > .od-page-title-global-1 {
    grid-column: 2;
}

.od-page-title-row-global-1 > .od-rating-badge {
    grid-column: 3;
    justify-self: end;
    font-size: 20px;
    font-weight: var(--ng-weight-medium);
}

@media (max-width: 560px) {
    .od-page-title-row-global-1 {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .od-page-title-row-global-1 > .od-page-title-global-1 {
        grid-column: 1;
        text-align: start;
    }

    .od-page-title-row-global-1 > .od-rating-badge {
        grid-column: 2;
    }
}

.od-panel {
    min-width: 0;
    border: var(--ng-border-width) solid var(--ng-border);
    border-radius: var(--ng-radius-md);
    background: var(--ng-surface-1);
}

/* Global table 1: reusable tabular data with a compact, readable hierarchy. */
.od-table-global-1 {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    overflow: hidden;
    border-radius: var(--ng-radius-sm);
    background: var(--ng-global-5);
    color: var(--ng-text);
}

.od-table-global-1 :is(th, td) {
    padding: 10px 12px;
    border-bottom: var(--ng-border-width) solid var(--ng-border-subtle);
    text-align: left;
    vertical-align: middle;
}

.od-table-global-1 :is(th + th, th + td, td + td) {
    border-inline-start: var(--ng-border-width) solid var(--ng-border-subtle);
}

.od-table-global-1 thead th {
    background: var(--ng-global-3);
    color: var(--ng-text-on-global-3);
    font-size: 12px;
    font-weight: var(--ng-weight-semibold);
    text-transform: uppercase;
}

.od-table-global-1 tbody th,
.od-table-global-1 tfoot th {
    font-weight: var(--ng-weight-semibold);
}

.od-table-global-1 :is(tbody, tfoot) > tr > :not(:first-child) {
    background: var(--ng-global-5);
}

.od-table-global-1 tfoot > tr:last-child > :is(th, td) {
    border-bottom: 0;
}

.od-table-global-1 :is(tbody, tfoot) > tr > th:first-child {
    background: var(--ng-global-3);
    color: var(--ng-text-on-global-3);
}

.od-table-row-card-global-1__label {
    display: none;
}

.od-selection-count-global-1 {
    color: var(--ng-text);
    font-size: 13px;
    font-weight: var(--ng-weight-semibold);
    white-space: nowrap;
}

.od-card-global-1 {
    overflow: hidden;
    border: var(--ng-border-width) solid var(--ng-border-subtle);
    border-radius: var(--ng-radius-sm);
    background: var(--ng-global-5);
    color: var(--ng-text);
}

.od-card-global-1__title {
    padding: 10px 12px;
    background: var(--ng-global-1);
    color: var(--ng-text-on-global-1);
    font-weight: var(--ng-weight-semibold);
}

.od-card-global-1__body {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--ng-global-5);
}

/* A compact table-row card for a single calculated value. */
.od-card-global-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr);
    overflow: hidden;
    border: var(--ng-border-width) solid var(--ng-border-subtle);
    border-radius: var(--ng-radius-sm);
}

.od-card-global-2__label,
.od-card-global-2__value {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 12px;
}

.od-card-global-2__label {
    background: var(--ng-global-1);
    color: var(--ng-text-on-global-1);
    font-weight: var(--ng-weight-semibold);
}

.od-card-global-2__value {
    justify-content: flex-end;
    background: var(--ng-global-2);
}

/* Shared scanner/page content width and responsive horizontal inset. */
.od-tool-container-global-1 {
    width: min(100% - 32px, var(--ng-tool-max));
    max-width: var(--ng-tool-max);
    margin-inline: auto;
    padding-block: 0;
}

@media (max-width: 991px) {
    .od-tool-container-global-1 {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding-inline: 8px;
    }
}

@media (max-width: 991px) {
    /* Opt-in mobile form for data tables whose rows are edited as individual records. */
    .od-table-cards-global-1 {
        display: grid;
        gap: 14px;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
        background: transparent;
    }

    .od-table-cards-global-1 thead {
        display: none;
    }

    .od-table-cards-global-1 :is(tbody, tfoot) {
        display: grid;
        gap: 14px;
    }

    .od-table-cards-global-1 tr.od-table-row-card-global-1 {
        display: grid;
        overflow: hidden;
        border: var(--ng-border-width) solid var(--ng-border-subtle);
        border-radius: var(--ng-radius-sm);
    }

    .od-table-cards-global-1 tr.od-table-row-card-global-1 :is(th, td) {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 10px 12px;
        border: 0;
    }

    .od-table-cards-global-1 tbody > tr.od-table-row-card-global-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .od-table-cards-global-1 tbody > tr.od-table-row-card-global-1 > th {
        grid-column: 1 / -1;
        border-bottom: var(--ng-border-width) solid var(--ng-border-subtle);
        background: var(--ng-global-1);
        color: var(--ng-text-on-global-1);
    }

    /* Tables promoted automatically to cards may use a first data cell as row title. */
    .od-table-cards-global-1 tbody > tr.od-table-row-card-global-1 > td:first-child:not(:only-child) {
        grid-column: 1 / -1;
        border-bottom: var(--ng-border-width) solid var(--ng-border-subtle);
        background: var(--ng-global-1);
        color: var(--ng-text-on-global-1);
    }

    .od-table-cards-global-1 tbody > tr.od-table-row-card-global-1 > td:first-child:not(:only-child) > .od-table-row-card-global-1__label {
        display: none;
    }

    .od-table-cards-global-1 tbody > tr.od-table-row-card-global-1 > td:last-child {
        grid-column: 1 / -1;
        border-top: var(--ng-border-width) solid var(--ng-border-subtle);
    }

    .od-table-cards-global-1 .od-table-row-card-global-1__label {
        display: block;
        margin-bottom: 6px;
        color: var(--ng-text-muted);
        font-size: 12px;
        font-weight: var(--ng-weight-semibold);
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-1 {
        grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr);
        align-items: stretch;
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-1 > :is(th, td) {
        display: flex;
        align-items: center;
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-1 > th {
        background: var(--ng-global-1);
        color: var(--ng-text-on-global-1);
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-1 > td:first-of-type {
        grid-column: 2;
        grid-row: 1;
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-1 > td:nth-of-type(n + 2) {
        display: none;
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-2 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr);
        align-items: stretch;
        overflow: hidden;
        border: var(--ng-border-width) solid var(--ng-border-subtle);
        border-radius: var(--ng-radius-sm);
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-2 > :is(th, td) {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 0;
        padding: 10px 12px;
        border: 0;
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-2 > th {
        background: var(--ng-global-1);
        color: var(--ng-text-on-global-1);
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-2 > td:first-of-type {
        grid-column: 2;
        grid-row: 1;
        background: var(--ng-global-2);
    }

    .od-table-cards-global-1 tfoot > tr.od-table-row-card-global-2 > td:nth-of-type(n + 2) {
        display: none;
    }
}

/* Global event summary 1: identity, event context, rating and primary action. */
.od-badge-global-1 {
    border-radius: var(--ng-radius-md);
    background: var(--ng-global-4);
    color: var(--ng-text-on-global-4);
}

/* Fixed placement only; visual tokens come from od-badge-global-1. */
.od-toast-global-1 {
    position: fixed;
    z-index: 1100;
    top: 76px;
    right: 24px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: var(--ng-radius-sm);
    box-shadow: var(--ng-shadow);
    font-weight: var(--ng-weight-medium);
}

.od-event-summary-global-1 {
    display: grid;
    grid-template-columns: minmax(210px, .85fr) minmax(0, 2.15fr);
    grid-template-areas:
        "identity main"
        "rating action";
    gap: 12px;
    align-items: start;
    padding: 12px;
}

.od-event-summary-identity {
    grid-area: identity;
    display: flex;
    gap: 9px;
    min-width: 0;
}

.od-event-summary-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: var(--ng-border-width) solid var(--ng-global-13);
    border-radius: 50%;
    color: var(--ng-global-13);
}

.od-event-summary-identity-copy,
.od-event-summary-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.od-event-summary-main {
    grid-area: main;
}

.od-event-summary-identity-copy {
    font-size: 13px;
    font-weight: var(--ng-weight-semibold);
}

.od-event-summary-identity-copy > strong,
.od-event-summary-identity-copy > em {
    font-size: 18px;
}

.od-event-summary-identity-copy em,
.od-event-summary-main > span {
    color: var(--ng-text-muted);
    font-style: normal;
}

.od-event-summary-main h2 {
    margin: 0;
    color: var(--ng-text);
    font-size: 18px;
    font-weight: var(--ng-weight-semibold);
}

.od-event-summary-rating {
    grid-area: rating;
    align-self: end;
    color: var(--ng-global-10);
    font-size: 22px;
    font-weight: var(--ng-weight-semibold);
}

.od-event-summary-action {
    grid-area: action;
    align-self: end;
    justify-self: end;
}

@media (max-width: 560px) {
    .od-event-summary-global-1 {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "identity main"
            "rating rating"
            "action action";
    }

    .od-event-summary-rating {
        grid-column: auto;
    }

    .od-event-summary-action {
        grid-column: auto;
    }
}

.od-grid-3,
.od-grid-4 {
    display: grid;
    gap: 16px;
}

.od-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.od-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Inicio: layout only. Palette comes entirely from the tokens above. */
.od-home-hero {
    display: flex;
    align-items: end;
    min-height: 94px;
}

.od-home-summary {
    align-items: stretch;
}

.od-home-stat {
    display: flex;
    flex-direction: column;
    min-height: 156px;
    padding: 16px;
}

.od-home-stat strong {
    color: var(--ng-text);
    font-size: 22px;
    font-weight: var(--ng-weight-semibold);
}

.od-home-stat p {
    margin: 8px 0 12px;
    color: var(--ng-text-muted);
}

.od-home-stat a {
    margin-top: auto;
    color: var(--ng-accent-strong);
    font-weight: var(--ng-weight-semibold);
}

.od-home-summary .od-stat-label,
.od-home-summary .od-home-stat a {
    color: var(--ng-global-13);
}

.od-home-events .od-kicker {
    color: var(--ng-global-13);
}

.od-home-events {
    margin-top: 22px;
}

.od-home-events-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.od-home-events-head h2 {
    margin: 0;
    color: var(--ng-global-10);
    font-size: 28px;
    font-weight: var(--ng-weight-semibold);
    white-space: nowrap;
}

.od-home-tabs {
    display: inline-flex;
    width: auto;
}

.od-home-tabs span span {
    margin-left: 4px;
    font-size: 12px;
}

.od-home-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-height: 456px;
    overflow: auto;
    padding-right: 4px;
}

.od-home-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 138px;
    padding: 14px;
    border: var(--ng-border-width) solid var(--ng-border);
    border-radius: var(--ng-radius-md);
    background: var(--ng-surface-1);
}

.od-home-event-top,
.od-home-event-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.od-home-league {
    min-width: 0;
    overflow: hidden;
    color: var(--ng-text);
    font-size: 13px;
    font-weight: var(--ng-weight-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-home-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ng-text);
    font-weight: var(--ng-weight-semibold);
    white-space: nowrap;
}

.od-home-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 14px 0;
}

.od-home-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.od-home-team.is-away {
    justify-content: flex-end;
    text-align: right;
}

.od-home-team strong {
    overflow: hidden;
    color: var(--ng-text);
    font-size: 16px;
    font-weight: var(--ng-weight-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-home-team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: var(--ng-border-width) solid var(--ng-border);
    border-radius: var(--ng-radius-sm);
    color: var(--ng-global-13);
}

.od-home-vs {
    padding: 2px 7px;
    border: var(--ng-border-width) solid var(--ng-global-13);
    border-radius: 999px;
    color: var(--ng-global-13);
    font-size: 12px;
    font-weight: var(--ng-weight-semibold);
}

.od-home-event-foot {
    padding-top: 10px;
    border-top: var(--ng-border-width) solid var(--ng-border-subtle);
    color: var(--ng-text-muted);
    font-size: 13px;
}

.od-home-events-state {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 84px;
    padding: 16px;
    border: var(--ng-border-width) solid var(--ng-border);
    border-radius: var(--ng-radius-md);
    background: var(--ng-surface-1);
    color: var(--ng-text-muted);
}

.od-home-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ng-border);
    border-top-color: var(--ng-accent-strong);
    border-radius: 50%;
    animation: ng-spin .7s linear infinite;
}

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

.od-menu-toggle,
.od-guest-actions,
.od-brand {
    display: none;
}

@media (min-width: 901px) {
    .od-brand {
        position: absolute;
        left: 0;
        display: inline-flex;
        align-items: center;
        min-height: 46px;
        color: #ffd60a;
        font-size: 19px;
        font-weight: var(--ng-weight-semibold);
        text-decoration: none;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .od-nav {
        justify-content: flex-end;
    }

    .od-brand {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        margin-inline-end: auto;
        color: #ffd60a;
        font-size: 17px;
        font-weight: var(--ng-weight-semibold);
        text-decoration: none;
        white-space: nowrap;
    }

    .od-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        color: var(--ng-text);
        margin-inline-start: auto;
    }

    .od-menu {
        position: absolute;
        top: 48px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 8px;
        border: var(--ng-border-width) solid var(--ng-global-11);
        border-radius: var(--ng-radius-md);
        background: var(--ng-global-1);
        box-shadow: var(--ng-shadow);
        --ng-text: var(--ng-text-on-global-1);
        --ng-text-muted: var(--ng-text-muted-on-global-1);
    }

    .od-menu.is-open {
        display: flex;
    }

    .od-nav-tile {
        justify-content: flex-start;
        min-height: 40px;
    }

    .od-dropdown-menu {
        position: static;
        display: grid;
        min-width: 0;
        padding: 0 0 6px 28px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .od-nav-chevron {
        display: none;
    }

    .od-nav-separator {
        display: none;
    }

    .od-grid-3,
    .od-grid-4,
    .od-home-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .od-main {
        padding-top: 7px;
    }

    .od-main > :first-child {
        margin-top: 8px !important;
    }

    .od-page-head h1 {
        font-size: 30px;
    }

    .od-grid-3,
    .od-grid-4,
    .od-home-events-grid {
        grid-template-columns: 1fr;
    }

    .od-home-summary.od-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .od-home-events-head {
        align-items: flex-end;
        gap: 8px;
    }

    .od-home-tabs {
        flex: 0 0 auto;
    }
}
