/* Competition controls and responsive data views. */
[hidden] { display: none !important; }
button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.hero { min-height: 67px; background: none; border: 0; border-radius: 0; overflow: visible; }
.hero::before, .hero::after { display: none; }
.hero-copy { padding: 0 0 12px; }
.hero h1 { font-size: 34px; color: var(--text); }
.hero-eyebrow { color: var(--muted); }
.hero-eyebrow strong { color: var(--accent); font-size: 22px; }
body.theme-light .hero { box-shadow: none; }
.league-hub { margin-top: 7px; }
.league-control { width: min(100%, 390px); }
select.league-toggle { display: block; padding: 10px 36px 10px 14px; cursor: pointer; font-size: 16px; min-height: 47px; }
select.league-toggle, body.theme-light select.league-toggle, .round-navigation select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b69a60' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; background-size: 12px 8px; }
.tab-button { min-height: 52px; }
.feed-status { min-height: 32px; gap: 9px; flex-wrap: wrap; margin: 7px 0 0; }
.feed-status .status, body.theme-light .feed-status .status { font-size: 11px; }
.feed-status .text-action { font-size: 11px; }
.share-action { margin-left: auto; }
.text-action, body.theme-light .text-action { padding: 8px 3px; min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 500; box-shadow: none; white-space: nowrap; }
.text-action:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.outline-action, .icon-button { border: 1px solid var(--stroke); border-radius: 6px; background: var(--panel-raised); color: var(--text); box-shadow: none; }
.outline-action { min-height: 42px; padding: 9px 15px; font-size: 12px; font-weight: 500; }
.outline-action:hover, .icon-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-button { width: 39px; min-width: 39px; min-height: 43px; padding: 2px; font-size: 27px; line-height: 1; }
.season-warning { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.loading-state { min-height: 270px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.inline-loading { display: flex; align-items: center; gap: 12px; padding: 25px 0; color: var(--muted); font-size: 13px; }
.loading-spinner { display: inline-block; width: 19px; height: 19px; flex: none; border: 2px solid var(--stroke); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .tab-panel { display: none; }
.tab-panel { padding-top: 14px; }
.schedule-block { padding: 23px; }
.section-description { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.schedule-heading { gap: 16px; }
.schedule-heading h2 { font-size: 28px; }
.schedule-controls { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid var(--stroke); }
.round-navigation { display: flex; align-items: center; gap: 6px; flex: none; }
.round-navigation select { min-height: 43px; width: 183px; flex: none; padding: 8px 32px 8px 10px; font-size: 13px; }
.search-field { display: flex; align-items: center; min-width: 180px; width: 300px; margin-left: auto; border: 1px solid var(--stroke); border-radius: 6px; background: var(--bg); }
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 17px; height: 17px; flex: none; margin-left: 12px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search-field input[type="search"] { width: 100%; flex: 1; min-height: 43px; padding: 8px 12px; background: none; border: 0; border-radius: 6px; font-size: 13px; }
.match-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 19px; }
.status-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.status-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 12px; border: 1px solid var(--stroke); border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 500; box-shadow: none; }
.status-filters button span { color: inherit; opacity: .75; font-variant-numeric: tabular-nums; }
.status-filters button:hover { color: var(--text); border-color: #6b7d96; }
.status-filters button.active { background: var(--accent-soft); color: var(--accent); border-color: #a98e555e; }
.view-btn, body.theme-light .view-btn { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.match-card, .match-card.small, body.theme-light .match-card { min-height: 183px; padding: 17px; }
.match-top-date { font-size: 11px; }
.match-home, .match-away { font-size: 13px; font-weight: 500; }
.match-line { min-height: 32px; }
.match-card .match-meta { margin-top: auto; padding-top: 13px; }
.match-state { font-size: 10px; }
.match-meta { font-size: 10px; }
.match-open { color: var(--accent); }
.match-row { min-height: 77px; }
.match-row-team { font-size: 13px; }
.match-row-meta { font-size: 11px; }
.match-tag, body.theme-light .match-tag { font-size: 10px; }
.match-icons { display: none; }
#more-matches { display: block; margin: 20px auto 0; min-width: 240px; }
.empty-state { min-height: 125px; padding: 25px; line-height: 1.6; }
.empty-state .text-action { display: block; margin-top: 8px; }
.table-wrap { scrollbar-color: #637698 var(--panel); scrollbar-width: thin; }
.standings-wrap { margin-top: 7px; border: 1px solid var(--stroke); border-radius: 7px; }
.table-legend { color: var(--muted); font-size: 10px; margin: 13px 0 0; }
.table-scroll-hint { display: none; }
.table abbr { text-decoration: none; }
#teams-table { min-width: 720px; }
#teams-table th:nth-child(2), #teams-table td:nth-child(2) { min-width: 210px; width: 35%; }
#teams-table td:nth-child(2)::after { display: none; }
.table td { font-size: 13px; }
.table th, .table td { white-space: nowrap; }
.table th:nth-child(2), .table td:nth-child(2), .table .player-cell { white-space: normal; }
.table tbody tr[data-team-id]::before { display: none; }
.table tbody tr[data-team-id]:hover td { background: var(--panel-raised) !important; }
.table .team-link, .team-link { display: inline; padding: 4px 0; border: 0; border-radius: 3px; background: transparent; color: var(--text); text-align: left; font: inherit; font-weight: 600; line-height: 1.5; box-shadow: none; white-space: normal; }
.team-link span { color: var(--accent); white-space: nowrap; margin-left: 3px; }
.team-link:hover, .player-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.player-link { min-height: 32px; }
.team-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.team-directory-card { display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 17px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 7px; color: var(--text); text-align: left; font-size: 13px; font-weight: 500; box-shadow: none; }
.team-directory-card:hover { border-color: var(--accent); background: var(--panel-raised); }
.team-symbol { display: grid; place-items: center; flex: none; width: 32px; height: 38px; color: #8caacb; }
.team-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.team-arrow { color: var(--accent); font-size: 25px; margin-left: auto; }
.team-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.team-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 23px; }
.team-info { display: flex; flex-direction: column; gap: 4px; max-width: 500px; }
.team-info span { color: var(--muted); font-size: 10px; }
.team-info strong { font-size: 13px; font-weight: 500; }
.two-col { grid-template-columns: 1fr; gap: 30px; }
.modal-dialog { padding: 30px; }
.modal-close, body.theme-light .modal-close { width: 40px; height: 40px; }
.modal-body h3 { max-width: calc(100% - 40px); font-family: "Barlow Condensed", sans-serif; font-size: 30px; font-weight: 600; }
.match-modal-games { overflow-x: auto; }
.match-modal-meta { font-size: 12px; }
.match-modal-score { font-family: "Barlow Condensed", sans-serif; font-size: 46px; }
.footer-links { display: flex; align-items: center; gap: 25px; }
@media (max-width: 1000px) {
  .schedule-controls { gap: 12px; flex-wrap: wrap; }
  .search-field { flex: 1; min-width: 200px; }
  .team-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .layout { padding-top: 14px; }
  .hero { min-height: 54px; }
  .hero h1 { font-size: 27px; }
  .hero-copy { padding: 0 0 10px; gap: 12px; }
  .hero-eyebrow strong { font-size: 17px; }
  .league-hub { margin-top: 7px; }
  select.league-toggle, body.theme-light select.league-toggle { font-size: 16px; min-height: 45px; padding: 8px 34px 8px 12px; }
  .workspace-head { gap: 13px; }
  .tab-button, body.theme-light .tab-button { min-height: 49px; font-size: 11px; }
  .feed-status { gap: 6px; margin-top: 5px; align-items: center; }
  .feed-status-dot { margin-top: 0; }
  .feed-status .status, body.theme-light .feed-status .status { font-size: 11px; }
  .feed-status .text-action { font-size: 11px; }
  .text-action { min-height: 42px; font-size: 11px; }
  .season-warning { display: block; }
  .season-warning .text-action { display: block; }
  .schedule-block { padding: 17px 12px 13px; }
  .schedule-heading { gap: 8px; }
  .schedule-heading h2 { font-size: 25px; }
  .section-description { font-size: 11px; }
  .view-toggle { padding: 2px; gap: 1px; }
  .view-btn, body.theme-light .view-btn { min-height: 42px; padding: 5px 8px; }
  .view-btn svg { width: 13px; height: 13px; }
  .view-btn, body.theme-light .view-btn { font-size: 0; gap: 0; min-width: 42px; }
  .schedule-controls { padding: 14px 0; gap: 8px; }
  .round-navigation { flex: 1; min-width: 0; gap: 5px; }
  .round-navigation select { width: 100%; min-width: 0; flex: 1; font-size: 13px; }
  .round-navigation .icon-button { width: 42px; min-width: 42px; min-height: 44px; }
  #current-round { width: 100%; min-height: 25px; padding: 3px 0; text-align: left; order: 2; }
  .search-field { width: 100%; flex: 1 0 100%; min-width: 0; order: 3; margin-top: 2px; }
  .search-field input[type="search"] { font-size: 16px; }
  .match-filter-bar { display: block; margin-bottom: 15px; }
  .status-filters { gap: 5px; flex-wrap: nowrap; }
  .status-filters button { flex: 1; justify-content: center; min-height: 42px; padding: 7px 5px; gap: 5px; font-size: 11px; white-space: nowrap; }
  #reset-match-filters { min-height: 32px; padding: 5px 0 0; }
  .match-card, .match-card.small, body.theme-light .match-card { min-height: 179px; padding: 15px; }
  .match-top-date { font-size: 10px; }
  .match-home, .match-away { font-size: 13px; }
  .match-row, body.theme-light .match-row { padding: 14px; }
  .standings-wrap { position: relative; }
  #teams-table th:first-child, #teams-table td:first-child { min-width: 35px; width: 35px; }
  #teams-table th:nth-child(2), #teams-table td:nth-child(2) { min-width: 175px; width: 175px; max-width: 175px; }
  #teams-table th:nth-child(2) { position: sticky; left: 0; z-index: 3; background: var(--panel-raised); box-shadow: 1px 0 var(--stroke); }
  #teams-table tbody tr[data-team-id] td:nth-child(2) { position: sticky; left: 0; z-index: 2; background: var(--panel) !important; box-shadow: 1px 0 var(--stroke); }
  .table-legend { font-size: 10px; line-height: 1.7; }
  .table-scroll-hint { display: block; margin: 3px 0 10px; color: var(--muted); font-size: 10px; }
  .team-directory { grid-template-columns: 1fr; gap: 8px; }
  .team-directory-card { min-height: 77px; padding: 14px; font-size: 13px; }
  #team-browser .panel-head { flex-wrap: wrap; }
  #team-directory-filter { flex: 1 0 100%; font-size: 16px; }
  .team-detail-actions { flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
  .team-detail-actions .outline-action { font-size: 11px; padding: 8px 10px; }
  .team-meta { gap: 14px; }
  .modal-dialog { padding: 25px 14px; }
  .modal-body h3 { font-size: 27px; }
  .footer-links { gap: 25px; flex-wrap: wrap; }
  .footer-links a { margin-top: 17px; font-size: 11px; }
}
@media (max-width: 360px) {
  .status-filters button { font-size: 9px; }
  .status-filters button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
}

/* Compact competition layout. */
.compact-ui .topbar { padding: 0 26px; }
.compact-ui .topbar-inner { min-height: 58px; gap: 22px; }
.compact-ui .brand-mark { width: 29px; height: 34px; }
.compact-ui .brand-copy strong { font-size: 25px; }
.compact-ui .brand-copy small { font-size: 6px; }
.masthead-season { display: flex; align-items: center; gap: 9px; padding-left: 21px; border-left: 1px solid var(--stroke); color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .1em; white-space: nowrap; }
.masthead-season strong { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.compact-ui .top-actions { gap: 17px; }
.utility-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; min-height: 34px; background: transparent; color: var(--muted); border: 0; box-shadow: none; font-size: 11px; font-weight: 500; }
.utility-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.utility-button:hover { color: var(--accent); }
.compact-ui .theme-toggle { width: 32px; height: 32px; font-size: 16px; }
.compact-ui .layout { max-width: 1384px; padding: 18px 26px 30px; }
.compact-ui .league-hub { margin: 0; border-radius: 8px; }
.compact-ui .workspace-head { padding: 12px 18px; gap: 24px; }
.compact-ui .league-control { display: flex; align-items: center; gap: 14px; width: auto; min-width: 0; }
.compact-ui .league-control label { flex: none; margin: 0; font-size: 8px; letter-spacing: .12em; }
.compact-ui select.league-toggle { min-height: 39px; width: 310px; font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
.compact-ui .snapshot-item { display: flex; flex-direction: row; align-items: baseline; gap: 6px; padding: 0 20px; }
.compact-ui .snapshot-item:first-child { border-left: 0; }
.compact-ui .snapshot-item:last-child { padding-right: 0; }
.compact-ui .snapshot-item strong { font-family: "DM Sans", sans-serif; font-size: 18px; font-weight: 600; line-height: 1; }
.compact-ui .snapshot-item small { margin: 0; font-size: 10px; }
.compact-ui .snapshot-refresh strong { font-size: 13px; font-weight: 500; color: var(--muted); }
.compact-ui .tabs { padding: 0 18px; gap: 30px; }
.compact-ui .tab-button { min-height: 42px; padding: 10px 0; font-size: 12px; }
.compact-ui .tab-panel { padding-top: 12px; }
.compact-ui .schedule-block { padding: 14px; border-radius: 8px; }
.schedule-toolbar-compact { display: flex; align-items: center; gap: 12px; }
.compact-ui .round-navigation { gap: 4px; }
.compact-ui .round-navigation .icon-button { min-height: 36px; width: 32px; min-width: 32px; font-size: 23px; border-radius: 5px; }
.compact-ui .round-navigation select { width: 172px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.compact-ui .search-field { width: 290px; min-width: 140px; margin-left: auto; }
.compact-ui .search-field input[type="search"] { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
.compact-ui .search-field svg { width: 14px; height: 14px; }
.compact-ui .view-toggle { gap: 1px; padding: 2px; border-radius: 5px; }
.compact-ui .view-btn { min-height: 30px; padding: 4px 10px; gap: 6px; font-size: 10px; }
.mobile-status-filter { display: none; }
.compact-ui .match-filter-bar { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; min-height: 34px; margin: 10px 0 8px; }
.compact-ui .status-filters { gap: 5px; }
.compact-ui .status-filters button { min-height: 29px; padding: 4px 10px; border-radius: 4px; font-size: 10px; gap: 7px; }
.compact-ui #matches-summary { font-size: 11px; margin: 0 0 0 auto; white-space: nowrap; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.filter-actions:has(> :not([hidden])) { border-left: 1px solid var(--stroke); padding-left: 12px; }
.compact-ui .filter-actions .text-action { min-height: 26px; padding: 3px 0; font-size: 10px; width: auto; }
.compact-ui #matches.match-list { display: flex; flex-direction: column; gap: 0; }
.match-day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 31px; margin-top: 9px; padding: 7px 12px; background: var(--bg); border: 1px solid var(--stroke); border-bottom: 0; border-radius: 5px 5px 0 0; color: var(--muted); }
.match-day-heading:first-child { margin-top: 0; }
.match-day-heading h3 { margin: 0; font-size: 11px; font-weight: 600; line-height: 1.4; }
.match-day-heading > span { font-size: 10px; font-weight: 400; }
.match-day-heading.is-today h3 { color: var(--accent); }
.compact-ui .fixture-row, body.compact-ui.theme-light .fixture-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; align-items: center; min-height: 49px; gap: 12px; padding: 8px 12px; border: 1px solid var(--stroke); border-bottom: 0; border-radius: 0; background: var(--panel); box-shadow: none; transform: none; }
.compact-ui .fixture-row.has-context { grid-template-columns: 58px minmax(0, 1fr) auto 18px; }
.compact-ui .fixture-row:last-child, .compact-ui .fixture-row:has(+ .match-day-heading) { border-bottom: 1px solid var(--stroke); border-radius: 0 0 5px 5px; }
.compact-ui .fixture-row[role="button"]:hover { border-color: var(--stroke); background: var(--panel-raised); box-shadow: inset 2px 0 var(--accent); transform: none; }
.fixture-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.fixture-contest { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.fixture-home, .fixture-away { min-width: 0; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.fixture-home { text-align: right; }
.fixture-away { text-align: left; }
.fixture-score { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 28px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1; }
.fixture-score strong { min-width: 15px; text-align: center; font-weight: 600; }
.fixture-score-divider { color: var(--muted); font-size: 16px; font-weight: 400; }
.fixture-score.is-pending { background: transparent; color: var(--muted); opacity: .6; font-size: 19px; }
.fixture-score.is-pending .fixture-score-divider { opacity: .5; }
.fixture-context { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); font-size: 9px; max-width: 180px; }
.fixture-context .match-tag { font-size: 9px; padding: 2px 5px; }
.fixture-arrow { color: #8195b0; font-size: 20px; line-height: 1; text-align: right; }
.fixture-row:hover .fixture-arrow { color: var(--accent); }
.compact-ui .grid, .compact-ui .schedule-block .grid { gap: 8px; }
.compact-ui .match-card, .compact-ui .match-card.small, body.compact-ui.theme-light .match-card { min-height: 130px; padding: 11px 13px; border-radius: 5px; }
.compact-ui .match-top { margin-bottom: 8px; justify-content: space-between; }
.compact-ui .match-line { min-height: 25px; padding-bottom: 2px; }
.compact-ui .match-home, .compact-ui .match-away { font-size: 12px; }
.compact-ui .match-score { font-size: 23px; }
.compact-ui .match-card .match-meta { min-height: 21px; padding-top: 6px; margin-top: 6px; font-size: 9px; }
.compact-ui .match-state { font-size: 9px; }
.compact-ui .match-top-date { font-size: 10px; }
.compact-ui .match-card[role="button"]:hover { transform: none; }
.compact-ui .tab-panel[data-tab-panel="table"], .compact-ui .tab-panel[data-tab-panel="ranking"], .compact-ui .tab-panel[data-tab-panel="team"] { margin-top: 12px; padding: 17px; }
.compact-ui .tab-panel .panel-head { margin-bottom: 12px; }
.compact-ui .panel-head h2 { font-size: 24px; }
.compact-ui .section-description { font-size: 11px; margin-top: 4px; }
.compact-ui .table td, body.compact-ui.theme-light .table td { padding: 8px 10px; font-size: 12px; }
.compact-ui .table thead th { padding: 9px 10px; }
.compact-ui .table-group-row td { padding: 7px 10px; font-size: 9px; }
.compact-ui .table .team-link { padding: 2px 0; }
.compact-ui .player-link { min-height: 26px; }
.compact-ui .team-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.compact-ui .team-directory-card { min-height: 59px; padding: 11px 13px; gap: 10px; font-size: 12px; }
.compact-ui .team-symbol { width: 23px; height: 26px; }
.compact-ui .team-symbol svg { width: 22px; height: 22px; }
.compact-ui .team-detail-actions { margin-bottom: 15px; }
.compact-ui .team-meta { margin-bottom: 17px; }
.compact-ui .site-footer { padding-top: 19px; padding-bottom: 24px; }
@media (min-width: 1150px) {
  .compact-ui .two-col { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
}
@media (max-width: 1000px) {
  .compact-ui .topbar-inner { gap: 15px; }
  .compact-ui .top-actions { gap: 12px; }
  .utility-button span { display: none; }
  .compact-ui .league-control { gap: 10px; }
  .compact-ui select.league-toggle { width: 275px; }
  .compact-ui .snapshot-item { padding: 0 12px; }
  .compact-ui .snapshot-refresh { display: none; }
  .compact-ui .search-field { width: auto; flex: 1; }
  .fixture-contest { gap: 10px; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .compact-ui .source-link { display: none; }
  .compact-ui .league-control { flex: 1; }
  .compact-ui .league-control label { display: none; }
  .compact-ui select.league-toggle { width: 100%; }
  .compact-ui .snapshot-item { padding: 0 10px; }
  .compact-ui .snapshot-item small { font-size: 9px; }
  .compact-ui .tabs { gap: 20px; }
  .compact-ui .tab-button { font-size: 11px; }
  .compact-ui .team-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .compact-ui .topbar { padding: 0 12px; }
  .compact-ui .topbar-inner { min-height: 54px; gap: 10px; }
  .compact-ui .brand-home-link { gap: 6px; }
  .compact-ui .brand-mark { width: 24px; height: 28px; }
  .compact-ui .brand-copy strong { font-size: 23px; }
  .compact-ui .brand-copy small { font-size: 5px; letter-spacing: .11em; }
  .masthead-season { flex-direction: column; align-items: flex-start; gap: 1px; border: 0; padding-left: 0; font-size: 6px; letter-spacing: .06em; }
  .masthead-season strong { font-size: 10px; }
  .compact-ui .top-actions { gap: 3px; }
  .utility-button { width: 33px; min-height: 36px; justify-content: center; padding: 0; }
  .utility-button svg { width: 16px; height: 16px; }
  .compact-ui .theme-toggle { width: 31px; height: 32px; }
  .compact-ui .layout { padding: 10px 10px 24px; }
  .compact-ui .workspace-head { flex-wrap: wrap; padding: 10px 12px 8px; gap: 8px; }
  .compact-ui .league-control { flex: 1 0 100%; }
  .compact-ui select.league-toggle { min-height: 40px; padding: 7px 34px 7px 11px; font-size: 16px; border-radius: 5px; }
  .compact-ui .snapshot { display: flex; width: 100%; }
  .compact-ui .snapshot-item { padding: 0; gap: 4px; }
  .compact-ui .snapshot-item strong { font-size: 12px; font-weight: 600; }
  .compact-ui .snapshot-item small { font-size: 9px; }
  .compact-ui .snapshot-refresh { display: flex; }
  .compact-ui .snapshot-refresh strong { font-size: 10px; }
  .compact-ui .snapshot-refresh small { font-size: 8px; }
  .compact-ui .snapshot-refresh small::after { content: none; }
  .compact-ui .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
  .compact-ui .tab-button { min-height: 40px; padding: 9px 0; font-size: 11px; gap: 5px; }
  .compact-ui .tab-panel { padding-top: 10px; }
  .compact-ui .schedule-block { padding: 10px; }
  .schedule-toolbar-compact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 7px; }
  .compact-ui .round-navigation { grid-column: 1 / span 9; grid-row: 1; min-width: 0; gap: 4px; }
  .compact-ui .round-navigation .icon-button { width: 32px; min-width: 32px; min-height: 39px; font-size: 24px; }
  .compact-ui .round-navigation select { flex: 1; width: 100%; min-width: 0; min-height: 39px; padding-left: 7px; padding-right: 24px; background-position: right 9px center; font-size: 12px; }
  .compact-ui .view-toggle { grid-column: 10 / -1; grid-row: 1; justify-content: stretch; padding: 2px; min-height: 39px; }
  .compact-ui .view-btn { flex: 1; min-width: 0; min-height: 32px; padding: 4px; font-size: 0; }
  .compact-ui .view-btn span { display: none; }
  .compact-ui .view-btn svg { width: 13px; height: 13px; }
  .compact-ui .search-field { grid-column: 1 / span 7; grid-row: 2; min-width: 0; width: 100%; margin: 0; order: 0; }
  .compact-ui .search-field svg { width: 13px; height: 13px; margin-left: 8px; }
  .compact-ui .search-field input[type="search"] { min-height: 39px; padding: 5px 6px; font-size: 16px; }
  .mobile-status-filter { display: block; grid-column: 8 / -1; grid-row: 2; width: 100%; min-width: 0; min-height: 39px; padding: 5px 22px 5px 8px; border-radius: 5px; font-size: 11px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b69a60' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; background-size: 10px 7px; }
  .compact-ui .status-filters { display: none; }
  .compact-ui .match-filter-bar { min-height: 24px; margin: 5px 0 6px; gap: 8px; flex-wrap: nowrap; }
  .compact-ui #matches-summary { margin: 0; font-size: 10px; }
  .filter-actions { margin-left: auto; gap: 9px; }
  .filter-actions:has(> :not([hidden])) { border: 0; padding: 0; }
  .compact-ui .filter-actions .text-action { font-size: 9px; min-height: 24px; padding: 2px 0; }
  .match-day-heading { min-height: 28px; padding: 6px 9px; margin-top: 8px; gap: 5px; }
  .match-day-heading h3 { font-size: 10px; }
  .match-day-heading > span { font-size: 9px; white-space: nowrap; }
  .compact-ui .fixture-row, body.compact-ui.theme-light .fixture-row,
  .compact-ui .fixture-row.has-context, body.compact-ui.theme-light .fixture-row.has-context { grid-template-columns: 32px minmax(0, 1fr) 8px; gap: 5px; min-height: 39px; padding: 6px 7px; }
  .compact-ui .fixture-row:has(.fixture-context .league-badge), body.compact-ui.theme-light .fixture-row:has(.fixture-context .league-badge) { grid-template-columns: 32px minmax(0, 1fr) auto 8px; }
  .fixture-time { grid-column: 1; grid-row: 1; font-size: 10px; }
  .fixture-contest { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr); gap: 5px; }
  .fixture-home, .fixture-away { font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fixture-score, .fixture-score.is-pending { display: flex; gap: 3px; min-height: 25px; font-size: 20px; opacity: 1; }
  .fixture-score strong { min-width: 14px; }
  .fixture-score.is-pending strong { color: var(--muted); opacity: .65; font-size: 17px; }
  .fixture-score-divider { display: inline; font-size: 14px; }
  .compact-ui .fixture-context { display: none; grid-column: 3; grid-row: 1; flex-wrap: nowrap; gap: 0; max-width: none; }
  .compact-ui .fixture-context:has(.league-badge) { display: flex; }
  .fixture-context > :not(.league-badge) { display: none; }
  .fixture-context .league-badge { min-width: 25px; min-height: 19px; padding: 2px 3px; font-size: 8px; }
  .fixture-arrow { grid-column: -2; grid-row: 1; font-size: 17px; }
  .compact-ui .match-card, body.compact-ui.theme-light .match-card { min-height: 126px; padding: 10px 12px; }
  .compact-ui .match-top { margin-bottom: 7px; }
  .compact-ui .match-home, .compact-ui .match-away { font-size: 12px; }
  .compact-ui .match-card .match-meta { margin-top: 6px; }
  .compact-ui .tab-panel[data-tab-panel="table"], .compact-ui .tab-panel[data-tab-panel="ranking"], .compact-ui .tab-panel[data-tab-panel="team"] { padding: 13px 11px; margin-top: 10px; }
  .compact-ui .panel-head h2 { font-size: 23px; }
  .compact-ui .table td { padding: 7px 8px; font-size: 11px; }
  .compact-ui .table .team-link { font-weight: 500; }
  .compact-ui .team-directory { grid-template-columns: 1fr; gap: 6px; }
  .compact-ui .team-directory-card { min-height: 54px; padding: 10px 12px; font-size: 12px; }
  .compact-ui #team-directory-filter { min-height: 38px; }
  .compact-ui .table-scroll-hint { font-size: 9px; margin-bottom: 7px; }
}
@media (max-width: 360px) {
  .compact-ui .topbar-inner { gap: 7px; }
  .masthead-season { font-size: 0; gap: 0; }
  .masthead-season strong { font-size: 9px; }
  .compact-ui .brand-copy small { display: none; }
  .fixture-contest { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 3px; }
  .fixture-home, .fixture-away { font-size: 10px; }
  .fixture-time { font-size: 9px; }
  .compact-ui .search-field input[type="search"] { font-size: 14px; }
  .mobile-status-filter { font-size: 10px; padding-left: 6px; }
  .compact-ui .filter-actions .text-action { font-size: 8px; }
}

/* Match details use the same restrained scoreboard hierarchy as the fixtures. */
.match-summary-dialog { max-width: 840px; padding: 22px; }
.match-summary-header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; padding-right: 35px; }
.match-summary-heading { margin: 0; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.match-summary-header .meta { margin: 0; color: var(--muted); font-size: 11px; }
.match-summary-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; margin: 15px 0; padding: 18px 16px; border: 1px solid var(--stroke); border-top: 2px solid var(--accent); border-radius: 5px; background: var(--panel-raised); }
.match-summary-team { min-width: 0; text-align: center; }
.match-summary-team > small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.match-summary-name, .match-summary-name button { color: var(--text); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.match-summary-name button { max-width: 100%; padding: 0; border: 0; border-radius: 2px; background: none; text-align: inherit; cursor: pointer; text-decoration-color: transparent; text-underline-offset: 3px; }
.match-summary-name button:hover { color: var(--accent); text-decoration: underline; }
.match-summary-scoreboard .match-modal-score { margin: 0; min-width: 78px; color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 46px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; text-align: center; white-space: nowrap; }
.match-summary-body .match-modal-meta { gap: 6px 16px; margin-bottom: 12px; }
.match-summary-body .match-modal-meta:empty { display: none; }
.match-summary-body .match-modal-meta .meta-item { font-size: 11px; }
.match-summary-body .match-modal-games { margin-top: 14px; }
.match-summary-body .match-modal-games h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.match-summary-body .match-modal-games table { min-width: 610px; }
.match-summary-protocol-empty { margin: 12px 0; padding: 11px 13px; border: 1px solid var(--stroke); border-radius: 4px; color: var(--muted); font-size: 12px; }
.match-summary-body #match-modal-source { margin-top: 12px; padding: 6px 0; border: 0; border-radius: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 500; }
.match-summary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 17px; }
.match-summary-actions .outline-action { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.match-summary-body .match-summary-actions #match-modal-source { margin: 0; }
@media (max-width: 600px) {
  .match-summary-dialog { padding: 20px 12px 14px; }
  .match-summary-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .match-summary-scoreboard { gap: 9px; padding: 15px 8px; margin: 13px 0; }
  .match-summary-team > small { margin-bottom: 5px; font-size: 8px; letter-spacing: .03em; }
  .match-summary-name, .match-summary-name button { font-size: 12px; line-height: 1.45; }
  .match-summary-scoreboard .match-modal-score { min-width: 54px; font-size: 32px; }
  .match-summary-body .match-modal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
  .match-summary-body .match-modal-meta > p, .match-summary-body .match-modal-meta > .inline-loading, .match-summary-body .match-modal-meta > .empty-state { grid-column: 1 / -1; }
  .match-summary-protocol-empty { padding: 10px; font-size: 11px; }
}
