:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #191d21;
  --panel-2: #20262b;
  --border: #30373f;
  --text: #f4f6f8;
  --muted: #98a3ad;
  --amber: #f6b84a;
  --green: #2fc57b;
  --red: #ff5f56;
  --orange: #ff9e3d;
  --cyan: #48c7df;
  --blue: #4f8cff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.hidden {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
.button-link {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #242a30;
  color: var(--text);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  border-color: #4a5560;
  background: #2a3239;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

button.is-pending,
[role="button"].is-pending {
  cursor: progress;
  opacity: 0.72;
}

.primary {
  background: #0f8f58;
  border-color: #1dbb77;
}

.primary:hover {
  background: #10a565;
}

.danger,
.danger-link {
  border-color: rgba(255, 95, 86, 0.55);
  color: #ffd0cd;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #11161b;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(72, 199, 223, 0.16);
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 19, 21, 0.94);
  backdrop-filter: blur(12px);
}

body[data-page="board"] .top-strip {
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-cluster {
  min-width: 0;
}

.brand-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  max-width: min(420px, 48vw);
  gap: 8px;
  padding: 5px 6px 5px 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
}

.claim-center.is-claimed {
  border-color: rgba(72, 199, 223, 0.22);
  background: rgba(17, 22, 27, 0.78);
}

.claim-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.claimed-pill {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
}

button.claimed-pill {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.claim-link-center {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c4f6fc;
  cursor: pointer;
  text-decoration: none;
}

.claim-link-center:hover {
  background: transparent;
  color: var(--text);
}

.claim-clear-button {
  min-height: 26px;
  padding: 0 10px;
  border-color: rgba(152, 163, 173, 0.28);
  background: rgba(17, 22, 27, 0.72);
  color: #cbd5de;
  font-size: 11px;
  font-weight: 900;
}

.claim-clear-button:hover {
  border-color: rgba(255, 95, 86, 0.5);
  background: rgba(255, 95, 86, 0.12);
  color: #ffd0cd;
}

.claim-clear-icon {
  display: none;
}

.panel-drawer-live {
  display: none;
}

.test-pill,
.count-pill,
.connection-pill {
  border-radius: 999px;
  border: 1px solid rgba(246, 184, 74, 0.55);
  background: rgba(246, 184, 74, 0.12);
  color: #ffd891;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  letter-spacing: 0;
  white-space: nowrap;
}

.connection-pill {
  border-color: rgba(72, 199, 223, 0.5);
  background: rgba(72, 199, 223, 0.11);
  color: #a8eef8;
}

.connection-pill.connecting {
  border-color: rgba(246, 184, 74, 0.55);
  background: rgba(246, 184, 74, 0.12);
  color: #ffd891;
}

.connection-pill.latency-good {
  border-color: rgba(47, 197, 123, 0.58);
  background: rgba(47, 197, 123, 0.12);
  color: #b9edce;
}

.connection-pill.latency-warning {
  border-color: rgba(246, 184, 74, 0.62);
  background: rgba(246, 184, 74, 0.13);
  color: #ffd891;
}

.connection-pill.latency-bad {
  border-color: rgba(242, 96, 96, 0.68);
  background: rgba(242, 96, 96, 0.14);
  color: #ffc6c6;
}

.panel-summary-text {
  min-width: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.mobile-header-connection-pill {
  display: none;
}

.top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.top-link {
  color: #c4f6fc;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.top-link:hover {
  color: var(--text);
}

.top-icon-button {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(72, 199, 223, 0.36);
  background: rgba(72, 199, 223, 0.1);
  color: #c4f6fc;
  font-size: 12px;
  font-weight: 900;
}

.top-icon-button.muted-toggle {
  border-color: rgba(152, 163, 173, 0.28);
  background: rgba(152, 163, 173, 0.08);
  color: var(--muted);
}

.panel-hotdog-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
  border-color: rgba(72, 199, 223, 0.36);
  background: rgba(72, 199, 223, 0.1);
}

.panel-hotdog-button:hover,
.panel-hotdog-button.active {
  border-color: rgba(72, 199, 223, 0.62);
  background: rgba(72, 199, 223, 0.18);
}

.panel-hotdog-button .panel-menu-icon {
  width: 16px;
}

main {
  padding: 14px;
}

.board-grid,
.admin-grid {
  display: grid;
  gap: 14px;
}

#panel-menu-summary {
  color: #dce8ef;
  font-size: 12px;
  font-weight: 900;
}

.panel-control-panel {
  overflow: visible;
}

.panel-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.42);
  cursor: pointer;
  list-style: none;
}

.panel-menu-toggle::-webkit-details-marker {
  display: none;
}

.panel-menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.panel-menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #c4f6fc;
}

.panel-menu-title {
  flex: 1 1 auto;
  color: #eef7fb;
  font-size: 14px;
  font-weight: 950;
}

.panel-menu[open] .panel-menu-toggle {
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
}

.panel-control-grid,
.mobile-panel-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 6px;
  padding: 10px;
}

.panel-control-grid button,
.panel-control-grid .panel-drawer-link,
.mobile-panel-selector button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(152, 163, 173, 0.24);
  border-radius: 6px;
  background: rgba(36, 42, 48, 0.86);
  color: #cbd5de;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.panel-control-grid .panel-drawer-link:hover {
  border-color: rgba(72, 199, 223, 0.52);
  background: rgba(72, 199, 223, 0.1);
  color: #c4f6fc;
}

.panel-control-grid button.active,
.mobile-panel-selector button.active {
  border-color: rgba(72, 199, 223, 0.62);
  background: rgba(72, 199, 223, 0.14);
  color: #c4f6fc;
}

.panel-drawer-option {
  display: grid;
  min-width: 0;
  text-align: left;
}

.panel-drawer-option strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.panel-drawer-option small {
  margin-top: 2px;
  overflow: hidden;
  color: #7f8c96;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-menu-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(47, 197, 123, 0.2);
  color: #b9edce;
  font-size: 10px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.mobile-panel-backdrop,
.mobile-panel-sheet,
.mobile-panel-dock,
.panel-drawer-backdrop,
.panel-drawer {
  display: none;
}

.panel-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: block;
  background: rgba(5, 7, 9, 0.52);
  backdrop-filter: blur(2px);
}

.panel-drawer {
  position: fixed;
  top: 56px;
  left: 10px;
  z-index: 90;
  display: block;
  width: min(324px, calc(100vw - 20px));
  max-height: calc(100dvh - 70px);
  overflow: auto;
  border: 1px solid rgba(72, 199, 223, 0.28);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.panel-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 24, 28, 0.96);
}

.panel-drawer-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.panel-drawer-grid {
  grid-template-columns: 1fr;
}

.board-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

body.panel-players-hidden .player-panel,
body.panel-teams-hidden .teams-panel,
body.panel-drafted-hidden .drafted-panel,
body.panel-history-hidden .history-panel,
body.panel-admin-hidden .board-admin-panel,
body.panel-stats-hidden .draft-stats-panel,
body.panel-roster-hidden .team-contracts-panel,
body.panel-left-hidden .left-column,
body.panel-side-hidden .side-column {
  display: none;
}

body.panel-left-hidden:not(.panel-side-hidden) .board-grid {
  grid-template-columns: minmax(420px, 1.25fr) minmax(280px, 0.8fr);
}

body.panel-side-hidden:not(.panel-left-hidden) .board-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.25fr);
}

body.panel-left-hidden.panel-side-hidden .board-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.panel-left-hidden.panel-side-hidden .auction-column {
  width: min(860px, 100%);
  margin: 0 auto;
}

.left-column,
.auction-column {
  display: grid;
  gap: 14px;
}

.side-column {
  display: grid;
  gap: 14px;
}

.admin-grid {
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-column {
  max-width: 520px;
  margin: 32px auto;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-header,
.auction-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-header.compact {
  padding-bottom: 10px;
}

.connection-warning,
.you-lead-banner {
  margin: 10px 14px 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.connection-warning {
  border: 1px solid rgba(255, 158, 61, 0.52);
  background: rgba(255, 158, 61, 0.11);
  color: #ffdb9f;
}

.connection-warning.hidden,
.connection-warning:empty,
.you-lead-banner.hidden,
.you-lead-banner:empty {
  display: none !important;
}

.you-lead-banner {
  border: 1px solid rgba(47, 197, 123, 0.54);
  background: rgba(47, 197, 123, 0.12);
  color: #b9edce;
}

.team-draft-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(246, 184, 74, 0.1);
  color: #ffe6a8;
  font-size: 12px;
  font-weight: 850;
}

.team-draft-status.is-done {
  border: 1px solid rgba(152, 163, 173, 0.34);
  background: rgba(64, 72, 81, 0.4);
  color: #d2d9df;
}

.team-draft-status button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
}

.bid-panel.you-lead {
  border-color: rgba(47, 197, 123, 0.58);
}

.bid-panel.bid-unavailable {
  border-color: rgba(152, 163, 173, 0.34);
}

.bid-panel.bid-blocked {
  border-color: rgba(255, 95, 86, 0.64);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.eyebrow,
.metric-label,
.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.filters select {
  width: auto;
  min-width: 92px;
}

.list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.scroll-list {
  max-height: calc(100vh - 204px);
  overflow: auto;
}

.player-row,
.bid-row,
.team-row,
.drafted-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #273039;
  border-radius: 8px;
  background: #15191d;
}

.player-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.player-panel .filters {
  background: rgba(17, 22, 27, 0.3);
}

.player-panel #players-list {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 761px) {
  .player-panel #players-list {
    max-height: max(180px, calc(50vh - 102px));
    overflow: auto;
  }
}

.auction-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #dce8ef;
  font-variant-numeric: tabular-nums;
}

.auction-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 6px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.24);
  background: #171c20;
  color: #8997a2;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-transform: inherit;
  white-space: nowrap;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  background: rgba(72, 199, 223, 0.09);
  color: #c9eef3;
}

.table-sort-button.active {
  color: #d8f6f9;
}

.table-sort-indicator {
  flex: 0 0 auto;
  color: #6f7d87;
  font-size: 8px;
  line-height: 1;
}

.table-sort-button.active .table-sort-indicator {
  color: #72d5e3;
}

.auction-data-table tbody th,
.auction-data-table tbody td {
  min-width: 0;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.15);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.auction-data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.auction-data-table tbody tr:hover > * {
  background: rgba(72, 199, 223, 0.035);
}

.players-table .player-row {
  display: table-row;
  padding: 0;
  border: 0;
  background: transparent;
}

.players-table th:nth-child(1) { width: 40%; }
.players-table th:nth-child(2) { width: 10%; }
.players-table th:nth-child(3) { width: 12%; }
.players-table th:nth-child(4) { width: 14%; }
.players-table th:nth-child(5) { width: 24%; }

.players-table.can-nominate th:nth-child(1) { width: 33%; }
.players-table.can-nominate th:nth-child(2) { width: 9%; }
.players-table.can-nominate th:nth-child(3) { width: 10%; }
.players-table.can-nominate th:nth-child(4) { width: 11%; }
.players-table.can-nominate th:nth-child(5) { width: 17%; }
.players-table.can-nominate th:nth-child(6) { width: 20%; }

.players-table.show-value th:nth-child(1) { width: 25%; }
.players-table.show-value th:nth-child(2) { width: 8%; }
.players-table.show-value th:nth-child(3) { width: 9%; }
.players-table.show-value th:nth-child(4) { width: 10%; }
.players-table.show-value th:nth-child(5) { width: 10%; }
.players-table.show-value th:nth-child(6) { width: 12%; }
.players-table.show-value th:nth-child(7) { width: 26%; }

.players-table.can-nominate.show-value th:nth-child(1) { width: 21%; }
.players-table.can-nominate.show-value th:nth-child(2) { width: 7%; }
.players-table.can-nominate.show-value th:nth-child(3) { width: 8%; }
.players-table.can-nominate.show-value th:nth-child(4) { width: 9%; }
.players-table.can-nominate.show-value th:nth-child(5) { width: 9%; }
.players-table.can-nominate.show-value th:nth-child(6) { width: 9%; }
.players-table.can-nominate.show-value th:nth-child(7) { width: 17%; }
.players-table.can-nominate.show-value th:nth-child(8) { width: 20%; }

.players-table thead th,
.players-table tbody th,
.players-table tbody td {
  padding-right: 3px;
  padding-left: 3px;
}

.players-table-player {
  font-weight: 850;
}

