.players-toolbar,
.waivers-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.players-title {
  margin: 0;
}
.players-subtitle {
  margin: 4px 0 0;
}
.players-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}
.players-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.players-pool-controls {
  margin-top: var(--space-md);
}
.card.players-page {
  display: flex;
  flex-direction: column;
  min-height: max(420px, calc(100dvh - 200px));
}
.players-pool-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
/* Beat `.pick-list { max-height: 360px }` so the pool fills the page. */
.pick-list.players-pool-list,
.players-pool-wrap .players-pool-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.players-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-xs);
  border-top: 1px solid var(--surface-2);
  flex: 0 0 auto;
}
.players-pager-status {
  font-variant-numeric: tabular-nums;
}
.players-pool-list .data-table {
  min-width: 34rem;
}
.players-pool-list thead th,
.players-taken-list thead th,
.players-rec-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--surface-2);
}
.players-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: var(--space-md);
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  margin-top: var(--space-md);
}
.players-split-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 6px;
}
.players-split-pane .players-pool-wrap,
.players-split-pane .pick-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.players-narrow-seg {
  display: none;
}
.players-why {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.why-badge {
  display: inline-block;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
  vertical-align: middle;
}
.why-badge.need { color: #fbbf24; }
.why-badge.queued { color: var(--accent); }
.why-badge.falling { color: #fb7185; }

@media (max-width: 959px) {
  .players-narrow-seg { display: flex; }
  .players-split { grid-template-columns: 1fr; }
  .players-split-pane { display: none; }
  .players-split-pane.is-active { display: flex; }
}

@media (max-width: 640px) {
  .players-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  .players-pager {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  .players-pager-status {
    flex: 1 1 100%;
    order: -1;
    text-align: center;
  }
}

.standings-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.standings-title {
  margin: 0;
}
.standings-subtitle {
  margin: 4px 0 0;
}
.standings-champion {
  margin: 0;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent-2) 55%, var(--surface-2));
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05)),
    var(--surface);
  color: var(--accent-2);
  letter-spacing: 0.02em;
  animation: champ-glow 0.5s ease-out;
}
@keyframes champ-glow {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .standings-champion { animation: none; }
}
.standings-row.playoff-cut td {
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, var(--surface-2));
}
.standings-table tr.is-champion td {
  font-weight: 600;
}
.standings-row {
  cursor: pointer;
}
.standings-row:hover td,
.standings-row.is-open td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.standings-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.standings-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 2rem;
}
.standings-team-name {
  font-weight: 600;
}
.standings-wl {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.standings-pts {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.standings-detail-row td {
  padding: 0 0 var(--space-sm);
  border-bottom: 1px solid var(--surface-2);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 4%);
}
.standings-results {
  padding: var(--space-sm) var(--space-md);
}
.standings-results-status {
  margin: 0;
  font-size: 13px;
}
.standings-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.standings-result-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto 1.4rem;
  gap: var(--space-sm);
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.standings-result-row:last-child {
  border-bottom: none;
}
.standings-result-week {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.standings-result-opp {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standings-result-score {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.standings-result-mark {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.standings-result-mark.is-w { color: var(--accent); }
.standings-result-mark.is-l { color: var(--muted); }
.standings-result-mark.is-t { color: var(--text); }
.standings-result-mark.is-pending { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .standings-result-row {
    grid-template-columns: 2.2rem minmax(0, 1fr) 1.2rem;
    grid-template-areas:
      "week opp mark"
      "week score mark";
    row-gap: 2px;
  }
  .standings-result-week { grid-area: week; }
  .standings-result-opp { grid-area: opp; white-space: normal; }
  .standings-result-score { grid-area: score; font-size: 12px; }
  .standings-result-mark { grid-area: mark; align-self: center; }
}
.waivers-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.waivers-subtitle {
  margin: 4px 0 0;
}
.waivers-title .week-live-badge {
  margin-top: 0;
  align-self: center;
}
.card.waivers-page {
  display: flex;
  flex-direction: column;
  min-height: max(420px, calc(100dvh - 200px));
  padding-bottom: 0;
}
.waivers-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.waivers-faab-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--surface-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 8%);
  min-height: 44px;
}
.waivers-faab-pill strong {
  font-variant-numeric: tabular-nums;
}
.waivers-live-note {
  margin: var(--space-sm) 0 0;
}
.waivers-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: var(--space-md);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: var(--space-md);
}
.waivers-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.waivers-fa-pane,
.waivers-side-pane {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.waivers-side-pane {
  overflow: auto;
}
.waivers-fa-pane {
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-md);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent) 4%);
}
.waiver-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}
.waiver-panel-head h4,
.waivers-side-pane h4,
.waivers-activity h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.waivers-side-pane h4 .muted,
.waivers-drop-block h4 .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 0.35rem;
}
.waiver-pool-filters {
  margin-bottom: var(--space-sm);
}
.waivers-filter-selects {
  display: contents;
}
.waivers-filter-selects select {
  flex: 0 1 10rem;
  min-width: 7rem;
}
.pick-list.waiver-pool-list,
.waiver-pool-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.waiver-pool-list .data-table {
  min-width: 28rem;
}
.waiver-pool-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--surface-2);
}
.waiver-pool-list .lineup-player-meta {
  margin-top: 2px;
}
.waiver-pick-row {
  cursor: pointer;
  touch-action: manipulation;
}
.waiver-pick-row:focus-visible,
.waivers-fa-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.waiver-pick-row.selected td,
.waivers-fa-row.selected {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.waiver-pick-row.suggested td,
.waivers-fa-row.suggested {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.waiver-suggest-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--surface-2));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.waivers-fa-cards,
.waivers-drop-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.waivers-fa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: var(--space-sm);
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  touch-action: manipulation;
}
.waivers-fa-main {
  min-width: 0;
}
.waivers-fa-main .player-name-cell {
  display: flex;
}
.waivers-fa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin-top: 2px;
}
.waivers-proj {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.waivers-check {
  color: var(--accent);
  font-weight: 700;
}
.waivers-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  font-size: 12px;
}
.waivers-delta.is-up { color: var(--accent); }
.waivers-delta.is-down { color: var(--danger); }
.waivers-show-more {
  margin-top: var(--space-sm);
  min-height: 44px;
  width: 100%;
  touch-action: manipulation;
}
.waivers-drop-group {
  margin-bottom: var(--space-md);
}
.waivers-drop-heading {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.waivers-drop-table {
  width: 100%;
}
.waivers-drop-block {
  margin-bottom: var(--space-lg);
}
.waivers-priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.waivers-priority-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: 6px 8px;
  border-radius: calc(var(--radius) - 2px);
}
.waivers-priority-row.is-you {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.waivers-priority-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.waivers-priority-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.waivers-priority-faab {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.waiver-you-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--surface-2));
}
.waivers-activity {
  margin-top: var(--space-lg);
  flex: 0 0 auto;
}
.waivers-claim-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.waivers-claim-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-sm);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  min-height: 44px;
}
.waivers-claim-card.is-pending {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--surface-2));
}
.waivers-claim-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.waivers-claim-team {
  font-weight: 600;
}
.waivers-claim-bid {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.waiver-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--surface-2);
  color: var(--muted);
}
.waiver-status-pill.is-pending {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--surface-2));
}
.waiver-status-pill.is-won {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface-2));
}
.waiver-status-pill.is-lost {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--surface-2));
}
.waivers-claim-dock {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface, #152033) 94%, var(--accent) 4%);
  backdrop-filter: blur(8px);
}
.waivers-slip {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(9rem, 0.9fr);
  gap: var(--space-md);
  flex: 1 1 18rem;
  min-width: 0;
}
.waivers-slip-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.waivers-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: var(--bg);
  min-width: 0;
  touch-action: manipulation;
}
.waivers-chip.empty {
  color: var(--muted);
}
.waiver-add-label,
.waiver-drop-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.waivers-chip-btn {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.waivers-chip-x {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  margin-left: auto;
  touch-action: manipulation;
}
.waivers-chip-x:hover { color: var(--text); }
.waivers-slip-slot {
  min-width: 0;
}
.waivers-bid-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0 8px;
}
.waivers-slip-bid.is-over .waivers-bid-row {
  border-color: var(--danger);
}
.waivers-bid-prefix {
  color: var(--muted);
  font-weight: 700;
}
.waivers-bid-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
}
.waivers-bid-input::-webkit-outer-spin-button,
.waivers-bid-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.waivers-bid-input {
  -moz-appearance: textfield;
  appearance: textfield;
}
.waivers-bid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.waivers-bid-chip {
  appearance: none;
  border: 1px solid var(--surface-2);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.waivers-bid-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.waivers-bid-left {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.waivers-dock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.waivers-dock-actions .btn {
  min-height: 44px;
  touch-action: manipulation;
}
.waivers-submit-hint {
  font-size: 12px;
}
.waivers-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}
.waivers-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.waivers-drop-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78dvh, 36rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md);
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  transform: translateY(0);
}
.waivers-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  padding-bottom: 6px;
}
.waivers-sheet-head h4 {
  margin: 0;
}
.waivers-sheet-name {
  font-weight: 600;
}
.waivers-drop-cards.is-sheet {
  display: flex;
}

