/* Only the Table view: one grid keeps pinned clubs and statistics aligned. */
#table-view .table-controls { display: grid; gap: 8px; margin-bottom: 12px; }
#table-view .table-mode, #table-view .table-groups { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; }
#table-view .table-controls button { flex: 0 0 auto; white-space: nowrap; }
#table-view .table-controls button:disabled { opacity: .45; cursor: not-allowed; }
#table-view .table-status { display: grid; gap: 5px; color: var(--hint); font-size: 12px; line-height: 1.45; }
#table-view .table-status strong { color: var(--text); }
#table-view .table-warning { color: var(--warning); }
#table-view .table-instructions, #table-view .table-basis, #table-view .table-definition { color: var(--hint); font-size: 12px; line-height: 1.5; margin-block: 9px; }
#table-view .standings-scroll { --rank-width: 28px; --club-width: clamp(112px, 31vw, 156px); width: 100%; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; isolation: isolate; }
#table-view .standings-grid { table-layout: fixed; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
#table-view .standings-grid th, #table-view .standings-grid td { padding: 3px 4px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#table-view .standings-grid .standings-position-col { width: var(--rank-width); }
#table-view .standings-grid .standings-club-col { width: var(--club-width); }
#table-view .standings-grid .standings-stat-col { width: 76px; }
#table-view .standings-grid .standings-core-col { width: 36px; }
#table-view .standings-grid .standings-form-col { width: 108px; }
#table-view .standings-grid thead th { position: sticky; top: 0; z-index: 4; height: 48px; width: auto; background: var(--panel-strong); letter-spacing: 0; }
#table-view .standings-grid thead button { border: 0; background: none; color: inherit; font: inherit; line-height: 1.35; width: 100%; padding: 0; white-space: normal; overflow-wrap: normal; cursor: pointer; }
#table-view .standings-grid thead small { display: block; font-size: 9px; font-weight: 400; opacity: .8; margin-bottom: 5px; }
#table-view .standings-grid .standings-position { position: sticky; left: 0; min-width: var(--rank-width); width: var(--rank-width); max-width: var(--rank-width); background: var(--secondary-bg); z-index: 2; text-align: center; }
#table-view .standings-grid .standings-club { position: sticky; left: var(--rank-width); width: var(--club-width); min-width: var(--club-width); max-width: var(--club-width); background: var(--secondary-bg); z-index: 2; text-align: left; border-right: 1px solid var(--border); }
#table-view .standings-grid tbody th { top: auto; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 12px; }
#table-view .standings-grid thead .standings-position, #table-view .standings-grid thead .standings-club { z-index: 6; background: var(--panel-strong); }
#table-view .standings-grid .table-club { min-width: 0; gap: 4px; min-height: 22px; }
#table-view .standings-grid .table-club > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
#table-view .standings-grid .table-club .team-badge.small { width: 19px; height: 19px; flex: 0 0 19px; }
#table-view .standings-grid .form-row { display: inline-flex; flex-wrap: nowrap; max-width: none; gap: 3px; }
#table-view .standings-grid .form-dot { width: 17px; height: 17px; flex: 0 0 17px; font-size: 10px; }
#table-view .standings-grid .standings-divider { border-left: 1px solid var(--border); }
#table-view .standings-grid .standings-position small, #table-view .standings-score { display: block; color: var(--accent); font-size: 10px; margin-top: 3px; }
#table-view .standings-playing .standings-club { box-shadow: inset 3px 0 var(--accent); }
@media (max-width: 359px) {
  #table-view .standings-scroll { --rank-width: 26px; --club-width: 112px; }
  #table-view .standings-grid tbody th { font-size: 12px; }
}

/* A gesture on the pinned names scrolls the page, never a second vertical pane. */
#table-view .standings-position, #table-view .standings-club { touch-action: pan-y pinch-zoom; }
#table-view .standings-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