.player-table-name,
.player-table-subtitle {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-table-name {
  color: #f2f5f7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
}

.player-table-subtitle {
  margin-top: 2px;
  color: #7f8c96;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.player-team-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.player-team-meta .nfl-team {
  flex: 0 0 auto;
}

.player-table-subtitle .nfl-team {
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9eabb5;
  font-size: 9px;
}

.player-table-subtitle .team-icon,
.player-table-subtitle .team-icon-fallback {
  width: 14px;
  height: 14px;
}

.players-table-number,
.players-table-history,
.players-table-previous {
  color: #aeb8c1;
  font-size: 11px;
  font-weight: 650;
}

.players-table-number,
.players-table-history {
  text-align: center !important;
}

.players-table .player-row > .player-heat-cell {
  background-color: hsl(var(--heat-hue) 58% 38% / var(--heat-alpha));
  transition: background-color 120ms ease, filter 120ms ease;
}

.players-table .player-row > .player-heat-cell-strong {
  background-color: hsl(var(--heat-hue) 70% 36% / var(--heat-alpha));
}

.players-table .player-row:hover > .player-heat-cell {
  filter: brightness(1.12);
}

.players-table thead th:nth-child(2) .table-sort-button,
.players-table thead th:nth-child(3) .table-sort-button,
.players-table-finish-head .table-sort-button,
.players-table-value-head .table-sort-button,
.players-table-par-head .table-sort-button {
  justify-content: center;
}

.players-table-action {
  text-align: right !important;
}

.players-table-action .nominate-button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 5px;
  border-color: rgba(72, 199, 223, 0.44);
  background: rgba(72, 199, 223, 0.1);
  color: #c4f6fc;
  font-size: 10px;
}

.reviewable-row {
  cursor: pointer;
}

.reviewable-row:hover,
.reviewable-row:focus-visible {
  border-color: rgba(72, 199, 223, 0.55);
  background: #172026;
}

.row-main {
  min-width: 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  min-width: 0;
}

/*
 * Player/team names use .primary-title so badges and logos can sit on the same
 * line without becoming the overflow target.
 */
.primary-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.position-chip {
  border-radius: 5px;
  padding: 3px 6px;
  background: #25313a;
  color: #dce8ef;
  font-size: 12px;
  font-weight: 800;
}

.position-chip {
  min-width: 30px;
  text-align: center;
}

.position-QB {
  background: rgba(255, 95, 86, 0.16);
  color: #ffc2be;
  border: 1px solid rgba(255, 95, 86, 0.5);
}

.position-RB {
  background: rgba(47, 197, 123, 0.16);
  color: #b9edce;
  border: 1px solid rgba(47, 197, 123, 0.5);
}

.position-WR {
  background: rgba(79, 140, 255, 0.16);
  color: #c7dcff;
  border: 1px solid rgba(79, 140, 255, 0.5);
}

.position-TE {
  background: rgba(246, 184, 74, 0.17);
  color: #ffe1a4;
  border: 1px solid rgba(246, 184, 74, 0.52);
}

.nfl-team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  border: 1px solid rgba(152, 163, 173, 0.22);
  border-radius: 999px;
  background: rgba(17, 22, 27, 0.72);
  color: #dce8ef;
  padding: 2px 7px 2px 4px;
  font-size: 11px;
  font-weight: 900;
}

.team-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  border: 0;
}

.team-icon-fallback {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #20262b;
  color: #dce8ef;
  font-size: 8px;
  font-weight: 900;
}

.metric-chip {
  border-radius: 5px;
  padding: 3px 7px;
  font-weight: 800;
  font-size: 12px;
}

.points-chip {
  color: #e5d2ff;
  background: rgba(170, 118, 255, 0.15);
}

.adp-chip {
  color: #f1c7e9;
  background: rgba(204, 112, 185, 0.15);
}

.finish-chip {
  color: #dfd2ff;
  background: rgba(151, 120, 255, 0.13);
}

.contract-chip {
  color: #c7dcff;
  background: rgba(79, 140, 255, 0.12);
}

.owner-chip {
  color: #ead9ff;
  background: rgba(185, 132, 216, 0.14);
}

.auction-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(72, 199, 223, 0.08), rgba(17, 19, 21, 0)),
    var(--panel);
}

.auction-panel.auction-paused {
  border-color: rgba(246, 184, 74, 0.72);
  box-shadow: 0 0 0 1px rgba(246, 184, 74, 0.2), var(--shadow);
}

.auction-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.auction-player-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.auction-title-block {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.auction-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
}

.auction-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.auction-headshot-shell {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(72, 199, 223, 0.32);
  border-radius: 8px;
  background: #11161b;
  overflow: hidden;
}

.auction-headshot-shell.hidden {
  display: none;
}

.auction-headshot-shell.hidden + .auction-title-block {
  grid-column: 1 / -1;
}

.auction-headshot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

#auction-subtitle {
  color: #cbd5de;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

#auction-subtitle .nfl-team {
  padding-top: 1px;
  padding-bottom: 1px;
}

#auction-player {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.timer {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 199, 223, 0.36);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.84);
  color: var(--cyan);
  font-size: 36px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(72, 199, 223, 0.08);
}

.timer-warning {
  color: #ffdb9f;
  border-color: rgba(255, 158, 61, 0.55);
  background: rgba(255, 158, 61, 0.11);
}

.timer-danger {
  color: #ffc2be;
  border-color: rgba(255, 95, 86, 0.65);
  background: rgba(255, 95, 86, 0.13);
}

.timer-expired {
  color: #ffc2be;
  border-color: rgba(255, 95, 86, 0.65);
  background: rgba(255, 95, 86, 0.13);
  animation: timer-expired-flash 650ms ease-in-out infinite alternate;
}

.mobile-auction-strip.timer-expired #mobile-strip-timer {
  animation: timer-expired-flash 650ms ease-in-out infinite alternate;
}

@keyframes timer-expired-flash {
  from {
    border-color: rgba(255, 95, 86, 0.62);
    background-color: rgba(255, 95, 86, 0.12);
    box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.18);
  }

  to {
    border-color: rgba(255, 95, 86, 0.98);
    background-color: rgba(255, 95, 86, 0.24);
    box-shadow: 0 0 0 4px rgba(255, 95, 86, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timer-expired,
  .mobile-auction-strip.timer-expired #mobile-strip-timer {
    animation: none;
  }
}

.timer-idle {
  color: var(--muted);
}

.timer-paused {
  color: #ffd891;
  border-color: rgba(246, 184, 74, 0.72);
  background: rgba(246, 184, 74, 0.13);
}

.pause-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-top: 1px solid rgba(246, 184, 74, 0.42);
  border-bottom: 1px solid rgba(246, 184, 74, 0.42);
  background: rgba(246, 184, 74, 0.15);
  color: #ffd891;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pause-banner.hidden {
  display: none;
}

.auction-bid-focus {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: rgba(17, 22, 27, 0.48);
}

.auction-bid-focus.show-value {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.auction-bid-focus > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(152, 163, 173, 0.2);
  border-radius: 7px;
  background: rgba(17, 22, 27, 0.68);
}

.auction-leading-card {
  background:
    linear-gradient(180deg, rgba(246, 184, 74, 0.12), rgba(17, 22, 27, 0.42)),
    rgba(17, 22, 27, 0.68);
}

.auction-leading-card #current-high-bid {
  color: #ffe5a6;
}

.auction-leading-card.leader-self,
.mobile-strip-stat.leader-self {
  border-color: rgba(47, 197, 123, 0.58);
  background:
    linear-gradient(180deg, rgba(47, 197, 123, 0.2), rgba(17, 22, 27, 0.5)),
    rgba(17, 22, 27, 0.68);
}

.auction-leading-card.leader-opponent,
.mobile-strip-stat.leader-opponent {
  border-color: rgba(255, 95, 86, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 95, 86, 0.18), rgba(17, 22, 27, 0.5)),
    rgba(17, 22, 27, 0.68);
}

.auction-leading-card.leader-self #current-high-bid,
.mobile-strip-stat.leader-self #mobile-strip-leader {
  color: #a8f0c6;
}

.auction-leading-card.leader-opponent #current-high-bid,
.mobile-strip-stat.leader-opponent #mobile-strip-leader {
  color: #ffb4ae;
}

.flash-update {
  animation: flash-update 720ms ease-out;
}

@keyframes flash-update {
  0% {
    border-color: rgba(72, 199, 223, 0.98);
    box-shadow: 0 0 0 0 rgba(72, 199, 223, 0.48);
  }
  45% {
    border-color: rgba(47, 197, 123, 0.88);
    box-shadow: 0 0 0 4px rgba(47, 197, 123, 0.18);
  }
  100% {
    box-shadow: none;
  }
}

.auction-beat-card {
  background:
    linear-gradient(180deg, rgba(47, 197, 123, 0.14), rgba(72, 199, 223, 0.08)),
    rgba(17, 22, 27, 0.68);
}

.auction-contract-card {
  background:
    linear-gradient(180deg, rgba(72, 199, 223, 0.12), rgba(17, 22, 27, 0.42)),
    rgba(17, 22, 27, 0.68);
}

.auction-contract-card #current-high-contract {
  color: #dffbff;
}

.auction-beat-card #current-beat-value {
  color: #eafff4;
}

.auction-max-bid-card {
  background: rgba(17, 22, 27, 0.68);
}

.auction-bonus-card {
  background:
    linear-gradient(180deg, rgba(47, 197, 123, 0.12), rgba(17, 22, 27, 0.42)),
    rgba(17, 22, 27, 0.68);
}

.auction-value-card {
  background:
    linear-gradient(180deg, rgba(151, 123, 238, 0.14), rgba(17, 22, 27, 0.42)),
    rgba(17, 22, 27, 0.68);
}

.auction-value-card strong {
  color: #ddd3ff;
}

.auction-max-bid-card #current-max-bid {
  color: #cbd5de;
}

.auction-max-bid-card.max-bid-pressure,
.mobile-strip-stat.max-bid-pressure {
  border-color: hsl(var(--max-bid-hue) 70% 52% / 0.58);
  background:
    linear-gradient(180deg, hsl(var(--max-bid-hue) 68% 42% / 0.22), rgba(17, 22, 27, 0.5)),
    rgba(17, 22, 27, 0.68);
}

.auction-max-bid-card.max-bid-pressure #current-max-bid,
.mobile-strip-stat.max-bid-pressure #mobile-strip-max-bid {
  color: hsl(var(--max-bid-hue) 82% 78%);
}

.auction-bonus-card #current-bonus-pct {
  color: #b9edce;
}

.auction-leading-card #current-high-bid,
.auction-contract-card #current-high-contract,
.auction-beat-card #current-beat-value,
.auction-max-bid-card #current-max-bid,
.auction-bonus-card #current-bonus-pct,
.auction-value-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-beat-card .metric-label,
.auction-contract-card .metric-label,
.auction-leading-card .metric-label,
.auction-max-bid-card .metric-label,
.auction-bonus-card .metric-label,
.auction-value-card .metric-label {
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1;
}

.bid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.offer-form {
  grid-template-columns: 1fr;
  gap: 10px;
}

.offer-form.bid-blocked {
  border-radius: 8px;
  background: rgba(255, 95, 86, 0.06);
  box-shadow: none;
}

.offer-form.bid-blocked .offer-salary-card,
.offer-form.bid-blocked .offer-contract-card {
  border-color: rgba(255, 95, 86, 0.2);
}

.offer-form.bid-unavailable {
  border-radius: 8px;
  background: rgba(64, 72, 81, 0.08);
  box-shadow: none;
}

.offer-form.bid-unavailable .offer-salary-card,
.offer-form.bid-unavailable .offer-contract-card {
  border-color: rgba(152, 163, 173, 0.16);
}

.bid-term-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.bid-term-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  padding: 12px;
}