@media (min-width: 901px) {
  .waivers-fa-table { display: block; }
  .waivers-drop-table { display: table; }
  .waivers-fa-cards,
  .waivers-drop-cards:not(.is-sheet) { display: none; }
}

@media (max-width: 900px) {
  .card.waivers-page {
    padding-bottom: 11rem;
  }
  .waivers-split {
    grid-template-columns: 1fr;
  }
  .waivers-fa-cards { display: flex; }
  .waivers-fa-table,
  .waivers-drop-table,
  .waivers-drop-block { display: none; }
  .waivers-filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    width: 100%;
  }
  .waivers-slip {
    grid-template-columns: 1fr 1fr;
  }
  .waivers-slip-bid {
    grid-column: 1 / -1;
  }
  .waivers-claim-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 0;
    margin-top: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .waivers-sheet-root { display: block; }
  .waivers-claim-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main pill"
      "main bid";
  }
  .waivers-claim-main { grid-area: main; }
  .waiver-status-pill { grid-area: pill; justify-self: end; }
  .waivers-claim-bid { grid-area: bid; justify-self: end; }
}

@media (max-width: 700px) {
  .waivers-fa-table th:nth-child(4),
  .waivers-fa-table td:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waivers-drop-sheet,
  .waivers-claim-dock,
  .waiver-pick-row,
  .waivers-fa-row {
    transition: none;
  }
}

