:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #627084;
  --line: #d8dee8;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #1f7a6d;
  --accent-2: #b45f06;
  --danger: #b3261e;
  --warn: #8a6500;
  --ok: #237243;
  --chip: #eef2f6;
  --focus: #2f6fed;
  --pos-rb: #c2e2ff;
  --pos-rb-line: #4d9fe4;
  --pos-wr: #c9f0d3;
  --pos-wr-line: #52b869;
  --pos-qb: #ffcaca;
  --pos-qb-line: #df6f6f;
  --pos-te: #e3ccb5;
  --pos-te-line: #ad7f56;
  --pos-k: #dfd0ff;
  --pos-k-line: #9575df;
  --pos-dst: #ffe878;
  --pos-dst-line: #c9ab00;
  --pos-edge: #ffd6a5;
  --pos-edge-line: #d97706;
  --pos-dl: #cbd5e1;
  --pos-dl-line: #64748b;
  --pos-lb: #99f6e4;
  --pos-lb-line: #0f766e;
  --pos-db: #fed7aa;
  --pos-db-line: #ea580c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

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

p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.topbar-actions {
  display: flex;
  gap: 5px;
}

button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: #9faabc;
}

#resetBoard {
  color: var(--danger);
}

#resetBoard,
#editRoom,
#openDepthChart,
#forecastToggle,
#autoPick,
#autoToNextPick,
#autoFullDraft {
  height: 24px;
  border-radius: 5px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 800;
}

.setup-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 122, 109, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(180, 95, 6, 0.1), transparent 36%),
    var(--paper);
}

.setup-panel {
  width: min(1360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 33, 47, 0.12);
  overflow: hidden;
}

.setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.setup-title-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

.room-type-stack {
  display: grid;
  gap: 10px;
  width: min(780px, 62vw);
  min-width: min(620px, 58vw);
}

.setup-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-head-actions button,
#openRanksFromDraft,
#openDepthChart {
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
}

.setup-head h1 {
  color: #152235;
  font-size: 22px;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}

.room-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(178px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.room-type-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
}

.room-type-options label:has(input:checked) {
  box-shadow: none;
}

.room-type-options input {
  margin: 2px 0 0;
  accent-color: #2f6fed;
}

.room-type-options strong,
.room-type-options em {
  display: block;
}

.room-type-options strong {
  color: #152235;
  font-size: 11px;
  line-height: 1.15;
}

.room-type-options label:has(input:checked) strong {
  color: #1d4ed8;
}

.room-type-options em {
  margin-top: 2px;
  color: #5d6b7f;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.mock-feature-options {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 4px;
  border-top: 1px solid #e5eaf1;
}

.mock-feature-options[hidden] {
  display: none;
}

.mock-feature-options h2 {
  margin: 1px 0 0;
  color: #713f12;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.mock-feature-list {
  display: grid;
  gap: 8px;
}

.mock-feature-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mock-feature-list input {
  margin: 2px 0 0;
  accent-color: #b45309;
}

.mock-feature-list strong,
.mock-feature-list em {
  display: block;
}

.mock-feature-list strong {
  color: #713f12;
  font-size: 11px;
  line-height: 1.15;
}

.mock-feature-list em {
  margin-top: 2px;
  color: #72521b;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.setup-head p {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

.setup-main {
  display: grid;
  grid-template-areas: "roster basics";
  grid-template-columns: minmax(390px, 1fr) minmax(430px, 1.05fr);
  gap: 16px;
  padding: 18px 20px 20px;
  align-items: stretch;
}

.setup-grid {
  grid-area: basics;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 0;
}

.setup-grid label:first-child {
  grid-column: 1 / -1;
}

.setup-grid select,
.setup-grid input,
.starter-controls select,
.idp-controls select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 600;
}

.setup-grid input:focus,
.setup-grid select:focus,
.starter-controls select:focus,
.idp-controls select:focus {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  border-color: var(--focus);
}

.primary-action {
  height: 38px;
  border-color: #17695e;
  background: #1f7a6d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.primary-action:hover {
  border-color: #12574e;
}

.setup-grid .primary-action {
  grid-column: 1 / -1;
}

.roster-setup {
  grid-area: roster;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #f8fafc;
}

.roster-setup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.roster-setup-head h2 {
  color: #152235;
  font-size: 14px;
  line-height: 1.1;
  text-transform: none;
}