.bid-term-help {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.bid-term-button {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 13px;
  border-color: rgba(47, 197, 123, 0.62);
  background: rgba(47, 197, 123, 0.14);
  color: #effff5;
  text-align: center;
}

.bid-term-button:hover {
  border-color: rgba(47, 197, 123, 0.92);
  background: rgba(47, 197, 123, 0.22);
}

.bid-term-button strong {
  min-width: 0;
  color: #fff;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.bid-term-button .bid-term-tcv {
  color: #c4f6d8;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bid-term-button.bid-unavailable {
  border-color: rgba(152, 163, 173, 0.3);
  background: rgba(64, 72, 81, 0.4);
  opacity: 1;
  box-shadow: none;
}

.bid-term-button.bid-unavailable:hover {
  border-color: rgba(152, 163, 173, 0.4);
  background: rgba(64, 72, 81, 0.48);
}

.bid-term-button.bid-unavailable strong,
.bid-term-button.bid-unavailable .bid-term-tcv {
  color: #aeb8c1;
}

.bid-term-button.bid-blocked {
  border-color: rgba(255, 95, 86, 0.68);
  background: rgba(255, 95, 86, 0.14);
  opacity: 1;
}

.bid-term-button.bid-blocked:hover {
  border-color: rgba(255, 95, 86, 0.9);
  background: rgba(255, 95, 86, 0.21);
}

.bid-term-button.bid-blocked strong,
.bid-term-button.bid-blocked .bid-term-tcv {
  color: #ffd0cd;
}

.offer-salary-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bid-salary-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  align-items: stretch;
  padding: 0 12px 12px;
}

.bid-salary-card .salary-info-grid {
  align-self: stretch;
}

.bid-salary-card .salary-info-item {
  align-content: center;
}

.offer-salary-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
}

.offer-salary-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offer-salary-title {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.offer-salary-card .stepper {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.offer-salary-card .stepper button {
  min-height: 58px;
  padding: 0;
  font-size: 22px;
  font-weight: 950;
}

.offer-salary-card .money-input {
  min-height: 58px;
}

.offer-salary-card .money-input span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.offer-salary-card .money-input input {
  min-height: 56px;
  padding-left: 0;
  font-size: 30px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.salary-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.salary-info-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid rgba(152, 163, 173, 0.2);
  border-radius: 7px;
  background: rgba(17, 22, 27, 0.54);
  text-align: center;
}

.salary-info-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.salary-info-item strong {
  color: #dffbff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.offer-salary-card.salary-room-blocked {
  border-color: rgba(152, 163, 173, 0.3);
  background: rgba(64, 72, 81, 0.28);
  color: #aeb8c1;
  box-shadow: none;
}

.offer-salary-card.salary-room-blocked > span,
.offer-salary-card.salary-room-blocked .salary-info-item span,
.offer-salary-card.salary-room-blocked .salary-info-item strong,
.offer-salary-card.salary-room-blocked .money-input span,
.offer-salary-card.salary-room-blocked .money-input input {
  color: #aeb8c1;
}

.offer-salary-card.salary-room-blocked .stepper button,
.offer-salary-card.salary-room-blocked .money-input,
.offer-salary-card.salary-room-blocked .salary-info-item {
  border-color: rgba(152, 163, 173, 0.24);
  background: rgba(17, 22, 27, 0.42);
  color: #aeb8c1;
  box-shadow: none;
}

.offer-salary-card.salary-room-blocked .money-input:focus-within {
  border-color: rgba(152, 163, 173, 0.32);
  box-shadow: 0 0 0 3px rgba(152, 163, 173, 0.1);
}

.offer-submit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.offer-submit-row .offer-actions {
  align-self: stretch;
}

.bid-form label > span,
.claim-form label > span,
.admin-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 6px;
}

.stepper button {
  touch-action: manipulation;
  user-select: none;
}

.stepper button.is-holding {
  border-color: rgba(72, 199, 223, 0.82);
  background: rgba(72, 199, 223, 0.2);
}

.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #11161b;
  overflow: hidden;
}

.money-input:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(72, 199, 223, 0.16);
}

.money-input span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 900;
}

.money-input input {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 5px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.segmented button.active {
  border-color: var(--cyan);
  background: rgba(72, 199, 223, 0.16);
  color: #c4f6fc;
}

.bid-value-box {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 197, 123, 0.45);
  border-radius: 8px;
  background: rgba(47, 197, 123, 0.1);
}

.offer-contract-card {
  padding: 2px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(152, 163, 173, 0.14);
  border-radius: 0;
  background: transparent;
}

.contract-value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bonus-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bid-value-box span,
.tcv-option span {
  color: #b9edce;
  font-size: 13px;
  font-weight: 800;
}

.bid-value-box strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.tcv-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tcv-option {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(47, 197, 123, 0.28);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.58);
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
}

.tcv-option:hover {
  border-color: rgba(72, 199, 223, 0.5);
  background: rgba(72, 199, 223, 0.1);
}

.tcv-option strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tcv-option.beats-leading {
  border-color: rgba(47, 197, 123, 0.76);
  background: rgba(47, 197, 123, 0.15);
}

.tcv-option.beats-leading strong {
  color: #e9fff2;
}

.tcv-option.short-leading {
  border-color: rgba(242, 96, 96, 0.68);
  background: rgba(242, 96, 96, 0.12);
}

.tcv-option.short-leading span {
  color: #ffc6c6;
}

.tcv-option.short-leading strong {
  color: #ffe1e1;
}

.tcv-option.active,
.tcv-option.active.beats-leading,
.tcv-option.active.short-leading {
  border-color: rgba(72, 199, 223, 0.94);
  background: rgba(72, 199, 223, 0.18);
  box-shadow: inset 0 0 0 1px rgba(232, 251, 255, 0.18);
}

.tcv-option-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  min-width: 0;
  text-align: center;
}

.tcv-option-contract,
.tcv-option-value {
  white-space: nowrap;
}

.tcv-option .tcv-option-value {
  color: #b9edce;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bid-button {
  min-height: 54px;
}

.bid-form > .bid-button {
  grid-column: 1 / -1;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bid-button {
  justify-content: center;
  gap: 5px;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.05;
}

.bid-button strong {
  color: #ffffff;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.bid-button span {
  color: #b9edce;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.bid-button .bid-button-offer {
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}

.bid-button .bid-button-bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(47, 197, 123, 0.34);
  border-radius: 999px;
  background: rgba(47, 197, 123, 0.12);
  color: #b9edce;
  font-size: 12px;
  font-weight: 950;
}

.bid-button {
  font-size: 18px;
  font-weight: 900;
}

.offer-actions .bid-button {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  min-height: 98px;
  padding: 12px 14px;
  gap: 7px;
}

.offer-actions .bid-button strong {
  font-size: 24px;
  line-height: 1;
}

.offer-actions .bid-button .nomination-submit-label {
  color: rgba(234, 255, 244, 0.82);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.bid-button.bid-blocked {
  border-color: rgba(255, 95, 86, 0.74);
  background: rgba(255, 95, 86, 0.16);
  color: #ffd0cd;
  opacity: 1;
}

.bid-button.bid-blocked:hover {
  border-color: rgba(255, 95, 86, 0.9);
  background: rgba(255, 95, 86, 0.22);
}

.bid-button.bid-blocked span {
  color: #ffc2be;
}

.bid-button.bid-unavailable {
  border-color: rgba(152, 163, 173, 0.3);
  background: rgba(64, 72, 81, 0.4);
  color: #aeb8c1;
  opacity: 1;
  box-shadow: none;
}

.bid-button.bid-unavailable:hover {
  border-color: rgba(152, 163, 173, 0.36);
  background: rgba(64, 72, 81, 0.44);
}

.bid-button.bid-unavailable strong,
.bid-button.bid-unavailable span {
  color: #aeb8c1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 19, 21, 0.78);
  backdrop-filter: blur(10px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  overflow: hidden;
}

.nomination-modal-clock {
  display: grid;
  min-width: 82px;
  padding: 7px 10px;
  border: 1px solid rgba(72, 199, 223, 0.36);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.72);
  text-align: center;
}

.nomination-modal-clock span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nomination-modal-clock strong {
  color: var(--cyan);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nomination-modal-clock.timer-warning strong {
  color: #ffdb9f;
}

.nomination-modal-clock.timer-danger strong,
.nomination-modal-clock.timer-expired strong {
  color: #ffc2be;
}

.nomination-modal-clock.timer-paused strong {
  color: #ffd891;
}

.nomination-modal-clock.timer-idle strong {
  color: var(--muted);
}

.bid-review-panel {
  width: min(680px, 100%);
}

.confirm-panel {
  width: min(440px, 100%);
}

.resume-draft-panel {
  width: min(760px, 100%);
}

.resume-draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.resume-draft-list {
  max-height: min(62vh, 560px);
  overflow: auto;
}

.resume-draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #273039;
  border-radius: 8px;
  background: #15191d;
}

.resume-draft-row.active {
  border-color: rgba(47, 197, 123, 0.42);
  background: rgba(47, 197, 123, 0.08);
}

.resume-draft-row.current {
  box-shadow: inset 3px 0 0 rgba(93, 232, 255, 0.72);
}

.resume-draft-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resume-draft-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.resume-draft-title strong {
  color: #f4f6f8;
  font-size: 16px;
  font-weight: 950;
}

.resume-draft-title span,
.resume-draft-status,
.resume-current-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.resume-draft-title span {
  border: 1px solid rgba(152, 163, 173, 0.22);
  background: rgba(17, 22, 27, 0.74);
  color: var(--muted);
}

.resume-current-pill {
  border: 1px solid rgba(93, 232, 255, 0.48);
  background: rgba(93, 232, 255, 0.14);
  color: #b9f5ff;
}

.resume-draft-status {
  border: 1px solid rgba(47, 197, 123, 0.34);
  background: rgba(47, 197, 123, 0.12);
  color: #b9edce;
}

.resume-draft-row.complete .resume-draft-status {
  border-color: rgba(152, 163, 173, 0.24);
  background: rgba(152, 163, 173, 0.08);
  color: var(--muted);
}

.resume-draft-main p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #dce8ef;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-draft-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.resume-draft-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-draft-row button {
  justify-content: center;
}

.resume-draft-error {
  color: #ffc2be;
}

.confirm-body {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: #dce8ef;
  font-size: 15px;
  line-height: 1.35;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px 14px;
}

.bid-review-summary {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.bid-review-list {
  max-height: min(56vh, 520px);
  overflow: auto;
}

.nomination-form {
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-strip,
.admin-actions,
.board-admin-actions,
.claim-actions,
.export-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.export-controls {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  gap: 8px;
  padding: 12px 12px 0;
}

.export-controls label {
  display: grid;
  gap: 6px;
}

.export-controls label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-admin-panel {
  border-color: rgba(72, 199, 223, 0.44);
}

.admin-only-box {
  background: #172026;
  box-shadow: 0 0 0 1px rgba(72, 199, 223, 0.12), var(--shadow);
}

.admin-only-header {
  align-items: center;
  background: rgba(72, 199, 223, 0.1);
}

.board-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px;
}

.board-admin-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(72, 199, 223, 0.18);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.54);
}

.board-admin-group > span {
  grid-column: 1 / -1;
  color: #a8eef8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.board-admin-times {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-admin-times > button {
  grid-column: 1 / -1;
}

.board-admin-actions button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

.timer-settings-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timer-settings-form small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.timer-settings-form > button {
  grid-column: 1 / -1;
}

.roster-override-form {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 150px) auto;
}

.return-fa-form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.timer-setting-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.timer-setting-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-setting-field input,
.timer-settings-form input {
  width: 100%;
  min-width: 0;
}

.board-admin-times .timer-setting-field input {
  min-height: 36px;
  padding-inline: 7px;
  text-align: center;
}

.board-admin-nominator select {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 36px;
}

.board-admin-nominator button {
  grid-column: 1 / -1;
}

.admin-strip {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #15191d;
}

.admin-console {
  max-width: 1360px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.admin-console > * {
  min-width: 0;
}

.admin-command-center,
.admin-live-panel,
.admin-data-panel,
.admin-connections-panel,
.admin-export-panel,
.audit-panel {
  grid-column: 1 / -1;
}

.admin-session-panel {
  grid-column: span 5;
}

.admin-timer-panel {
  grid-column: span 7;
}

.admin-command-center {
  position: sticky;
  top: 62px;
  z-index: 16;
  overflow: hidden;
  border-color: rgba(72, 199, 223, 0.34);
  background: rgba(20, 26, 30, 0.96);
  backdrop-filter: blur(12px);
}

.admin-command-more {
  display: block;
  grid-column: 1 / -1;
  overflow: hidden;
}

.admin-command-more summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--cyan);
  font-weight: 900;
  list-style-position: inside;
}

.admin-command-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 14px 12px;
}

.admin-command-more-grid > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(152, 163, 173, 0.16);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.62);
}

.admin-command-more-grid > span > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-command-more-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-command-title,
.admin-command-status-row,
.admin-command-metrics {
  padding: 12px 14px;
}

.admin-command-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.16);
}

.admin-command-status-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.16);
}