.home-hero {
  margin-bottom: var(--space-xl);
}
.home-hero h2 {
  margin: 0 0 var(--space-sm);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.home-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}
.hero-chips li {
  border: 1px solid var(--surface-2);
  background: rgba(21, 32, 51, 0.6);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.welcome-hero .hero-chips { justify-content: center; }

.split-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 860px) {
  .split-panels { grid-template-columns: 1fr; }
}

/* New-user onboarding: zero-league welcome + focused email invite */
.welcome-stack {
  display: grid;
  gap: var(--space-lg);
  max-width: 640px;
  margin: 0 auto;
}
.welcome-hero { text-align: center; }
.welcome-hero p { margin-left: auto; margin-right: auto; }
.welcome-join input#welcome-join-code {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.welcome-create > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.welcome-create > summary:hover { color: var(--text); }
.welcome-create > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.welcome-create[open] > summary { margin-bottom: var(--space-sm); color: var(--text); }
.invite-focus { max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .welcome-stack { gap: var(--space-md); }
}

.pick-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}
.draft-room-pool .pick-list,
.pick-list.waiver-pool-list {
  max-height: none;
}

/* Draft hub layout */
.draft-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
}
.draft-hub-live-actions {
  justify-content: flex-end;
}
.draft-hub-prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-md);
  align-items: start;
}
.draft-hub-prep-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  padding: 10px 12px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.35);
}
.draft-hub-prep-strip-main {
  min-width: min(100%, 16rem);
  flex: 1 1 16rem;
  font-size: 13px;
}
.draft-hub-practice {
  margin-top: var(--space-sm);
}
.mock-hub-card-copy {
  margin: 6px 0 0;
}
@media (max-width: 860px) {
  .draft-hub-prep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .draft-hub-live-actions { justify-content: flex-start; }
  .draft-hub-live-actions .btn { flex: 1 1 auto; }
  .draft-hub-prep-strip .row-actions { width: 100%; }
  .draft-hub-prep-strip .row-actions .btn { flex: 1 1 auto; }
  .draft-complete-hero { align-items: stretch; }
  .draft-complete-hero .row-actions { width: 100%; }
  .draft-complete-hero .row-actions .btn { flex: 1 1 auto; }
  .practice-lane-note { flex: 1 1 100%; margin-left: 0; }
}

