.mobile-shell { width: min(760px, calc(100% - 24px)); margin: 0 auto; padding: 16px 0 28px; }
.mobile-header, .mobile-brand { display: flex; align-items: center; gap: 8px; }
.mobile-header { justify-content: space-between; margin-bottom: 12px; }
.mobile-header { flex-wrap: wrap; }
.mobile-brand { font-size: 12px; letter-spacing: .045em; }
.mobile-theme { border: 0; width: 40px; height: 44px; padding: 0; background: transparent; color: inherit; font-size: 22px; }
.view-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #245fc9; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mobile-theme:focus-visible, .mobile-toolbar .refresh-button:focus-visible, .view-link:focus-visible, .match-card > summary:focus-visible, .filter-toggle:focus-visible { outline: 2px solid #4b82df; outline-offset: 2px; }
.mobile-toolbar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; margin-bottom: 12px; border: 1px solid #dce5f0; border-radius: 10px; background: #fff; }
.mobile-connection { display: flex; flex: 0 1 auto; align-items: center; gap: 6px; min-width: 0; font-size: 11px; }
.mobile-toolbar .view-link { flex: 0 0 auto; margin-left: auto; }
#connectionLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-toolbar .refresh-button { flex: 0 0 44px; width: 44px; height: 44px; background: transparent; }
.mobile-toolbar .refresh-button:hover,
:root[data-theme="dark"] .mobile-toolbar .refresh-button { background: transparent; }
/* 44px управления + 8px сверху/снизу + две границы, как у свёрнутой даты. */
.mobile-result-summary { display: grid; align-content: center; height: 62px; margin-bottom: 12px; padding: 8px 12px; border: 1px solid #dce5f0; border-radius: 12px; background: #fff; }
.mobile-result-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; text-align: center; }
.mobile-result-metrics > div { min-width: 0; }
.mobile-result-metrics dt { color: #66768a; font-size: 11px; line-height: 1.25; }
.mobile-result-metrics dd { margin: 2px 0 0; font-size: 19px; line-height: 1.25; font-weight: 750; font-variant-numeric: tabular-nums; }
.result-won dd { color: #16814d; }
.result-lost dd { color: #c9253d; }
.offer-fact.won { color: #26734d; }
.offer-fact.lost { color: #9c4855; }
/* Подробности доступны скринридеру и в подсказке; отдельную строку не занимают. */
.mobile-result-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mobile-filters { border: 1px solid #dce5f0; border-radius: 12px; background: #fff; }
.mobile-filter-top { display: grid; grid-template-columns: minmax(0,1fr) auto 28px; align-items: center; gap: 6px; height: 60px; padding: 8px; }
.mobile-filter-top > select { min-width: 0; width: 100%; height: 44px; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; color: inherit; font-size: 14px; padding: 0 4px; }
.mobile-filter-top .segment { height: 44px; }
.mobile-filter-top .segment button { min-width: 72px; padding: 0 6px; }
.filter-toggle { display: grid; place-items: center; height: 44px; width: 28px; padding: 0; border: 0; background: transparent; }
.filter-chevron { display: grid; place-items: center; width: 20px; height: 16px; color: #66768a; }
.filter-chevron svg { display: block; width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.filter-toggle[aria-expanded="true"] .filter-chevron svg { transform: rotate(180deg); }
#mobileFilterPanel { border-top: 1px solid #dce5f0; }
.mobile-filter-grid { display: grid; grid-template-columns: 1fr; gap: 16px 10px; padding: 14px; }
.mobile-filter-grid .field { gap: 8px; }
.mobile-filter-grid .field > span { font-size: 10px; }
.mobile-filter-grid .field select { width: 100%; height: 44px; padding: 0 6px; font-size: 16px; }
.mobile-match-filter, .mobile-scopes { grid-column: 1 / -1; }
.mobile-scopes { display: grid; padding-top: 6px; border-top: 1px solid #e9edf3; gap: 2px; }
.mobile-scopes .stake-switch { min-height: 44px; font-size: 12px; }
.mobile-matches { display: grid; gap: 12px; margin-top: 16px; }
.match-card { min-width: 0; border: 1px solid #dce5f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px #24456a08; }
.match-card > summary { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 14px 12px; cursor: pointer; list-style: none; }
.match-card > summary::-webkit-details-marker { display: none; }
.match-timing { flex: 0 0 48px; min-width: max-content; display: grid; grid-template-columns: max-content; justify-items: center; gap: 4px; }
.match-time { color: #245fc9; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.match-hit-share, .match-max-delta { color: inherit; font-size: 15px; white-space: nowrap; }
.match-title { min-width: 0; flex: 1; display: grid; gap: 6px; }
.match-heading { display: flex; align-items: center; gap: 7px; min-width: 0; }
.match-title strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.match-team-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.match-team { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.team-logo { flex: 0 0 18px; width: 18px; height: 18px; object-fit: contain; }
.team-name { min-width: 0; overflow-wrap: anywhere; }
.match-team-separator { font-weight: 400; }
.match-referee { color: #66768a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.match-status { flex: 0 0 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.match-lineup { flex: 0 0 14px; width: 14px; height: 14px; text-align: center; font-size: 14px; line-height: 1; }
.match-lineup.confirmed, .match-lineup.probable { border-radius: 50%; border: 1px solid #c5d1e1; }
.match-lineup.confirmed { background: #16b364; border-color: #16b364; }
.match-lineup.probable { background: #fff; }
.match-chevron { display: grid; place-items: center; width: 20px; height: 16px; color: #66768a; }
.match-chevron svg { position: relative; top: 5px; display: block; width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.match-card[open] .match-chevron svg { transform: rotate(180deg); }
.match-offers { border-top: 1px solid #dce5f0; padding: 0 12px; }
.mobile-offer { padding: 16px 0; }
.mobile-offer + .mobile-offer { border-top: 1px solid #e9edf3; }
.mobile-offer.won, .mobile-offer.lost { margin-inline: -12px; padding-inline: 12px; }
.mobile-offer.won { background: #edf6f0; box-shadow: inset 3px 0 #84af96; }
.mobile-offer.lost { background: #faf0f1; box-shadow: inset 3px 0 #c3939b; }
.mobile-offer:last-child { border-radius: 0 0 11px 11px; }
.offer-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.offer-title { min-width: 0; margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.offer-meta { flex-shrink: 0; color: #66768a; font-size: 11px; white-space: nowrap; }
.offer-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.offer-metrics.with-fact { grid-template-columns: repeat(4,minmax(0,1fr)); }
.offer-metrics.with-fact .offer-metric dd { font-size: 15px; }
.offer-metric { min-width: 0; display: grid; align-content: center; gap: 8px; padding: 10.31px 4px; border-radius: 8px; text-align: center; background: #f5f8fc; }
.offer-metric dt { color: #66768a; font-size: 10px; }
.offer-metric dd, .match-hit-share, .match-max-delta { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.offer-metric dd { font-size: 17px; }
.offer-metric.advantage { background: #eafaf3; }
.mobile-offer.won .offer-metric, .mobile-offer.lost .offer-metric { background: rgb(255 255 255 / .4); }
.offer-metric.advantage, .match-max-delta.available { color: #16814d; }
.mobile-empty { padding: 24px 12px; color: #66768a; font-size: 14px; line-height: 1.6; text-align: center; }
.mobile-footer { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px; color: #66768a; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: center; }
.footer-tiger { display: block; height: 1em; width: auto; }
:root[data-theme="dark"] .mobile-toolbar,
:root[data-theme="dark"] .mobile-filters,
:root[data-theme="dark"] .mobile-result-summary,
:root[data-theme="dark"] .match-card { background: var(--dark-surface); border-color: var(--dark-border); }
:root[data-theme="dark"] .view-link, :root[data-theme="dark"] .match-time { color: var(--dark-blue); }
:root[data-theme="dark"] .match-referee, :root[data-theme="dark"] .filter-chevron,
:root[data-theme="dark"] .match-chevron,
:root[data-theme="dark"] .offer-meta, :root[data-theme="dark"] .offer-metric dt,
:root[data-theme="dark"] .mobile-empty, :root[data-theme="dark"] .mobile-footer { color: var(--dark-muted); }
:root[data-theme="dark"] .mobile-result-metrics dt,
:root[data-theme="dark"] .mobile-result-note { color: var(--dark-muted); }
:root[data-theme="dark"] .result-won dd { color: var(--dark-green); }
:root[data-theme="dark"] .result-lost dd { color: #ff4d5e; }
:root[data-theme="dark"] .offer-fact.won { color: #87c5a6; }
:root[data-theme="dark"] .offer-fact.lost { color: #d8a0ab; }
:root[data-theme="dark"] .mobile-offer.won { background: #1b3029; box-shadow: inset 3px 0 #527c65; }
:root[data-theme="dark"] .mobile-offer.lost { background: #33262e; box-shadow: inset 3px 0 #8f606b; }
:root[data-theme="dark"] .mobile-scopes, :root[data-theme="dark"] .match-offers,
:root[data-theme="dark"] .mobile-offer + .mobile-offer { border-color: var(--dark-border); }
:root[data-theme="dark"] #mobileFilterPanel { border-color: var(--dark-border); }
:root[data-theme="dark"] .mobile-filter-top > select { background: var(--dark-surface); border-color: var(--dark-border); }
:root[data-theme="dark"] .offer-metric { background: var(--dark-raised); }
:root[data-theme="dark"] .offer-metric.advantage { background: #17362b; }
:root[data-theme="dark"] .mobile-offer.won .offer-metric,
:root[data-theme="dark"] .mobile-offer.lost .offer-metric { background: rgb(255 255 255 / .025); }
:root[data-theme="dark"] .offer-metric.advantage,
:root[data-theme="dark"] .match-max-delta.available { color: var(--dark-green); }
@media (max-width: 359px) {
  .mobile-shell { width: calc(100% - 16px); }
  .mobile-filter-grid { padding: 10px; }
  .mobile-brand { font-size: 11px; }
  .mobile-toolbar { gap: 4px; padding-left: 6px; }
  .mobile-connection { gap: 4px; font-size: 10px; }
  .view-link { font-size: 10px; }
  .mobile-filter-top .segment button { min-width: 60px; font-size: 10px; }
  .mobile-filter-top > select { font-size: 12px; }
}