.admin-command-status-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-command-draft {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

#admin-command-status {
  min-width: 0;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-command-actions button,
.admin-command-actions .button-link {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.admin-command-metrics {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(92px, 0.55fr) minmax(160px, 1fr) minmax(120px, 0.7fr);
  gap: 8px;
}

.admin-command-metric,
.admin-current-tile {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(152, 163, 173, 0.18);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.62);
}

.admin-command-metric span,
.admin-current-tile span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.admin-command-metric strong,
.admin-current-tile strong {
  min-width: 0;
  overflow: hidden;
  color: #dce8ef;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-clock strong {
  color: var(--cyan);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.admin-command-center.timer-warning .admin-command-clock strong,
.admin-command-center.timer-paused .admin-command-clock strong {
  color: #ffdb9f;
}

.admin-command-center.timer-danger .admin-command-clock strong,
.admin-command-center.timer-expired .admin-command-clock strong,
.admin-command-center.disconnected #admin-command-status {
  color: #ffc2be;
}

.admin-command-health {
  padding-top: 0;
}

.admin-control-panel,
.admin-data-panel,
.admin-export-panel,
.admin-danger-panel {
  min-width: 0;
}

.admin-section-form {
  border-bottom: 0;
}

.admin-priority-actions {
  padding-bottom: 0;
}

.admin-current-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-current-bids {
  display: grid;
  gap: 6px;
}

.admin-current-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-current-heading strong {
  color: #dce8ef;
  font-size: 11px;
}

.admin-danger-panel {
  align-self: start;
}

.admin-danger-panel details {
  overflow: hidden;
}

.admin-danger-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-danger-panel summary::-webkit-details-marker {
  display: none;
}

.admin-danger-panel summary::after {
  content: "Open";
  border: 1px solid rgba(255, 95, 86, 0.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffc2be;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-danger-panel details[open] summary::after {
  content: "Close";
}

.admin-danger-panel summary > span {
  display: grid;
  gap: 2px;
}

.admin-danger-panel summary strong {
  color: #f4f6f8;
  font-size: 16px;
}

.admin-danger-panel .admin-actions {
  border-top: 1px solid var(--border);
  background: rgba(255, 95, 86, 0.06);
}

.draft-stats-panel {
  max-width: none;
  margin: 0;
  border-color: rgba(152, 163, 173, 0.22);
  background: rgba(20, 24, 28, 0.86);
}

.draft-stats-panel .panel-header {
  background: rgba(17, 22, 27, 0.38);
}

.draft-stats-modal {
  z-index: 98;
}

.draft-stats-modal-panel {
  width: min(1040px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border-color: rgba(246, 184, 74, 0.44);
  background: #171b1d;
}

.draft-stats-modal-panel .panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(23, 27, 29, 0.98);
}

.draft-stats-modal-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.draft-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.draft-stats-section {
  min-width: 0;
}

.draft-stats-section + .draft-stats-section {
  border-top: 1px solid rgba(152, 163, 173, 0.2);
}

.draft-stats-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 7px;
  background: rgba(17, 22, 27, 0.4);
}

.draft-stats-section-header h3 {
  margin: 0;
  color: #eef3f6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.draft-stats-section-header > span {
  color: #74828d;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.draft-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(17, 22, 27, 0.25);
}

.draft-scoreboard-stat {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 8px 9px;
  border-right: 1px solid rgba(152, 163, 173, 0.14);
  border-bottom: 1px solid rgba(152, 163, 173, 0.14);
}

.draft-scoreboard-stat:nth-child(4n) {
  border-right: 0;
}

.draft-scoreboard-stat:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.draft-scoreboard-stat > span,
.draft-award-copy > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.draft-scoreboard-stat > strong {
  min-width: 0;
  color: #f4f6f8;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-scoreboard-stat > small {
  min-width: 0;
  margin-top: 3px;
  color: #aab4bd;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-league-table-wrap {
  max-height: 286px;
  overflow: auto;
}

.draft-league-table th:nth-child(1) { width: 36%; }
.draft-league-table th:nth-child(2) { width: 13%; }
.draft-league-table th:nth-child(3) { width: 19%; }
.draft-league-table th:nth-child(4) { width: 14%; }
.draft-league-table th:nth-child(5) { width: 18%; }

.draft-league-table thead th:not(:first-child),
.draft-league-table tbody td {
  text-align: center;
}

.draft-league-table thead th:not(:first-child) .table-sort-button {
  justify-content: center;
}

.draft-league-table tbody th,
.draft-league-table tbody td {
  height: 36px;
  padding: 6px 5px;
}

.draft-league-table tbody th {
  color: #eef3f6;
  font-size: 11px;
  font-weight: 800;
}

.draft-league-table tbody th strong {
  display: inline-block;
  max-width: calc(100% - 22px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.draft-league-rank {
  display: inline-block;
  width: 18px;
  color: #7390a3;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.draft-league-number {
  color: #e2e8ec;
  font-size: 11px;
  font-weight: 700;
}

.draft-league-table tbody tr > .draft-league-heat {
  background-color: hsl(var(--stat-hue) 64% 42% / var(--stat-alpha));
  transition: filter 120ms ease;
}

.draft-league-table tbody tr:hover > .draft-league-heat {
  filter: brightness(1.14);
}

.draft-awards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(152, 163, 173, 0.14);
}

.draft-award-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 8px 10px;
  border-right: 1px solid rgba(152, 163, 173, 0.14);
  border-bottom: 1px solid rgba(152, 163, 173, 0.14);
  background: linear-gradient(90deg, hsl(var(--award-hue, 190) 60% 36% / 0.065), transparent 48%);
}

.draft-award-row:nth-child(2n) {
  border-right: 0;
}

.draft-award-row.money { --award-hue: 42; }
.draft-award-row.bully { --award-hue: 278; }
.draft-award-row.idiot { --award-hue: 8; }
.draft-award-row.overpay { --award-hue: 3; }
.draft-award-row.coward { --award-hue: 52; }
.draft-award-row.value { --award-hue: 145; }
.draft-award-row.fire { --award-hue: 22; }
.draft-award-row.talking { --award-hue: 195; }
.draft-award-row.bargain { --award-hue: 132; }
.draft-award-row.contract { --award-hue: 330; }
.draft-award-row.window { --award-hue: 210; }

.draft-award-icon {
  font-size: 20px;
  line-height: 1;
}

.draft-award-copy {
  display: grid;
  min-width: 0;
}

.draft-award-copy > strong {
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: #eef3f6;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-award-copy > small {
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: #82909a;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-award-metric {
  min-width: 0;
  max-width: 112px;
  margin-left: 8px;
  color: #dbe5eb;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-align: right;
}

.team-contracts-panel {
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-color: rgba(72, 199, 223, 0.24);
  background: rgba(20, 24, 28, 0.88);
}

.team-contracts-panel.collapsed {
  margin-bottom: 0;
}

.team-contracts-header {
  align-items: center;
  background: rgba(17, 22, 27, 0.42);
}

.team-contracts-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-contracts-controls select {
  min-width: 0;
}

.team-contracts-controls button {
  min-height: 38px;
  font-size: 12px;
  font-weight: 900;
}

.team-contracts-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.team-contracts-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.team-contracts-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(72, 199, 223, 0.2);
  border-radius: 999px;
  background: rgba(72, 199, 223, 0.08);
  color: #dce8ef;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.team-contracts-summary span:first-child {
  border-color: rgba(47, 197, 123, 0.32);
  background: rgba(47, 197, 123, 0.1);
  color: #b9edce;
}

.team-contracts-table-wrap {
  max-height: min(54vh, 560px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.team-contracts-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  color: #dce8ef;
  font-size: 11px;
  table-layout: fixed;
}

.team-contract-player-col {
  width: 30%;
}

.team-contract-pos-col {
  width: 8%;
}

.team-contract-status-col {
  width: 14%;
}

.team-contract-year-col {
  width: 12%;
}

.team-contract-value-col {
  width: 10%;
}

.team-contracts-table.show-value .team-contract-player-col {
  width: 19%;
}

.team-contracts-table.show-value .team-contract-pos-col {
  width: 6%;
}

.team-contracts-table.show-value .team-contract-status-col {
  width: 11%;
}

.team-contracts-table.show-value .team-contract-year-col {
  width: 11%;
}

.team-contracts-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 3px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.24);
  background: #171c20;
  color: #8997a2;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-contracts-table thead .table-sort-button {
  justify-content: center;
}

.team-contracts-table thead .roster-table-groups th {
  padding-top: 7px;
  padding-bottom: 3px;
  border-bottom: 0;
}

.team-contracts-table thead .roster-table-groups th[rowspan] {
  border-bottom: 1px solid rgba(152, 163, 173, 0.24);
  vertical-align: middle;
}

.team-contracts-table thead .roster-table-groups th:last-child {
  border-left: 1px solid rgba(152, 163, 173, 0.22);
}

.team-contracts-table thead .roster-table-years th {
  padding-top: 1px;
  padding-bottom: 6px;
  color: #687680;
  font-size: 7.5px;
}

.team-contracts-table thead th:first-child .table-sort-button {
  justify-content: flex-start;
  text-align: left;
}

.team-contracts-table tfoot th,
.team-contracts-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 7px 3px;
  border-top: 1px solid rgba(72, 199, 223, 0.22);
  background: #182126;
  color: #f4f6f8;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}

.team-contracts-table th:first-child,
.team-contracts-table tfoot th:first-child {
  text-align: left;
}

.team-contracts-table thead th:first-child {
  background: #20262b;
}

.team-contracts-table tfoot th:first-child {
  background: #182126;
}

.team-contracts-table tbody th {
  text-align: left;
}

.team-contracts-table tbody tr {
  cursor: pointer;
}

.team-contracts-table tbody tr:focus-visible {
  outline: 2px solid rgba(72, 199, 223, 0.8);
  outline-offset: -2px;
}

.team-contracts-table tbody tr:hover th,
.team-contracts-table tbody tr:hover td,
.team-contracts-table tbody tr.selected th,
.team-contracts-table tbody tr.selected td {
  background: rgba(72, 199, 223, 0.08);
}

.team-contracts-table tbody tr.selected th,
.team-contracts-table tbody tr.selected td {
  box-shadow: inset 0 0 0 999px rgba(246, 184, 74, 0.05);
}

.team-contracts-table tbody th strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-contracts-table tbody th small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-contracts-table tbody td {
  color: #f2f5f7;
  font-size: 11px;
  font-weight: 550;
  text-align: center;
}

.team-contracts-table .team-contract-value {
  text-align: center;
  font-weight: 650;
}

.team-contracts-table tbody td:nth-child(3),
.team-contracts-table tbody td:nth-child(4),
.team-contracts-table tfoot td:nth-child(3),
.team-contracts-table tfoot td:nth-child(4) {
  border-left: 1px solid rgba(152, 163, 173, 0.09);
}

.team-contracts-table .team-contract-position {
  color: var(--muted);
  text-align: center;
}

.team-contracts-table .team-contract-status {
  color: #cbd5de;
  text-align: center;
}

.team-contracts-table .current-year {
  color: #e4fbff;
  box-shadow: inset 1px 0 0 rgba(72, 199, 223, 0.16), inset -1px 0 0 rgba(72, 199, 223, 0.16);
}

.team-contracts-table .salary-unknown {
  color: rgba(152, 163, 173, 0.72);
}

.team-contracts-table thead .current-year {
  background: #193039;
  color: #a8eef8;
}

.team-contracts-table tfoot th,
.team-contracts-table tfoot td,
.team-contracts-table tfoot .current-year {
  background: #182126;
}

.team-contracts-table tr.draft-row th,
.team-contracts-table tr.draft-row td {
  background: rgba(47, 197, 123, 0.06);
}

.team-contracts-table tr.draft-row th:first-child {
  background:
    linear-gradient(90deg, rgba(47, 197, 123, 0.12), rgba(21, 25, 29, 0.96)),
    #15191d;
}

.team-contracts-table tr.draft-row small {
  color: #b9edce;
}

.team-contracts-table tr.selected.draft-row th,
.team-contracts-table tr.selected.draft-row td {
  box-shadow: inset 0 0 0 999px rgba(47, 197, 123, 0.05);
}

.team-contracts-table tbody tr > .roster-heat-cell {
  background-color: hsl(var(--heat-hue) 58% 38% / var(--heat-alpha));
  transition: background-color 120ms ease, filter 120ms ease;
}

.team-contracts-table tbody tr:hover > .roster-heat-cell {
  filter: brightness(1.12);
}

.admin-strip input {
  width: 160px;
}