/* Settings — toolbar header + card-per-section layout. All colors/spacing
   derive from tokens so the page reskins with the rest of the app. */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.settings-title {
  margin: 0;
}
.settings-subtitle {
  margin: 4px 0 0;
  max-width: 62ch;
}
.settings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}
.settings-meta li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface-2);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.settings-meta li.is-live {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface-2));
}
.settings-section {
  margin-bottom: 0;
  scroll-margin-top: 84px;
}
.settings-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--surface-2);
}
.settings-section-head h4 {
  margin: 0;
  font-size: 15px;
}
.settings-section-hint {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}
.settings-field-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.settings-field-row .field {
  flex: 1 1 220px;
  margin: 0;
}
.settings-field-row .btn {
  flex: 0 0 auto;
}
.settings-locked {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: 10px var(--space-md);
  border: 1px dashed var(--surface-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}
.settings-subgroup {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.settings-subgroup-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.settings-preview {
  margin-top: var(--space-lg);
}
.settings-preview-strip {
  display: flex;
  gap: 3px;
}
.settings-preview-week {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 0;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.settings-preview-week.is-playoff {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface-2));
  color: var(--accent);
}
.settings-preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-sm);
  font-size: 12px;
  color: var(--muted);
}
.settings-preview-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 5px;
  background: var(--surface-2);
}
.settings-preview-dot.playoff {
  background: color-mix(in srgb, var(--accent) 55%, var(--surface-2));
}
.settings-more {
  margin-top: var(--space-md);
  border-top: 1px solid var(--surface-2);
  padding-top: var(--space-sm);
  font-size: 13px;
  color: var(--muted);
}
.settings-more summary {
  cursor: pointer;
  font-weight: 600;
}
.settings-more summary:hover { color: var(--text); }
.settings-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-more p {
  margin: var(--space-sm) 0 0;
}
.settings-danger {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--surface-2));
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}
.settings-danger .settings-section-head {
  border-bottom-color: color-mix(in srgb, var(--danger) 25%, var(--surface-2));
}
.settings-danger .settings-section-head h4 {
  color: var(--danger);
}
.settings-danger-field {
  max-width: 420px;
}
@media (max-width: 640px) {
  .settings-page .btn {
    min-height: 44px;
  }
  .settings-page .btn.btn-xs {
    min-height: 36px;
  }
  .settings-field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-field-row .btn {
    width: 100%;
  }
  .settings-page .row-actions .btn {
    flex: 1 1 100%;
  }
  .settings-page .form-grid {
    grid-template-columns: 1fr;
  }
  .settings-page .segmented {
    width: 100%;
  }
  .settings-page .segmented .btn {
    flex: 1 1 0;
  }
  .settings-preview-week {
    padding: 5px 0;
    font-size: 10px;
  }
}