.roster-setup-head span {
  max-width: 260px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.starter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.starter-controls label,
.idp-controls label {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.starter-controls select,
.idp-controls select {
  margin-top: 4px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.idp-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.format-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #c7d2df;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.format-toggles label.disabled-toggle {
  border-color: #d5dde8;
  background: #eef2f7;
  color: #94a3b8;
  cursor: not-allowed;
}

.format-toggles input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #1f7a6d;
}

.manager-setup {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.manager-setup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 10px 20px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.manager-summary-title {
  flex: 0 0 auto;
  color: #152235;
  font-size: 13px;
  font-weight: 900;
}

.manager-summary-copy {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.manager-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  padding: 0;
}

.manager-actions button {
  height: 28px;
  border-color: #b7c2d0;
  background: #f8fafc;
  color: #334155;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.manager-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 0 20px 18px;
}

.manager-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 0.8fr);
  gap: 7px;
  align-items: center;
}

.manager-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.manager-row input,
.manager-row select,
.manager-personality-locked {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.manager-row.user-row {
  padding: 3px;
  border: 1px solid #f2c779;
  border-radius: 7px;
  background: #fffaf0;
}

.manager-personality-locked {
  display: flex;
  align-items: center;
  color: #7a4f00;
  background: #fff3d8;
  font-weight: 900;
}

.manager-personality-locked.hidden-personality {
  color: #334155;
  background: #eef2f6;
  border-style: dashed;
  letter-spacing: 0;
}

.rank-screen {
  height: 100vh;
  padding: 16px;
  background: var(--paper);
}

.rank-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.rank-head h1 {
  color: #152235;
  font-size: 18px;
  line-height: 1.1;
  text-transform: none;
}

.rank-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rank-actions p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

.rank-actions button {
  height: 32px;
  font-size: 12px;
  font-weight: 800;
}

.rank-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.8fr) minmax(92px, 0.55fr) minmax(180px, 1fr);
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-controls input,
.rank-controls select {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 600;
}

.rank-table-wrap {
  flex: 1;
  overflow: auto;
}

.rank-table {
  min-width: 1320px;
}

.rank-table th:first-child,
.rank-table td:first-child {
  width: 112px;
  text-align: left;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 74px;
  text-align: center;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
  width: 126px;
}

.rank-table th:nth-child(5),
.rank-table td:nth-child(5),
.rank-table th:nth-child(6),
.rank-table td:nth-child(6) {
  width: 58px;
  text-align: right;
}

.rank-table th:nth-child(7),
.rank-table td:nth-child(7),
.rank-table th:nth-child(8),
.rank-table td:nth-child(8),
.rank-table th:nth-child(9),
.rank-table td:nth-child(9),
.rank-table th:nth-child(10),
.rank-table td:nth-child(10) {
  min-width: 150px;
}

.rank-table th:last-child,
.rank-table td:last-child {
  width: 68px;
  text-align: center;
}

.rank-order-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-order-cell strong {
  min-width: 30px;
  font-size: 13px;
  text-align: right;
}

.rank-player-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.return-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  border: 1px solid #94723a;
  border-radius: 999px;
  background: #fff0ca;
  color: #684600;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
}

.depth-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 17px;
  border: 1px solid #7aa2c7;
  border-radius: 999px;
  background: #e4f2ff;
  color: #245071;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}

.rank-stat-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rank-stat-cell span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid rgba(98, 112, 132, 0.24);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0 5px;
  white-space: nowrap;
}

.rank-stat-cell .muted-stat {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.rank-number {
  color: #263244;
  font-size: 12px;
  font-weight: 800;
}

.rank-move-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
}

.rank-move-actions button {
  width: 28px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
}

.depth-screen {
  height: 100vh;
  padding: 16px;
  background: var(--paper);
}

.depth-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.depth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.depth-head h1 {
  color: #152235;
  font-size: 18px;
  line-height: 1.1;
  text-transform: none;
}

.depth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.depth-actions select {
  min-width: 230px;
}

.depth-actions button {
  height: 32px;
  font-size: 12px;
  font-weight: 800;
}

.depth-formation {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.92fr) minmax(170px, 1fr) minmax(150px, 0.92fr) minmax(150px, 1fr);
  grid-template-rows: minmax(128px, 1fr) minmax(164px, 1.3fr) minmax(148px, 1.05fr);
  grid-template-areas:
    "wr1 . . te wr3"
    "wr1 wr2 qb te wr3"
    ". . rb . k";
  gap: 14px;
  min-height: 0;
  padding: 28px;
  overflow: auto;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    #4d8b16;
}

.depth-formation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 43%;
  height: 4px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.depth-position {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 22px rgba(21, 36, 11, 0.14);
  overflow: hidden;
}

.depth-position h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
  border-bottom: 1px solid rgba(82, 101, 72, 0.22);
  background: rgba(244, 248, 239, 0.9);
  color: #18212f;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.depth-position h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  border-radius: 999px;
  background: #e9f4dc;
  color: #34590f;
  font-size: 10px;
}

.depth-wr1 {
  grid-area: wr1;
}