.compact-list {
  gap: 7px;
}

.history-panel .list {
  gap: 4px;
  padding: 8px;
}

.history-panel .panel-header.compact {
  padding-bottom: 8px;
}

#drafted-list {
  max-height: min(38vh, 360px);
  overflow: auto;
  align-content: start;
}

.bid-history-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #273039;
  border-radius: 8px;
  background: #15191d;
}

.bid-history-table-row {
  display: grid;
  grid-template-columns: minmax(92px, 1.25fr) minmax(58px, 0.62fr) minmax(88px, 0.8fr) minmax(74px, 0.62fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border-top: 1px solid rgba(152, 163, 173, 0.12);
  color: #dce8ef;
  font-size: 12px;
}

.bid-history-table-row:first-child {
  border-top: 0;
}

.bid-history-table-head {
  min-height: 28px;
  background: #20262b;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bid-history-table-head span:not(:first-child) {
  text-align: right;
}

.bid-history-bidder,
.bid-history-contract,
.bid-history-tcv,
.bid-history-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-history-bidder {
  color: #f4f6f8;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bid-history-contract,
.bid-history-tcv {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bid-history-tcv {
  color: #a8eef8;
}

.bid-history-time {
  color: var(--muted);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bid-history-table-row.leading-bid-row {
  background:
    linear-gradient(90deg, rgba(47, 197, 123, 0.15), rgba(17, 22, 27, 0)),
    #15191d;
}

.bid-history-table-row.newest-bid-row:not(.leading-bid-row) {
  background:
    linear-gradient(90deg, rgba(72, 199, 223, 0.11), rgba(17, 22, 27, 0)),
    #15191d;
}

.bid-history-table-row.winning-bid-row {
  background:
    linear-gradient(90deg, rgba(246, 184, 74, 0.13), rgba(17, 22, 27, 0)),
    #15191d;
}

.drafted-table {
  overflow: visible;
}

.drafted-table .bid-history-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.drafted-table-row {
  grid-template-columns: minmax(96px, 1.2fr) minmax(62px, 0.72fr) minmax(68px, 0.78fr) minmax(64px, 0.62fr);
}

.drafted-table-row.reviewable-row:hover,
.drafted-table-row.reviewable-row:focus-visible {
  background:
    linear-gradient(90deg, rgba(72, 199, 223, 0.1), rgba(17, 22, 27, 0)),
    #15191d;
  outline: 1px solid rgba(72, 199, 223, 0.36);
  outline-offset: -1px;
}

.drafted-table-player,
.drafted-table-contract,
.drafted-table-winner,
.drafted-table-tcv {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drafted-table-player {
  display: grid;
  gap: 2px;
}

.drafted-table-player strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drafted-table-player small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drafted-table-contract {
  color: #f4f6f8;
  font-size: 15px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.drafted-table-winner {
  color: #dce8ef;
  font-weight: 900;
  text-align: right;
}

.drafted-table-tcv {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #a8eef8;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.drafted-table-tcv > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drafted-reopen-button {
  min-height: 24px;
  padding: 0 7px;
  font-size: 10px;
}

.team-row,
.drafted-row,
.bid-row {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.team-row {
  grid-template-columns: 1fr;
  gap: 9px;
}

.drafted-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.contract-focus {
  color: #f4f6f8;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.small-action {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.bid-chip-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bid-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.salary-bid-chip {
  border: 1px solid rgba(72, 199, 223, 0.4);
  background: rgba(72, 199, 223, 0.12);
  color: #a8eef8;
}

.heat-bid-chip {
  border: 1px solid hsla(var(--heat-hue), 62%, 55%, 0.48);
  background: hsla(var(--heat-hue), 62%, 42%, 0.15);
  color: hsl(var(--heat-hue), 80%, 78%);
}

.bonus-chip {
  border: 1px solid rgba(47, 197, 123, 0.52);
  background: rgba(47, 197, 123, 0.14);
  color: #b9edce;
}

.bonus-chip-empty {
  border-color: rgba(155, 168, 178, 0.28);
  background: rgba(155, 168, 178, 0.09);
  color: var(--muted);
}

.cap-chip {
  border-color: rgba(72, 199, 223, 0.45);
  background: rgba(72, 199, 223, 0.12);
  color: #a8eef8;
}

.cap-chip-warning {
  border-color: rgba(242, 96, 96, 0.58);
  background: rgba(242, 96, 96, 0.12);
  color: #ffc6c6;
}

.team-row.nomination-ineligible {
  opacity: 0.72;
}

.team-secondary-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: #929ea8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.team-bonus-summary,
.team-eligibility-text {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.team-bonus-summary {
  color: #83c9a2;
}

.team-bonus-summary::before,
.team-eligibility-text::before {
  content: "·";
  color: #58636d;
}

.team-eligibility-text {
  color: #c69a82;
}

.team-live-status {
  min-width: max-content;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 22px;
}

.team-hide-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  min-height: 22px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #7f8a94;
  font-size: 10px;
  opacity: 0.55;
}

.team-hide-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-hide-button:hover {
  border-color: rgba(255, 95, 86, 0.46);
  background: rgba(255, 95, 86, 0.1);
  color: #ffd0cd;
  opacity: 1;
}

.hidden-teams-box {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 1px dashed rgba(152, 163, 173, 0.28);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.42);
}

.hidden-teams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  padding: 10px;
}

.hidden-teams-head::-webkit-details-marker {
  display: none;
}

.hidden-teams-head::after {
  content: "+";
  color: #7f8a94;
  font-size: 14px;
}

.hidden-teams-box[open] .hidden-teams-head::after {
  content: "−";
}

.hidden-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 10px;
}

.hidden-team-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-color: rgba(152, 163, 173, 0.28);
  background: rgba(64, 72, 81, 0.28);
  color: #dce8ef;
  font-size: 11px;
  font-weight: 900;
}

.hidden-team-chip small {
  color: #aeb8c1;
  font-size: 10px;
  font-weight: 950;
}

.hidden-team-chip:hover {
  border-color: rgba(72, 199, 223, 0.5);
  background: rgba(72, 199, 223, 0.12);
}

.nomination-slot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 22px;
  border: 0;
  border-radius: 0;
  color: #75828d;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

/* Teams is a semantic table at every breakpoint. */
.teams-panel #teams-list {
  display: block;
  padding: 0;
}

.teams-table .teams-col-team { width: 32%; }
.teams-table .teams-col-roster { width: 9%; }
.teams-table .teams-col-bid { width: 12%; }
.teams-table .teams-col-salary { width: 13%; }

.teams-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.teams-table thead th {
  position: static;
  padding-right: 3px;
  padding-left: 3px;
  text-align: center;
}

.teams-table thead .table-sort-button {
  justify-content: center;
}

.teams-table thead tr:first-child th {
  padding-top: 7px;
  padding-bottom: 3px;
  border-bottom: 0;
}

.teams-table thead tr:first-child th + th,
.teams-table thead tr:last-child th:first-child,
.teams-table thead tr:last-child th:nth-child(3),
.teams-table thead tr:last-child th:nth-child(5) {
  border-left: 1px solid rgba(152, 163, 173, 0.22);
}

.teams-table thead tr:last-child th {
  padding-top: 1px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(152, 163, 173, 0.24);
  color: #687680;
  font-size: 7.5px;
}

.teams-table thead tr:first-child th[rowspan] {
  border-bottom: 1px solid rgba(152, 163, 173, 0.24);
  text-align: left;
  vertical-align: middle;
}

.teams-table thead tr:first-child th[rowspan] .table-sort-button {
  justify-content: flex-start;
}

.teams-table .team-row {
  display: table-row;
  padding: 0;
  border: 0;
  background: transparent;
}

.teams-table tbody th,
.teams-table tbody td {
  padding: 7px 2px;
}

.teams-table tbody th {
  white-space: normal;
}

.teams-table tbody td {
  color: #f2f5f7;
  font-size: 12px;
  font-weight: 550;
}

.teams-table tbody td:nth-child(2),
.teams-table tbody td:nth-child(4),
.teams-table tbody td:nth-child(6) {
  border-left: 1px solid rgba(152, 163, 173, 0.09);
}

.teams-table .team-row.nominating > * {
  background: rgba(246, 184, 74, 0.07);
}

.teams-table .team-row.next-nominator > * {
  background: rgba(72, 199, 223, 0.025);
}

.teams-table .team-row.nominating > :first-child {
  box-shadow: inset 3px 0 0 rgba(246, 184, 74, 0.72);
}

.teams-table .team-row.next-nominator > :first-child {
  box-shadow: inset 3px 0 0 rgba(72, 199, 223, 0.58);
}

.teams-table-team {
  position: relative;
  overflow: hidden;
  font-weight: 850;
}

.team-table-primary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.team-table-primary .primary-title {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-table .nomination-slot {
  width: 18px;
  height: auto;
  min-height: 0;
  justify-items: end;
  padding-right: 2px;
  font-size: 9px;
}

.teams-table .team-secondary-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 3px;
  padding-left: 21px;
  padding-right: 21px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.05;
}

.teams-table .team-secondary-line > :first-child::before {
  display: none;
}

.teams-table .team-bonus-summary,
.teams-table .team-eligibility-text {
  flex: 0 1 auto;
  max-width: 46%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-table .team-row-long-bonus .team-table-primary {
  padding-right: 21px;
}

.teams-table .team-row-long-bonus .team-secondary-line {
  padding-right: 2px;
}

.teams-table .team-row-long-bonus .team-bonus-summary {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.teams-table .team-live-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  margin-left: 2px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(47, 197, 123, 0.12);
  font-size: 8px;
  line-height: 1.05;
}

.teams-table-number {
  text-align: center !important;
}

.teams-table .team-row > .team-heat-cell {
  background-color: hsl(var(--heat-hue) 58% 38% / var(--heat-alpha));
  transition: background-color 120ms ease, filter 120ms ease;
}

.teams-table .team-row:hover > .team-heat-cell {
  filter: brightness(1.12);
}

.teams-table .team-hide-button {
  position: absolute;
  top: auto;
  right: 1px;
  bottom: 3px;
  transform: none;
  width: 24px;
  min-width: 24px;
}

.teams-table .team-row-long-bonus .team-hide-button {
  top: 3px;
  bottom: auto;
}

.teams-table .team-row .team-hide-button {
  opacity: 0.45;
}

.teams-table .team-row:hover .team-hide-button,
.teams-table .team-row:focus-within .team-hide-button {
  opacity: 0.9;
}

.teams-table + .hidden-teams-box {
  margin: 7px 8px 8px;
}

@media (max-width: 360px) {
  .teams-table .team-secondary-line {
    padding-left: 2px;
  }

  .table-sort-button:not(.active) .table-sort-indicator {
    display: none;
  }

  .players-table.can-nominate .players-table-finish-head,
  .players-table.can-nominate .players-table-history {
    display: none;
  }

  .players-table.can-nominate th:nth-child(1) { width: 38%; }
  .players-table.can-nominate th:nth-child(2) { width: 10%; }
  .players-table.can-nominate th:nth-child(3) { width: 12%; }
  .players-table.can-nominate th:nth-child(5) { width: 20%; }
  .players-table.can-nominate th:nth-child(6) { width: 20%; }

  .players-table.can-nominate.show-value th:nth-child(1) { width: 28%; }
  .players-table.can-nominate.show-value th:nth-child(2) { width: 8%; }
  .players-table.can-nominate.show-value th:nth-child(3) { width: 9%; }
  .players-table.can-nominate.show-value th:nth-child(4) { width: 10%; }
  .players-table.can-nominate.show-value th:nth-child(5) { width: 10%; }
  .players-table.can-nominate.show-value th:nth-child(7) { width: 15%; }
  .players-table.can-nominate.show-value th:nth-child(8) { width: 20%; }
}

.turn-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 184, 74, 0.55);
  border-radius: 999px;
  background: rgba(246, 184, 74, 0.14);
  color: #ffd891;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.turn-badge.next {
  border-color: rgba(72, 199, 223, 0.5);
  background: rgba(72, 199, 223, 0.12);
  color: #a8eef8;
}

.turn-badge.blocked {
  border-color: rgba(255, 95, 86, 0.46);
  background: rgba(255, 95, 86, 0.12);
  color: #ffc2be;
}

.badge-row {
  gap: 6px;
}

.heat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid hsla(var(--heat-hue), 62%, 55%, 0.45);
  border-radius: 999px;
  background: hsla(var(--heat-hue), 62%, 42%, 0.13);
  color: hsl(var(--heat-hue), 80%, 78%);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.heat-badge span {
  color: rgba(244, 246, 248, 0.68);
  font-weight: 800;
}

.heat-badge strong {
  color: inherit;
}

.team-connected {
  color: var(--green);
}

.divider {
  height: 1px;
  margin: 4px 12px;
  background: var(--border);
}

.claim-form,
.admin-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.claim-modal-panel {
  width: min(420px, calc(100vw - 28px));
}

.claim-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.admin-nominator-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.admin-auth-bar {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.admin-form.stacked {
  grid-template-columns: 1fr;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.checkbox-row span {
  margin: 0;
}

.admin-current {
  padding: 0 14px 14px;
}

.admin-health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.admin-actions + .admin-health {
  padding-top: 0;
}

.admin-health-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(152, 163, 173, 0.2);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.58);
}

.admin-health-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.admin-health-item strong {
  min-width: 0;
  overflow: hidden;
  color: #dce8ef;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.admin-health-item.healthy {
  border-color: rgba(47, 197, 123, 0.36);
  background: rgba(47, 197, 123, 0.09);
}

.admin-health-item.warning {
  border-color: rgba(255, 158, 61, 0.48);
  background: rgba(255, 158, 61, 0.11);
}

.admin-connections-panel {
  grid-column: 1 / -1;
}

.admin-connections-list {
  max-height: 320px;
  overflow: auto;
}

.admin-connection-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(110px, 150px) minmax(180px, 220px) minmax(240px, 1.3fr) 74px;
  gap: 10px;
  padding: 0 10px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-connection-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(110px, 150px) minmax(180px, 220px) minmax(240px, 1.3fr) 74px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #273039;
  border-radius: 8px;
  background: #15191d;
}