.matchups-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.matchups-title,
.lineup-title {
  margin: 0;
}
.matchups-subtitle,
.lineup-subtitle {
  margin: 4px 0 0;
}
.matchup-section-title {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
}
.h2h-panel {
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 4%);
  padding: var(--space-md);
}
.h2h-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--surface-2);
}
.h2h-scoreboard-compact {
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.h2h-team {
  min-width: 0;
}
.h2h-team.mine .h2h-team-name {
  color: var(--accent);
}
.h2h-team-right {
  text-align: right;
}
.h2h-team-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.h2h-score {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-top: 2px;
}
.h2h-team.mine .h2h-score {
  color: var(--accent);
}
.h2h-proj {
  font-size: 0.8rem;
  margin-top: 2px;
}
.h2h-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.h2h-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.h2h-pts-proj {
  color: var(--muted);
  font-weight: 500;
}
.h2h-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.h2h-grid-head,
.h2h-grid-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem 2.75rem minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.h2h-grid-head {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0 4px 6px;
}
.h2h-grid-row {
  padding: 8px 4px;
  border-radius: calc(var(--radius) - 2px);
}
.h2h-grid-row:nth-child(even) {
  background: color-mix(in srgb, var(--surface-2) 28%, transparent);
}
.h2h-col-slot {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.h2h-col-slot .pos-mark {
  color: inherit;
}
.h2h-col-pts {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.h2h-col-opp-pts {
  text-align: left;
}
.h2h-col-opp {
  text-align: right;
}
.h2h-player-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.h2h-col-opp .h2h-player-lead {
  flex-direction: row-reverse;
}
.h2h-player-name {
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.h2h-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}
/* Matchups H2H only: same-size player trim; opponent uses a cooler, less friendly palette. */
.h2h-panel.h2h-opp-theme {
  --h2h-opp: #fb7185;
  --h2h-opp-ink: #fda4af;
}
.h2h-player-trim {
  min-height: 2.75rem;
  padding: 5px 7px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--surface-2));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.h2h-opp-theme .h2h-col-opp .h2h-player-trim {
  border-color: color-mix(in srgb, var(--h2h-opp) 36%, var(--surface-2));
  background: color-mix(in srgb, var(--h2h-opp) 8%, #1a1216);
}
.h2h-opp-theme .h2h-team-right .h2h-team-name,
.h2h-opp-theme .h2h-team-right .h2h-score {
  color: var(--h2h-opp-ink);
}
.h2h-opp-theme .h2h-grid-head .h2h-col-opp {
  color: color-mix(in srgb, var(--h2h-opp) 65%, var(--muted));
}
.h2h-opp-theme .h2h-col-opp .school-mark {
  border-color: color-mix(in srgb, var(--h2h-opp) 44%, var(--surface-2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%),
    color-mix(in srgb, var(--school-color, var(--h2h-opp)) 11%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.h2h-opp-theme .h2h-col-opp .school-mark-abbr {
  color: color-mix(in srgb, var(--text) 70%, var(--h2h-opp));
}
.h2h-opp-theme .h2h-col-opp .pos-mark {
  --pos-color: var(--h2h-opp);
  border-color: color-mix(in srgb, var(--h2h-opp) 42%, var(--surface-2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%),
    color-mix(in srgb, var(--h2h-opp) 14%, transparent);
}
.h2h-opp-theme .h2h-col-opp .pos-mark-abbr {
  color: color-mix(in srgb, var(--text) 78%, var(--h2h-opp));
}
.h2h-pts-inline {
  display: none;
}
.h2h-col-opp .h2h-player-meta {
  justify-content: flex-end;
}
.h2h-slate-detail {
  margin-top: var(--space-xs);
}

/* Win-probability bar (projected, unscored matchups) */
.h2h-winprob {
  margin-top: var(--space-md);
}
.h2h-winprob-bar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  overflow: hidden;
}
.h2h-winprob-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, var(--accent-2)), var(--accent));
  transition: width 0.5s ease-out;
}
.h2h-winprob-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px var(--space-md);
  margin-top: 4px;
  font-size: 12px;
}
.h2h-winprob-label { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .h2h-winprob-fill { transition: none; }
}

/* Per-slot edge highlights in the starter grid */
.h2h-col-pts.edge-win { color: var(--accent); font-weight: 700; }
.h2h-col-pts.edge-lose { color: var(--muted); font-weight: 500; }

/* Roster: optimal-difference hint + bench start markers */
.lineup-delta-hint {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 55%, var(--surface-2));
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
}
.lineup-delta-hint:hover { border-color: var(--accent-2); }
.lineup-delta-hint:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.lineup-slot-row.opt-in {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface-2));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.lineup-start-hint {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.matchup-slate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.matchup-slate-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-sm);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.matchup-slate-row:hover,
.matchup-slate-row.open {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface-2));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.matchup-slate-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.slate-team {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.slate-team-away {
  justify-content: flex-end;
  text-align: right;
}
.matchup-schedule summary {
  cursor: pointer;
  font-weight: 600;
}
.opponent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-xs);
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}
.opponent-strip li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  font-size: 13px;
}
@media (max-width: 700px) {
  .h2h-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-sm);
  }
  .h2h-team-right {
    text-align: center;
  }
  .h2h-grid-head {
    display: none;
  }
  .h2h-grid-row {
    grid-template-columns: 2.5rem 1fr;
    grid-template-areas:
      "slot left"
      "slot right";
    gap: 4px 8px;
    padding: 10px 6px;
  }
  .h2h-col-slot { grid-area: slot; align-self: start; padding-top: 2px; }
  .h2h-col-player:not(.h2h-col-opp) { grid-area: left; }
  .h2h-col-player.h2h-col-opp { grid-area: right; text-align: left; }
  .h2h-col-opp .h2h-player-meta { justify-content: flex-start; }
  .h2h-opp-theme .h2h-team-right .h2h-team-name,
  .h2h-opp-theme .h2h-team-right .h2h-score { color: var(--h2h-opp-ink); }
  .h2h-col-pts { display: none; }
  .h2h-pts-inline { display: inline; font-weight: 600; color: var(--text); }
  .matchup-slate-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .slate-team-away {
    justify-content: flex-start;
    text-align: left;
  }
}
.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 860px) {
  .lineup-grid { grid-template-columns: 1fr; }
}
tr.selected td {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
tr.locked td {
  opacity: 0.65;
}

.trades-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.trades-title {
  margin: 0;
}
.trades-subtitle {
  margin: 4px 0 0;
}
.trades-partner-field {
  min-width: 12rem;
}
.trades-needs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}
.trades-needs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.trades-needs-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.trades-chip {
  border: 1px solid var(--surface-2);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}
