/* League table maker (tools.d, 2026-10-11). Every rule under #visu-tools .vt-league-table; borders stay 1px hairline. */
#visu-tools .vt-league-table .vt-lt-setup { display: grid; gap: 10px; }
#visu-tools .vt-league-table .vt-lt-setup > .vt-field + .vt-field { margin-top: 6px; }
#visu-tools .vt-league-table .vt-lt-count { font-size: 14px; color: var(--vt-muted); min-height: 1.5em; }
#visu-tools .vt-league-table .vt-check { min-height: 0; align-items: flex-start; }
#visu-tools .vt-league-table .vt-style { margin-top: 8px; }
#visu-tools .vt-league-table .vt-lt-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
#visu-tools .vt-league-table .vt-style > .vt-hint { margin-top: 10px !important; }
#visu-tools .vt-league-table .vt-lt-setup > .vt-actions { margin-top: 8px; }
#visu-tools .vt-league-table .vt-lt-view { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: var(--vt-tint); font-size: 14.5px; }
#visu-tools .vt-league-table .vt-lt-view p { flex: 1 1 220px; }
#visu-tools .vt-league-table .vt-lt-fixtures:not([hidden]) { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--vt-line); }
#visu-tools .vt-league-table .vt-lt-nav { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
#visu-tools .vt-league-table .vt-lt-step { min-height: 46px; padding: 0; font-size: 22px; line-height: 1; }
#visu-tools .vt-league-table .vt-lt-round { text-align: center; font-weight: 700; font-size: 17px; color: var(--vt-ink); }
#visu-tools .vt-league-table .vt-lt-matches { list-style: none; display: grid; gap: 8px; }
#visu-tools .vt-league-table .vt-lt-match { display: grid; grid-template-columns: minmax(0, 1fr) 52px 14px 52px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--vt-line); border-radius: 12px; background: var(--vt-surface); }
#visu-tools .vt-league-table .vt-lt-home { text-align: right; }
#visu-tools .vt-league-table :is(.vt-lt-home, .vt-lt-away) { font-size: 15px; font-weight: 600; color: var(--vt-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.25; }
#visu-tools .vt-league-table .vt-lt-x { text-align: center; color: var(--vt-muted); }
#visu-tools .vt-league-table input.vt-lt-score { width: 52px !important; min-height: 44px; padding: 6px 2px !important; text-align: center; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#visu-tools .vt-league-table input.vt-lt-score:disabled { background: var(--vt-bg) !important; opacity: 1; -webkit-text-fill-color: var(--vt-ink); }
#visu-tools .vt-league-table .vt-lt-empty { padding: 28px 16px; text-align: center; font-size: 15px; color: var(--vt-muted); border: 1px solid var(--vt-line); border-radius: 14px; background: var(--vt-bg); }
#visu-tools .vt-league-table #vt-lt-out:not([hidden]) { display: grid; gap: 10px; }
#visu-tools .vt-league-table .vt-lt-heading { font-size: 20px; font-weight: 720; color: var(--vt-ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
#visu-tools .vt-league-table .vt-lt-sub { font-size: 14px; color: var(--vt-muted); margin-top: -6px !important; }
#visu-tools .vt-league-table .vt-lt-table :is(th, td) { padding: 9px 7px; text-align: right; white-space: nowrap; width: auto; font-variant-numeric: tabular-nums; vertical-align: middle; }
#visu-tools .vt-league-table .vt-lt-table thead th { font-size: 12.5px; }
#visu-tools .vt-league-table .vt-lt-table abbr { text-decoration: none; cursor: help; }
#visu-tools .vt-league-table .vt-lt-table :is(th, td):first-child { text-align: left; padding-left: 12px; color: var(--vt-muted); }
#visu-tools .vt-league-table .vt-lt-table :is(th, td):nth-child(2) { text-align: left; white-space: normal; overflow-wrap: anywhere; width: 99%; }
#visu-tools .vt-league-table .vt-lt-table tbody th { color: var(--vt-ink); font-weight: 600; }
#visu-tools .vt-league-table .vt-lt-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
#visu-tools .vt-league-table .vt-lt-pts { font-weight: 750; color: var(--vt-accent-text); }
#visu-tools .vt-league-table .vt-lt-first :is(th, td) { background: var(--vt-tint); }
#visu-tools .vt-league-table .vt-lt-champion { padding: 10px 14px; border-radius: 12px; background: #e7f7ef; color: #064e3b; font-weight: 650; font-size: 15px; }
#visu-tools .vt-league-table .vt-lt-linkbox:not([hidden]) { display: grid; gap: 6px; }
#visu-tools .vt-league-table .vt-lt-linkbox input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; color: var(--vt-muted) !important; text-overflow: ellipsis; }
@media (max-width: 600px) {
  #visu-tools .vt-league-table .vt-lt-opt { display: none; }
  #visu-tools .vt-league-table .vt-lt-table :is(th, td) { padding: 9px 5px; }
  #visu-tools .vt-league-table .vt-lt-match { grid-template-columns: minmax(0, 1fr) 46px 10px 46px minmax(0, 1fr); gap: 6px; padding: 8px; }
  #visu-tools .vt-league-table input.vt-lt-score { width: 46px !important; }
  #visu-tools .vt-league-table :is(.vt-lt-home, .vt-lt-away) { font-size: 14px; }
}