.depth-wr2 {
  grid-area: wr2;
  align-self: center;
}

.depth-qb {
  grid-area: qb;
  align-self: end;
}

.depth-rb {
  grid-area: rb;
}

.depth-te {
  grid-area: te;
}

.depth-wr3 {
  grid-area: wr3;
}

.depth-k {
  grid-area: k;
  align-self: end;
}

.depth-player-list {
  display: grid;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.depth-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #cad4df;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 8px;
}

.depth-player.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.depth-player.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.depth-player.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.depth-player.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.depth-player.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.depth-player strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depth-player span {
  display: block;
  overflow: hidden;
  color: #536174;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.depth-player em {
  justify-self: end;
  max-width: 132px;
  color: #2c3748;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.depth-player-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}

.depth-player-actions button {
  height: 20px;
  border-radius: 5px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 900;
}

.depth-draft-player {
  border-color: #8db9b3;
  background: #ecfbf8;
  color: #174d46;
}

.depth-target-player,
.depth-target-player.targeted-player {
  border-color: #ba99ed;
  background: #f2eaff;
  color: #4b3482;
}

.depth-drafted-player {
  border-color: #cbd3de;
  background: #f2f4f8;
  color: #66758a;
}

.depth-player.drafted-depth-player {
  border-color: rgba(136, 147, 163, 0.45);
  background: rgba(241, 243, 247, 0.72);
  color: #687587;
  filter: grayscale(0.35);
  opacity: 0.38;
}

.depth-empty {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: #66758a;
  font-size: 11px;
  font-weight: 800;
}

.depth-directory {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #eef3f1;
}

.depth-division {
  margin-bottom: 20px;
}

.depth-division > h2 {
  position: sticky;
  top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #cbd5df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #243044;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.depth-division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.depth-team-card {
  border: 2px solid var(--team-primary, #cfd8e3);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.depth-team-card-focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.18);
}

.depth-team-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border-bottom: 2px solid var(--team-primary, #d8e0ea);
  background: var(--team-primary, #f8fafc);
  padding: 0 9px;
}

.depth-team-head h2 {
  color: var(--team-text, #ffffff);
  font-size: 13px;
  font-weight: 950;
}

.depth-team-head span {
  overflow: hidden;
  color: var(--team-text, #ffffff);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depth-mini-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) minmax(74px, 0.92fr) minmax(86px, 0.96fr) minmax(74px, 0.92fr) minmax(74px, 1fr);
  grid-template-rows: 16px minmax(88px, 1fr) minmax(68px, 0.74fr);
  grid-template-areas:
    "wr1 . . te ."
    "wr1 wr2 qb te wr3"
    ". . rb . k";
  gap: 6px;
  min-height: 206px;
  padding: 9px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 12.5%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    #4d8b16;
}

.depth-mini-field::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.68);
  pointer-events: none;
}

.depth-mini-field .depth-position {
  align-self: stretch;
  justify-self: stretch;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.depth-mini-field .depth-position h2 {
  min-height: 22px;
  padding: 0 6px;
  font-size: 9px;
  line-height: 1;
}

.depth-mini-field .depth-position h2 span {
  width: 18px;
  height: 16px;
  font-size: 8px;
}

.depth-mini-field .depth-player-list {
  gap: 3px;
  padding: 5px;
}

.depth-mini-field .depth-player {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-height: 48px;
  padding: 4px 5px;
  border-radius: 5px;
}

.depth-mini-field .depth-player strong {
  font-size: 9px;
  line-height: 1.05;
}

.depth-mini-field .depth-player span,
.depth-mini-field .depth-player em {
  justify-self: start;
  font-size: 7px;
  line-height: 1;
  text-align: left;
}

.depth-mini-field .depth-player-actions {
  gap: 3px;
}

.depth-mini-field .depth-player-actions button {
  height: 16px;
  padding: 0 5px;
  font-size: 7px;
}

@media (max-width: 980px) {
  .depth-division-grid {
    grid-template-columns: 1fr;
  }
}

#forecastToggle.active {
  border-color: #2f6fed;
  background: #e7efff;
  color: #1d4fbf;
}

.tracking-room .auto-control-stack {
  display: none;
}

.snipe-toast {
  display: none;
  margin: 0 0 7px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff7ed;
  color: #7c2d12;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.12);
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 520px;
  gap: 16px;
  padding: 16px;
  height: 100vh;
}

.shell.rail-reduced {
  grid-template-columns: minmax(720px, 1fr) 292px;
  gap: 10px;
}

.draft-panel,
.availability-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.draft-panel {
  display: flex;
  flex-direction: column;
}

.availability-panel {
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
  grid-template-areas:
    "controls controls"
    "status targets";
  align-items: start;
  gap: 7px 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.board-status {
  display: contents;
}

.board-utility-row {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 0;
}

.board-title-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.auto-control-stack {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.auto-control-stack #autoPick {
  width: auto;
}

#autoToNextPick,
#autoFullDraft {
  height: 24px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 1;
}

.board-title-row {
  grid-area: status;
  display: block;
  min-width: 0;
}

.target-shelf {
  grid-area: targets;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  grid-auto-flow: column;
  gap: 5px;
  justify-self: stretch;
  align-self: start;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.target-column {
  display: grid;
  grid-template-rows: repeat(3, 48px);
  gap: 3px;
  min-width: 0;
}

.target-slot {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: minmax(18px, auto) 18px;
  align-items: start;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d3dae5;
  border-radius: 5px;
  background: #ffffff;
  padding: 3px 4px;
}

.target-slot.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.target-slot.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.target-slot.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.target-slot.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.target-slot.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.target-slot.empty {
  border-style: dashed;
  background: #ffffff;
}

.target-slot span {
  grid-row: 1 / 3;
  align-self: start;
  color: #3a475a;
  font-size: 9px;
  font-weight: 900;
}

.target-slot strong {
  grid-column: 2;
  align-self: start;
  overflow: hidden;
  color: #172033;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-slot.empty strong {
  color: #9aa5b5;
  font-weight: 750;
}

.target-actions {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 13px) 34px;
  justify-content: start;
  gap: 1px;
}

.target-actions button {
  width: 13px;
  height: 17px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  color: #2c3748;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.target-actions button:hover {
  background: #ffffff;
}

.target-actions .target-draft-action {
  width: 34px;
  border: 1px solid rgba(23, 105, 94, 0.24);
  background: rgba(236, 251, 248, 0.72);
  color: #174d46;
  font-size: 8px;
}

.status-strip {
  display: grid;
  gap: 4px;
  justify-content: start;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--chip);
  color: #2c3748;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

#availabilitySummary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 26px;
  margin: 4px 0 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--chip);
  color: #2c3748;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

.roster-panel {
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.roster-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 10px 4px;
}

.rail-toggle {
  position: absolute;
  top: 50%;
  right: 526px;
  z-index: 5;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 44px;
  border-color: #b8c1d0;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.rail-toggle:hover {
  border-color: var(--focus);
}

.shell.rail-reduced .rail-toggle {
  right: 298px;
}

.roster-team-control {
  width: 150px;
}

.roster-slots {
  display: grid;
  gap: 4px;
  max-height: 176px;
  overflow: auto;
  padding: 0 10px 8px;
}

.roster-row,
.bench-row {
  display: flex;
  gap: 5px;
  min-width: max-content;
}

.roster-slot {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: 12px 9px;
  column-gap: 4px;
  row-gap: 1px;
  align-items: start;
  width: 112px;
  height: 32px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #ffffff;
  padding: 3px 5px;
}

.roster-slot span {
  grid-row: 1 / 3;
  align-self: start;
  color: #3a475a;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.roster-slot strong {
  align-self: start;
  overflow: hidden;
  color: #18212f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-slot em {
  grid-column: 2;
  align-self: start;
  color: #536174;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.roster-slot.empty strong {
  color: #8b96a8;
}

.roster-slot.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.roster-slot.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.roster-slot.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.roster-slot.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.roster-slot.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.roster-slot.pos-dst {
  border-color: var(--pos-dst-line);
  background: var(--pos-dst);
}

.bench-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 22px;
}

.bench-list span {
  display: inline-flex;
  align-items: center;
  max-width: 132px;
  min-height: 21px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #2c3748;
  overflow: hidden;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bench-list span.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.bench-list span.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.bench-list span.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.bench-list span.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.bench-list span.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.bench-list span.pos-dst {
  border-color: var(--pos-dst-line);
  background: var(--pos-dst);
}

.bench-list span.empty {
  color: #7b8798;
  background: #ffffff;
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(var(--league-size, 14), minmax(112px, 1fr));
  gap: 0;
  overflow: auto;
  flex: 1;
}

.team-head,
.pick-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 36px;
  background: #ecf3f2;
  color: #23333f;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.team-head.me {
  background: #fff1d6;
  color: #4f3300;
}

.team-name-input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 5px;
  text-align: center;
}