.trades-chip:hover,
.trades-chip.active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--surface-2));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.trades-chip-surplus.active {
  border-color: color-mix(in srgb, var(--text) 35%, var(--surface-2));
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.trades-clear-filters {
  padding: 4px 10px;
  font-size: 12px;
}
.trades-builder h4 {
  margin: 0 0 var(--space-xs);
}
.trades-panel-hint {
  margin: 0 0 var(--space-xs);
  font-size: 12px;
}
.trades-get-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  align-items: baseline;
  margin-bottom: var(--space-xs);
}
.trades-get-head h4 {
  margin: 0;
}
.trades-sort {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.trades-sort select {
  font: inherit;
  font-size: 12px;
}
.trades-pick-row {
  cursor: pointer;
}
.trades-pick-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.trades-pick-row.is-focus-pos td {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.trades-player-name {
  font-weight: 600;
}
.trades-player-name.player-name-cell {
  display: flex;
  align-items: center;
}
.trades-player-meta {
  font-size: 12px;
}
.trades-mu,
.trades-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trades-num {
  color: var(--muted);
}
.trades-snapshot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface, #fff) 94%, var(--accent) 4%);
  backdrop-filter: blur(4px);
}
.trades-snapshot-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  flex: 1 1 16rem;
}
.trades-snapshot-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.trades-snapshot-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.trades-snapshot-chips li {
  font-size: 13px;
  padding: 2px 8px;
  border: 1px solid var(--surface-2);
  border-radius: calc(var(--radius) - 2px);
}
.trades-snapshot-totals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: baseline;
}
.trades-snapshot-totals > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 4.5rem;
}
.trades-delta.is-up { color: var(--accent); }
.trades-delta.is-down { color: var(--muted); }
.trades-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}
.trades-card-items {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
}
@media (max-width: 860px) {
  .trades-table th:nth-child(6),
  .trades-table td:nth-child(6) {
    display: none;
  }
  .trades-snapshot-lists {
    grid-template-columns: 1fr;
  }
}

.lineup-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: var(--space-sm);
  background: color-mix(in srgb, var(--bg, #fff) 92%, transparent);
  backdrop-filter: blur(4px);
}
.roster-team-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
}
.roster-team-select {
  max-width: 14rem;
  min-width: 8.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 6px 8px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--surface-2);
  background: var(--bg);
  color: var(--text);
}
.roster-team-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface, #fff));
}
.roster-boards.roster-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.roster-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.roster-board-pane .lineup-board {
  margin-top: 0;
}
@media (max-width: 859px) {
  .roster-boards.roster-compare { grid-template-columns: 1fr; }
}
.lineup-h2h-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  width: 100%;
  margin-top: var(--space-md);
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--surface-2));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.lineup-h2h-chip:hover {
  border-color: var(--accent);
}
.lineup-h2h-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lineup-h2h-chip-cta {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}
.lineup-h2h-chip-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.lineup-week-total {
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.lineup-week-total-proj {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.lineup-week-total-actual {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.lineup-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: baseline;
  justify-content: flex-end;
}
.lineup-panel-proj {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}
.lineup-board {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 860px) {
  .lineup-board { grid-template-columns: 1fr; }
}
.lineup-starters,
.lineup-bench {
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.lineup-starters {
  background: color-mix(in srgb, var(--surface, #fff) 88%, var(--accent) 6%);
}
.lineup-bench {
  background: color-mix(in srgb, var(--surface-2) 35%, transparent);
}
.lineup-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}
.lineup-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lineup-slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lineup-slot-row {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: var(--space-sm);
  align-items: center;
  min-height: 3.25rem;
  padding: 8px 10px;
  border: 1px solid var(--surface-2);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface, #fff);
  cursor: pointer;
}
.lineup-slot-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lineup-slot-row.empty {
  border-style: dashed;
  background: transparent;
}
.lineup-slot-row.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface, #fff));
}
.lineup-slot-row.targetable:not(.locked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--surface-2));
}
.lineup-slot-row.readonly {
  cursor: default;
}
.lineup-slot-row.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.lineup-slot-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.lineup-bench .lineup-slot-label {
  color: var(--accent);
}
.lineup-slot-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lineup-slot-copy {
  min-width: 0;
}
.lineup-player-name {
  font-weight: 600;
  line-height: 1.25;
}
.lineup-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.lineup-slot-empty {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
.lineup-bench-empty {
  margin-top: var(--space-sm);
  padding: 16px;
}

.empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--surface-2);
  border-radius: var(--radius);
}