.admin-connection-row.unclaimed {
  border-color: rgba(246, 184, 74, 0.34);
  background: rgba(246, 184, 74, 0.06);
}

.admin-connection-user {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-connection-status {
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid rgba(47, 197, 123, 0.32);
  border-radius: 999px;
  background: rgba(47, 197, 123, 0.12);
  color: #b9edce;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-connection-row.unclaimed .admin-connection-status {
  border-color: rgba(246, 184, 74, 0.42);
  background: rgba(246, 184, 74, 0.12);
  color: #ffe6a8;
}

.admin-connection-user strong,
.admin-connection-ip,
.admin-connection-time,
.admin-connection-agent {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-connection-user strong {
  color: #f4f6f8;
  font-size: 13px;
  font-weight: 950;
}

.admin-connection-ip,
.admin-connection-time {
  color: #dce8ef;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.admin-connection-agent {
  padding: 5px 7px;
  border: 1px solid rgba(152, 163, 173, 0.18);
  border-radius: 6px;
  background: rgba(17, 22, 27, 0.74);
  color: var(--muted);
  font-size: 11px;
}

.admin-kick-button {
  justify-content: center;
}

.admin-connection-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-panel {
  grid-column: 1 / -1;
}

.audit-filters {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, auto) auto;
  align-items: center;
}

.audit-blocked-filter {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(152, 163, 173, 0.22);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.54);
}

.audit-log-list {
  max-height: 460px;
  overflow: auto;
}

.audit-row {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #273039;
  border-radius: 8px;
  background: #15191d;
}

.audit-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-action {
  font-weight: 900;
}

.audit-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.audit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-detail {
  border: 1px solid rgba(152, 163, 173, 0.2);
  border-radius: 999px;
  background: rgba(17, 22, 27, 0.72);
  color: #dce8ef;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.audit-detail span {
  color: var(--muted);
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 80;
  width: max-content;
  max-width: min(620px, calc(100vw - 28px));
  padding: 14px 18px;
  border: 1px solid rgba(246, 184, 74, 0.78);
  border-radius: 8px;
  background: #2a2418;
  color: #fff2cf;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(246, 184, 74, 0.16);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.award-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 92;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  width: fit-content;
  max-width: min(760px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid rgba(47, 197, 123, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 197, 123, 0.24), rgba(246, 184, 74, 0.18)),
    #121a18;
  color: #eefbf3;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(47, 197, 123, 0.13);
  font-size: 14px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.award-banner.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.award-banner-kicker,
.award-banner-contract {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.award-banner-kicker {
  background: rgba(47, 197, 123, 0.2);
  color: #98ffca;
}

.award-banner strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.award-banner-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.award-banner-main span {
  min-width: 0;
  overflow: hidden;
  color: #dce8ef;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.award-banner-contract {
  background: rgba(246, 184, 74, 0.2);
  color: #ffe5a6;
  font-variant-numeric: tabular-nums;
}

.bid-receipt {
  position: fixed;
  top: 128px;
  right: 14px;
  z-index: 94;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 7px 10px;
  width: min(440px, calc(100vw - 28px));
  padding: 12px 12px;
  border: 1px solid rgba(47, 197, 123, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 197, 123, 0.2), rgba(72, 199, 223, 0.12)),
    #121a18;
  color: #eefbf3;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(47, 197, 123, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.bid-receipt.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bid-receipt.outbid {
  border-color: rgba(255, 95, 86, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 95, 86, 0.22), rgba(246, 184, 74, 0.12)),
    #1f1514;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(255, 95, 86, 0.12);
}

.bid-receipt.nomination {
  border-color: rgba(246, 184, 74, 0.76);
  background:
    linear-gradient(90deg, rgba(246, 184, 74, 0.24), rgba(72, 199, 223, 0.14)),
    #1d1a12;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(246, 184, 74, 0.16);
}

.bid-receipt.draft-ended {
  border-color: rgba(246, 184, 74, 0.82);
  background:
    linear-gradient(90deg, rgba(246, 184, 74, 0.3), rgba(47, 197, 123, 0.18)),
    #201b12;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.46), 0 0 0 4px rgba(246, 184, 74, 0.18);
}

.draft-finale-explosion {
  position: fixed;
  inset: 0;
  z-index: 110;
  overflow: hidden;
  pointer-events: none;
}

.draft-finale-explosion span {
  position: absolute;
  left: var(--finale-x);
  top: 48%;
  font-size: clamp(22px, 4vw, 48px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  opacity: 0;
  animation: draft-finale-burst 2.8s cubic-bezier(0.12, 0.72, 0.24, 1) var(--finale-delay) both;
}

@keyframes draft-finale-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 20vh, 0) scale(0.2) rotate(0deg);
  }

  14% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--finale-drift), -68vh, 0) scale(1.15) rotate(var(--finale-spin));
  }
}

@media (prefers-reduced-motion: reduce) {
  .draft-finale-explosion span {
    animation-duration: 1ms;
  }
}

.bid-receipt-kicker {
  grid-row: span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 76px;
  border-radius: 8px;
  background: rgba(47, 197, 123, 0.16);
  color: #98ffca;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.bid-receipt.outbid .bid-receipt-kicker {
  background: rgba(255, 95, 86, 0.16);
  color: #ffc2be;
}

.bid-receipt.nomination .bid-receipt-kicker {
  background: rgba(246, 184, 74, 0.18);
  color: #ffe6a8;
}

.bid-receipt.draft-ended .bid-receipt-kicker {
  background: rgba(246, 184, 74, 0.22);
  color: #fff0b8;
}

.bid-receipt strong,
.bid-receipt span:not(.bid-receipt-kicker),
.bid-receipt small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-receipt strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.bid-receipt span:not(.bid-receipt-kicker) {
  color: #dce8ef;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.bid-receipt small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bid-receipt button {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  color: #dce8ef;
}

.mobile-auction-strip {
  display: none;
}

@media (min-width: 1041px) and (max-width: 1500px) {
  main {
    padding: 10px;
  }

  .top-strip {
    gap: 8px;
    padding: 8px 12px;
  }

  .claimed-pill {
    font-size: 16px;
  }

  .claim-clear-button {
    min-height: 26px;
  }

  .board-grid {
    grid-template-columns: minmax(230px, 0.68fr) minmax(440px, 1.58fr) minmax(240px, 0.74fr);
    gap: 10px;
  }

  body.panel-left-hidden:not(.panel-side-hidden) .board-grid {
    grid-template-columns: minmax(440px, 1.55fr) minmax(240px, 0.74fr);
  }

  body.panel-side-hidden:not(.panel-left-hidden) .board-grid {
    grid-template-columns: minmax(230px, 0.68fr) minmax(440px, 1.58fr);
  }

  .auction-column {
    gap: 10px;
  }

  .panel-header,
  .auction-head {
    padding: 11px;
  }

  .auction-head {
    gap: 10px;
  }

  .auction-player-layout {
    grid-template-columns: auto minmax(260px, 1fr);
    gap: 10px;
  }

  .auction-headshot-shell {
    width: 84px;
    height: 84px;
  }

  .auction-badges {
    margin: 0;
  }

  #auction-player {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.03;
    overflow-wrap: normal;
    word-break: normal;
  }

  #auction-subtitle {
    font-size: 13px;
  }

  .timer {
    min-width: 88px;
    min-height: 84px;
    font-size: 36px;
  }

  .auction-bid-focus > div {
    min-height: 52px;
    padding: 8px;
  }

  .auction-beat-card #current-beat-value {
    font-size: 17px;
  }

  .auction-leading-card #current-high-bid,
  .auction-contract-card #current-high-contract,
  .auction-max-bid-card #current-max-bid,
  .auction-bonus-card #current-bonus-pct {
    font-size: 17px;
  }

  .filters,
  .list,
  .bid-form {
    padding: 9px;
  }

  .filters {
    grid-template-columns: minmax(96px, 1fr) minmax(74px, 0.5fr) minmax(104px, 0.7fr);
    gap: 6px;
  }

  .filters input,
  .filters select {
    min-height: 36px;
    padding: 0 9px;
    font-size: 13px;
  }

  .row-title {
    gap: 6px;
  }

  .row-meta {
    gap: 5px;
  }

  .offer-submit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-actions .bid-button {
    min-height: 98px;
  }
}

@media (min-width: 761px) and (max-height: 900px) {
  main {
    padding-top: 10px;
  }

  .top-strip {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .claim-kicker {
    font-size: 9px;
  }

  .claimed-pill {
    font-size: 16px;
  }

  .claim-clear-button {
    min-height: 24px;
    font-size: 10px;
  }

  .panel-header,
  .auction-head {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .scroll-list {
    max-height: calc(100vh - 174px);
  }

  .auction-head {
    gap: 10px;
  }

  .auction-headshot-shell {
    width: 78px;
    height: 78px;
  }

  .auction-badges {
    margin: 0;
  }

  #auction-player {
    font-size: clamp(30px, 3.1vw, 44px);
    overflow-wrap: normal;
    word-break: normal;
  }

  #auction-subtitle {
    font-size: 13px;
  }

  .timer {
    min-width: 82px;
    min-height: 78px;
    font-size: 34px;
  }

  .auction-bid-focus > div {
    min-height: 50px;
    padding: 8px;
  }

  .auction-beat-card #current-beat-value {
    font-size: 17px;
  }

  .auction-leading-card #current-high-bid,
  .auction-contract-card #current-high-contract,
  .auction-max-bid-card #current-max-bid,
  .auction-bonus-card #current-bonus-pct {
    font-size: 17px;
  }

  .bid-form,
  .list,
  .filters {
    padding: 9px;
  }

  .player-row,
  .team-row,
  .bid-row,
  .drafted-row {
    padding: 8px;
  }

  .offer-contract-card,
  .offer-salary-card {
    padding: 10px;
  }

  .offer-salary-card .stepper button,
  .offer-salary-card .money-input {
    min-height: 48px;
  }

  .offer-salary-card .money-input input {
    min-height: 46px;
    font-size: 25px;
  }

  .offer-submit-row {
    gap: 8px;
  }

  .offer-actions .bid-button {
    min-height: 92px;
  }

  .tcv-option {
    padding: 8px;
  }

}

