/* Shared phone presentation. Desktop layouts and all calculation sources stay unchanged. */
.od-theme-save-notice { position:fixed; z-index:2000; bottom:24px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); text-align:center; box-shadow:var(--ng-shadow); }
.od-score-list-controls { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; min-width:0; }
.od-score-list-controls .od-score-preferred { margin-left:0; }
.od-score-list-controls > [data-score-sort] { width:170px; flex:0 0 170px; }
@media(min-width:992px) {
    .od-score-list-head { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"title title" "search checks" "commands commands"; align-items:center; gap:12px; }
    .od-score-title-row { display:contents; }
    .od-score-title-row > .od-tool-title { grid-area:title; }
    .od-score-title-row > .od-score-search { grid-area:search; min-width:0; width:100%; }
    .od-score-search input { min-width:0; }
    .od-score-list-head > .od-score-filter-row { grid-area:checks; flex-wrap:nowrap; gap:16px; margin-top:0; }
    .od-score-list-head > .od-score-command-row { grid-area:commands; margin-top:0; }
}
@media(max-width:767.98px) {
    .od-score-list-controls { display:grid; grid-template-columns:max-content max-content minmax(0,1fr); width:100%; gap:6px; }
    .od-score-page .od-score-list-controls > .od-button-global-1 { min-width:0; min-height:36px; padding-inline:6px; gap:4px; font-size:clamp(11px,3vw,12px); white-space:nowrap; }
    .od-score-list-controls > [data-score-sort] { width:100%; }
}
@media(max-width:359.98px) {
    .od-score-list-controls { gap:4px; }
    .od-score-page .od-score-list-controls > .od-button-global-1 { padding-inline:4px; }
}
.od-mobile-nav-toggle,.od-mobile-open-calculator,.od-score-mobile-back { display:none; }
.od-nav { display:flex; }
.od-mobile-account-summary { display:none; }
.od-navbar-account-actions { display:contents; }
.od-mobile-nav-account { display:none; }
.od-mobile-card-only { display:none; }
.od-mobile-card-head { display:contents; }
.od-lev-mobile-bet { display:none; }
.od-lev-market__line { display:contents; }
html.od-mobile-modal-open,html.od-mobile-modal-open body { overflow:hidden; }
/* One modal contract: the heading/close never belong to the scrolling body. */
.od-modal-global-1__header { position:relative; padding-right:44px; }
.od-modal-global-1__header .od-modal-global-1__title { position:static; margin:0; padding:0; background:transparent; }
.od-modal-global-1__header .od-modal-global-1__close { top:0; right:0; }
.od-modal-global-1__scroll { min-width:0; margin-top:16px; }
.od-mobile-calculator-modal { z-index:1190; }
.od-mobile-calculator-dialog { display:flex; flex-direction:column; width:100%; height:100%; min-height:0; background:var(--ng-global-18); color:var(--ng-text); }
.od-mobile-calculator-head { display:flex; flex-shrink:0; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid var(--ng-global-21); background:var(--ng-global-18); }
.od-mobile-calculator-head h2 { margin:0; font-size:17px; font-weight:var(--ng-weight-medium); }
.od-mobile-calculator-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding-bottom:env(safe-area-inset-bottom); }
.od-score-page .od-score-preferred { margin-left:0; }
.od-score-page .od-score-day-switch { margin-left:auto; }
html[data-theme="light"] .od-score-page :is(.od-score-segment,.od-score-day-switch) { border-bottom:0; }
html[data-theme="light"] .od-score-page :is(.od-score-segment,.od-score-day-switch) button.is-active { border-bottom-color:var(--ng-global-7); color:var(--ng-text); }
@media (max-width:1199.98px) { .od-score-page .od-score-preferred { display:inline-flex; } }