/* Player click-to-view modal */
.player-name-link {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
}
.player-name-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.player-name-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.player-detail-overlay {
  align-items: flex-start;
  padding-top: 8vh;
}
.player-detail {
  width: min(620px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: 16px 18px 20px;
}
.player-detail-topbar {
  display: flex;
  justify-content: flex-end;
}
.player-detail-hero {
  display: flex;
  gap: 14px;
  align-items: center;
}
.player-detail-headshot-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.player-detail-headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--surface-2));
  display: block;
}
.player-detail-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.player-detail-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.player-detail-subtitle .school-mark {
  margin-left: 0;
}
.player-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.player-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  color: var(--accent);
}
.player-chip-fa {
  background: color-mix(in srgb, var(--accent-2) 14%, var(--surface-2));
  color: var(--accent-2);
}
.player-chip-portal {
  background: color-mix(in srgb, #f59e0b 10%, var(--surface-2));
  color: color-mix(in srgb, #fbbf24 70%, var(--muted));
  border-color: color-mix(in srgb, #f59e0b 22%, var(--surface-2));
}
.player-chip-rookie {
  background: color-mix(in srgb, var(--muted) 10%, var(--surface-2));
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  border-color: color-mix(in srgb, var(--muted) 28%, var(--surface-2));
}
.player-detail-section {
  margin-top: 18px;
}
.player-detail-heading {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.player-detail-bio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 0;
}
.player-detail-bio-item {
  background: var(--surface-2);
  border-radius: calc(var(--radius) - 2px);
  padding: 8px 10px;
}
.player-detail-bio-item dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.player-detail-bio-item dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.player-weekly {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-weekly-row {
  display: grid;
  grid-template-columns: 34px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.player-weekly-week {
  color: var(--muted);
  font-weight: 600;
}
.player-weekly-bar-wrap {
  background: var(--surface-2);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}
.player-weekly-bar {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
}
.player-weekly-pts {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}
.player-stat-cell {
  background: var(--surface-2);
  border-radius: calc(var(--radius) - 2px);
  padding: 8px 6px;
  text-align: center;
}
.player-stat-value {
  display: block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.player-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 2px;
}
.player-detail-table-wrap {
  overflow-x: auto;
}
.player-detail-table td,
.player-detail-table th {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.player-detail-error {
  padding: 18px 6px;
  text-align: center;
}
.player-detail-error p {
  color: var(--danger);
  margin: 0 0 12px;
}
.player-detail-error .row-actions {
  justify-content: center;
}
.player-detail-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}
.player-detail-skel {
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: player-skel 1.2s ease-in-out infinite;
}
.skel-hero { height: 72px; }
.skel-line { height: 14px; }
.skel-line.short { width: 55%; }
.skel-block { height: 120px; }
@keyframes player-skel {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.player-detail-empty {
  text-align: center;
  padding: 18px 0 6px;
}

@media (max-width: 640px) {
  .player-detail-overlay {
    padding: 0;
    align-items: stretch;
  }
  .player-detail {
    width: 100%;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-detail-skel { animation: none; }
}

.ops-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.ops-toolbar h2 {
  margin: 0;
}
.ops-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: var(--space-sm);
}
.ops-kpi {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  padding: var(--space-sm) var(--space-md);
}
.ops-kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.ops-kpi strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}
.ops-warehouse {
  margin: 0;
  font-size: 0.9rem;
}
.ops-warehouse.warn {
  color: var(--warn, #fbbf24);
}
.ops-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}
.ops-chart-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  padding: var(--space-md);
}
.ops-chart-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
}
.ops-chart-wrap {
  height: 180px;
  position: relative;
}
.ops-foot {
  margin-top: var(--space-sm);
}