@media (max-width: 1040px) {
  .board-grid {
    grid-template-columns: 1fr;
  }

  .left-column,
  .auction-column,
  .side-column {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-session-panel,
  .admin-timer-panel {
    grid-column: 1 / -1;
  }

  .admin-command-status-row {
    grid-template-columns: 1fr;
  }

  .admin-command-actions {
    justify-content: flex-start;
  }

  .admin-command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-current-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-connection-head {
    display: none;
  }

  .admin-connection-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 74px;
    align-items: center;
  }

  .admin-connection-user {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-connection-ip {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-connection-time {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-connection-agent {
    grid-column: 2;
    grid-row: 2;
  }

  .admin-kick-button,
  .admin-connection-empty {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.mobile-panel-open,
  body.panel-drawer-open {
    overflow: hidden;
  }

  .top-strip {
    grid-template-columns: minmax(132px, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
  }

  body[data-page="board"] .top-strip {
    grid-template-columns: auto minmax(132px, 1fr) minmax(0, auto);
  }

  body[data-page="board"] .top-meta,
  body[data-page="admin"] .top-meta {
    display: none;
  }

  .panel-hotdog-button {
    width: 30px;
    min-width: 30px;
    min-height: 28px;
  }

  .panel-hotdog-button .panel-menu-icon {
    width: 14px;
  }

  body[data-page="board"] .brand-cluster,
  body[data-page="admin"] .brand-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .brand-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .test-pill,
  .connection-pill {
    font-size: 10px;
    padding: 4px 6px;
  }

  body[data-page="board"] .mobile-header-connection-pill,
  body[data-page="admin"] .mobile-header-connection-pill {
    display: inline-flex;
    margin-top: 3px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .notification-stack {
    position: fixed;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 96;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    pointer-events: none;
  }

  .notification-stack .toast,
  .notification-stack .award-banner,
  .notification-stack .bid-receipt {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    margin: 0;
    transform: none;
  }

  .notification-stack .toast {
    display: none;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
  }

  .notification-stack .toast.visible {
    display: block;
    transform: none;
  }

  .award-banner {
    display: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
    width: 100%;
    padding: 7px 8px;
    font-size: 11px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  }

  .award-banner.visible {
    display: grid;
    transform: none;
  }

  .bid-receipt {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 7px;
    padding: 7px 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  }

  .bid-receipt-kicker {
    min-width: 52px;
    padding: 0 6px;
    font-size: 9px;
  }

  .bid-receipt strong {
    font-size: 13px;
  }

  .bid-receipt span:not(.bid-receipt-kicker),
  .bid-receipt small {
    font-size: 10px;
  }

  .bid-receipt:not(.nomination):not(.draft-ended) small {
    display: none;
  }

  .bid-receipt.nomination {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 8px;
    border-width: 2px;
    background:
      linear-gradient(120deg, rgba(246, 184, 74, 0.3), rgba(72, 199, 223, 0.16)),
      #1d1a12;
  }

  .bid-receipt.nomination .bid-receipt-kicker {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    min-width: 0;
    padding: 4px 7px;
  }

  .bid-receipt.nomination strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.08;
    white-space: normal;
  }

  .bid-receipt.nomination span:not(.bid-receipt-kicker) {
    grid-column: 1;
    grid-row: 3;
    color: #fff1c3;
    line-height: 1.22;
    white-space: normal;
  }

  .bid-receipt.nomination small {
    grid-column: 1;
    grid-row: 4;
    color: #c9f6fb;
    line-height: 1.2;
    white-space: normal;
  }

  .bid-receipt.nomination button {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
  }

  .award-banner strong {
    font-size: 13px;
  }

  .award-banner-main {
    grid-column: auto;
    grid-row: auto;
    justify-items: start;
    text-align: left;
  }

  .award-banner-main span {
    max-width: 100%;
    font-size: 10px;
  }

  .claim-center {
    min-width: 0;
    width: auto;
    max-width: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
  }

  .claim-kicker {
    display: none;
  }

  .claimed-pill {
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    line-height: 1;
  }

  .claim-clear-button {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    font-size: 10px;
  }

  .claim-clear-text {
    display: none;
  }

  .claim-clear-icon {
    display: inline;
    font-size: 16px;
    line-height: 1;
  }

  .top-meta {
    max-width: none;
    flex-wrap: nowrap;
    gap: 5px;
    font-size: 11px;
  }

  .top-link {
    font-size: 11px;
  }

  .top-icon-button {
    min-height: 24px;
    padding: 0 6px;
    font-size: 10px;
  }

  .panel-drawer {
    top: calc(44px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #11161a;
    box-shadow: none;
  }

  .panel-drawer-backdrop {
    top: calc(44px + env(safe-area-inset-top));
    background: #0f1316;
    backdrop-filter: none;
  }

  .panel-drawer-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(152, 163, 173, 0.16);
  }

  .panel-drawer-head {
    min-height: 54px;
    padding: 8px 12px;
    background: #171c20;
  }

  .panel-drawer-head .eyebrow {
    display: none;
  }

  .panel-drawer-head h2 {
    margin: 0;
    font-size: 17px;
  }

  .panel-drawer-head [data-action="close-panel-drawer"] {
    min-width: 94px;
    border-color: rgba(47, 197, 123, 0.42);
    background: rgba(47, 197, 123, 0.11);
    color: #b9edce;
    font-size: 10px;
  }

  .panel-drawer-grid {
    align-content: start;
    gap: 0;
    min-height: 0;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    overflow: auto;
  }

  .panel-drawer-grid > button,
  .panel-drawer-grid > .panel-drawer-link {
    min-height: 58px;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid rgba(152, 163, 173, 0.15);
    border-radius: 0;
    background: transparent;
  }

  .panel-drawer-grid > .mobile-main-only-panel-option {
    display: none;
  }

  .panel-drawer-grid > button:hover,
  .panel-drawer-grid > button.active,
  .panel-drawer-grid > .panel-drawer-link:hover {
    background: rgba(72, 199, 223, 0.07);
  }

  .panel-drawer-option strong {
    font-size: 14px;
  }

  .panel-drawer-option small {
    margin-top: 4px;
    font-size: 10px;
  }

  .mobile-panel-backdrop {
    position: fixed;
    top: calc(44px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 82;
    display: block;
    background: #0f1316;
    backdrop-filter: none;
  }

  .mobile-panel-sheet {
    position: fixed;
    inset: calc(44px + env(safe-area-inset-top)) 0 0;
    z-index: 84;
    display: block;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    transform: none;
  }

  .mobile-panel-sheet-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #11161a;
    box-shadow: none;
    pointer-events: auto;
  }

  .mobile-panel-sheet-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: #171c20;
  }

  .mobile-panel-grabber {
    display: none;
  }

  .mobile-panel-sheet-header h2 {
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-panel-heading-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }

  .mobile-panel-heading-row .count-pill {
    max-width: 170px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .mobile-panel-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
  }

  .mobile-panel-nomination-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 19px;
    padding: 2px 6px;
    border: 1px solid rgba(72, 199, 223, 0.42);
    border-radius: 999px;
    background: rgba(72, 199, 223, 0.1);
    color: #c4f6fc;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-panel-nomination-clock[hidden] {
    display: none;
  }

  .mobile-panel-nomination-clock strong {
    color: var(--cyan);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  .mobile-panel-nomination-clock.timer-warning strong {
    color: #ffdb9f;
  }

  .mobile-panel-nomination-clock.timer-danger strong,
  .mobile-panel-nomination-clock.timer-expired strong {
    color: #ffc2be;
  }

  .mobile-workspace-nav,
  .mobile-workspace-bid {
    min-width: 58px;
    min-height: 34px;
    padding: 0 9px;
    border-color: rgba(72, 199, 223, 0.36);
    background: rgba(72, 199, 223, 0.1);
    color: #c4f6fc;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-workspace-bid {
    width: 74px;
    min-width: 74px;
    border-color: rgba(47, 197, 123, 0.42);
    background: rgba(47, 197, 123, 0.11);
    color: #b9edce;
    font-size: 9px;
    line-height: 1.05;
    white-space: normal;
  }

  .mobile-panel-selector {
    display: none;
  }

  .mobile-panel-selector button {
    display: grid;
    justify-items: center;
    min-width: 74px;
    min-height: 42px;
    padding: 6px;
    font-size: 11px;
  }

  .mobile-panel-selector .panel-menu-badge {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .mobile-panel-content {
    min-height: 0;
    overflow: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    background: #11161a;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-panel-content > .panel {
    display: block;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-panel-content > .panel .panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(20, 24, 28, 0.98);
  }

  .mobile-panel-content > .panel:not(.team-contracts-panel) > .panel-header {
    display: none;
  }

  .mobile-panel-content > .player-panel .scroll-list,
  .mobile-panel-content > .teams-panel .compact-list,
  .mobile-panel-content > .drafted-panel .compact-list {
    max-height: none;
  }

  .mobile-panel-content > .player-panel .filters {
    position: sticky;
    top: 0;
    z-index: 4;
    border-bottom: 1px solid rgba(152, 163, 173, 0.18);
    background: #151a1e;
  }

  .mobile-panel-content > .drafted-panel #drafted-list {
    max-height: none;
    overflow: visible;
  }

  .teams-table .team-secondary-line {
    flex-wrap: wrap;
    gap: 2px 4px;
    overflow: visible;
  }

  .teams-table .team-bonus-summary {
    flex: 0 0 auto;
    max-width: none;
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
  }

  .teams-table .team-eligibility-text {
    flex: 1 1 0;
    max-width: 100%;
  }

  .auction-column > .history-panel {
    display: block;
  }

  .bid-history-table-row {
    grid-template-columns: minmax(68px, 1fr) minmax(58px, 0.56fr) minmax(70px, 0.7fr) minmax(58px, 0.58fr);
    gap: 6px;
    padding: 7px 8px;
    font-size: 11px;
  }

  #drafted-list {
    max-height: calc(100vh - 154px);
  }

  .drafted-table-row {
    grid-template-columns: minmax(92px, 1fr) minmax(58px, 0.56fr) minmax(62px, 0.62fr) minmax(50px, 0.5fr);
  }

  .drafted-table-player strong {
    font-size: 11px;
  }

  .drafted-table-contract {
    font-size: 13px;
  }

  .drafted-reopen-button {
    min-height: 22px;
    padding: 0 5px;
  }

  .bid-history-table-head {
    font-size: 9px;
  }

  .admin-command-center {
    top: 42px;
    max-height: 220px;
  }

  .admin-command-title {
    display: none;
  }

  .admin-command-title,
  .admin-command-status-row,
  .admin-command-metrics {
    padding: 10px;
  }

  #admin-command-status {
    font-size: 15px;
    white-space: normal;
  }

  .admin-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-command-actions button,
  .admin-command-actions .button-link {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
  }

  .admin-command-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-command-metrics .admin-command-metric:nth-child(n + 4) {
    display: none;
  }

  .admin-current-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-metric,
  .admin-current-tile {
    padding: 8px;
  }

  .admin-command-health-desktop {
    display: none;
  }

  .admin-command-more {
    display: block;
    grid-column: 1 / -1;
  }

  .admin-command-more summary {
    cursor: pointer;
    color: var(--cyan);
    font-weight: 900;
  }

  .admin-command-more-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0 10px 10px;
  }

  .admin-command-more-grid > span {
    display: grid;
    gap: 3px;
    padding: 8px;
    border-radius: 7px;
    background: rgba(17, 22, 27, 0.68);
  }

  .admin-command-more-grid > span > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-form,
  .admin-auth-bar,
  .timer-settings-form,
  .roster-override-form,
  .return-fa-form,
  .admin-nominator-form {
    grid-template-columns: 1fr;
  }

  #nomination-modal {
    align-items: start;
    place-items: start center;
    overflow-y: auto;
    padding: max(8px, env(safe-area-inset-top)) 10px calc(86px + env(safe-area-inset-bottom));
  }

  #nomination-modal .modal-panel {
    width: min(560px, 100%);
    max-height: calc(100vh - 104px);
    max-height: min(72dvh, calc(100dvh - 104px));
    overflow: auto;
  }

  #nomination-modal .panel-header.compact {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  #nomination-modal .nomination-form {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .draft-stats-panel {
    margin-bottom: 0;
  }

  .team-contracts-panel {
    margin-bottom: 0;
  }

  .team-contracts-header {
    display: grid;
    gap: 10px;
  }

  .team-contracts-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
  }

  #toggle-team-contracts-inactive {
    grid-column: 1 / -1;
  }

  .team-contracts-controls select {
    min-width: 0;
  }

  .team-contracts-body {
    padding: 10px;
  }

  .team-contracts-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .team-contracts-summary span {
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .team-contracts-table-wrap {
    max-height: 58vh;
  }

  .team-contracts-table {
    width: 100%;
    min-width: 100%;
    font-size: 10px;
  }

  .team-contract-player-col {
    width: 30%;
  }

  .team-contract-pos-col {
    width: 8%;
  }

  .team-contract-status-col {
    width: 14%;
  }

  .team-contract-year-col {
    width: 12%;
  }

  .team-contracts-table thead th,
  .team-contracts-table tbody th,
  .team-contracts-table tbody td,
  .team-contracts-table tfoot th,
  .team-contracts-table tfoot td {
    padding-right: 2px;
    padding-left: 2px;
  }

  .team-contracts-table .table-sort-button:not(.active) .table-sort-indicator {
    display: none;
  }

  .draft-stats-modal {
    padding: 10px;
    align-items: start;
    place-items: start center;
  }

  .draft-stats-modal-panel {
    max-height: calc(100vh - 20px);
  }

  .draft-stats-modal-subhead {
    display: grid;
    align-items: start;
  }

  .draft-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-scoreboard-stat:nth-child(2n) {
    border-right: 0;
  }

  .draft-scoreboard-stat:nth-child(4n) {
    border-right: 0;
  }

  .draft-scoreboard-stat:nth-last-child(-n + 4) {
    border-bottom: 1px solid rgba(152, 163, 173, 0.14);
  }

  .draft-scoreboard-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .draft-awards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .draft-award-row {
    border-right: 0;
  }

  .resume-draft-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resume-draft-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-draft-row button {
    width: 100%;
  }

  main {
    padding: 10px;
  }

  .mobile-auction-strip {
    position: sticky;
    top: 42px;
    z-index: 18;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: center;
    margin: -2px 0 10px;
    padding: 8px;
    border: 1px solid rgba(72, 199, 223, 0.34);
    border-radius: 8px;
    background: rgba(17, 22, 27, 0.94);
    color: #dce8ef;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .mobile-strip-photo-shell {
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(72, 199, 223, 0.3);
    border-radius: 7px;
    background: #11161b;
  }

  .mobile-strip-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .mobile-strip-photo-shell.hidden + .mobile-strip-player-card {
    grid-column: 1 / 3;
  }

  .mobile-strip-player-card {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
  }

  .mobile-strip-meta-row {
    display: grid;
    align-items: center;
    gap: 3px 5px;
    min-width: 0;
  }

  .mobile-strip-metrics {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-strip-metrics .metric-chip {
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 5px;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mobile-strip-previous-owner {
    flex: 1 1 auto;
    min-width: 0;
  }

  #mobile-strip-player,
  #mobile-strip-meta,
  #mobile-strip-leader,
  #mobile-strip-max-bid,
  #mobile-strip-bonus,
  #mobile-strip-contract,
  #mobile-strip-tcv,
  #mobile-strip-ppg-dollar,
  #mobile-strip-par-dollar,
  #mobile-strip-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mobile-strip-player {
    color: #f4f6f8;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.04;
  }

  #mobile-strip-meta {
    color: #cbd5de;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.05;
  }

  #mobile-strip-meta .nfl-team {
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aebbc4;
    font-size: 9px;
  }

  #mobile-strip-meta .team-icon,
  #mobile-strip-meta .team-icon-fallback {
    width: 14px;
    height: 14px;
  }

  .mobile-strip-clock-card,
  .mobile-strip-stat {
    min-width: 0;
    border: 1px solid rgba(152, 163, 173, 0.2);
    border-radius: 7px;
    background: rgba(17, 22, 27, 0.68);
  }

  .mobile-strip-value-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .mobile-strip-value-stat {
    border-color: rgba(151, 123, 238, 0.32);
    background:
      linear-gradient(180deg, rgba(151, 123, 238, 0.14), rgba(17, 22, 27, 0.42)),
      rgba(17, 22, 27, 0.68);
  }

  #mobile-strip-ppg-dollar,
  #mobile-strip-par-dollar {
    color: #ddd3ff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
  }

  .mobile-strip-clock-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 56px;
    min-height: 46px;
    padding: 4px 6px;
    border-color: rgba(72, 199, 223, 0.36);
  }

  .mobile-strip-clock-card span,
  .mobile-strip-stat span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  #mobile-strip-timer {
    color: var(--cyan);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
  }

  .mobile-strip-bid-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(50px, 0.66fr) minmax(62px, 0.74fr) minmax(50px, 0.66fr) minmax(58px, 0.78fr);
    gap: 5px;
    min-width: 0;
  }

  .mobile-strip-stat {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 38px;
    padding: 5px 6px;
  }

  #mobile-strip-leader {
    color: #ffe5a6;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
  }

  #mobile-strip-max-bid {
    color: #cbd5de;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
  }

  #mobile-strip-bonus {
    color: #b9edce;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  #mobile-strip-contract {
    color: #dffbff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
  }

  #mobile-strip-tcv {
    color: #eafff4;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
  }

  #mobile-strip-status {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  #mobile-strip-status:empty {
    display: none;
  }

  .mobile-auction-strip.timer-warning #mobile-strip-timer,
  .mobile-auction-strip.timer-paused #mobile-strip-timer {
    color: #ffdb9f;
  }

  .mobile-auction-strip.timer-danger #mobile-strip-timer,
  .mobile-auction-strip.timer-expired #mobile-strip-timer,
  .mobile-auction-strip.disconnected #mobile-strip-status {
    color: #ffc2be;
  }

  .board-grid,
  .left-column,
  .auction-column,
  .side-column,
  .admin-grid {
    gap: 10px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-connection-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
  }

  .admin-connection-user,
  .admin-connection-ip,
  .admin-connection-time,
  .admin-connection-agent,
  .admin-kick-button,
  .admin-connection-empty {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-connection-head {
    display: none;
  }

  .auction-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .auction-panel {
    display: none;
  }

  .auction-player-layout {
    gap: 8px;
  }

  .auction-headshot-shell {
    width: 66px;
    height: 66px;
  }

  .auction-badges {
    gap: 4px;
    margin: 7px 0 6px;
  }

  #auction-subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  h1 {
    font-size: 30px;
  }

  #auction-player {
    font-size: 31px;
  }

  .timer {
    min-width: 76px;
    min-height: 66px;
    font-size: 28px;
  }

  .auction-bid-focus {
    display: none;
  }

  .offer-submit-row,
  .offer-actions {
    grid-template-columns: 1fr;
  }

  .offer-actions .bid-button {
    min-height: 92px;
    padding: 9px 10px;
    gap: 3px;
  }

  .offer-actions .bid-button strong {
    font-size: 23px;
  }

  .bid-form,
  .filters,
  .admin-form,
  .board-admin-actions,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .tcv-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .offer-contract-card {
    padding: 10px;
  }

  .tcv-option {
    min-height: 56px;
    padding: 7px 4px;
    text-align: center;
  }

  .tcv-option span {
    font-size: 11px;
  }

  .tcv-option strong {
    font-size: 11px;
    line-height: 1;
  }

  .tcv-option-title {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
  }

  .tcv-option .tcv-option-value {
    font-size: 9px;
  }

  .scroll-list {
    max-height: none;
  }

  .mobile-panel-content > .panel > .list,
  .mobile-panel-content > .panel > .compact-list {
    gap: 6px;
    padding: 8px;
  }

  .mobile-panel-content > .player-panel .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .mobile-panel-content > .player-panel .filters input {
    grid-column: 1 / -1;
  }

  .mobile-panel-content > .player-panel .filters input,
  .mobile-panel-content > .player-panel .filters select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .mobile-panel-content > .player-panel .player-row button[data-action="nominate"] {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 3px;
    font-size: 9px;
  }

  .mobile-panel-content > .draft-stats-panel .draft-scoreboard-stat {
    min-height: 58px;
    padding: 6px 8px;
  }

  .mobile-panel-content > .draft-stats-panel .draft-scoreboard-stat > strong {
    font-size: 15px;
  }

  .mobile-panel-content > .draft-stats-panel .draft-league-table tbody th,
  .mobile-panel-content > .draft-stats-panel .draft-league-table tbody td {
    padding-right: 3px;
    padding-left: 3px;
  }

  .mobile-panel-content > .draft-stats-panel .draft-league-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .mobile-panel-content > .draft-stats-panel .draft-award-row {
    min-height: 60px;
    padding: 7px 8px;
  }

  .mobile-panel-content > .draft-stats-panel .draft-award-copy > small {
    max-width: 190px;
  }

  .mobile-panel-content > .team-contracts-panel .team-contracts-header {
    gap: 6px;
    padding: 8px;
  }

  .mobile-panel-content > .team-contracts-panel .team-contracts-header > h2,
  .mobile-panel-content > .team-contracts-panel #toggle-team-contracts {
    display: none;
  }

  .mobile-panel-content > .team-contracts-panel .team-contracts-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .mobile-panel-content > .team-contracts-panel #toggle-team-contracts-inactive {
    grid-column: auto;
  }

  .mobile-panel-content > .team-contracts-panel .team-contracts-controls select,
  .mobile-panel-content > .team-contracts-panel .team-contracts-controls button {
    min-height: 34px;
    font-size: 11px;
  }

  .mobile-panel-content > .team-contracts-panel .team-contracts-body {
    padding: 8px;
  }

}

