:root {
  --navy: #10283f;
  --navy-2: #1b3f63;
  --line: #d5dee7;
  --ink: #1c2833;
  --muted: #5d6b78;
  --paper: #f7f9fb;
  --note: #fff6e8;
  --note-line: #e6c98a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--navy-2); }
header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--navy);
  color: white;
}
header a { color: white; text-decoration: none; }
.brand { font-weight: 700; letter-spacing: 0.02em; }
nav { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.sport-switch { position: relative; }
.sport-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
}
.sport-toggle::-webkit-details-marker { display: none; }
.sport-toggle::marker { content: ""; }
.sport-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}
.sport-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 160px;
  padding: 6px 0;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 40, 63, 0.18);
}
header .sport-menu a {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: var(--navy);
  font-weight: 650;
}
header .sport-menu a:hover,
header .sport-menu a[aria-current="page"] {
  background: #eef3f8;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.account {
  position: relative;
  margin-left: auto;
}
.account-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  cursor: pointer;
  line-height: 0;
}
.account-toggle::-webkit-details-marker { display: none; }
.account-toggle::marker { content: ""; }
.account-toggle:hover,
.account[open] .account-toggle {
  background: rgba(255, 255, 255, 0.16);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 220px;
  padding: 10px 0;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 40, 63, 0.18);
}
.account-name,
.account-role {
  margin: 0;
  padding: 2px 14px;
}
.account-name { font-weight: 700; }
.account-role {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
header .account-menu a,
header .account-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
header .account-menu a:hover,
header .account-menu button:hover {
  background: #eef3f8;
}
.account-action { margin: 0; }
.acting {
  background: #f3d48a;
  color: var(--navy);
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 650;
}
nav button, button, .button {
  font: inherit;
  background: white;
  color: var(--navy);
  border: 0;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}
main { max-width: 1100px; margin: 0 auto; padding: 20px; }
main.wide { max-width: 1440px; }
main.full { max-width: none; width: 100%; padding: 18px 14px 40px; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; }
h3 { font-size: 1.02rem; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.note, .error {
  background: var(--note);
  border: 1px solid var(--note-line);
  border-radius: 6px;
  padding: 10px 12px;
}
.error { background: #fdecea; border-color: #e7b2ab; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}
.card strong { display: block; font-size: 1.2rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #e7eef5; font-weight: 650; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.matrix th,
table.matrix td {
  text-align: center;
  vertical-align: middle;
}
table.matrix thead th {
  white-space: normal;
  line-height: 1.15;
}
table.matrix thead th span { display: block; }
.scroll { overflow-x: auto; }
form.stack { display: grid; gap: 10px; max-width: 460px; }
table.prefs td { vertical-align: middle; }
table.prefs input { width: 5.5rem; padding: 4px 6px; text-align: right; }
table.prefs .points { display: flex; flex-wrap: wrap; gap: 6px 8px; }
table.prefs .points label { font-weight: 500; font-size: 12px; }
table.prefs .points input { width: 4.2rem; }
.pref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pref-actions button.primary { background: var(--navy); color: white; }
.pref-stat { font-weight: 650; }
.pref-stat span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
label { display: grid; gap: 4px; font-weight: 600; }
input, select {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.results, .pick-list { list-style: none; padding: 0; margin: 8px 0; }
.results li, .pick-list li { padding: 4px 0; }
.inline { display: inline; }
.section { margin-top: 18px; }
.season-pick { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.scroll + .season-pick { margin-top: 32px; }
.season-pick h2 { margin: 0; }
.season-pick select { font-size: 16px; font-weight: 400; }
.player-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 14px; }
.player-tools button { background: var(--navy); color: white; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0; }
.choices a { text-decoration: none; }
.choices a.current { font-weight: 700; border-bottom: 2px solid var(--navy-2); }
form.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 8px 0 16px; }
form.filters .grow { flex: 1 1 240px; }
form.filters button { background: var(--navy); color: white; }
label.choice { display: flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 600; }
label.choice input { width: auto; padding: 0; }
table.stats th, table.stats td { white-space: nowrap; }
table.stats td.clip {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.stats td.social { white-space: nowrap; }
table.col-filter tbody tr.filter-off { display: none; }
table.col-filter tr.col-filters th {
  padding: 4px 6px;
  background: #f4f7fa;
  font-weight: 400;
  vertical-align: middle;
}
table.col-filter .col-filter-input {
  display: block;
  width: 100%;
  min-width: 3.2rem;
  max-width: 9rem;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
table.col-filter tr.col-filters th.num .col-filter-input {
  max-width: 4.8rem;
  text-align: right;
}
.col-filter-status { margin: 0 0 8px; }
table.stats .pct { color: var(--muted); font-weight: 400; }
table.trends {
  table-layout: fixed;
  width: 100%;
}
table.trends col.trends-country { width: 18rem; }
table.trends th.num,
table.trends td.num { text-align: center; }
table.trends th.num > button { width: 100%; text-align: center; }
table.trends tfoot td { font-weight: 650; background: #f4f7fa; }
table.trends td a { color: inherit; text-decoration: none; }
table.trends td a:hover { text-decoration: underline; }
.trends-chart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px 8px;
  margin: 4px 0 28px;
  height: 440px;
}
tr.pin td { font-weight: 650; background: #f4f7fa; }
.player-season { margin: 8px 0 32px; }
.player-season h2 { margin-top: 22px; }
.player-season h3 { font-size: 16px; margin: 16px 0 8px; }
.player-chart { min-width: 720px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.gantt-legend { margin: 0 0 10px; color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gantt-legend .key { display: inline-block; width: 18px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.gantt-legend .key.on { background: #2f6fbe; }
.gantt-legend .key.dbu { width: 2px; height: 14px; background: #1f8a4c; }
.gantt-legend .key.opp { width: 2px; height: 14px; background: #c44747; }
.gantt-legend .key.half { width: 0; height: 14px; border-left: 1px dashed #8aa; background: transparent; }
.gantt-legend .key.ball, .gantt-legend .key.star, .gantt-legend .key.letter { width: auto; height: auto; background: transparent; }
.gantt-legend .key.star { color: #e6b000; }
.gantt-legend .key.letter.y { color: #d4a000; font-weight: 800; }
.gantt-legend .key.letter.r { color: #d02020; font-weight: 800; }
.gantt-axis, .gantt-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; }
.gantt-name { font-size: 12px; padding: 3px 8px 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-scale { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.gantt-scale span { position: absolute; transform: translateX(-50%); }
.gantt-body { position: relative; }
.gantt-row { height: 26px; box-sizing: border-box; border-top: 1px solid #e6edf3; }
.gantt-row:nth-child(even) .gantt-track { background: #f6f9fb; }
.gantt-track { position: relative; height: 100%; }
.gantt-bar { position: absolute; top: 7px; height: 12px; border-radius: 3px; background: #2f6fbe; }
.gantt-mark { position: absolute; z-index: 2; transform: translate(-50%, -50%); line-height: 1; pointer-events: auto; }
.gantt-mark.ball { width: 14px; height: 14px; }
.gantt-mark.star { color: #e6b000; font-size: 16px; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.gantt-mark.f, .gantt-mark.s, .gantt-mark.y, .gantt-mark.r {
  font: 800 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}
.gantt-mark.f { color: #5c6b7a; }
.gantt-mark.s { color: #245cb8; }
.gantt-mark.y { color: #d4a000; }
.gantt-mark.r { color: #d02020; }
.gantt-goal, .gantt-halfmark { position: absolute; top: 0; bottom: 0; width: 2px; }
.gantt-goal.dbu { background: #1f8a4c; }
.gantt-goal.opp { background: #c44747; }
.gantt-halfmark { width: 0; border-left: 1px dashed #8aa; }
.gantt-overlay {
  position: absolute;
  left: 240px;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.gantt-overlay .gantt-goal, .gantt-overlay .gantt-halfmark { pointer-events: auto; }
th.sortable { cursor: pointer; white-space: nowrap; }
th.sortable > button {
  font: inherit;
  font-weight: 650;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  cursor: pointer;
}
th.sortable > button::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: center;
  color: var(--muted);
}
th.sortable[aria-sort="ascending"] > button::after { content: "▲"; }
th.sortable[aria-sort="descending"] > button::after { content: "▼"; }
.lineup-link {
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
}
.lineup-link:hover { background: #e7eef6; }
td.cf {
  position: relative;
  min-width: 92px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.cf-num {
  flex: 0 0 2.8em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cf-track {
  flex: 1 1 auto;
  min-width: 40px;
  height: 8px;
}
.cf-bar {
  display: block;
  height: 8px;
  max-width: 100%;
  background: #e88a3a;
  border-radius: 99px;
  opacity: 0.85;
}
#comp-tip, #player-tip {
  position: fixed;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 40, 63, 0.16);
  padding: 10px 12px;
  max-width: min(720px, calc(100vw - 16px));
}
#comp-tip { width: 320px; }
#comp-tip[hidden], #player-tip[hidden], #lineup-modal[hidden] { display: none; }
#comp-tip .tip-cf { float: right; font-weight: 750; font-size: 18px; color: #c45e12; }
#comp-tip h3, #player-tip h3 { margin: 0 0 6px; font-size: 15px; }
#comp-tip table, #player-tip table { width: 100%; border-collapse: collapse; margin: 6px 0; background: transparent; }
#comp-tip th, #comp-tip td, #player-tip th, #player-tip td {
  text-align: right;
  padding: 3px 5px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
#comp-tip th:first-child, #comp-tip td:first-child,
#player-tip th:nth-child(2), #player-tip td:nth-child(2) { text-align: left; }
#player-tip .tip-cf-sm { margin-left: 6px; font-weight: 750; color: #c45e12; }
#player-tip tr.tip-total td { font-weight: 750; }
#player-tip table.pbp th, #player-tip table.pbp td { text-align: left; white-space: normal; }
.tip-sub { color: var(--muted); margin: 0 0 8px; }
.tip-source { display: none; }
#lineup-modal { position: fixed; inset: 0; z-index: 40; }
.gantt-backdrop { position: absolute; inset: 0; background: rgba(16, 40, 63, 0.45); }
.gantt-card {
  position: relative;
  background: white;
  margin: 4vh auto;
  width: min(1100px, calc(100% - 24px));
  max-height: 92vh;
  overflow: auto;
  border-radius: 12px;
  padding: 16px;
}
.gantt-close {
  float: right;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
form.search-box {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
  width: 50%;
  max-width: 100%;
  box-sizing: border-box;
}
form.search-box.portal-search { width: min(100%, 720px); }
form.search-box.portal-search textarea { min-height: 7rem; resize: vertical; }
.search-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: end;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.search-line > label,
.search-line > .search-field { flex: 1 1 auto; min-width: 0; }
.search-line input,
.search-line textarea { width: 100%; }
.search-line button {
  flex: 0 0 auto;
  align-self: end;
  padding: 8px 14px;
  background: var(--navy);
  color: white;
}
.search-field { display: grid; gap: 4px; }
.field-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-head label {
  display: inline;
  margin: 0;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  width: 100%;
  max-width: 100%;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}
.filter-label {
  font-weight: 650;
  color: var(--navy);
  margin-right: 2px;
}
.portal-bulk-bar { margin: 8px 0 10px; }
.portal-bulk-bar button { background: var(--navy); color: white; }
.field-shortcuts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.search-line .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
}
.search-line .icon-btn:hover,
.search-line .icon-btn:focus {
  background: #eef3f8;
}
.search-line .icon-btn.is-done {
  background: #eef3f8;
  color: var(--navy-2);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 8px;
}
.section-head h2 { margin: 0; }
.section-head .copy-btn {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 6px 12px;
}
.section-head .copy-btn:hover {
  background: #eef3f8;
}
th.check, td.check {
  width: 2rem;
  text-align: center;
  white-space: nowrap;
}
th.check input, td.check input { width: auto; padding: 0; margin: 0; }
label.season-field {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
label.season-field select { width: auto; min-width: 9rem; }
a.ai-nav {
  background: #f3d48a;
  color: var(--navy);
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 750;
}
form.report-form { max-width: 760px; }
textarea {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
}
form.report-form button { background: var(--navy); color: white; }
.ai-prompt {
  white-space: pre-wrap;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.refine-step {
  margin: 28px 0 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--line);
}
.refine-step .refine-step { margin-top: 20px; }
.report-bars { width: 100%; max-width: 760px; height: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
.report-block { break-inside: avoid; page-break-inside: avoid; }
table.board thead th {
  background: var(--navy);
  color: white;
}
table.board thead th.sortable > button {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
}
table.board thead th.sortable > button::after { color: #d5dee7; }
caption { caption-side: bottom; text-align: left; color: var(--muted); padding-top: 6px; }
.find-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.find-list li { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.find-list li:last-child { border-bottom: 0; }
.find-list .muted { margin-left: 8px; }
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.pick-grid label { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.pick-grid label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#season-players,
#season-games { grid-auto-flow: column; }
#season-players { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#season-games {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  gap: 4px 24px;
  font-variant-numeric: tabular-nums;
}
#season-games label.game-pick {
  display: grid;
  grid-template-columns: 1.1em 3em 1.4em minmax(0, 9em) 4.3em 3.6em;
  column-gap: 6px;
  align-items: baseline;
  font-weight: 400;
  width: 100%;
}
#season-games .game-date,
#season-games .game-where,
#season-games .game-cf,
#season-games .game-score { white-space: nowrap; }
#season-games .game-opp {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#season-games .game-cf,
#season-games .game-score { text-align: right; }
#season-players label,
#season-games label { font-weight: 400; }
@media (min-width: 720px) {
  #season-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--game-rows-2, 1), auto);
  }
}
@media (min-width: 1180px) {
  #season-games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(var(--game-rows-3, 1), auto);
  }
}
.game-report button { border: 1px solid var(--line); }
.game-report .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.game-report .actions.report-run {
  margin: 16px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.game-report .actions.report-run .primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.game-report .cf-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}
.game-report .cf-pick-label { color: var(--muted); font-size: 14px; }
.game-report .cf-pick input {
  width: 4.5em;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  text-align: right;
}
.game-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.game-card h2 { margin-top: 0; }
.gantt-bar.has-tip { top: 0; height: 100%; background: transparent; border-radius: 0; }
.gantt-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 12px;
  border-radius: 3px;
  background: #2f6fbe;
  pointer-events: none;
}
table.report-minutes th:first-child,
table.report-minutes td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
}
table.report-minutes th:first-child { background: #e7eef5; z-index: 2; }
tr.unplayed td { color: var(--muted); background: #f3f6f8; }
.scroll:has(> table.comp-table) {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
table.comp-table {
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}
table.comp-table th,
table.comp-table td {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
table.comp-table thead th,
table.comp-table thead th.num {
  background: var(--navy);
  color: white;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-bottom: 0;
}
table.comp-table thead th.sortable > button {
  font-weight: 650;
  color: white;
}
table.comp-table thead th.sortable > button::after { color: #9eb4c9; }
table.comp-table tbody tr:last-child td { border-bottom: 0; }
table.comp-table tbody tr:nth-child(even) td { background: #f7fafc; }
table.comp-table tbody tr:hover td { background: #e8f1f8; }
table.comp-table tbody tr.unplayed td { color: #8b97a3; background: #f3f5f7; }
table.comp-table tbody tr.unplayed:hover td { background: #e6eaee; }
table.comp-table td a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
table.comp-table thead th:first-child,
table.comp-table thead th:first-child > button,
table.comp-table tbody td:first-child,
table.comp-table td.cf {
  text-align: left;
}
table.comp-table thead th:nth-child(2),
table.comp-table thead th:nth-child(2) > button,
table.comp-table tbody td:nth-child(2),
table.comp-table thead th:nth-child(4),
table.comp-table thead th:nth-child(4) > button,
table.comp-table tbody td:nth-child(4) {
  text-align: center;
}
table.comp-table td.cf {
  min-width: 160px;
  padding: 8px 10px;
}
table.comp-table .cf-num {
  font-weight: 700;
  background: transparent;
  padding: 0;
}
table.comp-table .lineup-link {
  font-size: 11px;
  font-weight: 650;
  background: #f4f7fb;
  border-color: #c5d0db;
}
.schedule-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.schedule-options button {
  font: inherit;
  font-size: 13px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.schedule-options button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
table.comp-table .box-stat { display: none; }
table.comp-table.show-box .box-stat { display: table-cell; }
table.comp-table th.box-stat,
table.comp-table td.box-stat,
table.pdf th.box-stat,
table.pdf td.box-stat {
  text-align: center;
  width: 4.6em;
  min-width: 4.6em;
  max-width: 4.6em;
  box-sizing: border-box;
}
table.comp-table th.box-stat > button {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.minutes-board {
  --carry: #8b97a3;
  --total: #f4f8fb;
  --row: #f7fafc;
  --hot: #ffe39a;
  --split: #7f96ab;
}
.minutes-board h2 { margin: 18px 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.minutes-board .legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.minutes-board .game-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}
.minutes-board .game-toggle .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.minutes-board .game-toggle .score { color: var(--muted); }
.minutes-board .game-toggle.is-off { background: #f3f5f7; color: #8b97a3; }
.minutes-board .game-toggle.is-off .n { background: #b7c1cb; }
.minutes-board .game-toggle.is-off .label { text-decoration: line-through; }
.minutes-board .show-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.minutes-board .show-row .filter-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.minutes-board .contrib-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.minutes-board .contrib-toggle.is-off { background: #f3f5f7; color: #8b97a3; text-decoration: line-through; }
.minutes-board .contrib-toggle[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  text-decoration: none;
}
.minutes-board .stat-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.minutes-board .stat-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  font-size: 13px;
}
.minutes-board .stat-filters select,
.minutes-board .stat-filters input {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fafc;
  color: var(--ink);
  padding: 2px 6px;
}
.minutes-board .stat-filters input { width: 64px; }
.minutes-board .stat-filters label.is-off { color: #8b97a3; }
.minutes-board .stat-filters input:disabled { opacity: 0.45; }
.minutes-board .clear-filters {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--ink);
}
.minutes-board #filter-count { color: var(--muted); font-size: 13px; }
.minutes-board .hint,
.minutes-board .notes { margin: 0 0 10px; color: var(--muted); font-size: 13px; max-width: 980px; }
.minutes-board .notes { margin-top: 14px; }
.minutes-board .notes strong { color: var(--ink); font-weight: 650; }
.minutes-board .heat-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.minutes-board .swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #c5d0db; display: inline-block; }
.minutes-board .swatch.low { background: #d64545; }
.minutes-board .swatch.mid { background: #ffffff; }
.minutes-board .swatch.high { background: #2e9e54; }
.minutes-board .table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 40, 63, 0.06);
  margin-bottom: 8px;
}
.minutes-board table.sheet {
  width: 100%;
  min-width: max-content;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}
.minutes-board table.sheet th,
.minutes-board table.sheet td {
  padding: 6px 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
  background: white;
  vertical-align: middle;
}
.minutes-board table.sheet td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minutes-board table.sheet thead th {
  position: sticky;
  z-index: 3;
  background: var(--navy);
  color: white;
  border-bottom: 0;
  font-weight: 600;
  text-align: center;
  vertical-align: bottom;
  white-space: normal;
}
.minutes-board table.sheet thead tr:first-child th { top: 0; }
.minutes-board table.sheet thead tr:first-child th.game-group,
.minutes-board table.sheet thead tr:first-child th.total-group { height: 68px; }
.minutes-board table.sheet thead tr:nth-child(2) th { top: 68px; height: 36px; }
.minutes-board table.sheet thead tr:first-child th.jersey,
.minutes-board table.sheet thead tr:first-child th.player,
.minutes-board table.sheet thead tr:first-child th.time,
.minutes-board table.sheet thead tr:first-child th.bio-pos,
.minutes-board table.sheet thead tr:first-child th.bio-year,
.minutes-board table.sheet thead tr:first-child th.bio-ht,
.minutes-board table.sheet thead tr:first-child th.goals,
.minutes-board table.sheet thead tr:first-child th.assists,
.minutes-board table.sheet thead tr:first-child th.points,
.minutes-board table.sheet thead tr:first-child th.gk-sv,
.minutes-board table.sheet thead tr:first-child th.gk-ga,
.minutes-board table.sheet thead tr:first-child th.gk-pct { height: 104px; top: 0; }
.minutes-board table.sheet thead th.jersey,
.minutes-board table.sheet thead th.player { z-index: 6; background: var(--navy); }
.minutes-board table.sheet th.jersey,
.minutes-board table.sheet td.jersey { width: 3.2ch; text-align: right; padding-left: 1px; padding-right: 1px; }
.minutes-board table.sheet th.time,
.minutes-board table.sheet td.time { width: 4.6em; text-align: center; padding-left: 2px; padding-right: 2px; overflow: visible; }
.minutes-board table.sheet th.bio-pos,
.minutes-board table.sheet td.bio-pos,
.minutes-board table.sheet th.bio-year,
.minutes-board table.sheet td.bio-year,
.minutes-board table.sheet th.bio-ht,
.minutes-board table.sheet td.bio-ht { width: 6.4ch; text-align: center; padding-left: 1px; padding-right: 1px; }
.minutes-board table.sheet th.goals,
.minutes-board table.sheet td.goals,
.minutes-board table.sheet th.assists,
.minutes-board table.sheet td.assists,
.minutes-board table.sheet th.points,
.minutes-board table.sheet td.points { width: 3.2ch; text-align: center; padding-left: 1px; padding-right: 1px; }
.minutes-board table.sheet th.gk-sv,
.minutes-board table.sheet td.gk-sv,
.minutes-board table.sheet th.gk-ga,
.minutes-board table.sheet td.gk-ga { width: 4.2ch; text-align: center; }
.minutes-board table.sheet th.gk-pct,
.minutes-board table.sheet td.gk-pct { width: 5.5ch; text-align: center; }
.minutes-board table.sheet th.player,
.minutes-board table.sheet td.player { width: 12em; text-align: left; }
.minutes-board #keepers th.player,
.minutes-board #keepers td.player { width: 16em; }
.minutes-board #keepers td.player { position: relative; padding-right: 50px; }
.minutes-board #keepers td.player .time-link { position: absolute; right: 2px; top: 5px; margin-left: 0; }
.minutes-board table.sheet thead button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  max-width: 100%;
}
.minutes-board table.sheet th.sortable { cursor: pointer; }
.minutes-board table.sheet th.sortable > button::after { width: 0.8em; color: #9eb4c9; font-size: 10px; }
.minutes-board .game-group,
.minutes-board .total-group { vertical-align: middle; padding: 0; }
.minutes-board .game-head { display: block; width: 100%; padding: 4px 2px; cursor: pointer; }
.minutes-board .game-group .gnum,
.minutes-board .game-group .gmeta,
.minutes-board .game-group .gscore { display: block; }
.minutes-board .game-group .gnum { font-size: 12px; }
.minutes-board .game-group .gmeta,
.minutes-board .game-group .gscore {
  font-weight: 500;
  font-size: 11px;
  color: #d5e4f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.minutes-board .game-group .gscore { color: #9eb4c9; }
.minutes-board .total-group,
.minutes-board table.sheet thead th.total { background: var(--navy-2); }
.minutes-board table.sheet td.total { background: var(--total); }
.minutes-board table.sheet tbody tr:nth-child(even) td { background: var(--row); }
.minutes-board table.sheet tbody tr:nth-child(even) td.total { background: #e7f0f6; }
.minutes-board table.sheet tbody tr:hover td { background: #e8f1f8; }
.minutes-board table.sheet tbody tr:hover td.total { background: #dceaf3; }
.minutes-board table.sheet .num { text-align: right; }
.minutes-board table.sheet td.carried { color: var(--carry); }
.minutes-board table.sheet td.num:empty::before { content: "·"; color: #d3dae1; font-weight: 400; }
.minutes-board table.sheet .split { box-shadow: inset 2px 0 0 var(--split); }
.minutes-board table.sheet thead .split { box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.35); }
.minutes-board table.sheet tbody td.hot,
.minutes-board table.sheet tbody tr:nth-child(even) td.hot,
.minutes-board table.sheet tbody tr:hover td.hot { background: var(--hot); }
.minutes-board table.sheet tbody td.min.hot { background: var(--heat, var(--hot)); box-shadow: inset 0 0 0 2px #c48a00, inset 2px 0 0 var(--split); }
.minutes-board table.sheet thead th.hot,
.minutes-board table.sheet thead th.hot.total,
.minutes-board table.sheet thead th.game-group.hot { background: #2c6a9a; }
.minutes-board table.sheet th.is-off,
.minutes-board table.sheet td.is-off,
.minutes-board tr.filter-off { display: none; }
.minutes-board table.sheet tfoot td { background: #d9e6f2; font-weight: 700; border-top: 2px solid var(--navy); }
.minutes-board table.sheet tfoot td.player { text-align: left; }
.minutes-board a.time-link {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid #c5d0db;
  border-radius: 999px;
  background: #f4f7fb;
  font-size: 11px;
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
}
.minutes-board a.time-link:hover { background: #e7eef6; }
.minutes-board td.time .time-link { margin-left: 0; }
.minutes-board table.sheet td.player a:not(.time-link) {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  main { padding: 14px; }
  header { align-items: flex-start; }
  table.board th:nth-child(2),
  table.board td:nth-child(2) { display: none; }
  form.filters { display: grid; align-items: stretch; }
  form.filters label.choice { justify-self: start; }
  form.search-box { width: 100%; }
  .search-line { flex-wrap: nowrap; }
  label.season-field { flex-wrap: nowrap; }
  .player-tools form { flex: 1 1 100%; }
  .player-tools button { width: 100%; }
}
form.coverage-form { margin: 8px 0 18px; }
h1.tenure-heading {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.3;
}
.tenure-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.tenure-years .tenure-year-label { font-weight: 600; }
.tenure-years .tenure-year {
  display: inline-flex;
  align-items: center;
}
.tenure-years-sep { font-weight: 650; }
.tenure-years select {
  font: inherit;
  font-weight: 650;
  padding: 4px 8px;
}
.tenure-sports { margin: 0 0 12px; }
.coverage h2.tenure-section {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}
.coverage h2.tenure-section:first-child { margin-top: 8px; }
.coverage-dates { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 14px; }
.coverage-dates div { display: flex; gap: 8px; }
.coverage-dates dt { font-weight: 650; }
.coverage-dates dd { margin: 0; }
.coverage { margin-top: 8px; }
.coverage h3 { margin: 22px 0 8px; }
.coverage .fine { color: var(--muted); font-size: 13px; max-width: 68rem; }
.coverage table { font-size: 13px; }
.coverage th, .coverage td { white-space: nowrap; padding: 5px 7px; }
.coverage table.coverage-overview {
  width: 100%;
  font-size: 13px;
}
.coverage table.coverage-overview th,
.coverage table.coverage-overview td {
  padding: 6px 8px;
}
.coverage table.coverage-overview td.num {
  font-variant-numeric: tabular-nums;
}
.coverage table.coverage-overview th:first-child,
.coverage table.coverage-overview td:first-child {
  min-width: 10rem;
}
@media (min-width: 1500px) {
  .coverage table.coverage-overview { font-size: 14px; }
  .coverage table.coverage-overview th,
  .coverage table.coverage-overview td { padding: 6px 10px; }
}
.coverage th:first-child, .coverage td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
  box-shadow: 1px 0 0 var(--line);
}
.coverage thead th:first-child { z-index: 2; background: #e7eef5; }
.coverage tfoot td { font-weight: 700; background: #f4f7fa; }
.coverage tfoot td:first-child { background: #f4f7fa; }
.coverage table.tenure-overview thead th.group {
  text-align: center;
  vertical-align: bottom;
  border-bottom: 0;
}
.coverage table.tenure-overview thead tr:nth-child(2) th {
  position: static;
  left: auto;
  box-shadow: none;
  z-index: auto;
}

.origin-layout {
  display: block;
  margin-top: 12px;
}
.origin-map-stage {
  position: relative;
  margin: 0 0 8px;
}
.origin-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.origin-views button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.origin-map-stage .origin-views {
  position: absolute;
  top: 12px;
  left: 54px;
  z-index: 500;
  margin: 0;
}
.origin-map-stage .origin-views button {
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(16, 40, 63, 0.18);
}
.origin-map-stage .origin-views button[aria-pressed="true"] {
  border-color: var(--navy);
}
#origin-map {
  height: min(78vh, 920px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce6ef;
}
.origin-map-stage:fullscreen,
.origin-map-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #10283f;
  display: flex;
  flex-direction: column;
}
.origin-map-stage:fullscreen #origin-map,
.origin-map-stage:-webkit-full-screen #origin-map {
  flex: 1;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.origin-counts { margin-top: 18px; }
.origin-counts h2 { margin-top: 0; }
.origin-counts table { font-size: 14px; max-width: 520px; }
.origin-grains { margin: 0 0 10px; }
.origin-grains button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
@media (max-width: 900px) {
  #origin-map {
    height: min(58vh, 520px);
    min-height: 360px;
  }
}
.hometown-filters { margin: 8px 0 14px; }
.hometown-filter-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.hometown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.hometown-pills + .hometown-pills { margin-top: -4px; }
.hometown-pills a {
  text-decoration: none;
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
}
.hometown-pills a[aria-current="page"],
.hometown-pills a[aria-pressed="true"],
.hometown-pills a.on {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
h2.ranking-region {
  scroll-margin-top: 80px;
}
.coach-moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
  align-items: start;
}
.coach-moves > div { min-width: 0; }
.coach-moves h3 { margin: 0 0 8px; }
.hometown-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}
.hometown-maps.single { grid-template-columns: 1fr; }
.hometown-maps.single #hometown-map { height: 420px; }
.hometown-maps h2 {
  margin: 0 0 8px;
}
.hometown-maps .muted {
  margin: 0 0 8px;
}
#hometown-map,
#schools-map {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce6ef;
  margin: 0;
}
@media (max-width: 900px) {
  .hometown-maps,
  .coach-moves {
    grid-template-columns: 1fr;
  }
}
.standings-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.standings-toggles .filter-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.standings-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.standings-toggle.is-off {
  background: #f3f5f7;
  color: #8b97a3;
  text-decoration: line-through;
}
.standings-toggle[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  text-decoration: none;
}
.scroll:has(> table.conference-standings) {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
table.conference-standings {
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}
table.conference-standings th,
table.conference-standings td {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
table.conference-standings thead th {
  background: var(--navy);
  color: white;
  font-weight: 650;
  font-size: 13px;
  vertical-align: bottom;
  white-space: nowrap;
  border-bottom: 0;
}
table.conference-standings thead th.group {
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  white-space: normal;
}
table.conference-standings thead th.sortable > button {
  font-weight: 650;
  color: white;
}
table.conference-standings thead th.sortable > button::after { color: #9eb4c9; }
table.conference-standings tbody tr:nth-child(even) td { background: #f3f7fb; }
table.conference-standings tbody tr:hover td { background: #e8f1f8; }
table.conference-standings tbody tr:last-child td { border-bottom: 0; }
table.conference-standings td a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
}
table.conference-standings [data-group] { display: none; }
table.conference-standings.show-cf [data-group="cf"],
table.conference-standings.show-players [data-group="players"],
table.conference-standings.show-minutes [data-group="minutes"],
table.conference-standings.show-contrib [data-group="contrib"] {
  display: table-cell;
}
table.conference-countries {
  width: max-content;
  min-width: 100%;
}
table.conference-countries th:first-child,
table.conference-countries td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
  box-shadow: 1px 0 0 var(--line);
}
table.conference-countries thead th:first-child {
  z-index: 2;
  background: #e7eef5;
}
table.conference-countries tbody tr:nth-child(even) td:first-child { background: #f8fafc; }
table.conference-countries tfoot td { font-weight: 650; background: #f4f7fa; }
table.conference-countries tfoot td:first-child { background: #f4f7fa; }
table.conference-countries thead th.num > button a {
  color: inherit;
  text-decoration: none;
}
table.conference-countries thead th.num > button a:hover { text-decoration: underline; }
table.conference-countries td a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}
table.conference-countries td a:hover { text-decoration: underline; }
table.ranking-summary {
  width: max-content;
  min-width: 100%;
  margin: 0 0 18px;
}
table.ranking-summary th,
table.ranking-summary td,
table.ranking-summary td.num {
  text-align: left;
}
table.ranking-breakdown td.incl-full { color: var(--navy); }
table.ranking-breakdown td.incl-part { color: #8a5a00; font-weight: 650; }
table.ranking-breakdown td.incl-excl { color: var(--muted); }
table.ranking-breakdown td.incl-unmatched,
table.ranking-breakdown tr.unmatched td:nth-child(3) { color: #9b1c1c; font-weight: 650; }
table.ranking-breakdown tbody tr.unmatched td { background: #fff1f1; }
table.ranking-breakdown tbody tr.excluded td { color: var(--muted); background: #f3f6f8; }
table.ranking-breakdown tbody tr.partial td { background: #fff6e8; }
table.ranking-breakdown tbody tr.unused td { color: var(--muted); background: #f3f6f8; }
.unmatched-note { margin: 0 0 16px; }

.bracket-scroll {
  overflow-x: auto;
  margin: 8px 0 18px;
  padding-bottom: 8px;
}
.bracket-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr)) minmax(228px, 1.15fr) repeat(4, minmax(200px, 1fr));
  column-gap: 18px;
  min-width: 1780px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bracket-head span { text-align: center; }
.bracket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr)) minmax(228px, 1.15fr) repeat(4, minmax(200px, 1fr));
  grid-template-rows: repeat(16, minmax(56px, 1fr));
  column-gap: 18px;
  row-gap: 4px;
  min-width: 1780px;
  min-height: 980px;
}
.bracket-game {
  position: relative;
  align-self: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 0 rgba(16, 40, 63, 0.04);
}
.bracket-game::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  border-top: 2px solid #c5d0da;
}
.bracket-game.side-left::after { right: -19px; }
.bracket-game.side-right::after { left: -19px; }
.bracket-game.side-center::after { display: none; }
.bracket-when { border-radius: 8px 8px 0 0; }
.bracket-team:last-child { border-radius: 0 0 8px 8px; }
.bracket-game.is-live { border-color: #b42318; }
.bracket-game.is-champ {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(16, 40, 63, 0.12);
}
.bracket-when {
  margin: 0;
  padding: 3px 8px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}
.bracket-game.is-live .bracket-when {
  background: #b42318;
  color: white;
}
.bracket-game.is-champ .bracket-when {
  background: var(--navy);
  color: white;
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px 3px 6px;
}
.bracket-team + .bracket-team { border-top: 1px solid var(--line); }
.bracket-team.is-winner {
  background: #eef6f0;
  font-weight: 700;
}
.bracket-team.is-empty { color: var(--muted); }
.bracket-seed {
  flex: 0 0 16px;
  width: 16px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bracket-logo,
.bracket-logo-gap {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.bracket-logo { object-fit: contain; }
.bracket-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
a.bracket-name:hover { color: var(--navy-2); text-decoration: underline; }
.goaligami-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.goaligami-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid var(--line);
  vertical-align: -1px;
}
.goaligami-swatch.is-w { background: #1b7f4a; border-color: #1b7f4a; }
.goaligami-swatch.is-l { background: #c44b3c; border-color: #c44b3c; }
.goaligami-swatch.is-t { background: #c9a227; border-color: #c9a227; }
.goaligami-swatch.is-hit { background: var(--navy-2); border-color: var(--navy-2); }
.goaligami-swatch.is-empty { background: white; }
.goaligami-swatch.is-impossible { background: #1c2833; border-color: #1c2833; }
.goaligami-heat-scale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.goaligami-heat-bar {
  display: inline-block;
  width: 88px;
  height: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(to right, #2ea043, #f1c40f, #e67e22, #c0392b);
  vertical-align: -1px;
}
.goaligami-stage {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 18px;
}
.goaligami-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.goaligami-board { min-width: 0; }
.goaligami-x-label {
  margin: 6px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding-left: 32px;
}
table.goaligami {
  width: max-content;
  border-collapse: collapse;
  table-layout: fixed;
}
table.goaligami th,
table.goaligami td {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
}
table.goaligami th {
  background: #eef3f8;
  color: var(--muted);
  font-weight: 650;
}
table.goaligami th.goaligami-corner { background: transparent; border-color: transparent; }
table.goaligami td.is-w { background: #1b7f4a; }
table.goaligami td.is-l { background: #c44b3c; }
table.goaligami td.is-t { background: #c9a227; }
table.goaligami td.is-hit { background: var(--navy-2); }
table.goaligami td.is-empty { background: white; }
table.goaligami td.is-impossible { background: #1c2833; border-color: #1c2833; }
table.goaligami.is-heat td.is-w,
table.goaligami.is-heat td.is-l,
table.goaligami.is-heat td.is-t,
table.goaligami.is-heat td.is-hit { background: #2ea043; }
table.goaligami td button {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
table.goaligami.is-heat td button.is-heat-light { color: var(--ink); }
table.goaligami.is-heat td button.is-heat-dark { color: white; }
table.goaligami td button[aria-pressed="true"] { outline: 2px solid var(--navy); outline-offset: -2px; }
#goaligami-detail { margin: 8px 0 24px; }
#goaligami-detail h2 { font-size: 18px; margin: 0 0 8px; }
#goaligami-detail ul { margin: 0; padding-left: 1.2em; }
.bracket-score {
  flex: 0 0 18px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  text-align: right;
}
.bracket-team.is-winner .bracket-score { font-weight: 750; }