.team-name-input:hover {
  border-color: rgba(35, 51, 63, 0.18);
  background: rgba(255, 255, 255, 0.38);
}

.team-name-input:focus {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  border-color: var(--focus);
  background: #ffffff;
  color: var(--ink);
}

.pick-cell {
  position: relative;
  min-height: 96px;
  padding: 5px;
  background: #ffffff;
}

.pick-cell.me {
  background: #fffaf0;
}

.pick-cell.on-clock {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.pick-cell.on-clock.forecast-player {
  min-height: 106px;
}

.pick-cell.on-clock:not(.has-player)::after {
  content: attr(data-arrow);
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 14px;
  color: #2f6fed;
  font-size: 20px;
  font-weight: 900;
  line-height: 12px;
  pointer-events: none;
}

.pick-cell.snipe-hit {
  z-index: 3;
}

.pick-cell.snipe-hit.snipe-taunt {
  z-index: 12;
}

.pick-cell.snipe-hit::before {
  content: "";
  position: absolute;
  inset: 22px 7px 7px;
  z-index: 7;
  border-radius: 7px;
  background:
    radial-gradient(circle, transparent 0 12%, rgba(15, 23, 42, 0.95) 13% 16%, transparent 17% 32%, rgba(15, 23, 42, 0.86) 33% 37%, transparent 38% 54%, rgba(15, 23, 42, 0.76) 55% 59%, transparent 60%),
    linear-gradient(90deg, transparent 49%, rgba(15, 23, 42, 0.8) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(15, 23, 42, 0.8) 49% 51%, transparent 51%);
  opacity: 0;
  pointer-events: none;
  animation: snipeBullseye 1.05s ease-out forwards;
}

.pick-cell.snipe-hit::after {
  content: attr(data-snipe-text);
  position: absolute;
  left: 50%;
  top: 3px;
  z-index: 8;
  transform: translate(-50%, -50%);
  color: #b91c1c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid rgba(185, 28, 28, 0.26);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.96);
  padding: 4px 10px 5px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  text-shadow: 0 1px 0 #fff7ed, 0 0 10px rgba(255, 247, 237, 0.95);
  opacity: 0;
  animation: snipeWord 1.05s ease-out forwards;
}

.pick-cell.snipe-hit.snipe-taunt .pick-display {
  opacity: 0.22;
  filter: grayscale(0.25);
}

.pick-cell.snipe-hit.snipe-taunt::before {
  inset: 20px 5px 5px;
  background:
    radial-gradient(circle, transparent 0 12%, rgba(15, 23, 42, 0.95) 13% 16%, transparent 17% 32%, rgba(15, 23, 42, 0.86) 33% 37%, transparent 38% 54%, rgba(15, 23, 42, 0.76) 55% 59%, transparent 60%),
    linear-gradient(90deg, transparent 49%, rgba(15, 23, 42, 0.8) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(15, 23, 42, 0.8) 49% 51%, transparent 51%);
  animation: snipeBullseyeTaunt 3s ease-out forwards;
}

.pick-cell.snipe-hit.snipe-taunt::after {
  top: 3px;
  width: max-content;
  max-width: none;
  color: #b91c1c;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 950;
  line-height: 1.04;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  overflow: visible;
  text-shadow: 0 1px 0 #fff7ed, 0 0 16px rgba(255, 247, 237, 1);
  animation: snipeTauntWord 3s ease-out forwards;
}

@keyframes snipeBullseye {
  0% {
    opacity: 0;
    transform: scale(0.68);
  }
  18% {
    opacity: 1;
    transform: scale(0.92);
  }
  72% {
    opacity: 0.95;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@keyframes snipeBullseyeTaunt {
  0% {
    opacity: 0;
    transform: scale(0.68);
  }
  10% {
    opacity: 1;
    transform: scale(0.94);
  }
  76% {
    opacity: 0.9;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes snipeWord {
  0% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(0.86);
  }
  20%,
  74% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(1.08);
  }
}

@keyframes snipeTauntWord {
  0% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(0.84);
  }
  10%,
  82% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(1.08);
  }
}

.pick-label {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.pick-input {
  width: 100%;
  height: 28px;
  border: 1px solid #ccd3df;
  border-radius: 5px;
  padding: 0 7px;
  font-size: 12px;
  background: #ffffff;
}

.pick-cell.has-player .pick-input {
  padding-right: 28px;
}

.pick-cell.locked-player .pick-input {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 25px;
  color: transparent;
  caret-color: transparent;
  height: 67px;
  width: calc(100% - 10px);
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.pick-cell.forecast-player .pick-input {
  color: transparent;
  caret-color: var(--focus);
}

.pick-input:focus {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  border-color: var(--focus);
}

.pick-input.filled {
  border-color: #b9c6d4;
  background: #f5f8fb;
  font-weight: 600;
}

.pick-input.filled.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.pick-input.filled.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.pick-input.filled.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.pick-input.filled.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.pick-input.filled.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.pick-input.filled.pos-dst {
  border-color: var(--pos-dst-line);
  background: var(--pos-dst);
}

.pick-display {
  display: none;
}

.pick-cell.locked-player .pick-display {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 25px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 11px 10px;
  align-content: stretch;
  min-height: 67px;
  height: 67px;
  border: 1px solid #b9c6d4;
  border-radius: 5px;
  padding: 5px 7px;
  pointer-events: auto;
  overflow: hidden;
}

.pick-cell.locked-player .pick-display > * {
  position: relative;
  z-index: 1;
}

.pick-cell.sniped-source .pick-display::before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -8px;
  z-index: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 0 13%, rgba(185, 28, 28, 0.34) 14% 18%, transparent 19% 34%, rgba(185, 28, 28, 0.28) 35% 40%, transparent 41% 57%, rgba(185, 28, 28, 0.22) 58% 63%, transparent 64%),
    linear-gradient(90deg, transparent 49%, rgba(185, 28, 28, 0.2) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(185, 28, 28, 0.2) 49% 51%, transparent 51%);
  opacity: 0.9;
  pointer-events: none;
}

.pick-cell.sniped-source .pick-display::after {
  content: "Sniped";
  position: absolute;
  right: 4px;
  bottom: 3px;
  z-index: 1;
  color: #991b1b;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.pick-cell.forecast-player:not(.locked-player) .pick-display {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 25px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 11px 10px;
  align-content: stretch;
  min-height: 67px;
  height: 67px;
  border: 1px dashed rgba(88, 99, 116, 0.32);
  border-radius: 5px;
  padding: 5px 7px 5px;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
}

.pick-cell.locked-player .pick-display.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-rb {
  border-color: rgba(77, 159, 228, 0.28);
  background: color-mix(in srgb, var(--pos-rb) 18%, #ffffff);
}

.pick-cell.locked-player .pick-display.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-wr {
  border-color: rgba(82, 184, 105, 0.28);
  background: color-mix(in srgb, var(--pos-wr) 18%, #ffffff);
}

.pick-cell.locked-player .pick-display.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-qb {
  border-color: rgba(223, 111, 111, 0.28);
  background: color-mix(in srgb, var(--pos-qb) 18%, #ffffff);
}

.pick-cell.locked-player .pick-display.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-te {
  border-color: rgba(173, 127, 86, 0.28);
  background: color-mix(in srgb, var(--pos-te) 20%, #ffffff);
}

.pick-cell.locked-player .pick-display.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-k {
  border-color: rgba(149, 117, 223, 0.28);
  background: color-mix(in srgb, var(--pos-k) 18%, #ffffff);
}

.pick-cell.locked-player .pick-display.pos-dst {
  border-color: var(--pos-dst-line);
  background: var(--pos-dst);
}

.pick-cell.forecast-player:not(.locked-player) .pick-player-name,
.pick-cell.forecast-player:not(.locked-player) .pick-player-meta,
.pick-cell.forecast-player:not(.locked-player) .pick-player-tags {
  color: rgba(24, 33, 47, 0.42);
}

.pick-player-name {
  display: -webkit-box;
  min-height: 0;
  max-height: 28px;
  overflow: hidden;
  padding-right: 22px;
  color: #18212f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  hyphens: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.pick-player-meta,
.pick-player-tags {
  min-width: 0;
  overflow: hidden;
  color: #4e5d72;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pick-player-tags {
  color: #29394d;
  letter-spacing: 0;
}

.clear-pick {
  position: absolute;
  right: 8px;
  top: 28px;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border-color: rgba(38, 50, 68, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: #263244;
  padding: 0;
  font-size: 14px;
  line-height: 16px;
}

.pick-cell.has-player .clear-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clear-pick:hover {
  border-color: #6b778a;
  background: #ffffff;
}

.controls {
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) minmax(126px, 0.95fr) minmax(132px, 1.25fr) max-content;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.controls label {
  min-width: 0;
}

.shell.rail-reduced .controls {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 7px 8px;
}

.shell.rail-reduced .controls label,
.shell.rail-reduced .drafted-toggle {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

.shell.rail-reduced .roster-slots {
  max-height: 96px;
  padding: 0 8px 7px;
}

.shell.rail-reduced .roster-slot {
  width: 96px;
}

.shell.rail-reduced .roster-team-control {
  width: 132px;
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  text-transform: none;
  font-weight: 500;
}

#playerSearch {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 500;
}

#playerSearch:focus {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  border-color: var(--focus);
}

.drafted-toggle {
  min-width: 108px;
  height: 32px;
  justify-self: end;
  white-space: nowrap;
  border-color: #aab4c3;
  background: #f4f6fa;
  color: #334155;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
}

.drafted-toggle[aria-pressed="true"] {
  border-color: #718096;
  background: #e7ecf3;
}

.table-wrap {
  overflow: auto;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.shell.rail-reduced table {
  table-layout: fixed;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  background: #eef2f6;
  color: #344054;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  line-height: 1.1;
  white-space: normal;
}

th:nth-child(3) {
  width: 82px;
}

td {
  border-bottom: 1px solid #edf0f4;
  padding: 7px 8px;
  vertical-align: top;
}

.shell.rail-reduced th:nth-child(3),
.shell.rail-reduced th:nth-child(4),
.shell.rail-reduced th:nth-child(5),
.shell.rail-reduced td:nth-child(3),
.shell.rail-reduced td:nth-child(4),
.shell.rail-reduced td:nth-child(5) {
  display: none;
}

.shell.rail-reduced th:nth-child(1),
.shell.rail-reduced td:nth-child(1) {
  width: 142px;
}

.shell.rail-reduced th:nth-child(2),
.shell.rail-reduced td:nth-child(2) {
  width: 46px;
  padding-left: 4px;
  padding-right: 4px;
}

.shell.rail-reduced th:nth-child(6),
.shell.rail-reduced td:nth-child(6) {
  width: 72px;
  padding-left: 4px;
  padding-right: 6px;
}

.shell.rail-reduced .subtle,
.shell.rail-reduced .player-meta-stack {
  display: none;
}

.shell.rail-reduced .player-name {
  font-size: 11px;
  line-height: 1.15;
}

.shell.rail-reduced .pos-pill {
  min-width: 34px;
  height: 20px;
  font-size: 10px;
}

tr.pos-rb td {
  background: color-mix(in srgb, var(--pos-rb) 58%, #ffffff);
}

tr.pos-wr td {
  background: color-mix(in srgb, var(--pos-wr) 58%, #ffffff);
}

tr.pos-qb td {
  background: color-mix(in srgb, var(--pos-qb) 58%, #ffffff);
}

tr.pos-te td {
  background: color-mix(in srgb, var(--pos-te) 62%, #ffffff);
}

tr.pos-k td {
  background: color-mix(in srgb, var(--pos-k) 60%, #ffffff);
}

tr.pos-dst td {
  background: color-mix(in srgb, var(--pos-dst) 62%, #ffffff);
}

tr.drafted-row td {
  background: #f1f3f7;
  color: #687587;
}

tr.drafted-row .player-name,
tr.drafted-row .source-line,
tr.drafted-row .prob {
  color: #687587;
}

tr.drafted-row .pos-pill {
  opacity: 0.72;
}

.player-name {
  font-weight: 700;
}

.subtle {
  color: var(--muted);
  font-size: 11px;
}

.player-meta-stack {
  display: grid;
  gap: 1px;
  margin-top: 2px;
}

.player-team-meta {
  color: #5b687a;
}

.player-classification-meta {
  color: #314155;
  font-weight: 800;
}

.return-tag-inline {
  color: #8b5cf6;
  font-weight: 900;
}

.player-attribute-meta {
  color: #7a4b18;
  font-weight: 850;
}

.prob {
  font-weight: 800;
}

.prob.gone {
  color: var(--danger);
}

.prob.longshot,
.prob.unlikely {
  color: var(--warn);
}

.prob.coinflip {
  color: var(--accent-2);
}

.prob.likely,
.prob.verylikely {
  color: var(--ok);
}

.source-line {
  display: grid;
  gap: 2px;
  color: #38445a;
  font-size: 11px;
}

.pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #263244;
  font-size: 11px;
  font-weight: 900;
}

.pos-pill.pos-rb {
  border-color: var(--pos-rb-line);
  background: var(--pos-rb);
}

.pos-pill.pos-wr {
  border-color: var(--pos-wr-line);
  background: var(--pos-wr);
}

.pos-pill.pos-qb {
  border-color: var(--pos-qb-line);
  background: var(--pos-qb);
}

.pos-pill.pos-te {
  border-color: var(--pos-te-line);
  background: var(--pos-te);
}

.pos-pill.pos-k {
  border-color: var(--pos-k-line);
  background: var(--pos-k);
}

.pos-pill.pos-dst {
  border-color: var(--pos-dst-line);
  background: var(--pos-dst);
}

.player-actions {
  display: grid;
  gap: 3px;
}

.draft-player,
.target-player,
.drafted-player {
  height: 24px;
  border-color: #9fc3bd;
  background: #e7f3f1;
  color: #164b43;
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
}

.target-player {
  border-color: #b7a0ed;
  background: #eee5ff;
  color: #48327a;
}

.targeted-player,
.targeted-player:disabled {
  border-color: #8f78cf;
  background: #dcd0ff;
  color: #38256d;
  cursor: default;
}

.drafted-player,
.drafted-player:disabled {
  border-color: #c2cad6;
  background: #e6eaf0;
  color: #667389;
  cursor: default;
}

@media (max-width: 680px) {
  .room-type-options {
    grid-template-columns: 1fr;
  }

  .mock-feature-options {
    grid-template-columns: 1fr;
  }
}

.draft-player:hover {
  border-color: #1f7a6d;
  background: #d3ebe7;
}

.target-player:hover {
  border-color: #7d60c8;
  background: #e3d7ff;
}

.targeted-player:hover {
  border-color: #8f78cf;
  background: #dcd0ff;
}

.shell.rail-reduced .player-actions {
  gap: 2px;
}

.shell.rail-reduced .draft-player,
.shell.rail-reduced .target-player,
.shell.rail-reduced .drafted-player {
  height: 22px;
  padding: 0 5px;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .setup-head {
    display: grid;
    align-items: start;
  }

  .setup-title-row {
    display: grid;
    gap: 10px;
  }

  .room-type-options {
    min-width: 0;
    width: 100%;
  }

  .room-type-stack {
    width: 100%;
    min-width: 0;
  }

  .setup-head p {
    text-align: left;
  }

  .setup-main {
    grid-template-areas:
      "roster"
      "basics";
    grid-template-columns: 1fr;
  }

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

  .roster-setup-head {
    display: grid;
  }

  .roster-setup-head span {
    max-width: none;
    text-align: left;
  }

  .manager-rows {
    grid-template-columns: 1fr;
  }

  .manager-setup-header {
    flex-wrap: wrap;
  }

  .manager-summary-copy {
    flex-basis: 100%;
    order: 3;
  }

  .manager-actions {
    margin-left: auto;
  }

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

  .primary-action {
    grid-column: 1 / -1;
  }

  .shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .panel-head {
    grid-template-columns: minmax(190px, auto) minmax(430px, 1fr);
    overflow-x: auto;
  }

  .draft-panel,
  .availability-panel {
    min-height: 520px;
  }
}

.pos-pill.pos-edge,
.target-slot.pos-edge,
.roster-slot.pos-edge,
.bench-list span.pos-edge,
.pick-input.filled.pos-edge,
.pick-cell.locked-player .pick-display.pos-edge,
.depth-player.pos-edge {
  border-color: var(--pos-edge-line);
  background: var(--pos-edge);
}

.pos-pill.pos-dl,
.target-slot.pos-dl,
.roster-slot.pos-dl,
.bench-list span.pos-dl,
.pick-input.filled.pos-dl,
.pick-cell.locked-player .pick-display.pos-dl,
.depth-player.pos-dl {
  border-color: var(--pos-dl-line);
  background: var(--pos-dl);
}

.pos-pill.pos-lb,
.target-slot.pos-lb,
.roster-slot.pos-lb,
.bench-list span.pos-lb,
.pick-input.filled.pos-lb,
.pick-cell.locked-player .pick-display.pos-lb,
.depth-player.pos-lb {
  border-color: var(--pos-lb-line);
  background: var(--pos-lb);
}

.pos-pill.pos-db,
.target-slot.pos-db,
.roster-slot.pos-db,
.bench-list span.pos-db,
.pick-input.filled.pos-db,
.pick-cell.locked-player .pick-display.pos-db,
.depth-player.pos-db {
  border-color: var(--pos-db-line);
  background: var(--pos-db);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-edge {
  border-color: color-mix(in srgb, var(--pos-edge-line) 38%, transparent);
  background: color-mix(in srgb, var(--pos-edge) 18%, #ffffff);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-dl {
  border-color: color-mix(in srgb, var(--pos-dl-line) 38%, transparent);
  background: color-mix(in srgb, var(--pos-dl) 18%, #ffffff);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-lb {
  border-color: color-mix(in srgb, var(--pos-lb-line) 38%, transparent);
  background: color-mix(in srgb, var(--pos-lb) 18%, #ffffff);
}

.pick-cell.forecast-player:not(.locked-player) .pick-display.pos-db {
  border-color: color-mix(in srgb, var(--pos-db-line) 38%, transparent);
  background: color-mix(in srgb, var(--pos-db) 18%, #ffffff);
}

tr.pos-edge td {
  background: color-mix(in srgb, var(--pos-edge) 58%, #ffffff);
}

tr.pos-dl td {
  background: color-mix(in srgb, var(--pos-dl) 58%, #ffffff);
}

tr.pos-lb td {
  background: color-mix(in srgb, var(--pos-lb) 58%, #ffffff);
}

tr.pos-db td {
  background: color-mix(in srgb, var(--pos-db) 58%, #ffffff);
}

.target-slot.empty.pos-dl,
.target-slot.empty.pos-lb,
.target-slot.empty.pos-db {
  background: #ffffff;
}