@media (max-width: 760px) {
  .bid-panel .bid-form {
    gap: 7px;
    padding: 8px;
  }

  .bid-term-actions {
    gap: 6px;
  }

  .bid-term-column {
    gap: 6px;
    padding: 8px;
  }

  .bid-term-button {
    gap: 3px;
    min-height: 64px;
    padding: 7px 5px;
    text-align: center;
  }

  .bid-term-button strong {
    font-size: 17px;
  }

  .bid-term-button .bid-term-tcv {
    font-size: 11px;
  }

  .bid-salary-card {
    grid-template-columns: 1fr;
    padding: 0 8px 8px;
  }
}

/* Compact contract-offer controls shared by bidding and nomination. */
.bid-panel-header {
  align-items: center;
}

.offer-limit-summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.offer-limit-summary strong {
  color: #dffbff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bid-salary-card,
.compact-salary-card {
  grid-template-columns: auto minmax(240px, 360px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 0;
}

.manual-salary-label,
.bid-form label > .manual-salary-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.bid-salary-card .stepper,
.compact-salary-card .stepper {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.bid-salary-card .stepper button,
.compact-salary-card .stepper button,
.bid-salary-card .money-input,
.compact-salary-card .money-input {
  min-height: 44px;
}

.bid-salary-card .money-input input,
.compact-salary-card .money-input input {
  min-height: 42px;
  font-size: 22px;
}

.nomination-form {
  gap: 8px;
}

.nomination-limit-summary {
  justify-self: end;
  padding: 0 2px;
}

.nomination-form .offer-contract-card {
  padding: 0;
  border-bottom: 0;
}

.nomination-form .tcv-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.nomination-form .tcv-option {
  min-height: 64px;
  padding: 8px;
  text-align: center;
}

.nomination-form .tcv-option-title {
  display: grid;
  justify-items: center;
  gap: 0;
}

.nomination-form .tcv-option-contract {
  font-size: 16px;
}

.nomination-submit-actions .bid-button {
  height: auto;
  min-height: 54px;
  padding: 8px 12px;
  gap: 3px;
}

.nomination-submit-actions .bid-button strong {
  font-size: 16px;
}

@media (max-width: 760px) {
  .offer-limit-summary {
    font-size: 9px;
  }

  .offer-limit-summary strong {
    font-size: 11px;
  }

  .bid-salary-card,
  .compact-salary-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 0;
  }

  .manual-salary-label,
  .bid-form label > .manual-salary-label {
    font-size: 10px;
  }

  .bid-salary-card .stepper,
  .compact-salary-card .stepper {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 4px;
  }

  .nomination-limit-summary {
    justify-self: center;
  }

  .nomination-form .tcv-options {
    gap: 6px;
  }

  .nomination-form .tcv-option-contract {
    font-size: 14px;
  }
}

@media (min-width: 1041px) {
  .bid-panel .bid-form {
    gap: 8px;
    padding: 12px;
  }

  .bid-term-actions {
    gap: 8px;
  }

  .bid-term-button {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 0 18px;
    text-align: left;
  }

  .bid-term-button .bid-term-contract {
    justify-self: start;
    font-size: 18px;
  }

  .bid-term-button .bid-term-tcv {
    justify-self: end;
    font-size: 12px;
  }

  .bid-salary-card,
  .compact-salary-card {
    grid-template-columns: auto minmax(220px, 320px);
    justify-content: end;
    padding: 10px 0 0;
    border-top: 1px solid rgba(152, 163, 173, 0.14);
  }

  .nomination-form .tcv-option {
    min-height: 56px;
    padding: 0 14px;
  }

  .nomination-form .tcv-option-title {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .nomination-form .tcv-option-contract {
    justify-self: center;
  }
}
