.standings-toolbar { display: flex; align-items: center; gap: 12px; min-height: 26px; margin-bottom: 6px; }
.standings-toolbar > p { margin: 0; color: var(--muted); font-size: 10px; }
.standings-toolbar .text-action { min-height: 26px; padding: 2px 0; font-size: 10px; }
.standings-details-toggle { display: none; }
#teams-table th, #teams-table td { font-variant-numeric: tabular-nums; }
.compact-ui #teams-table .standings-points { color: var(--accent); font-weight: 700; font-size: 14px; }
.standings-pin { font-size: 11px; margin: 0 3px 0 0 !important; }
#teams-table .is-pinned-team td { background: var(--accent-soft); }
#teams-table .is-pinned-team td:first-child { box-shadow: inset 2px 0 var(--accent); }
#teams-table .standings-form-column { width: 115px; min-width: 115px; text-align: center; }
.standings-form { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.standings-form .team-result { width: 19px; height: 22px; min-height: 0; padding: 0; border: 1px solid transparent; box-shadow: none; font-size: 9px; }
.standings-form button.team-result { cursor: pointer; }
.standings-form button.team-result:hover { filter: brightness(1.15); }
.standings-form button.team-result:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.standings-no-form { color: var(--muted); }
@media (max-width: 600px) {
  .standings-panel .panel-head { flex-wrap: wrap; gap: 10px; }
  .standings-panel .panel-head .filters { width: 100%; }
  .standings-panel #team-filter { width: 100%; min-height: 38px; font-size: 16px; }
  .standings-details-toggle { display: block; margin-left: auto; min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .standings-panel:not(.show-details) .table-scroll-hint, .standings-panel:not(.show-details) .standings-full-legend { display: none; }
  .standings-panel:not(.show-details) #teams-table { width: 100%; min-width: 0; table-layout: fixed; }
  .standings-panel:not(.show-details) #teams-table th:nth-child(n+5):not(.standings-form-column), .standings-panel:not(.show-details) #teams-table td:nth-child(n+5):not(.standings-form-column) { display: none; }
  .standings-panel:not(.show-details) #teams-table .standings-form-column { width: 86px; min-width: 0; padding-left: 3px; padding-right: 5px; }
  .standings-form { gap: 2px; }
  .standings-form .team-result { width: 14px; height: 21px; font-size: 8px; }
  .standings-panel:not(.show-details) #teams-table th:first-child, .standings-panel:not(.show-details) #teams-table td:first-child { width: 25px; min-width: 0; padding-left: 6px; padding-right: 3px; text-align: center; }
  .standings-panel:not(.show-details) #teams-table th:nth-child(2), .standings-panel:not(.show-details) #teams-table td:nth-child(2) { position: static; width: auto; min-width: 0; max-width: none; box-shadow: none; padding-left: 5px; padding-right: 5px; }
  .standings-panel:not(.show-details) #teams-table th:nth-child(3), .standings-panel:not(.show-details) #teams-table td:nth-child(3) { width: 30px; padding-left: 4px; padding-right: 4px; text-align: center; }
  .standings-panel:not(.show-details) #teams-table th:nth-child(4), .standings-panel:not(.show-details) #teams-table td:nth-child(4) { width: 34px; padding-left: 4px; padding-right: 5px; text-align: center; }
  .standings-panel:not(.show-details) #teams-table .table-group-row td { width: auto; padding: 7px 9px; text-align: left; white-space: normal; }
  .standings-panel #teams-table .team-link { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
  .compact-ui .standings-panel .table-legend { margin-top: 9px; font-size: 9px; }
}