@media (max-width:991.98px) {
    .od-modal-global-1 { padding:8px; }
    .od-modal-global-1 .od-modal-global-1__dialog:has(> .od-modal-global-1__header) { display:flex; flex-direction:column; min-height:0; max-height:calc(100dvh - 16px); padding:0; overflow:hidden; }
    .od-modal-global-1__header { flex-shrink:0; padding:14px 58px 14px 14px; border-bottom:1px solid var(--ng-border-subtle); }
    .od-modal-global-1__header .od-modal-global-1__title { font-size:18px; line-height:1.35; }
    .od-modal-global-1__header .od-modal-global-1__close { top:8px; right:8px; min-width:40px; min-height:40px; }
    .od-modal-global-1__scroll { min-height:0; overflow:auto; overscroll-behavior:contain; margin:0; padding:14px; padding-bottom:max(14px,env(safe-area-inset-bottom)); }
    .od-modal-global-1__scroll .od-multi-select-global-1__list { max-height:none; overflow:visible; }
    /* Shared house choosers: constrain the list, not the title/search/actions. */
    .od-multi-select-modal-global-1 > .od-modal-global-1__scroll { display:flex; flex-direction:column; flex:1 1 auto; gap:10px; min-height:0; overflow:hidden; }
    .od-multi-select-modal-global-1 .od-multi-select-global-1 { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
    .od-multi-select-modal-global-1 .od-multi-select-global-1__head,.od-multi-select-modal-global-1 .od-multi-select-global-1 > input { flex-shrink:0; }
    .od-multi-select-modal-global-1 .od-multi-select-global-1 > input { font-size:16px; }
    .od-multi-select-modal-global-1 .od-multi-select-global-1__list { flex:1 1 auto; min-height:0; height:min(45dvh,360px); max-height:min(45dvh,360px); overflow:auto; overscroll-behavior:contain; align-content:start; }
    .od-multi-select-modal-global-1 .od-modal-global-1__scroll > .od-help-text { flex-shrink:0; margin:0; font-size:12px; }
    .od-multi-select-modal-global-1 .od-modal-global-1__actions { flex-shrink:0; margin-top:0; }
    .od-multi-select-global-1__option { min-height:42px; }
    .od-score-page .od-score-filter-row .od-input-global-1 { font-size:16px; min-height:40px; }
    .od-score-page .od-score-filter-row .od-score-check { min-height:36px; align-items:center; }
    .od-pa-slider input[type="range"],.telegram-global-rating-slider input[type="range"] { min-height:36px; }
    .od-navbar__inner { gap:10px; }
    .od-mobile-nav-toggle { display:inline-flex; flex-shrink:0; order:3; }
    .od-navbar__actions { margin-left:auto; }
    .od-navbar__actions > .od-navbar-account-actions { display:none; }
    .od-user-menu__name { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .od-user-menu__tier,.od-user-menu__balance { display:none; }
    .od-user-menu__dropdown { left:auto; right:0; }
    .od-mobile-account-summary { display:grid; gap:5px; padding:8px 10px; font-size:12px; }
    .od-nav[data-mobile-nav] { position:absolute; z-index:1100; top:100%; left:10px; right:10px; display:none; align-items:stretch; flex-direction:column; gap:2px; max-height:calc(100dvh - 88px); overflow:auto; padding:8px 10px; border:1px solid var(--ng-global-21); border-radius:var(--ng-radius-sm); background:var(--ng-global-18); box-shadow:var(--ng-shadow); }
    .od-nav[data-mobile-nav].is-mobile-open { display:flex; }
    .od-nav[data-mobile-nav] .od-mobile-nav-account { display:block; }
    .od-nav[data-mobile-nav] .od-navbar-account-actions { display:grid; gap:6px; padding:8px 0 4px; border-top:1px solid var(--ng-global-21); }
    .od-nav[data-mobile-nav] .od-user-menu { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
    .od-nav[data-mobile-nav] .od-user-menu__trigger { min-width:0; max-width:100%; min-height:36px; padding:6px 10px; text-align:left; cursor:pointer; opacity:1; }
    .od-nav[data-mobile-nav] .od-user-menu__trigger > i { display:inline-block; transform:none; }
    .od-nav[data-mobile-nav] .od-user-menu.is-profile-open .od-user-menu__trigger > i { transform:rotate(180deg); }
    .od-nav[data-mobile-nav] .od-user-menu__name { max-width:none; font-size:14px; white-space:normal; overflow-wrap:anywhere; }
    .od-nav[data-mobile-nav] :is(.od-user-menu__tier,.od-user-menu__balance) { display:inline-flex; }
    .od-nav[data-mobile-nav] .od-mobile-account-summary { display:none; }
    .od-nav[data-mobile-nav] .od-user-menu__dropdown { position:static; display:none; flex:0 0 100%; min-width:0; padding:5px; }
    .od-nav[data-mobile-nav] .od-user-menu.is-profile-open .od-user-menu__dropdown { display:grid; }
    .od-nav[data-mobile-nav] .od-user-menu__dropdown :is(a,button) { min-height:36px; padding:6px 10px; white-space:normal; line-height:1.35; }
    .od-nav[data-mobile-nav] .od-navbar-account-actions > .od-navbar-button { justify-self:start; width:fit-content; min-height:36px; margin-left:10px; }
    .od-nav[data-mobile-nav] > .od-nav__link,.od-nav[data-mobile-nav] .od-nav-dropdown__trigger { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:36px; padding:6px 10px; text-align:left; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__trigger { min-height:28px; padding-block:4px; }
    .od-nav[data-mobile-nav] .od-nav-dropdown { display:block; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__menu { position:static; display:grid; min-width:0; margin:0 0 4px 24px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__menu a { min-height:36px; padding:6px 10px; border-radius:0; background:transparent; white-space:normal; line-height:1.35; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__menu a:hover,.od-nav[data-mobile-nav] .od-nav-dropdown__menu a.is-active { background:transparent; color:var(--ng-global-13); }
    .od-nav[data-mobile-nav] .od-nav-dropdown__separator { margin:4px 10px; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__trigger.is-active::after { display:none; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__trigger:disabled { opacity:1; color:inherit; cursor:default; }
    .od-nav[data-mobile-nav] .od-nav-dropdown__trigger i { display:none; }
    .od-lev-page,.od-calculator-favor-page,.od-calculator-events-page,.od-multiplier-page,.od-pa-page,.od-tracker-page { padding-top:16px; padding-bottom:24px; }
    .od-favor-page,[data-comparador-lev] { padding-bottom:8px; }
    body.od-app:has([data-comparador-favor],[data-comparador-lev]) .od-hd-scale-shell > .od-footer { margin-top:0; }
    .od-lev-toolbar { display:grid; grid-template-columns:minmax(0,1fr); width:100%; gap:10px; }
    .od-lev-toolbar__identity,.od-lev-toolbar__actions--primary,.od-lev-toolbar__actions--search { grid-column:1; grid-row:auto; min-width:0; width:100%; }
    .od-lev-toolbar__identity { flex-wrap:wrap; justify-content:center; }
    .od-lev-toolbar__identity h1 { font-size:18px; }
    .od-lev-toolbar__actions--primary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .od-lev-toolbar__actions--primary .od-button-global-1 { justify-content:center; min-width:0; min-height:40px; padding:6px; font-size:12px; white-space:normal; }
    .od-lev-toolbar__actions--search { display:flex; flex-wrap:nowrap; gap:6px; }
    .od-lev-toolbar__actions--search .od-lev-search { flex:1; width:auto; min-width:0; }
    .od-lev-toolbar__actions--search .od-button-global-1 { flex:none; min-height:40px; }
    .od-favor-layout,.od-lev-layout.od-comparator-layout-global-1 { display:block; height:auto; min-height:0; }
    .od-favor-results-panel,.od-lev-results-panel { width:100%; height:auto; min-height:0; }
    .od-favor-results,.od-lev-results { max-height:none; overflow:visible; }
    .od-lev-results-panel { display:grid; grid-template-rows:minmax(0,1fr) auto; }
    .od-lev-results { min-height:0; }
    .od-lev-results:has(> .od-lev-empty:only-child) { display:grid; place-items:center; }
    .od-favor-results-panel:has(.od-favor-results:empty),
    .od-favor-results-panel:has(.od-favor-results[aria-busy="true"] > .od-loading-state-global-1),
    .od-favor-page.is-loading .od-favor-results-panel:not(:has(.od-favor-row)) { min-height:var(--od-favor-loading-height,max(280px,calc(100svh - 260px))); }
    .od-lev-results-panel:has(.od-lev-results:empty),
    .od-lev-results-panel:has(.od-lev-results[aria-busy="true"] > .od-loading-state-global-1),
    [data-comparador-lev].is-loading .od-lev-results-panel:not(:has(.od-lev-row)) { min-height:var(--od-lev-loading-height,max(280px,calc(100svh - 260px))); }
    .od-lev-row__markets .od-lev-market { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 4px; }
    .od-lev-row__markets .od-lev-market > span { grid-column:1; grid-row:1; min-width:0; text-align:left; white-space:nowrap; font-size:12px; }
    .od-lev-row__markets .od-lev-market__line { display:contents; }
    .od-lev-row__markets .od-lev-market small { grid-column:1/-1; grid-row:2; min-width:0; max-width:100%; overflow:visible; white-space:normal; text-overflow:clip; }
    .od-lev-row__markets .od-lev-market small a { min-width:0; max-width:100%; gap:4px; }
    .od-lev-row__markets .od-lev-market__bookmaker-name { min-width:0; max-width:64px; white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
    .od-lev-row__markets .od-lev-market .od-lev-bookmaker-logo { width:14px; height:14px; flex-basis:14px; }
    .od-lev-row__markets .od-lev-market strong { position:static; grid-column:2; grid-row:1; align-self:center; justify-self:end; align-items:center; margin-left:0; max-width:100%; white-space:nowrap; font-size:1rem; }
    .od-favor-row > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .od-favor-row > div > .bi-arrow-left-right { display:none; }
    .od-mobile-open-calculator { display:flex; justify-content:center; align-items:center; gap:8px; width:100%; min-height:42px; margin-top:8px; }
    .od-mobile-calculator-modal { padding:0; }
    .od-mobile-calculator-modal--lev .od-mobile-calculator-head { position:relative; z-index:1; height:0; min-height:0; padding:0; border:0; }
    .od-mobile-calculator-modal--lev .od-mobile-calculator-head h2 { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
    .od-mobile-calculator-modal--lev [data-mobile-calculator-close] { position:absolute; top:6px; right:8px; width:40px; height:40px; }
    .od-mobile-calculator-body :is(.od-favor-detail-panel,.od-lev-detail-panel) { display:grid; width:100%; min-width:0; min-height:0; height:auto; padding:12px; border:0; border-radius:0; }
    .od-mobile-calculator-body .od-favor-detail-head { flex-wrap:wrap; gap:8px; }
    .od-mobile-calculator-body .od-favor-detail-head p { flex:1 0 100%; order:3; overflow-wrap:anywhere; }
    .od-mobile-calculator-body .od-favor-tracker { width:100%; justify-content:center; min-height:42px; white-space:normal; }
    .od-mobile-calculator-body .od-favor-detail-head > .od-rating-global-1 { margin-left:auto; }
    .od-mobile-calculator-body .od-lev-detail__head { display:grid; grid-template-columns:minmax(0,1fr) auto; }
    .od-mobile-calculator-body .od-lev-detail-panel { gap:10px; }
    .od-mobile-calculator-body .od-lev-event-teams { min-height:40px; }
    .od-mobile-calculator-body .od-lev-detail__head .od-subtitle-badge-global-1 { justify-self:start; }
    .od-mobile-calculator-body .od-lev-detail__head .od-rating-global-1 { grid-column:2; grid-row:1; margin-right:44px; }
    .od-mobile-calculator-body .od-lev-tracker-button { width:100%; justify-content:center; min-height:42px; white-space:normal; }
    .od-mobile-calculator-body .od-lev-detail__head p { display:block; grid-column:1/-1; grid-row:2; overflow-wrap:anywhere; }
    .od-mobile-calculator-body .od-lev-detail__head p .od-copy-global-1 { margin-inline-start:6px; vertical-align:middle; }
    .od-mobile-calculator-body .od-lev-mobile-bet { display:inline; }
    .od-mobile-calculator-body .od-lev-detail__markets { display:none; }
    .od-mobile-calculator-body .od-favor-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .od-mobile-calculator-body .od-favor-cards article { min-width:0; padding:8px; }
    .od-mobile-calculator-body .od-favor-cards article header { flex-wrap:wrap; gap:2px 6px; }
    .od-mobile-calculator-body .od-favor-cards article header a { display:inline-flex; align-items:center; gap:3px; min-height:32px; margin-left:auto; font-size:11px; white-space:nowrap; }
    .od-mobile-calculator-body .od-favor-cards article footer { flex-wrap:wrap; }
    .od-mobile-calculator-body .od-favor-card-odd { display:none; }
    .od-mobile-calculator-body .od-favor-cards article footer > span { flex-wrap:wrap; min-width:0; }
    .od-mobile-calculator-body .od-favor-pick { flex-wrap:wrap; overflow-wrap:anywhere; }
    .od-event-teams-global-1,.od-lev-event-teams { min-width:0; gap:8px; }
    .od-event-team-global-1,.od-lev-team { min-width:0; }
    .od-event-team-global-1 > span,.od-lev-team > span { min-width:0; overflow-wrap:anywhere; white-space:normal; }
    .od-lev-pagination { position:sticky; bottom:0; background:var(--ng-global-18); }
    .od-calculator-favor-table-wrap { min-width:0; max-width:100%; }
    .od-calculator-favor-panel { grid-template-columns:minmax(0,1fr); }
    .od-calculator-favor-panel > * { min-width:0; }
    /* Cards also replace calculator grids inside the tablet-size comparator modal. */
    .od-mobile-calculator-body .od-table-global-1 { min-width:0; }
}

/* Shared table-to-card layout, including comparators' phone/tablet calculator modals. */
@media (max-width:991.98px) {
    /* One set of cells and inputs, presented as labeled cards rather than a scrolling table. */
    :is(.od-calculator-favor-table-wrap,.od-calculator-events-table-wrap,.od-multiplier-table-scroll,.od-pa-table-scroll,.od-admin-table-wrap) { overflow:visible; border-radius:0; }
    table.od-table-global-1.od-mobile-table-global-1 { display:block; width:100%; min-width:0 !important; border:0; border-radius:0; background:transparent; overflow:visible; }
    table.od-mobile-table-global-1 > thead { display:none; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) { display:grid; width:100%; gap:8px; }
    table.od-mobile-table-global-1 > tfoot { margin-top:12px; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; min-width:0; padding:0; overflow:hidden; border:1px solid var(--ng-global-21); border-radius:var(--ng-radius-sm); background:var(--ng-global-18); }
    html[data-theme] body.od-app table.od-lev-calculator-table > tbody > tr.od-neon-mobile-global-1 { border:1px solid var(--ng-global-21); box-shadow:none; transition:none; }
    table.od-table-global-1.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > :is(th,td) { display:flex; flex-direction:column; gap:3px; width:auto !important; min-width:0; height:auto; padding:6px 10px; border:0 !important; background:transparent; color:var(--ng-text); text-align:left !important; white-space:normal; overflow-wrap:anywhere; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > :is(th,td)::before { content:attr(data-label); display:block; color:var(--ng-text-muted); font-size:12px; line-height:1.3; text-transform:none; }
    table.od-table-global-1.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > th { grid-column:1/-1; flex-direction:row; align-items:center; gap:8px; min-height:32px; padding:6px 10px !important; border-radius:0; background:var(--ng-global-12) !important; color:var(--ng-text-on-global-12) !important; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > th::before { content:none; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > [data-mobile-wide="true"] { grid-column:1/-1; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > [data-mobile-empty="true"] { display:none !important; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > [colspan]::before { content:none; }
    /* Shared Favor/LEV cards: fields above, results around FREE/BONO/REE below. */
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] { grid-template-columns:repeat(6,minmax(0,1fr)); }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] > td:nth-child(2) { grid-column:1 / 4; grid-row:2; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] > td:nth-child(4) { grid-column:4 / 7; grid-row:2; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] > td:nth-child(5) { grid-column:1 / 3; grid-row:3; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] > td:has(.od-switch-global-1) { grid-column:3 / 5; grid-row:3; align-items:center; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"] > td:nth-child(6) { grid-column:5 / 7; grid-row:3; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"]:has(> td.od-mobile-refund-cell) > td:nth-child(2) { grid-column:1 / 3; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr[data-mobile-special="true"]:has(> td.od-mobile-refund-cell) > td:nth-child(4) { grid-column:5 / 7; }
    table.od-table-global-1.od-mobile-table-global-1:is(.od-favor-table,.od-lev-calculator-table) > tbody > tr > .od-mobile-refund-cell { grid-column:3 / 5; grid-row:2; padding-inline:6px; }
    /* Events keeps its native cells: house/type above, fields then results. */
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) { grid-template-columns:repeat(6,minmax(0,1fr)); }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(4) { grid-column:1 / 4; grid-row:4; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(6) { grid-column:4 / 7; grid-row:4; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(7) { grid-column:1 / 4; grid-row:5; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(8) { grid-column:4 / 7; grid-row:5; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(3) { grid-column:3 / 5; grid-row:5; align-items:center; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table:is(.od-calculator-events-table--gratuita,.od-calculator-events-table--bono,.od-calculator-events-table--reembolso) > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(7) { grid-column:1 / 3; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table:is(.od-calculator-events-table--gratuita,.od-calculator-events-table--bono,.od-calculator-events-table--reembolso) > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(8) { grid-column:5 / 7; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table.od-calculator-events-table--reembolso > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(4) { grid-column:1 / 3; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table.od-calculator-events-table--reembolso > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(5) { grid-column:3 / 5; grid-row:4; padding-inline:6px; }
    table.od-table-global-1.od-mobile-table-global-1.od-calculator-events-table.od-calculator-events-table--reembolso > tbody > tr:not(.od-calculator-events-total) > td:nth-of-type(6) { grid-column:5 / 7; }
    table.od-mobile-table-global-1 :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.od-input-shell-global-1) { width:100%; min-width:0; max-width:100%; }
    table.od-mobile-table-global-1 :is(.od-input-global-1,.od-input-shell-global-1) { min-height:40px; }
    table.od-mobile-table-global-1 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),table.od-mobile-table-global-1 select { font-size:16px; }
    table.od-mobile-table-global-1 :is(.od-lev-ree-cell,.od-calculator-favor-refund) { display:flex; justify-content:center; }
    table.od-mobile-table-global-1 .od-multiplier-favor-cell { grid-template-columns:minmax(0,1fr); gap:6px; }
    table.od-table-global-1.od-mobile-table-global-1.od-pa-table > tbody > tr > :is(td:nth-child(2),td:nth-child(3)) { grid-column:1 / -1; }
    table.od-mobile-table-global-1 .od-pa-slider { grid-template-columns:44px minmax(0,1fr); gap:8px; }
    table.od-mobile-table-global-1 .od-pa-slider small { grid-column:1/-1; }
    table.od-mobile-table-global-1 :is(.od-admin-plan-actions,.od-pa-row-actions) { display:flex; flex-wrap:wrap; gap:8px; }

    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > th :is(img,i) { flex-shrink:0; }
    table.od-mobile-table-global-1 > :is(tbody,tfoot) > tr > th:has(> .od-mobile-card-head) { flex-direction:column; align-items:stretch; gap:0; padding:0 !important; background:transparent !important; }
    table.od-mobile-table-global-1 .od-mobile-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:32px; padding:4px 10px; background:var(--ng-global-12); color:var(--ng-text-on-global-12); }
    table.od-mobile-table-global-1 .od-mobile-card-only { display:block; }
    table.od-mobile-table-global-1 span.od-mobile-card-only { display:inline; }
    table.od-mobile-table-global-1 .od-mobile-card-head .od-lev-table-house { flex:1; min-width:0; flex-wrap:wrap; gap:4px; }
    table.od-mobile-table-global-1 .od-mobile-card-head .od-lev-table-house__link { white-space:normal; overflow-wrap:anywhere; }
    table.od-mobile-table-global-1 .od-mobile-card-head .od-mobile-card-event-copy { display:inline-flex; flex-shrink:0; }
    table.od-mobile-table-global-1 .od-mobile-card-event-copy .od-copy-global-1 { color:inherit; border-color:color-mix(in srgb,currentColor 45%,transparent); }
    table.od-mobile-table-global-1 .od-mobile-card-link { display:inline-flex; flex-shrink:0; align-items:center; gap:4px; color:inherit; font-size:12px; white-space:nowrap; text-transform:uppercase; text-decoration:none; }
    table.od-mobile-table-global-1 .od-mobile-card-selection { display:flex; align-items:center; gap:6px; min-width:0; padding:4px 10px 0; color:var(--ng-text); font-weight:var(--ng-weight-regular); text-transform:none; }
    table.od-mobile-table-global-1 .od-mobile-card-selection > span { flex:1; min-width:0; overflow-wrap:anywhere; }
    /* The last two LEV cells are results, not fields: keep them close to the inputs. */
    table.od-table-global-1.od-mobile-table-global-1.od-lev-calculator-table > tbody > tr:not(.od-lev-invested-row):not(:has(.od-switch-global-1)) > td:nth-last-child(-n+2),
    table.od-table-global-1.od-mobile-table-global-1.od-lev-calculator-table > tbody > tr:has(> td .od-switch-global-1) > :is(td:nth-child(3),td:nth-child(5),td:nth-child(6)) { padding-top:0; }
}

@media (max-width:767.98px) {
    .od-input-prefix { flex-shrink:0; white-space:nowrap; }
    main { min-width:0; }
    .container { max-width:100%; }
    :is(.od-favor-livewire-page,.od-lev-livewire-page,.od-score-livewire-page,.od-calculator-favor-page,.od-calculator-events-page,.od-multiplier-page,.od-pa-page,.od-tracker-page,.od-admin-page) { min-width:0; }
    :is(.od-calculator-favor-panel,.od-calculator-events-panel,.od-multiplier-shell,.od-pa-shell,.od-tracker-shell,.od-admin-surface) { padding:12px; }
    .od-calculator-favor-head { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
    .od-calculator-favor-head h1 { font-size:18px; grid-column:1; }
    .od-calculator-favor-rating { grid-column:2; font-size:18px; }
    .od-calculator-favor-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .od-calculator-favor-card { min-height:0; padding:10px; gap:4px; }
    .od-calculator-favor-card span,.od-calculator-favor-card p { font-size:12px; }
    .od-calculator-favor-card strong { font-size:20px; }
    .od-tabs-global-1 { flex-wrap:wrap; overflow:visible; }
    :is(.od-calculator-favor-tabs,.od-favor-tabs,.od-lev-calculator-tabs,.od-calculator-events-tabs) button { flex:1 0 50%; min-width:0; min-height:40px; margin:0; padding:8px 5px; white-space:normal; }
    .od-calculator-favor-tabs { margin:10px 0; }
    .od-lev-row__markets { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
    .od-lev-row__markets .od-lev-market { min-width:0; padding:6px; }
    .od-lev-row__markets .od-lev-market > span { font-size:clamp(11px,3vw,12px); }
    .od-lev-row__markets .od-lev-market strong { font-size:clamp(12px,3.5vw,14px); }
    .od-lev-row__markets .od-lev-market small { flex-basis:100%; }
    .od-lev-row__markets .od-lev-market__bookmaker-name { max-width:100%; }
    .od-lev-market span { flex-wrap:wrap; white-space:normal; overflow-wrap:anywhere; }
    .od-lev-row__team strong { max-width:none; overflow-wrap:anywhere; white-space:normal; }
    .od-lev-row__head,.od-favor-row header { min-width:0; }
    .od-lev-row__teams,.od-favor-row__teams { min-width:0; }
    .od-lev-row__team { min-width:0; }
    .od-favor-row { padding:10px 8px; }
    .od-favor-option { padding:7px; gap:5px; }
    .od-favor-option b { white-space:normal; overflow-wrap:anywhere; font-size:12px; }
    .od-favor-option > span { grid-column:1; grid-row:2; font-size:12px; }
    .od-favor-option > strong { grid-column:2; grid-row:2; align-self:center; justify-self:end; white-space:nowrap; font-size:18px; }
    .od-favor-option :is(.od-favor-house-link,.od-favor-house-text) { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
    .od-favor-option :is(.od-lev-bookmaker-logo,i) { flex-shrink:0; }
    .od-favor-row header > strong { flex-shrink:0; font-size:18px; }
    .od-favor-row small { line-height:1.4; }

    .od-admin-history td:last-child { white-space:normal; }
    .od-admin-switch { justify-content:flex-start; }
    .od-admin-actions { width:100%; }
    .od-admin-actions > .od-button-global-1 { width:100%; }
    .od-admin-feature-row > .od-admin-field { flex-basis:100%; }
    .od-admin-page .od-pagination-global-1__control { width:32px; }
    .od-calculator-events-count__controls input { min-width:0; }
    .od-calculator-events-toolbar { gap:12px; }
    .od-multiplier-summary { gap:12px; }
    .od-multiplier-actions > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .od-multiplier-actions > div > :last-child { grid-column:1/-1; }
    .od-pa-details { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .od-pa-details > .od-pa-field { grid-column:auto; }
    .od-pa-details > :is(.od-pa-field--event,.od-pa-field--date,.od-pa-field--usage) { grid-column:1 / -1; }
    .od-pa-details .od-pa-stepper { grid-template-columns:36px minmax(0,1fr) 36px; gap:4px; }
    .od-pa-summary,.od-pa-saved-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .od-pa-summary > :last-child,.od-pa-saved-stats > :last-child { grid-column:1/-1; }
    .od-pa-summary article,.od-pa-saved-stats article { min-height:0; padding:10px; }
    .od-tracker-title-wrap h1 { font-size:18px; }
    .od-tracker-group__head { flex-wrap:wrap; gap:8px; }
    .od-tracker-group__head .od-button-global-1 { width:100%; margin:0; }
    .od-tracker-legs--three { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .od-tracker-legs > span,.od-tracker-event-metrics > span { min-width:0; padding:8px; overflow-wrap:anywhere; }
    .od-tracker-actions .od-button-global-1 { min-height:42px; }
    .od-modal-global-1 { padding:8px; }
    .od-modal-global-1__dialog { width:100%; max-height:calc(100dvh - 16px); overflow:auto; overscroll-behavior:contain; padding:18px 12px 12px; }
    .od-modal-global-1__actions { flex-wrap:wrap; }
    .od-modal-global-1__actions > button { flex:1; min-height:42px; white-space:normal; }
    .od-lev-filter-grid,.od-favor-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .od-lev-filter-grid > label { min-width:0; }
    .od-lev-filter-grid > label:has(input[type="datetime-local"]) { grid-column:1/-1; }
    .od-modal-global-1 input[type="datetime-local"] { min-width:0; max-width:100%; }
    .od-lev-filter-modal__actions { flex-wrap:wrap; }
    .od-lev-filter-modal__actions > button { min-width:0; flex:1; white-space:normal; }

    /* Score follows Orange's separate mobile list/detail panes; odds stay a compact matrix. */
    .od-score-page > .container { width:100%; max-width:100%; padding-inline:4px; }
    .od-score-list-panel { height:auto; min-height:0; }
    .od-score-list { max-height:none; overflow:visible; padding:0 8px 8px; }
    .od-score-list-head { padding:12px; }
    .od-score-title-row,.od-score-command-row,.od-score-filter-row { min-width:0; gap:8px; }
    .od-score-command-row { justify-content:center; }
    .od-score-search { min-width:0; flex-basis:100%; }
    .od-score-page .od-score-preferred { display:inline-flex; flex:0 0 auto; width:auto; min-height:36px; padding-inline:8px; font-size:12px; }
    .od-score-page .od-score-day-switch { width:100%; margin-left:0; flex:1 0 100%; }
    .od-score-page .od-score-day-switch button { flex:1; }
    .od-score-filter-row > label:not(.od-score-check) { display:grid; min-width:0; flex:1 0 44%; }
    .od-score-filter-row .od-score-check { white-space:normal; font-size:12px; }
    .od-score-league__head { min-height:32px; padding:2px 6px; }
    .od-score-league__head > span:first-child { min-width:0; gap:5px; }
    .od-score-league__head .od-button-icon { height:28px; min-height:28px; }
    .od-score-match { grid-template-columns:52px minmax(0,1fr) auto 34px; grid-template-rows:auto 40px; gap:4px; min-height:0; padding:4px 6px; }
    .od-score-match-actions { grid-column:1; grid-row:2; }
    .od-score-match time { grid-column:1; grid-row:1; font-size:12px; }
    .od-score-teams { grid-column:2/-1; grid-row:1; gap:4px; font-size:12px; }
    .od-score-teams img { width:16px; height:16px; flex-shrink:0; }
    .od-score-favorite { grid-column:4; grid-row:2; }
    .od-score-match-odds { grid-column:2; grid-row:2; gap:2px; }
    .od-score-match-odds span { gap:2px; }
    .od-score-match-odds strong { padding:2px 0; font-size:14px; }
    .od-score-select { grid-column:1; grid-row:2; }
    .od-score-match .od-button-icon { width:34px; height:34px; min-height:34px; }
    .od-score-match > .od-rating-global-1 { grid-column:3; grid-row:2; font-size:16px; }
    .od-score-detail-panel { min-height:0; }
    .od-score-detail-head { grid-template-columns:minmax(0,1fr) auto; margin:8px 4px 0; }
    .od-score-detail-head > div { min-width:0; overflow-wrap:anywhere; }
    .od-score-detail-head .od-button-global-1 { width:100%; min-height:40px; white-space:normal; }
    .od-score-calculator { grid-template-columns:minmax(0,1fr); margin:8px 0; padding:4px 2px; gap:8px; }
    .od-score-summary { grid-row:2; display:grid; grid-template-columns:1fr 1fr; align-items:center; padding:6px 2px; }
    .od-score-summary label { grid-column:2; grid-row:1/3; min-width:0; }
    .od-score-summary label .od-input-shell-global-2 { width:calc(100% - 24px); max-width:144px; justify-self:center; }
    .od-score-summary > span:last-child { grid-column:1; font-size:11px; flex-wrap:wrap; }
    .od-score-versus { grid-row:1; grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr); gap:5px; }
    .od-score-versus b { width:24px; height:24px; font-size:10px; }
    .od-score-versus-team { grid-template-columns:20px minmax(0,1fr) 22px; gap:3px; }
    .od-score-versus-team--away { grid-template-columns:22px minmax(0,1fr) 20px; }
    .od-score-versus img,.od-score-team-logo { width:20px; height:20px; }
    .od-score-team-name { font-size:12px; white-space:normal; overflow-wrap:anywhere; }
    .od-score-outcomes { grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; }
    .od-score-outcomes article { padding:5px 1px; gap:5px; }
    .od-score-outcome-title { font-size:11px; white-space:normal; }
    .od-score-outcome-inputs { grid-template-columns:minmax(0,1fr); gap:4px; padding-inline:5px; }
    .od-score-calculator .od-input-global-2,.od-score-calculator .od-input-shell-global-2 { min-width:0; }
    .od-score-calculator .od-input-shell-global-2 { padding-inline:4px; }
    .od-score-calculator input { min-width:0; width:100%; }
    .od-score-table-wrap { margin:0 4px 8px; overflow:visible; }
    .od-table-score-global-1 { table-layout:fixed; width:100%; }
    .od-table-score-global-1 thead th:first-child { width:40%; }
    .od-table-score-global-1 :is(th,td) { padding:2px 3px; }
    .od-table-score-global-1 thead button { font-size:11px; }
    .od-table-score-global-1__house { grid-template-columns:16px minmax(0,1fr) 20px 24px; gap:3px; }
    .od-table-score-global-1__house .od-score-rank { display:none; }
    .od-table-score-global-1__house .od-score-bookmaker-logo { grid-column:1; grid-row:1; }
    .od-table-score-global-1__house .od-table-score-global-1__name { grid-column:2; grid-row:1; font-size:13px; }
    .od-table-score-global-1__house a { grid-column:3; grid-row:1; }
    .od-table-score-global-1__house .od-copy-global-1 { grid-column:4; grid-row:1; }
    .od-table-score-global-1 [data-score-pick] { min-height:24px; padding:2px 0; font-size:14px; }
}

/* One pane below the desktop boundary, including narrow desktop windows.
   Never stack a second detail workspace below the match list. */
@media (max-width:991.98px) {
    .od-score-grid { display:block; height:auto; min-height:0; }
    .od-score-page:not(.is-mobile-detail) .od-score-detail-panel,
    .od-score-page.is-mobile-detail .od-score-list-panel { display:none; }
    .od-score-mobile-back { display:flex; width:100%; min-height:42px; margin-bottom:10px; }
    .od-score-page:not(.is-mobile-detail) .od-score-mobile-back { display:none; }
    .od-score-list-panel { height:auto; min-height:0; }
    .od-score-detail-panel { min-height:0; }
}

/* Tall, narrow desktop windows do not use the HD zoom. Give navigation its own
   row so a full Platinum/admin account and the Academy link remain visible. */
@media (min-width:992px) and (max-width:1199.98px) and (min-height:901px) {
    .od-navbar__inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; padding-block:8px; }
    .od-navbar__inner > .od-brand { grid-column:1; grid-row:1; justify-self:start; }
    .od-navbar__inner > .od-navbar__actions { grid-column:2; grid-row:1; }
    .od-navbar__inner > .od-nav { grid-column:1 / -1; grid-row:2; justify-content:center; }
}

@media (max-width:575.98px) {
    .od-navbar__inner { display:grid; grid-template-columns:minmax(0,1fr) auto auto; min-height:60px; gap:6px 10px; padding-block:8px; }
    .od-navbar__inner > .od-brand { grid-column:1; grid-row:1; justify-self:start; }
    .od-navbar__inner > .od-mobile-nav-toggle { grid-column:3; grid-row:1; }
    .od-navbar__inner > .od-navbar__actions { grid-column:2; grid-row:1; justify-content:flex-end; min-width:0; margin-left:0; }
    .od-navbar .od-brand { gap:5px; font-size:15px; flex-shrink:0; }
    .od-navbar .od-brand__mark { width:28px; height:28px; }
    .od-navbar__actions { gap:7px; }
    .od-navbar .od-navbar-button { min-width:0; padding-inline:8px; font-size:12px; }
    /* Keep the navbar's pill-icon controls circular at compact widths. */
    .od-navbar .od-theme-toggle,.od-navbar .od-mobile-nav-toggle { width:36px; min-width:36px; height:36px; padding:0; }
    .od-user-menu { gap:0; min-width:0; }
    .od-user-menu__name { max-width:64px; font-size:12px; }
    .od-user-menu__balance { display:none; }
    .od-user-menu__dropdown { left:auto; right:0; }
    .od-mobile-account-summary { display:grid; gap:5px; padding:8px 10px; font-size:12px; }
    .od-lev-toolbar__identity .od-video-play-global-1 { min-height:34px; padding-inline:10px; font-size:12px; }
    .od-mobile-calculator-body .od-favor-cards article > strong { font-size:20px; }
    .od-mobile-calculator-body .od-favor-cards article header { font-size:13px; }
    .od-mobile-calculator-body .od-favor-pick,.od-mobile-calculator-body .od-favor-cards article footer { font-size:12px; }
    .od-mobile-calculator-modal { padding:0; }
}
