﻿:root {
  color-scheme: dark;
  --bg: #0f1217;
  --surface: #161b22;
  --surface-2: #1d2430;
  --surface-3: #242d3a;
  --line: #344151;
  --line-soft: #26313f;
  --text: #f4f7fb;
  --muted: #9facba;
  --blue: #58a6ff;
  --red: #ff7b72;
  --green: #42d392;
  --gold: #d8b65a;
  --danger: #f06b6b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 13px;
  cursor: pointer;
}

button:hover {
  border-color: var(--green);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

button.active,
.winner-buttons button.active,
.filters button.active,
.view-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #08130f;
  font-weight: 800;
}

.app {
  width: min(1840px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.controls,
.winner-buttons,
.filters,
.dialog-actions,
.memory-actions,
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}



.score-box span,
.notes span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0e13;
  color: var(--text);
}

input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 10px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, 72px);
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  border: 0;
  border-radius: 0;
}

.ghost {
  background: transparent;
}

.danger {
  border-color: rgba(240, 107, 107, 0.75);
  color: #ffdede;
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
}

.modebar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin: -4px 0 14px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #10151c;
}

.view-tabs,
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-tabs {
  padding-right: 12px;
  border-right: 1px solid var(--line-soft);
}

.view-tabs button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.mode-tabs button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.mode-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.set-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.set-tabs button {
  min-width: 96px;
  font-weight: 800;
}

.set-tabs button.used {
  border-color: var(--gold);
}

.score-box {
  display: grid;
  gap: 2px;
  min-width: 126px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.score-box strong {
  font-size: 21px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(560px, 1fr) minmax(330px, 390px);
  gap: 14px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

body:not([data-player-design="c"])[data-view="player"] .coach-only,
.hidden-tags {
  display: none !important;
}





















body:not([data-player-design="c"])[data-view="player"] .draft-panel,
body:not([data-player-design="c"])[data-view="player"] .info-panel {
  position: static;
}

.draft-panel,
.info-panel {
  position: sticky;
  top: 14px;
}

.panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.draft-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.draft-tools button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.pool-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.draft-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #11161d;
}

.draft-grid > div:first-child h3 {
  color: var(--blue);
}

.draft-grid > div:last-child h3 {
  color: var(--red);
}

.slots {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.slot {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  text-align: left;
}

.slot.selected,
.ban-slot.selected {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.slot img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
}

.empty-portrait {
  width: 46px;
  height: 46px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #10151c;
}

.slot .role {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pick-role-chip {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 20px;
  margin-top: 4px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0e13;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}





.slot strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.ban-grid {
  margin-top: 10px;
}

.ban-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.ban-slot {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #10151c;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ban-slot img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.pool-panel {
  min-width: 0;
}

.pool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.pool-meta p {
  color: var(--muted);
  font-size: 13px;
}

#targetText {
  color: var(--gold);
}

.filters {
  margin: 12px 0;
}

.filters button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
  max-height: calc(100vh - 238px);
  overflow: auto;
  padding: 2px 4px 2px 2px;
}

.champ {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 126px;
  padding: 9px 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #111720;
  text-align: center;
}

.champ:hover {
  background: #17202b;
}

.champ img {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
}

.champ span {
  width: 100%;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.champ small {
  color: var(--muted);
  font-size: 11px;
  min-height: 14px;
}

.champ.locked {
  opacity: 0.52;
  filter: grayscale(0.9);
  background: #181316;
  border-color: rgba(255, 123, 114, 0.34);
}

.champ.locked::after {
  content: none;
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 123, 114, 0.88);
  color: #1b0707;
  font-size: 10px;
  font-weight: 900;
}

.champ.current {
  border-color: var(--gold);
}

.champ.current:not(.locked)::after {
  content: none;
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(216, 182, 90, 0.9);
  color: #171104;
  font-size: 10px;
  font-weight: 900;
}

.champ-tags {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 3px;
}

.champ-tags b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green);
  color: #07100d;
  font-size: 11px;
}

.info-panel h2:not(:first-child),
.coach-block {
  margin-top: 18px;
}

.ban-list,
.tag-editor,
.advice,
.memory-card {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}

.ban-list {
  display: block;
}



body:not([data-player-design="c"])[data-view="player"] .ban-list {
  margin-top: 0;
}

.player-fearless-board {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}







.player-fearless-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 0 3px;
}

.fearless-icon {
  position: relative;
  width: 56px;
  min-width: 56px;
  height: 62px;
  min-height: 62px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #293241;
  border-radius: 3px;
  background: #0b0f15;
}

.fearless-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.76);
}

.fearless-icon::after {
  content: "";
  position: absolute;
  inset: -14px 22px;
  width: 2px;
  transform: rotate(42deg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px #000;
}

.fearless-icon.blue {
  border-color: rgba(88, 166, 255, 0.62);
}

.fearless-icon.red {
  border-color: rgba(255, 123, 114, 0.62);
}

.fearless-icon span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.fearless-empty {
  color: var(--muted);
  font-size: 12px;
}



body:not([data-player-design="c"])[data-view="player"] .panel-head h2 {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}





body:not([data-player-design="c"])[data-view="player"] .draft-grid > div:first-child {
  border-right: 2px solid #05070a;
}













body:not([data-player-design="c"])[data-view="player"] .slot .role {
  margin-top: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}



















































/* Final player-screen layout override.
   Keeps the draft board high on the screen and makes only the champion pool scroll. */
html:has(body:not([data-player-design="c"])[data-view="player"]) {
  height: 100%;
  overflow: hidden !important;
}





body:not([data-player-design="c"])[data-view="player"] .topbar,
body:not([data-player-design="c"])[data-view="player"] .modebar,
body:not([data-player-design="c"])[data-view="player"] .score-box,
body:not([data-player-design="c"])[data-view="player"] .panel-head,
body:not([data-player-design="c"])[data-view="player"] .coach-only {
  display: none !important;
}





































body:not([data-player-design="c"])[data-view="player"] .draft-grid > div h3,
body:not([data-player-design="c"])[data-view="player"] .ban-grid > div h3 {
  display: none !important;
}







body:not([data-player-design="c"])[data-view="player"] .draft-grid:not(.ban-grid) > div:last-child .pick-slot {
  border-left-color: rgba(255, 123, 114, 0.33) !important;
}





body:not([data-player-design="c"])[data-view="player"] .pick-slot > span {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 6px !important;
  z-index: 2 !important;
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
  padding-top: 28px !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86)) !important;
  color: #fff !important;
  text-align: left !important;
  text-shadow: 0 1px 4px #000 !important;
}













body:not([data-player-design="c"])[data-view="player"] .ban-slot strong {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}









body:not([data-player-design="c"])[data-view="player"] .pool-meta {
  display: none !important;
}





















/* Final player draft layout: top draft board, lower champion selector. */
body:not([data-player-design="c"])[data-view="player"] {
  height: 100vh;
  overflow: hidden;
}

body:not([data-player-design="c"])[data-view="player"] .topbar,
body:not([data-player-design="c"])[data-view="player"] .modebar,
body:not([data-player-design="c"])[data-view="player"] .score-box {
  display: none;
}









body:not([data-player-design="c"])[data-view="player"] .info-panel > h2 {
  display: none;
}



















body:not([data-player-design="c"])[data-view="player"] .panel-head,
body:not([data-player-design="c"])[data-view="player"] .draft-grid > div h3 {
  display: none;
}





































body:not([data-player-design="c"])[data-view="player"] .pool-toolbar > div h2,
body:not([data-player-design="c"])[data-view="player"] .pool-meta {
  display: none;
}



















body:not([data-player-design="c"])[data-view="player"] .champ.locked,
body:not([data-player-design="c"])[data-view="player"] .champ.current {
  opacity: 0.36;
  filter: grayscale(1);
  cursor: not-allowed;
}

body:not([data-player-design="c"])[data-view="player"] .champ.locked img,
body:not([data-player-design="c"])[data-view="player"] .champ.current img {
  filter: grayscale(1) brightness(0.72);
}



































































body:not([data-player-design="c"])[data-view="player"] .draft-grid:not(.ban-grid) {
  height: calc(100% - 76px) !important;
  border-top: 4px solid var(--blue) !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid:not(.ban-grid) > div {
  padding: 0;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid:not(.ban-grid) > div h3 {
  display: none;
}









body:not([data-player-design="c"])[data-view="player"] .pick-slot .empty-portrait {
  width: 100%;
  max-width: none;
  height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: linear-gradient(135deg, #0b111a, #030509);
}







body:not([data-player-design="c"])[data-view="player"] .ban-grid > div {
  padding-top: 3px;
  padding: 4px 0 0;
}

body:not([data-player-design="c"])[data-view="player"] .ban-grid > div h3 {
  display: none;
}









































body:not([data-player-design="c"])[data-view="player"] .panel-head {
  grid-template-columns: 1fr;
  padding: 6px 12px 5px;
  border-bottom: 1px solid #10151c;
  display: none;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid > div h3 {
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-size: 16px;
}





body:not([data-player-design="c"])[data-view="player"] .slot {
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 3px;
  border-color: #151c25;
  border-radius: 2px;
  background: #0a0d12;
  text-align: center;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body:not([data-player-design="c"])[data-view="player"] .slot img, body:not([data-player-design="c"])[data-view="player"] .slot .empty-portrait {
  width: 100%;
  border-radius: 2px;
  max-width: 82px;
  height: 76px;
}

body:not([data-player-design="c"])[data-view="player"] .slot strong {
  line-height: 1.05;
  white-space: normal;
  font-size: 9px;
}























.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
}

.pill.blue {
  border-color: rgba(88, 166, 255, 0.75);
}

.pill.red {
  border-color: rgba(255, 123, 114, 0.75);
}

.empty {
  color: var(--muted);
  font-size: 13px;
}

.memory-card {
  display: grid;
  gap: 9px;
}

.memory-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.memory-title img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.memory-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-actions button,
.role-tags button {
  min-height: 31px;
  padding: 0 9px;
  font-size: 12px;
}

.memory-card textarea {
  min-height: 96px;
}





body:not([data-player-design="c"])[data-view="player"] .draft-grid:not(.ban-grid) > div, body:not([data-player-design="c"])[data-view="player"] .ban-grid > div {
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not([data-player-design="c"])[data-view="player"] .slots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
  gap: 0;
}



















.memory-card input {
  min-height: 36px;
}

.tag-row {
  display: grid;
  grid-template-columns: 1fr 62px 62px;
  gap: 6px;
  width: 100%;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #11161d;
}

.tag-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.tag-row button {
  min-height: 30px;
  padding: 0 6px;
  font-size: 12px;
}

.advice {
  display: grid;
}

.advice .note {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #11161d;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coach-block {
  display: grid;
}

.lane-compare {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.lane-compare-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #11161d;
}

.lane-compare-row strong {
  color: var(--gold);
  font-size: 12px;
}

.lane-compare-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

dialog {
  width: min(640px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

dialog textarea {
  min-height: 220px;
  margin: 12px 0;
}

.dialog-actions {
  justify-content: flex-end;
}

.stats-dialog {
  width: min(1020px, calc(100vw - 28px));
}

.stats-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.stats-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.wide-stat {
  grid-column: 1 / -1;
}

.stat-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-2);
}

.stat-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .draft-panel,
  .info-panel {
    position: static;
  }

  .champ-grid {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .app {
    padding: 12px;
  }

  .topbar,
  .scoreline,
  .modebar,
  .panel-head,
  .pool-toolbar,
  .draft-grid {
    grid-template-columns: 1fr;
  }

  .view-tabs {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  h1 {
    font-size: 30px;
  }

  .pool-toolbar input {
    width: 100%;
  }

  .controls {
    width: 100%;
  }

  .draft-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }
}











/* ABSOLUTE END PLAYER POSITION FIX */
html:has(body:not([data-player-design="c"])[data-view="player"]) {
  height: 100%;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"],
body:not([data-player-design="c"])[data-view="player"] .app {
  height: 100vh !important;
  overflow: hidden !important;
}









/* ABSOLUTE END PLAYER VISUAL CLEANUP */
body:not([data-player-design="c"])[data-view="player"] .filters [data-filter="core"],
body:not([data-player-design="c"])[data-view="player"] .filters [data-filter="enemy"] {
  display: none !important;
}

































body:not([data-player-design="c"])[data-view="player"] .fearless-empty.small {
  color: #64758c !important;
  font-size: 11px !important;
}









/* PLAYER SCREEN FINAL LAYOUT */
body:not([data-player-design="c"])[data-view="player"] {
  background: #0b0f15 !important;
  color: #f4f7fb !important;
}

body:not([data-player-design="c"])[data-view="player"] .topbar,
body:not([data-player-design="c"])[data-view="player"] .modebar,
body:not([data-player-design="c"])[data-view="player"] .score-box,
body:not([data-player-design="c"])[data-view="player"] .panel-head,
body:not([data-player-design="c"])[data-view="player"] .pool-meta {
  display: none !important;
}

body:not([data-player-design="c"])[data-view="player"] .app {
  min-height: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .scoreline {
  grid-template-columns: 1fr;
  width: auto;
  position: fixed !important;
  top: 8px !important;
  left: 10px !important;
  z-index: 120 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body:not([data-player-design="c"])[data-view="player"] .set-tabs {
  justify-content: flex-start;
  display: flex !important;
  gap: 7px !important;
}

body:not([data-player-design="c"])[data-view="player"] .set-tabs button {
  min-height: 28px !important;
  min-width: 56px !important;
  height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(121, 147, 180, 0.38) !important;
  border-radius: 4px !important;
  background: #172131 !important;
  color: #e7f0ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body:not([data-player-design="c"])[data-view="player"] .set-tabs button.active {
  border-color: #3de0a1 !important;
  background: #3bd196 !important;
  color: #03130d !important;
}

.player-command {
  display: none;
}



.player-turn-card {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  padding: 4px 10px;
  border-left: 3px solid #3aa0ff;
  background: rgba(15, 23, 35, 0.95);
}

.player-turn-card span {
  color: #86bfff;
  font-size: 10px;
  font-weight: 800;
}

.player-turn-card strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-turn-card em {
  overflow: hidden;
  color: #aac0db;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
  justify-content: flex-end;
}

.player-actions button,
.choice-row button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(115, 140, 174, 0.45);
  border-radius: 5px;
  background: #172131;
  color: #f3f7ff;
  font-weight: 900;
}

.player-actions button:not(.ghost):not(.danger),
.choice-row button.active {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.player-actions .danger {
  border-color: rgba(255, 107, 107, 0.72);
  color: #ffd2d2;
}

.player-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

body:not([data-player-design="c"])[data-view="player"] .workspace {
  gap: 8px;
  grid-template-columns: 1fr;
  padding-top: calc(clamp(118px, 30vh, 310px) + 380px);
  min-height: 0 !important;
  position: static !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
}



body:not([data-player-design="c"])[data-view="player"] .info-panel h2 {
  font-size: 15px;
  display: none !important;
}













body:not([data-player-design="c"])[data-view="player"] .fearless-team-row {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-team-label {
  line-height: 1 !important;
  color: #e8eef8 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-align: right !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-team-row.blue .fearless-team-label {
  color: #58a6ff !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-team-row.red .fearless-team-label {
  color: #ff7b72 !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-team-row.permanent .fearless-team-label {
  color: #f7d85c !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-fearless-icons {
  flex: 1 1 auto !important;
  width: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 2px !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-height: 72px !important;
  overflow: hidden !important;
}



body:not([data-player-design="c"])[data-view="player"] .fearless-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #02050a !important;
  filter: saturate(1.05) contrast(1.05) !important;
}



body:not([data-player-design="c"])[data-view="player"] .fearless-empty,
body:not([data-player-design="c"])[data-view="player"] .fearless-empty.small {
  color: #8ca0ba !important;
  font-size: 12px !important;
}



body:not([data-player-design="c"])[data-view="player"] .draft-grid {
  margin-top: 0;
  margin: 0;
  background: #05070a;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  min-height: 0 !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid > div {
  min-width: 0 !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid h3 {
  position: absolute !important;
  z-index: 5 !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  background: rgba(0, 0, 0, 0.58) !important;
  color: #f6f9ff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid > div:first-child h3 {
  text-align: left;
  left: 0 !important;
  color: #8dc9ff !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid > div:last-child h3 {
  text-align: right;
  right: 0 !important;
  color: #ff9a9a !important;
}

body:not([data-player-design="c"])[data-view="player"] .slots, body:not([data-player-design="c"])[data-view="player"] .ban-slots {
  margin: 0;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  height: 100% !important;
}

body:not([data-player-design="c"])[data-view="player"] .pick-slot {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(58, 160, 255, 0.32) !important;
  border-radius: 0 !important;
  background: #03060b !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-grid > div:last-child .pick-slot {
  border-left-color: rgba(255, 98, 98, 0.32) !important;
}



body:not([data-player-design="c"])[data-view="player"] .pick-slot img.pick-splash, body:not([data-player-design="c"])[data-view="player"] .pick-slot .empty-portrait {
  display: block !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center 24% !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}



body:not([data-player-design="c"])[data-view="player"] .pick-slot:not(.filled) .empty-portrait {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: linear-gradient(135deg, #07101a 0%, #02050a 100%) !important;
}

body:not([data-player-design="c"])[data-view="player"] .slot-caption {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 3 !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  text-shadow: 0 2px 8px #000 !important;
}

body:not([data-player-design="c"])[data-view="player"] .pick-slot .role {
  position: static !important;
  line-height: 1 !important;
  left: 8px;
  bottom: 24px;
  display: block !important;
  color: #9cd5ff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body:not([data-player-design="c"])[data-view="player"] .pick-slot strong {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  text-align: left;
  text-shadow: 0 1px 4px #000;
  display: block !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}





body:not([data-player-design="c"])[data-view="player"] .ban-grid h3 {
  display: none !important;
}













body:not([data-player-design="c"])[data-view="player"] .pool-toolbar {
  margin: 0 0 7px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 0 !important;
}

body:not([data-player-design="c"])[data-view="player"] .pool-toolbar h2 {
  display: block !important;
  margin: 0 !important;
  color: #f4f7ff !important;
  font-size: 17px !important;
}

body:not([data-player-design="c"])[data-view="player"] .pool-toolbar input {
  display: block;
  margin: 0 auto;
  border-color: #171f2a;
  text-align: center;
  font-size: 12px;
  width: 100% !important;
  max-width: none !important;
  min-height: 32px !important;
  border-radius: 3px !important;
  background: #0b111a !important;
}

body:not([data-player-design="c"])[data-view="player"] .filters {
  flex-wrap: wrap !important;
  justify-content: center;
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .filters button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  min-width: 54px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 4px !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ-grid {
  align-content: start !important;
  overscroll-behavior: contain !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)) !important;
  gap: 9px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 2px 4px 14px 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 3px !important;
  min-height: 100px !important;
  padding: 7px 4px 6px !important;
  border: 1px solid rgba(83, 108, 142, 0.42) !important;
  border-radius: 4px !important;
  background: #0b111a !important;
  color: #f1f6ff !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ img {
  max-width: none !important;
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
  border-radius: 3px !important;
  background: #02050a !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ span {
  min-height: 10px;
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ small {
  display: none;
  overflow: hidden !important;
  width: 100% !important;
  color: #95adc9 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ.locked,
body:not([data-player-design="c"])[data-view="player"] .champ.current,
body:not([data-player-design="c"])[data-view="player"] .champ:disabled {
  opacity: 0.28 !important;
  filter: grayscale(1) !important;
  cursor: not-allowed !important;
}

.player-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(105, 132, 168, 0.55);
  border-radius: 6px;
  background: #0b111a;
  color: #f4f7ff;
}

.player-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.player-dialog form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.player-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.player-dialog label,
.dialog-section {
  display: grid;
  gap: 7px;
}

.player-dialog input,
.player-dialog textarea {
  width: 100%;
  border: 1px solid rgba(116, 142, 176, 0.46);
  border-radius: 5px;
  background: #060a10;
  color: #f4f7ff;
}

.dialog-label,
.player-dialog label span {
  color: #aec2dc;
  font-size: 12px;
  font-weight: 900;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.check-row input {
  width: auto;
}

.dialog-copy {
  margin: 0;
  color: #afc0d6;
  font-size: 13px;
}

.player-notes-dialog {
  width: min(1060px, calc(100vw - 32px));
}

.notes-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px);
  gap: 10px;
  align-items: center;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  min-height: 520px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: 520px;
  padding-right: 4px;
  overflow-y: auto;
}

.note-champ,
.note-pill {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(91, 118, 154, 0.45);
  border-radius: 4px;
  background: #101824;
  color: #f4f7ff;
}

.note-champ {
  min-height: 88px;
  padding: 6px 4px;
}

.note-champ.active {
  border-color: #3de0a1;
  box-shadow: inset 0 0 0 1px #3de0a1;
}

.note-champ img,
.note-pill img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.note-champ span,
.note-pill span {
  overflow: hidden;
  width: 100%;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(91, 118, 154, 0.45);
  border-radius: 4px;
  background: #070b12;
}

.note-summary h3 {
  margin: 0;
  color: #dcecff;
  font-size: 14px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 44px;
}

.note-pill {
  padding: 4px 2px;
}

.note-pill img {
  width: 34px;
  height: 34px;
}

@media (max-width: 1180px) {








  body:not([data-player-design="c"])[data-view="player"] .champ-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important;
  }
}

/* PICK ART FIT FIX */
body:not([data-player-design="c"])[data-view="player"] .pick-slot {
  background:
    radial-gradient(circle at center 38%, rgba(40, 64, 92, 0.55), transparent 58%),
    #02050a !important;
}

body:not([data-player-design="c"])[data-view="player"] .pick-slot img.pick-splash {
  max-width: none;
  border-radius: 0;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  filter: saturate(1.08) contrast(1.04) !important;
}

body:not([data-player-design="c"])[data-view="player"] .pick-slot.filled::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.38) 100%) !important;
}

body:not([data-player-design="c"])[data-view="player"] .slot-caption {
  z-index: 2 !important;
}

/* CURRENT BAN VISIBILITY FIX */
body:not([data-player-design="c"])[data-view="player"] .draft-panel {
  grid-template-rows: minmax(0, 1fr) 108px !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-grid {
  margin-top: 0;
  overflow: hidden !important;
  height: 108px !important;
  min-height: 108px !important;
  border-top: 2px solid rgba(120, 151, 192, 0.22) !important;
  background: #03070d !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 0;
  height: 108px !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slot {
  border-color: #151c25;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-left: 1px solid rgba(83, 110, 145, 0.28) !important;
  border-radius: 0 !important;
  color: #bde1ff !important;
  font-weight: 900 !important;
  overflow: hidden !important;
  height: 108px !important;
  min-height: 108px !important;
  padding: 7px 4px 8px !important;
  background: radial-gradient(circle at center 36%, rgba(42, 58, 82, 0.52), transparent 60%),
    #050912 !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slot img {
  width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  border-radius: 4px !important;
  object-fit: contain !important;
  filter: saturate(0.95) brightness(0.92) contrast(1.04) !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slot.filled::after {
  content: "" !important;
  position: absolute !important;
  inset: 13px calc(50% - 1px) !important;
  top: 45px !important;
  left: 50% !important;
  width: 92px !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.75) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slot span {
  z-index: 1;
  position: absolute !important;
  left: 4px !important;
  right: 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  bottom: 8px !important;
  color: #f0f7ff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-shadow: 0 2px 6px #000 !important;
}

/* COACH CONTROL ROOM */
.coach-screen {
  display: none;
}

body:not([data-player-design="c"])[data-view="player"] #playerBulkBtn,
body:not([data-player-design="c"])[data-view="player"] #playerNoteBtn {
  display: none !important;
}

body[data-view="coach"],
body[data-view="coach"] .app {
  width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  overflow: auto !important;
  background: #0b0f15 !important;
  color: #f4f7fb !important;
}

body[data-view="coach"] .app {
  max-width: none !important;
  padding: 18px !important;
}

body[data-view="coach"] .topbar,
body[data-view="coach"] .scoreline,
body[data-view="coach"] .modebar,
body[data-view="coach"] .player-command,
body[data-view="coach"] .workspace {
  display: none !important;
}

body[data-view="coach"] .coach-screen {
  display: grid !important;
  gap: 16px !important;
}

.coach-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(105, 132, 168, 0.35);
  border-radius: 6px;
  background: #101721;
}

.coach-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.05;
}

.coach-header p {
  margin: 6px 0 0;
  color: #abc0dc;
  font-size: 13px;
}

.coach-header-actions,
.coach-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-header-actions {
  justify-content: flex-end;
}

.coach-header-actions button,
.coach-button-row button,
.coach-card > button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(116, 142, 176, 0.5);
  border-radius: 5px;
  background: #172131;
  color: #f4f7ff;
  font-weight: 900;
}

.coach-header-actions button:not(.ghost):not(.danger),
.coach-button-row button.active,
.coach-card > button {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.coach-header-actions .danger {
  border-color: rgba(255, 107, 107, 0.7);
  color: #ffd5d5;
}

.coach-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(560px, 1fr) minmax(360px, 460px);
  gap: 14px;
  align-items: start;
}

.coach-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(105, 132, 168, 0.34);
  border-radius: 6px;
  background: #101721;
}

.coach-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coach-card-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.coach-card-head span,
.coach-card-head strong,
.coach-form-grid span,
.coach-card label span,
.coach-check span {
  color: #adc2dd;
  font-size: 12px;
  font-weight: 800;
}

.coach-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coach-card label {
  display: grid;
  gap: 6px;
}

.coach-card input,
.coach-card textarea {
  width: 100%;
  border: 1px solid rgba(116, 142, 176, 0.45);
  border-radius: 5px;
  background: #070b12;
  color: #f4f7ff;
}

.coach-card textarea {
  resize: vertical;
}

.coach-patch-status {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(105, 132, 168, 0.28);
  border-radius: 5px;
  background: #070b12;
}

.coach-patch-status span {
  color: #9fc4ef;
  font-size: 12px;
  font-weight: 900;
}

.coach-patch-status span.warn {
  color: #ffe187;
}

.coach-patch-status span.error {
  color: #ff9c9c;
}

.coach-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.coach-check input {
  width: auto;
}





.coach-set-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coach-set-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(116, 142, 176, 0.44);
  border-radius: 5px;
  background: #172131;
  color: #f4f7ff;
  font-weight: 900;
}

.coach-set-tabs button.active {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.coach-side-label,
.coach-side-status,
.coach-side-error,
.coach-side-lock-message {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  color: #a9bdd5;
  font-size: 12px;
  font-weight: 900;
}

.coach-side-status.blue {
  color: #6eb4ff;
}

.coach-side-status.red,
.coach-side-error {
  color: #ff7b83;
}

.coach-side-lock-message {
  color: #d9b968;
}

.coach-set-tabs .coach-side-choice.active {
  border-color: rgba(116, 142, 176, 0.72);
  background: #1b293b;
  color: #f4f7ff;
}

.coach-set-tabs .coach-side-choice.pending {
  border-color: #f1d26e;
  box-shadow: inset 0 0 0 1px rgba(241, 210, 110, 0.32);
  color: #ffe69a;
}

.coach-set-tabs .coach-side-confirm {
  border-color: rgba(61, 224, 161, 0.72);
  background: #163328;
  color: #92ffd3;
}

.coach-set-tabs .coach-side-confirm:disabled,
.coach-set-tabs .coach-side-choice:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.coach-draft-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coach-side-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(105, 132, 168, 0.28);
  border-radius: 5px;
  background: #070b12;
}

.coach-side-summary h3 {
  display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px;
}

.coach-side-summary.blue h3 { color: #74b9ff; }
.coach-side-summary.red h3 { color: #ff8f8f; }

.coach-side-badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; font-weight: 1000; letter-spacing: 0.04em;
}

.coach-side-badge.blue { background: rgba(54, 136, 255, 0.16); color: #74b9ff; }
.coach-side-badge.red { background: rgba(255, 79, 91, 0.14); color: #ff838c; }

.coach-summary-line {
  display: grid;
  grid-template-columns: 34px repeat(5, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.coach-summary-line > strong {
  color: #dcecff;
  font-size: 12px;
}

.coach-mini {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(105, 132, 168, 0.28);
  border-radius: 4px;
  background: #0d1420;
  color: #8fa6c2;
  overflow: hidden;
}

.coach-mini img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.coach-mini span {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0 2px 3px;
  color: #f3f7ff;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-pick-mini {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coach-pick-mini .coach-mini {
  width: 100%;
}

.coach-role-picker {
  position: relative;
  min-width: 0;
}

.coach-role-button {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(105, 132, 168, 0.45);
  border-radius: 4px;
  background: #05080d;
  color: #dcecff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.coach-role-picker.selected-role .coach-role-button {
  border-color: rgba(61, 224, 161, 0.78);
  background: #10231d;
  color: #81ffd0;
}

.coach-role-picker.disabled .coach-role-button {
  opacity: 0.45;
}

.coach-role-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  z-index: 45;
  display: none;
  grid-template-columns: repeat(2, minmax(46px, 1fr));
  gap: 4px;
  width: 152px;
  padding: 6px;
  border: 1px solid rgba(105, 132, 168, 0.72);
  border-radius: 5px;
  background: #05080d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.coach-role-picker.open .coach-role-menu {
  display: grid;
}

.coach-role-menu button {
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(105, 132, 168, 0.45);
  border-radius: 4px;
  background: #101824;
  color: #dcecff;
  font-size: 11px;
  font-weight: 900;
}

.coach-role-menu button.active {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.coach-role-menu button.saving {
  cursor: wait;
  opacity: 0.72;
}

.coach-turn-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 7px;
  max-height: 310px;
  padding-right: 3px;
  overflow-y: auto;
}

.coach-turn {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 7px;
  align-items: center;
  min-height: 52px;
  padding: 6px;
  border: 1px solid rgba(105, 132, 168, 0.34);
  border-radius: 4px;
  background: #0b111a;
  color: #f4f7ff;
  text-align: left;
}

.coach-turn.active {
  border-color: #3de0a1;
  box-shadow: inset 0 0 0 1px #3de0a1;
}

.coach-turn img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.coach-turn span,
.coach-turn strong,
.coach-turn em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-turn span {
  color: #9fc4ef;
  font-size: 11px;
  font-weight: 900;
}

.coach-turn strong {
  font-size: 12px;
}

.coach-turn em {
  color: #7f93ad;
  font-size: 11px;
  font-style: normal;
}



.coach-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
}

.coach-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  max-height: 380px;
  padding-right: 4px;
  overflow-y: auto;
}

.coach-note-champ,
.coach-note-pill {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(105, 132, 168, 0.34);
  border-radius: 4px;
  background: #0b111a;
  color: #f4f7ff;
}

.coach-note-champ {
  min-height: 88px;
  padding: 6px 4px;
}

.coach-note-champ.active {
  border-color: #3de0a1;
  box-shadow: inset 0 0 0 1px #3de0a1;
}

.coach-note-champ img,
.coach-note-pill img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.coach-note-champ span,
.coach-note-pill span {
  overflow: hidden;
  width: 100%;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-note-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.coach-note-side h3 {
  margin: 0;
  color: #dcecff;
  font-size: 14px;
}

.coach-note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #070b12;
}

.coach-note-pill {
  padding: 4px 2px;
}

.coach-note-pill img {
  width: 34px;
  height: 34px;
}

.coach-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.coach-stat {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #070b12;
}

.coach-stat span {
  color: #94aac6;
  font-size: 11px;
  font-weight: 900;
}

.coach-stat strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-stat em {
  color: #9fb4cf;
  font-size: 11px;
  font-style: normal;
}

#coachCsvPreview {
  max-height: 170px;
  min-height: 150px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #05080d;
  color: #adc2dd;
  font-family: Consolas, monospace;
  font-size: 11px;
  white-space: pre;
}

.coach-lane-grid {
  display: grid;
  gap: 8px;
}

@media (max-width: 1280px) {
  .coach-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coach-draft-card,
  .coach-notes-card,
  .coach-stats-card {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .coach-header,
  .coach-draft-summary,
  .coach-notes-layout,
  .coach-grid,
  .coach-form-grid {
    grid-template-columns: 1fr;
  }

  .coach-header {
    display: grid;
  }

  .coach-draft-card,
  .coach-notes-card,
  .coach-stats-card {
    grid-column: span 1;
  }

  .coach-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* COACH SIMPLIFIED WORKFLOW */
body[data-view="coach"] .coach-screen {
  gap: 12px !important;
}

.coach-header {
  padding: 14px 16px;
}

.coach-header h1 {
  font-size: 26px;
}

.coach-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 12px;
}

.coach-draft-card,
.coach-notes-card,
.coach-stats-card {
  grid-column: auto;
}

.coach-draft-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.coach-record-card {
  grid-column: 1;
}

.coach-tier-card,
.coach-lane-card {
  grid-column: 1 / span 2;
}

.coach-notes-card {
  grid-column: 1;
}

.coach-stats-card {
  grid-column: 2;
}

.coach-card {
  gap: 10px;
  padding: 12px;
}

.coach-form-grid {
  grid-template-columns: 1fr;
}

.coach-record-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.coach-record-summary div,
.coach-patch-stats {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #070b12;
}

.coach-record-summary span {
  color: #94aac6;
  font-size: 11px;
  font-weight: 900;
}

.coach-record-summary strong,
.coach-patch-stats strong {
  color: #fff;
  font-size: 18px;
}

.coach-record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coach-bulk-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(105, 132, 168, 0.3);
  border-radius: 5px;
  background: #070b12;
}

.coach-bulk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.coach-bulk-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.coach-bulk-head span,
.coach-bulk-actions p {
  margin: 0;
  color: #94aac6;
  font-size: 11px;
  font-weight: 800;
}

.coach-bulk-grid {
  display: grid;
  grid-template-columns: 100px repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coach-bulk-grid select,
.coach-bulk-grid textarea {
  width: 100%;
  border: 1px solid rgba(105, 132, 168, 0.45);
  border-radius: 5px;
  background: #05080d;
  color: #f4f7ff;
  font: inherit;
}

.coach-bulk-grid select {
  min-height: 38px;
  padding: 0 10px;
}

.coach-bulk-grid textarea {
  min-height: 74px;
  padding: 9px;
  resize: vertical;
}

.coach-bulk-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.coach-bulk-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3de0a1;
  border-radius: 5px;
  background: #39d79a;
  color: #03130d;
  font-weight: 900;
}

.coach-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-record-actions button,
.coach-card-actions button {
  min-height: 36px;
  border: 1px solid rgba(116, 142, 176, 0.5);
  border-radius: 5px;
  background: #172131;
  color: #f4f7ff;
  font-weight: 900;
}

.coach-record-actions button:first-child {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.coach-card-actions button:not(.danger):not(.ghost) {
  border-color: #3de0a1;
  background: #39d79a;
  color: #03130d;
}

.coach-card-actions .danger {
  border-color: rgba(255, 107, 107, 0.75);
  color: #ffdede;
}

.coach-record-table {
  overflow: hidden;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #070b12;
}

.coach-record-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.coach-record-table th,
.coach-record-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(105, 132, 168, 0.2);
  text-align: left;
}

.coach-record-table th {
  color: #9fc4ef;
  font-weight: 900;
}

.coach-tier-list {
  display: grid;
  gap: 9px;
}

.manual-tier-empty {
  padding: 10px;
  border: 1px solid rgba(216, 182, 90, 0.28);
  border-radius: 5px;
  background: rgba(216, 182, 90, 0.08);
  color: #dccb99;
  font-size: 13px;
  font-weight: 800;
}

.coach-tier-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(105, 132, 168, 0.26);
  border-radius: 5px;
  background: #070b12;
}

.coach-tier-row > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #26364d;
  color: #ffe187;
  font-size: 18px;
}

.coach-tier-champs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 7px;
}

.coach-tier-champ {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 74px;
  padding: 5px 3px;
  border: 1px solid rgba(105, 132, 168, 0.34);
  border-radius: 4px;
  background: #0b111a;
  color: #f4f7ff;
}

.coach-tier-champ img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.coach-tier-champ span {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-patch-stats {
  display: block;
  color: #adc2dd;
  font-size: 13px;
  font-weight: 800;
}



@media (max-width: 1180px) {
  .coach-grid,
  .coach-draft-card,
  .coach-record-card,
  .coach-tier-card,
  .coach-notes-card,
  .coach-stats-card,
  .coach-lane-card {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .coach-grid {
    grid-template-columns: 1fr;
  }
}

/* MANUAL TIER MAKER */
.coach-tier-dialog {
  width: min(1320px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(105, 132, 168, 0.55);
  border-radius: 6px;
  background: #0b111a;
  color: #f4f7ff;
}

.coach-tier-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.coach-tier-dialog form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tier-maker-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
  gap: 12px;
  min-height: 620px;
}

.tier-maker-board,
.tier-maker-pool {
  min-width: 0;
  border: 1px solid rgba(105, 132, 168, 0.3);
  border-radius: 5px;
  background: #070b12;
}

.tier-maker-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.tier-maker-head,
.tier-maker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tier-maker-head strong {
  color: #ffe187;
  font-size: 16px;
}

.manual-tier-rows {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
}

.manual-tier-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  min-height: 82px;
  padding: 7px;
  border: 1px solid rgba(105, 132, 168, 0.24);
  border-radius: 5px;
  background: #0b111a;
}

.manual-tier-row.active {
  border-color: #3de0a1;
  box-shadow: inset 0 0 0 1px rgba(61, 224, 161, 0.6);
}

.manual-tier-row.drag-over {
  border-color: #ffe187;
  box-shadow: inset 0 0 0 2px rgba(255, 225, 135, 0.78);
}

.manual-tier-label {
  min-height: 66px;
  border-color: rgba(216, 182, 90, 0.5);
  background: #26364d;
  color: #ffe187;
  font-size: 14px;
  font-weight: 900;
}

.manual-tier-champs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
  align-content: start;
}

.manual-tier-chip {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 68px;
  padding: 4px 3px;
  border: 1px solid rgba(105, 132, 168, 0.35);
  border-radius: 4px;
  background: #101824;
  color: #f4f7ff;
}

.manual-tier-chip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.manual-tier-chip span {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coach-tier-role-badge, .manual-tier-role-badge {
  position: absolute; z-index: 2; display: grid; place-items: center; min-width: 28px; height: 17px;
  padding: 0 4px; border: 1px solid rgba(61, 224, 161, 0.72); border-radius: 3px;
  background: rgba(5, 18, 17, 0.94); color: #7ff1c3; font-size: 8px; font-weight: 1000; line-height: 1; letter-spacing: 0.02em;
}
.coach-tier-role-badge { top: 3px; left: 3px; }
.manual-tier-role-badge { top: 4px; right: 4px; }
.coach-tier-role-badge[hidden], .manual-tier-role-badge[hidden] { display: none; }

.tier-maker-pool {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.tier-maker-toolbar {
  align-items: stretch;
}

.tier-maker-toolbar .coach-button-row {
  flex: 0 0 auto;
}

.tier-maker-toolbar input {
  min-width: 220px;
}

.tier-champion-pool {
  --tier-pool-card-height: 94px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  grid-auto-rows: var(--tier-pool-card-height);
  align-content: start;
  align-items: start;
  gap: 8px;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.tier-pool-champ {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: start;
  gap: 4px;
  height: var(--tier-pool-card-height);
  min-height: var(--tier-pool-card-height);
  max-height: var(--tier-pool-card-height);
  padding: 6px 4px;
  border: 1px solid rgba(105, 132, 168, 0.35);
  border-radius: 4px;
  background: #0d1420;
  color: #f4f7ff;
}

.tier-pool-champ.assigned {
  opacity: 0.62;
}

.tier-pool-champ.in-active-tier {
  opacity: 1;
  border-color: #3de0a1;
  box-shadow: inset 0 0 0 1px rgba(61, 224, 161, 0.7);
}

.tier-pool-champ img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.tier-pool-champ span {
  overflow: hidden;
  width: 100%;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-pool-assignments {
  position: absolute; top: 5px; right: 5px; display: flex; flex-flow: column wrap;
  align-content: flex-end; gap: 2px; max-height: 48px; max-width: calc(100% - 10px); pointer-events: none;
}

.tier-pool-assignments small {
  display: grid; place-items: center; min-width: 27px; height: 15px; padding: 0 3px;
  border: 1px solid rgba(255, 225, 135, 0.62); border-radius: 3px; background: rgba(21, 17, 7, 0.94);
  color: #ffe187; font-size: 7px; font-weight: 1000; line-height: 1; white-space: nowrap;
}
.tier-pool-assignments[hidden] { display: none; }

.tier-role-context-menu {
  position: fixed; z-index: 10020; display: grid; grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 5px; width: min(290px, calc(100vw - 16px)); padding: 7px; border: 1px solid rgba(105, 132, 168, 0.72);
  border-radius: 5px; background: #0b111a; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.56);
}
.tier-role-context-menu[hidden] { display: none; }

.tier-role-context-menu button {
  min-width: 0; min-height: 34px; padding: 6px 5px; border-color: rgba(105, 132, 168, 0.42);
  background: #111b29; color: #dbe9fa; font-size: 11px; font-weight: 1000;
}

.tier-role-context-menu button:hover, .tier-role-context-menu button:focus-visible, .tier-role-context-menu button.active {
  border-color: #3de0a1; background: #17352e; color: #9dffdc;
}
@media (max-width: 980px) {
  .tier-maker-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tier-champion-pool {
    max-height: 420px;
  }
}

/* COACH PRIORITY LAYOUT FIX */
body[data-view="coach"] .coach-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr) !important;
  grid-template-rows: minmax(142px, 18vh) minmax(620px, 68vh) auto auto auto !important;
  gap: 12px !important;
  align-items: stretch !important;
}



















.coach-check-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(120, 170, 230, 0.28);
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.72);
  min-width: 0;
}



































body[data-view="coach"] .coach-tier-card,
body[data-view="coach"] .coach-quick-note-card {
  min-height: 0 !important;
  max-height: 230px !important;
  overflow: hidden !important;
}

body[data-view="coach"] .coach-tier-card {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

body[data-view="coach"] .coach-tier-list {
  min-height: 0 !important;
  overflow: auto !important;
}

body[data-view="coach"] .coach-tier-list .manual-tier-empty {
  padding: 7px 9px !important;
  font-size: 12px !important;
}

body[data-view="coach"] .coach-tier-row {
  min-height: 38px !important;
  padding: 5px 7px !important;
  grid-template-columns: 68px 1fr !important;
}

body[data-view="coach"] .coach-tier-row > strong {
  width: 58px !important;
  height: 28px !important;
  font-size: 12px !important;
}

body[data-view="coach"] .coach-tier-champs {
  display: flex !important;
  gap: 5px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}







body[data-view="coach"] .coach-draft-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-view="coach"] .coach-side-summary {
  padding: 12px !important;
}

body[data-view="coach"] .coach-summary-line {
  grid-template-columns: 42px repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-view="coach"] .coach-mini {
  min-height: 84px !important;
}

body[data-view="coach"] .coach-mini img {
  width: 58px !important;
  height: 58px !important;
}

body[data-view="coach"] .coach-mini span {
  font-size: 11px !important;
}

body[data-view="coach"] .coach-turn-list {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)) !important;
  min-height: 340px !important;
  max-height: none !important;
}

body[data-view="coach"] .coach-turn {
  min-height: 68px !important;
}

body[data-view="coach"] .coach-turn img {
  width: 44px !important;
  height: 44px !important;
}

@media (max-width: 1180px) {
  body[data-view="coach"] .coach-grid,
  body[data-view="coach"] .coach-tier-card,
  body[data-view="coach"] .coach-quick-note-card,
  body[data-view="coach"] .coach-draft-card,
  body[data-view="coach"] .coach-stats-card,
  body[data-view="coach"] .coach-lane-card,
  body[data-view="coach"] .coach-record-card,
  body[data-view="coach"] .coach-control-card,
  body[data-view="coach"] .coach-notes-card {
    grid-column: 1 !important;
    grid-row: auto !important;
  }




}

/* TIER MAKER FIXED PANELS */
.coach-tier-dialog {
  width: min(1320px, calc(100vw - 28px)) !important;
  height: min(860px, calc(100vh - 28px)) !important;
  max-height: none !important;
  overflow: hidden !important;
}

.coach-tier-dialog form {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  overflow: hidden !important;
}

.tier-maker-layout {
  grid-template-columns: minmax(520px, 0.82fr) minmax(560px, 1fr) !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.tier-maker-board,
.tier-maker-pool {
  min-height: 0 !important;
  overflow: hidden !important;
}

.manual-tier-rows {
  grid-template-rows: repeat(4, minmax(118px, 1fr)) !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

.manual-tier-row {
  grid-template-columns: 54px minmax(0, 1fr) !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.manual-tier-label {
  min-height: 0 !important;
  height: 100% !important;
}

.manual-tier-champs {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.tier-maker-pool {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.tier-maker-toolbar,
#coachTierRoleTabs {
  flex: 0 0 auto !important;
}

.tier-champion-pool {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
}

/* PLAYER SCREEN SIMPLIFY FINAL */
body:not([data-player-design="c"])[data-view="player"] #playerBulkBtn,
body:not([data-player-design="c"])[data-view="player"] #playerNoteBtn,
body:not([data-player-design="c"])[data-view="player"] #playerResetBtn {
  display: none !important;
}





body:not([data-player-design="c"])[data-view="player"][data-player-turn-side="red"] .player-turn-card {
  border-left-color: #ff6b6b !important;
  background:
    linear-gradient(90deg, rgba(181, 55, 65, 0.25), rgba(18, 10, 14, 0.96)),
    #16090d !important;
}

body:not([data-player-design="c"])[data-view="player"][data-player-turn-type="ban"] .player-turn-card::after {
  content: "BAN" !important;
}

body:not([data-player-design="c"])[data-view="player"][data-player-turn-type="pick"] .player-turn-card::after {
  content: "PICK" !important;
}





body:not([data-player-design="c"])[data-view="player"][data-player-turn-side="red"] .player-turn-card span {
  color: #ffaaa7 !important;
}









body:not([data-player-design="c"])[data-view="player"] .pick-slot.selected {
  box-shadow:
    inset 0 0 0 4px #31e7a6,
    inset 0 0 28px rgba(49, 231, 166, 0.28) !important;
}

body:not([data-player-design="c"])[data-view="player"] .ban-slot.selected {
  box-shadow:
    inset 0 0 0 3px #31e7a6,
    inset 0 0 18px rgba(49, 231, 166, 0.24) !important;
}

body:not([data-player-design="c"])[data-view="player"] .champ.locked::after,
body:not([data-player-design="c"])[data-view="player"] .champ.current::after {
  content: "" !important;
  position: absolute !important;
  inset: 10px 15px auto auto !important;
  width: 22px !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

@media (max-width: 1180px) {


  body:not([data-player-design="c"])[data-view="player"] .player-turn-card strong {
    font-size: clamp(21px, 5vw, 28px) !important;
  }
}

@media (max-width: 760px) {
  body:not([data-player-design="c"])[data-view="player"] .app {
    padding: 5px 6px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .scoreline {
    top: 5px !important;
    left: 6px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .set-tabs button {
    min-width: 44px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }





  body:not([data-player-design="c"])[data-view="player"] .player-actions button {
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }







  body:not([data-player-design="c"])[data-view="player"] .pool-toolbar {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .filters {
    gap: 4px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .filters button {
    min-height: 26px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .champ-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important;
    gap: 5px !important;
    height: calc(100% - 108px) !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .champ {
    min-height: 80px !important;
    padding: 4px 2px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .champ img {
    width: 52px !important;
    height: 52px !important;
  }
}

/* USER FLOW LAYOUT FIX */
body:not([data-player-design="c"])[data-view="player"] .player-command {
  top: 6px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 118 !important;
  grid-template-columns: minmax(150px, 210px) auto !important;
  gap: 6px !important;
  width: min(720px, calc(100vw - 210px)) !important;
  min-height: 42px !important;
  padding: 4px 6px !important;
  border-radius: 5px !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-turn-card {
  position: relative !important;
  border-left: 5px solid #3aa0ff !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, rgba(42, 112, 176, 0.22), rgba(9, 16, 27, 0.96)),
    #08111d !important;
  box-shadow: inset 0 0 0 1px rgba(155, 198, 255, 0.14) !important;
  min-height: 34px !important;
  padding: 4px 36px 4px 10px !important;
  border-left-width: 4px !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-turn-card span {
  color: #9ccfff !important;
  font-weight: 1000 !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-turn-card strong {
  color: #ffffff !important;
  font-size: clamp(17px, 1.5vw, 22px) !important;
  line-height: 1 !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-turn-card em {
  color: #b6c7dc !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-turn-card::after {
  position: absolute !important;
  color: rgba(255, 255, 255, 0.2) !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  top: 5px !important;
  right: 8px !important;
  font-size: 12px !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-actions {
  align-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-actions button {
  border-radius: 4px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}







body[data-view="coach"] .coach-grid {
  grid-template-columns: minmax(0, 4fr) minmax(280px, 1fr) !important;
  grid-template-rows: minmax(680px, calc(100vh - 142px)) auto auto auto !important;
  gap: 12px !important;
}









body[data-view="coach"] .coach-tier-card .coach-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
}

body[data-view="coach"] .coach-tier-card .coach-card-actions button {
  min-height: 30px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}





body[data-view="coach"] .coach-tier-champs {
  flex-wrap: wrap !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: 92px !important;
}

















@media (max-width: 1180px) {




  body:not([data-player-design="c"])[data-view="player"] .draft-panel {
    height: 36vh !important;
    min-height: 360px !important;
    top: 190px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .pool-panel {
    top: calc(190px + 36vh + 18px) !important;
  }

  body[data-view="coach"] .coach-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  body[data-view="coach"] .coach-draft-card,
  body[data-view="coach"] .coach-tier-card,
  body[data-view="coach"] .coach-quick-note-card {
    height: auto !important;
  }
}

@media (max-width: 760px) {


  body:not([data-player-design="c"])[data-view="player"] .player-actions {
    justify-content: flex-start !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
  }






}

/* NO OVERLAP FINAL */
body[data-view="coach"] .coach-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 4fr) minmax(280px, 1fr) !important;
  grid-template-rows: auto auto auto auto auto !important;
  align-items: start !important;
  gap: 14px !important;
  overflow: visible !important;
}

body[data-view="coach"] .coach-card {
  min-width: 0 !important;
}

body[data-view="coach"] .coach-draft-card {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto auto auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-view="coach"] .coach-tier-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 300px !important;
  max-height: none !important;
  overflow: hidden !important;
}

body[data-view="coach"] .coach-quick-note-card {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 220px !important;
  max-height: none !important;
  overflow: hidden !important;
}

body[data-view="coach"] .coach-quick-note-card textarea {
  height: 148px !important;
  min-height: 148px !important;
  resize: vertical !important;
}

body[data-view="coach"] .coach-record-card {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  clear: both !important;
}









body[data-view="coach"] .coach-turn-list {
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-view="coach"] .coach-check-panel {
  max-height: none !important;
  overflow: visible !important;
}



body[data-view="coach"] .coach-draft-summary,
body[data-view="coach"] .coach-turn-list,
body[data-view="coach"] .coach-record-card {
  position: relative !important;
  z-index: 1 !important;
}

body[data-view="coach"] .coach-tier-list {
  max-height: 220px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}



body:not([data-player-design="c"])[data-view="player"] .player-command,
body:not([data-player-design="c"])[data-view="player"] .info-panel,
body:not([data-player-design="c"])[data-view="player"] .draft-panel,
body:not([data-player-design="c"])[data-view="player"] .pool-panel {
  box-sizing: border-box !important;
}









@media (max-width: 1180px) {
  body[data-view="coach"] .coach-grid,
  body[data-view="coach"] .coach-draft-card,
  body[data-view="coach"] .coach-tier-card,
  body[data-view="coach"] .coach-quick-note-card,
  body[data-view="coach"] .coach-record-card,
  body[data-view="coach"] .coach-control-card,
  body[data-view="coach"] .coach-stats-card,
  body[data-view="coach"] .coach-lane-card,
  body[data-view="coach"] .coach-notes-card {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body[data-view="coach"] .coach-grid {
    grid-template-columns: 1fr !important;
  }


}

@media (max-width: 760px) {
  body:not([data-player-design="c"])[data-view="player"] .info-panel {
    width: calc(100vw - 12px) !important;
    top: 140px !important;
    max-height: 76px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .draft-panel {
    width: calc(100vw - 12px) !important;
    min-height: 250px !important;
    top: 222px !important;
    height: 31vh !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .pool-panel {
    bottom: 6px !important;
    width: calc(100vw - 12px) !important;
    min-height: 0 !important;
    top: calc(222px + 31vh + 10px) !important;
  }
}

/* COACH USABILITY PASS */
body[data-view="coach"] .coach-turn-list {
  display: none !important;
}

body[data-view="coach"] .coach-draft-card {
  grid-template-rows: auto auto auto auto auto !important;
}











body[data-view="coach"] .coach-lane-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body[data-view="coach"] .coach-lane-card textarea {
  min-height: 92px !important;
}

body[data-view="coach"] .coach-role-picker {
  position: relative !important;
  min-width: 0 !important;
}

body[data-view="coach"] .coach-role-button {
  width: 100% !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(105, 132, 168, 0.45) !important;
  border-radius: 4px !important;
  background: #05080d !important;
  color: #dcecff !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-align: center !important;
}

body[data-view="coach"] .coach-role-picker.selected-role .coach-role-button {
  border-color: rgba(61, 224, 161, 0.82) !important;
  background: #10231d !important;
  color: #81ffd0 !important;
}

body[data-view="coach"] .coach-role-picker.disabled .coach-role-button {
  opacity: 0.45 !important;
}

body[data-view="coach"] .coach-role-menu {
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 4px) !important;
  z-index: 80 !important;
  display: none !important;
  grid-template-columns: repeat(2, minmax(46px, 1fr)) !important;
  gap: 4px !important;
  width: 150px !important;
  padding: 6px !important;
  border: 1px solid rgba(105, 132, 168, 0.7) !important;
  border-radius: 5px !important;
  background: #05080d !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45) !important;
}

body[data-view="coach"] .coach-role-picker.open .coach-role-menu {
  display: grid !important;
}

body[data-view="coach"] .coach-role-menu button {
  min-height: 28px !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

body[data-view="coach"] .coach-role-menu button.active {
  border-color: #3de0a1 !important;
  background: #39d79a !important;
  color: #03130d !important;
}

body[data-view="coach"] .coach-role-menu button.saving {
  cursor: wait !important;
  opacity: 0.72 !important;
}

body[data-view="coach"] .coach-tier-list {
  max-height: 300px !important;
}

body[data-view="coach"] .coach-tier-row {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  min-height: 70px !important;
}

body[data-view="coach"] .coach-tier-row > strong {
  width: 50px !important;
  height: 42px !important;
}

body[data-view="coach"] .coach-tier-champs {
  gap: 7px !important;
  max-height: 146px !important;
  overflow-y: auto !important;
}

body[data-view="coach"] .coach-tier-champ {
  position: relative !important;
  flex: 0 0 66px !important;
  min-height: 70px !important;
  padding: 5px 3px 4px !important;
}

body[data-view="coach"] .coach-tier-champ img {
  width: 44px !important;
  height: 44px !important;
}

body[data-view="coach"] .coach-tier-champ span {
  font-size: 10px !important;
}

body[data-view="coach"] .coach-tier-champ.fearless-locked {
  border-color: rgba(255, 218, 114, 0.58) !important;
  background: #0a0c10 !important;
  opacity: 0.64 !important;
  filter: grayscale(0.85) saturate(0.55) !important;
}

body[data-view="coach"] .coach-tier-champ.fearless-locked::after {
  content: "" !important;
  position: absolute !important;
  top: 9px !important;
  left: 14px !important;
  width: 44px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.86) !important;
}

body[data-view="coach"] .coach-tier-champ.fearless-locked em {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  max-width: 56px !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.78) !important;
  color: #ffe187 !important;
  font-size: 8px !important;
  font-style: normal !important;
  font-weight: 1000 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="coach"] .coach-tier-champ.fearless-locked.blue {
  box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.42) !important;
}

body[data-view="coach"] .coach-tier-champ.fearless-locked.red {
  box-shadow: inset 0 0 0 1px rgba(255, 123, 114, 0.42) !important;
}

@media (max-width: 1180px) {
  body[data-view="coach"] .coach-lane-grid {
    grid-template-columns: 1fr !important;
  }
}

/* SERIES BAN BOARD PASS */
body[data-view="coach"] .coach-check-panel {
  padding: 10px 12px !important;
  border-color: rgba(216, 182, 90, 0.34) !important;
  background: #080d15 !important;
}

body[data-view="coach"] .coach-series-status {
  display: flex;
  justify-content: center;
  padding-bottom: 7px;
  color: #9fc4ef;
  font-size: 12px;
  font-weight: 900;
}

body[data-view="coach"] .coach-series-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: 0;
  align-items: stretch;
}

body[data-view="coach"] .coach-series-center {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(105, 132, 168, 0.28);
  border-radius: 5px;
  background: rgba(5, 8, 13, 0.92);
}

body[data-view="coach"] .coach-series-icon {
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(105, 132, 168, 0.42);
  border-radius: 3px;
  background: #03060b;
  overflow: hidden;
}

body[data-view="coach"] .coach-series-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="coach"] .coach-series-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

body[data-view="coach"] .coach-series-title span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 1000;
}

body[data-view="coach"] .coach-series-title strong {
  color: #ffe187;
  font-size: 11px;
}

body[data-view="coach"] .coach-series-lanes {
  display: grid;
  gap: 6px;
}

body[data-view="coach"] .coach-series-lane {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

body[data-view="coach"] .coach-series-icon.blue {
  border-color: rgba(88, 166, 255, 0.75);
}

body[data-view="coach"] .coach-series-icon.red {
  border-color: rgba(255, 123, 114, 0.75);
}

body[data-view="coach"] .coach-series-icon::after {
  content: "";
  position: absolute;
  inset: 6px calc(50% - 1px);
  width: 2px;
  background: rgba(255, 255, 255, 0.82);
  transform: rotate(-45deg);
}

body[data-view="coach"] .coach-series-icon em {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 1px 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #dcecff;
  font-size: 7px;
  font-style: normal;
  font-weight: 1000;
}

body[data-view="coach"] .coach-notes-card {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
}

body[data-view="coach"] .coach-lane-card {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

body[data-view="coach"] .coach-record-card {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
}

body[data-view="coach"] .coach-control-card {
  grid-column: 1 !important;
  grid-row: 6 !important;
}

body[data-view="coach"] .coach-stats-card {
  grid-column: 2 !important;
  grid-row: 6 !important;
}



















/* Final non-overlap pass: one place controls player screen vertical bands. */
body[data-view="coach"] .coach-series-lanes {
  gap: 10px !important;
}

body[data-view="coach"] .coach-series-lane {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 54px !important;
}

body[data-view="coach"] .coach-series-icon {
  width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 4px !important;
}

body[data-view="coach"] .coach-series-icon::after {
  inset: 9px calc(50% - 1px) !important;
}

body[data-view="coach"] .coach-series-icon em {
  right: 2px !important;
  bottom: 2px !important;
  font-size: 8px !important;
}

body:not([data-player-design="c"])[data-view="player"] {
  height: 100vh;
  overflow: hidden;
  --player-info-top: 62px;
  --player-info-height: 188px;
  --player-band-gap: 14px;
  --player-draft-top: calc(var(--player-info-top) + var(--player-info-height) + var(--player-band-gap));
  --player-pool-top: clamp(560px, 68vh, 660px);
  --player-draft-height: max(260px, calc(var(--player-pool-top) - var(--player-draft-top) - var(--player-band-gap)));
}

body:not([data-player-design="c"])[data-view="player"] .player-command {
  position: fixed !important;
  display: grid !important;
  gap: 10px !important;
  border: 1px solid rgba(101, 129, 165, 0.32) !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  grid-template-columns: minmax(260px, 360px) auto !important;
  padding: 8px !important;
  border-color: rgba(120, 151, 192, 0.45) !important;
  background: rgba(3, 6, 11, 0.96) !important;
  max-width: calc(100vw - 220px) !important;
  top: 6px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 120 !important;
  width: min(720px, calc(100vw - 260px)) !important;
  min-height: 42px !important;
}

body:not([data-player-design="c"])[data-view="player"] #playerBulkBtn,
body:not([data-player-design="c"])[data-view="player"] #playerNoteBtn,
body:not([data-player-design="c"])[data-view="player"] #playerResetBtn {
  display: none !important;
}

body:not([data-player-design="c"])[data-view="player"] .info-panel {
  order: 1;
  margin: 0 auto;
  border-color: #171c23;
  position: fixed !important;
  left: 50% !important;
  border: 1px solid rgba(75, 92, 116, 0.55) !important;
  border-radius: 3px !important;
  background: #05070b !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  top: var(--player-info-top) !important;
  z-index: 75 !important;
  width: min(1260px, calc(100vw - 88px)) !important;
  height: var(--player-info-height) !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px 12px !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-fearless-board {
  justify-content: center !important;
  place-items: center;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 142px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
}



body:not([data-player-design="c"])[data-view="player"] .player-fearless-lanes {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  min-width: 0 !important;
  height: 100% !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-fearless-lane {
  justify-items: center !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 8px 7px !important;
  border: 1px solid rgba(105, 132, 168, 0.2) !important;
  border-radius: 5px !important;
  background: rgba(5, 8, 13, 0.5) !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-fearless-lane > strong {
  color: #dcecff !important;
  line-height: 1 !important;
  width: 100% !important;
  padding-bottom: 5px !important;
  border-bottom: 1px solid rgba(105, 132, 168, 0.22) !important;
  font-size: 12px !important;
}

body:not([data-player-design="c"])[data-view="player"] .player-fearless-lane .player-fearless-icons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-content: flex-start !important;
  justify-content: center !important;
  max-height: none !important;
  overflow: hidden !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-icon {
  position: relative !important;
  padding: 0 !important;
  background: #03060b !important;
  width: clamp(40px, 2.4vw, 46px) !important;
  min-width: clamp(40px, 2.4vw, 46px) !important;
  height: clamp(40px, 2.4vw, 46px) !important;
  min-height: clamp(40px, 2.4vw, 46px) !important;
  border-radius: 4px !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-icon::after {
  content: "" !important;
  position: absolute !important;
  width: 2px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  transform: rotate(-45deg) !important;
  inset: 8px calc(50% - 1px) !important;
}

body:not([data-player-design="c"])[data-view="player"] .fearless-icon span {
  position: absolute !important;
  display: block !important;
  padding: 1px 2px !important;
  border-radius: 2px !important;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #dcecff !important;
  font-weight: 900 !important;
  right: 2px !important;
  bottom: 2px !important;
  font-size: 8px !important;
}

body:not([data-player-design="c"])[data-view="player"] .draft-panel {
  order: 2;
  margin: 0 auto;
  border-color: #171c23;
  position: fixed !important;
  left: 50% !important;
  display: grid !important;
  width: min(1500px, calc(100vw - 34px)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #05070b !important;
  box-shadow: 0 0 0 1px rgba(53, 78, 110, 0.55) !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  top: var(--player-draft-top) !important;
  z-index: 58 !important;
  height: var(--player-draft-height) !important;
  min-height: 0 !important;
  max-height: none !important;
  grid-template-rows: minmax(0, 1fr) clamp(86px, 11vh, 116px) !important;
}

body:not([data-player-design="c"])[data-view="player"] .pool-panel {
  order: 3;
  margin: 0 auto;
  border-color: #121821;
  max-height: none !important;
  position: fixed !important;
  right: auto !important;
  left: 50% !important;
  z-index: 55 !important;
  display: grid !important;
  grid-template-rows: 40px 34px minmax(0, 1fr) !important;
  width: min(1500px, calc(100vw - 34px)) !important;
  height: auto !important;
  padding: 8px 10px 10px !important;
  border: 1px solid rgba(58, 75, 98, 0.65) !important;
  border-radius: 4px !important;
  background: #05070b !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  top: calc(var(--player-pool-top) + var(--player-band-gap)) !important;
  bottom: 10px !important;
  min-height: 0 !important;
}

@media (max-width: 1180px) {
  body[data-view="coach"] .coach-series-board {
    grid-template-columns: 1fr !important;
  }

  body[data-view="coach"] .coach-series-icon {
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] {
    --player-info-top: 112px;
    --player-info-height: 176px;
    --player-pool-top: clamp(600px, 73vh, 680px);
  }

  body:not([data-player-design="c"])[data-view="player"] .player-command {
    max-width: none !important;
    top: 40px !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .info-panel {
    top: 94px !important;
    width: calc(100vw - 20px) !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .player-fearless-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .fearless-icon {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

@media (max-width: 760px) {
  body:not([data-player-design="c"])[data-view="player"] {
    --player-info-top: 136px;
    --player-info-height: 132px;
    --player-pool-top: 70vh;
  }

  body:not([data-player-design="c"])[data-view="player"] .player-command {
    left: 6px !important;
    right: 6px !important;
    gap: 6px !important;
    min-height: 0 !important;
    top: 36px !important;
    grid-template-columns: 1fr !important;
  }

  body:not([data-player-design="c"])[data-view="player"] .player-fearless-board {
    grid-template-columns: 1fr !important;
  }



  body:not([data-player-design="c"])[data-view="player"] .player-fearless-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Coach experiment: vertical fearless lanes + direct slot replacement. */
body[data-build="coach-experiment"] .coach-header {
  border-color: rgba(255, 218, 114, 0.35) !important;
}

body[data-build="coach-experiment"] .coach-header .eyebrow {
  color: #ffe187 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-icon::after {
  inset: 8px calc(50% - 1px) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-icon em {
  right: 2px !important;
  bottom: 2px !important;
  font-size: 8px !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-mini {
  cursor: pointer !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-mini.empty {
  border-style: dashed !important;
  background: #08111d !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-mini.editing {
  border-color: #3de0a1 !important;
  box-shadow: 0 0 0 2px rgba(61, 224, 161, 0.28), inset 0 0 18px rgba(61, 224, 161, 0.12) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .champ.replace-ready:not(.locked):not(.current) {
  border-color: rgba(61, 224, 161, 0.7) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .champ.replace-ready:not(.locked):not(.current):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 0 2px rgba(61, 224, 161, 0.32) !important;
}

@media (max-width: 1180px) {
  body[data-build="coach-experiment"][data-view="coach"] .coach-series-board {
    grid-template-columns: 1fr !important;
  }
}

/* Coach experiment: replace strategy notes with draft champion selector. */
body[data-build="coach-experiment"][data-view="coach"] .coach-select-card {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: grid !important;
  gap: 10px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-notes-legacy {
  display: none !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-toolbar {
  display: grid !important;
  gap: 10px !important;
  align-items: center !important;
}

body[data-build="coach-experiment"][data-view="coach"] #coachSelectStatus {
  color: #9fc4ef !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body[data-build="coach-experiment"][data-view="coach"] #coachSelectSearch {
  width: 100% !important;
  min-height: 36px !important;
}

body[data-build="coach-experiment"][data-view="coach"] #coachSelectRoles {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: flex-start !important;
}

body[data-build="coach-experiment"][data-view="coach"] #coachSelectRoles button {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}

body[data-build="coach-experiment"][data-view="coach"] #coachSelectRoles button.active {
  border-color: #3de0a1 !important;
  background: #39d79a !important;
  color: #03130d !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-grid {
  display: grid !important;
  max-height: none !important;
  overflow-x: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  border: 1px solid rgba(105, 132, 168, 0.36) !important;
  border-radius: 5px !important;
  background: #0b111a !important;
  color: #f4f7ff !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ span,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ small {
  overflow: hidden !important;
  width: 100% !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ span {
  font-size: 12px !important;
  font-weight: 1000 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ small {
  color: #9fc4ef !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ.locked,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ.current-used {
  opacity: 0.42 !important;
  filter: grayscale(0.95) saturate(0.45) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ.locked::after,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ.current-used::after {
  content: "" !important;
  position: absolute !important;
  top: 20px !important;
  left: calc(50% - 24px) !important;
  width: 48px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  transform: rotate(-45deg) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ.selected-target {
  border-color: #3de0a1 !important;
  box-shadow: 0 0 0 2px rgba(61, 224, 161, 0.25) !important;
}

/* Coach experiment: tier rows grow instead of nested scrolling. */
body[data-build="coach-experiment"][data-view="coach"] .coach-tier-card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-list {
  display: grid !important;
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-tier-row > strong {
  font-size: 14px !important;
}







/* Coach experiment test 2 applied: one-screen shadcn-style control room.
   This block owns only layout/visibility; draft order and fearless rules stay in app.js. */
body[data-build="coach-experiment"][data-view="coach"],
body[data-build="coach-experiment"][data-view="coach"] .app {
  background:
    radial-gradient(circle at 18% 8%, rgba(88, 166, 255, 0.08), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 123, 114, 0.06), transparent 28%),
    #080d14 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .app {
  padding: 12px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-screen {
  gap: 10px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto;
  align-items: stretch; justify-content: stretch; gap: 5px; width: 100%; min-height: 0 !important;
  padding: 7px 10px !important; border-color: rgba(105, 132, 168, 0.42) !important;
  border-radius: 8px !important; background: linear-gradient(180deg, rgba(16, 23, 33, 0.96), rgba(11, 17, 26, 0.96)) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header h1 { font-size: clamp(20px, 1.35vw, 26px) !important; }
body[data-build="coach-experiment"][data-view="coach"] .coach-header p { margin-top: 3px !important; }

body[data-build="coach-experiment"][data-view="coach"] .coach-header-primary {
  display: grid; grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center; gap: 12px; min-width: 0;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-copy { min-width: 0; }

body[data-build="coach-experiment"][data-view="coach"] .coach-header-copy .eyebrow {
  margin: 0 0 2px; font-size: 10px;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-actions {
  align-items: center !important; gap: 7px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-actions button {
  min-height: 29px !important; padding: 0 9px !important; border-radius: 6px;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 8px; min-width: 0; padding: 4px 7px; border: 1px solid rgba(105, 132, 168, 0.3);
  border-radius: 6px; background: rgba(5, 10, 17, 0.72);
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-set-tabs {
  flex-wrap: nowrap; align-items: center; min-width: 0; overflow-x: auto;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-set-tabs button {
  flex: 0 0 auto; padding: 0 10px; white-space: nowrap;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-side-label,
body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-side-status,
body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-side-error,
body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft .coach-side-lock-message {
  flex: 0 0 auto; min-height: 28px; white-space: nowrap;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-ready-panel {
  justify-content: flex-end; min-height: 28px; padding: 0 4px; color: #c6d8ed;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-bar {
  position: static; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 28px;
  padding: 3px 7px; border: 1px solid rgba(105, 132, 168, 0.3); border-radius: 6px;
  background: rgba(5, 10, 17, 0.72);
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-room,
body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-links {
  display: flex; align-items: center; gap: 6px;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-links { margin-left: auto; }

body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-bar button {
  min-height: 26px; padding: 2px 7px;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-primary-viewport {
  display: grid; grid-template-rows: auto auto; gap: 10px; width: 100%;
  height: auto; min-height: 0; min-width: 0; overflow: visible;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-overview-viewport {
  display: grid; grid-template-columns: minmax(0, 3.35fr) minmax(280px, 1fr); gap: 10px;
  min-width: 0; min-height: 0; overflow: hidden;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-overview-main {
  min-width: 0; min-height: 0;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-overview-sidebar {
  display: grid; grid-template-rows: minmax(180px, 32fr) minmax(0, 68fr); gap: 10px;
  min-width: 0; min-height: 0; overflow: hidden;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-overview-sidebar,
body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-overview-sidebar {
  grid-template-rows: minmax(0, 1fr);
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-quick-note-card {
  display: none !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-tier-card {
  grid-row: 1;
  height: 100% !important;
  min-height: 0 !important;
}

@media (min-width: 1101px) {
  body[data-build="coach-experiment"][data-view="coach"] .coach-overview-viewport {
    width: 100%; height: calc(100dvh - 12px);
    min-height: calc(100dvh - 12px); max-height: none;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-overview-main,
  body[data-build="coach-experiment"][data-view="coach"] .coach-overview-sidebar {
    height: 100%;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-grid { margin-top: 10px; }
}

body[data-build="coach-experiment"][data-view="coach"] .coach-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  gap: 10px !important;
  align-items: stretch !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-card {
  min-width: 0 !important; border-color: rgba(105, 132, 168, 0.36) !important;
  border-radius: 8px !important; background: rgba(13, 20, 31, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-draft-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) !important;
  align-content: stretch !important; gap: 9px !important;
  min-height: 0 !important; height: 100% !important; max-height: none !important; overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  grid-column: auto !important;
  grid-row: auto !important;
  gap: 9px !important;
  min-height: 0 !important; height: 100% !important; max-height: none !important; overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-quick-note-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important; height: 100% !important; overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-card {
  grid-column: 1 / -1 !important; display: grid !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
  min-height: 0 !important; height: auto !important;
  max-height: none !important; overflow: hidden !important;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 206px;
  gap: 12px; align-items: stretch; min-width: 0; min-height: 0;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-select-pool {
  display: grid; grid-template-rows: auto auto; align-content: start;
  gap: 10px; min-width: 0; min-height: 0; overflow: hidden;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-select-pool > .coach-select-grid {
  grid-row: auto; grid-auto-rows: 118px; height: 372px;
  min-height: 372px !important; max-height: 372px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout > .coach-confirm-row {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 9px; min-width: 0; min-height: 0; grid-row: auto; padding: 42px 0 0 12px;
  border-left: 1px solid rgba(105, 132, 168, 0.3);
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout > .coach-confirm-row button { width: 100%; min-width: 0; max-width: none; min-height: 42px; }
body[data-build="coach-experiment"][data-view="coach"] #coachUndoBtn { border-color: rgba(241, 210, 110, 0.62); background: rgba(80, 64, 22, 0.24); color: #ffe69a; }
body[data-build="coach-experiment"][data-view="coach"] #coachCancelEditBtn { border-color: rgba(255, 123, 131, 0.5); color: #ffb3b8; }
body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout .draft-timer { width: 100%; padding: 8px 0; }

body[data-build="coach-experiment"][data-view="coach"] .coach-lane-card {
  display: none !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-record-card {
  grid-column: 1 / -1 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-control-card {
  grid-column: 1 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-stats-card {
  grid-column: 2 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-check-panel,
body[data-build="coach-experiment"][data-view="coach"] .coach-draft-summary {
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-check-panel {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-draft-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(6px, 0.55vw, 9px) !important;
  align-self: stretch !important;
  height: 100% !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-status {
  min-height: 22px !important;
  padding: 0 !important;
  color: #9cc8ff !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-align: center !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-center {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px clamp(12px, 2vw, 34px) !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  overflow: hidden !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-series-title {
  margin-bottom: 8px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-title span {
  font-size: clamp(14px, 1vw, 17px) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-lanes {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  gap: clamp(10px, 1.3vw, 24px) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-draft-card + .coach-select-card,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-card {
  position: relative !important;
  z-index: 1 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-icon {
  width: clamp(36px, 2.1vw, 44px) !important;
  min-width: clamp(36px, 2.1vw, 44px) !important;
  height: clamp(36px, 2.1vw, 44px) !important;
  min-height: clamp(36px, 2.1vw, 44px) !important;
  border-radius: 5px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-empty {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  color: #60758f !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  writing-mode: horizontal-tb !important;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-set-tabs button {
  min-height: 32px !important;
  border-radius: 6px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-side-summary {
  min-height: 0 !important;
  padding: clamp(6px, 0.55vw, 9px) !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-team-draft-card {
  --coach-draft-portrait-size: clamp(58px, 4.2vw, 88px);
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  align-content: center !important;
  gap: clamp(4px, 0.5vh, 7px) !important;
  height: 100% !important;
  min-height: 0 !important;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-summary-line {
  grid-template-columns: 30px repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(3px, 0.38vw, 6px) !important;
  align-items: start !important;
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-mini {
  grid-template-rows: var(--coach-draft-portrait-size) 18px !important;
  width: 100% !important;
  min-height: calc(var(--coach-draft-portrait-size) + 26px) !important;
  height: calc(var(--coach-draft-portrait-size) + 26px) !important;
  padding: clamp(3px, 0.3vw, 5px) !important;
}
body[data-build="coach-experiment"][data-view="coach"] .coach-pick-mini {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-mini img {
  width: var(--coach-draft-portrait-size) !important;
  height: var(--coach-draft-portrait-size) !important;
  aspect-ratio: 1 !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-button {
  min-height: clamp(25px, 3vh, 30px) !important;
  padding: 0 4px !important;
  font-size: 11px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-toolbar {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-grid {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding-right: 6px !important;
  overflow-y: auto !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ img {
  object-fit: cover !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-tier-row {
  padding: 7px !important;
}





body[data-build="coach-experiment"][data-view="coach"] .coach-tier-champ {
  padding: 4px 3px !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-quick-note-card textarea {
  height: 100% !important;
  min-height: 0 !important;
  resize: none !important;
}

@media (max-width: 1100px) {
  body[data-build="coach-experiment"][data-view="coach"] .coach-primary-viewport {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-overview-viewport {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-overview-sidebar {
    grid-template-rows: auto auto;
    overflow: visible;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    min-height: 0 !important;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-draft-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-select-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-tier-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-quick-note-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-lane-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-record-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-control-card,
  body[data-build="coach-experiment"][data-view="coach"] .coach-stats-card {
    grid-column: 1 !important;
    grid-row: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-series-board {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-series-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
  }

  body[data-build="coach-experiment"][data-view="coach"] .coach-select-card {
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
  }
}

/* Coach experiment final requested layout: tier scroll + lane-icon fearless stacks. */
body[data-build="coach-experiment"][data-view="coach"] .coach-tier-list {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-tier-champs {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
}



body[data-build="coach-experiment"][data-view="coach"] .coach-series-lane {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 42px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  justify-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-left: 1px solid rgba(104, 125, 154, 0.26) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-lane:first-child {
  border-left: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon {
  display: inline-grid !important;
  place-items: center !important;
  color: #d6b66a !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon svg {
  width: 100% !important;
  height: 100% !important;
  fill: currentColor !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65)) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-height: 0 !important;
  gap: clamp(5px, 0.55vw, 10px) !important;
  align-items: center !important;
  height: 100% !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  gap: 7px !important;
  overflow: visible !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack > b {
  width: 100% !important;
  padding-bottom: 2px !important;
  line-height: 1 !important;
  text-align: center !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack.blue > b {
  color: #58a6ff !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack.red > b {
  color: #ff7b72 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack .coach-series-icon {
  border-radius: 4px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack .coach-series-empty {
  min-height: 22px !important;
  color: #60758f !important;
  font-size: 9px !important;
  writing-mode: horizontal-tb !important;
}

/* Coach experiment final polish: bigger fearless portraits + one-scroll tier rows. */
body[data-build="coach-experiment"][data-view="coach"] .coach-tier-list {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-row {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: start !important;
  min-height: 92px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 10px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-row > strong {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-champs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 8px !important;
  min-height: 72px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-champ {
  flex: 0 0 62px !important;
  width: 62px !important;
  min-height: 76px !important;
  height: auto !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-tier-champ img {
  width: 44px !important;
  height: 44px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack .coach-series-icon {
  width: clamp(50px, 3vw, 62px) !important;
  min-width: clamp(50px, 3vw, 62px) !important;
  height: clamp(50px, 3vw, 62px) !important;
  min-height: clamp(50px, 3vw, 62px) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack .coach-series-icon em {
  right: 2px !important;
  bottom: 1px !important;
  font-size: 9px !important;
}

@media (max-width: 1450px) {
  body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack .coach-series-icon {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

}

/* Coach experiment: sidebar controls + fixed search cards + clearer lane bans. */
body[data-build="coach-experiment"][data-view="coach"] .coach-sidebar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-sidebar-toggle {
  min-width: 58px !important;
  border-color: rgba(255, 211, 106, 0.5) !important;
  color: #ffe28a !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-sidebar-toggle.active {
  border-color: rgba(63, 211, 146, 0.85) !important;
  background: rgba(63, 211, 146, 0.22) !important;
  color: #d9ffe9 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon {
  width: 44px !important;
  height: 44px !important;
  margin-bottom: 2px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack > b {
  margin-bottom: 4px !important;
  font-size: 11px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack.blue > b {
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.35) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-series-stack.red > b {
  text-shadow: 0 0 10px rgba(255, 123, 114, 0.35) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-lane-card {
  min-height: 220px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-lane-grid {
  align-items: stretch !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-lane-grid textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

body[data-build="coach-experiment"] .champ-grid,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-grid {
  grid-template-columns: repeat(auto-fill, 86px) !important;
  justify-content: start !important;
  align-content: start !important;
}

body[data-build="coach-experiment"] .champ,
body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
}

/* Coach experiment canonical sidebar modes: swap content without resizing the board. */
body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-tier-card,
body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-quick-note-card {
  display: none !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-lane-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-feedback-overall {
  display: grid !important;
  gap: 5px !important;
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-feedback-overall > span {
  color: #d6e5f2 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-feedback-overall textarea {
  min-height: 82px !important;
  max-height: 150px !important;
  resize: vertical !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-lane-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  min-height: 0 !important;
  height: 100% !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-lane-grid label {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0 !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-lane-grid textarea {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  resize: none !important;
}

@media (max-width: 1100px) {
  body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-overview-sidebar,
  body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-overview-sidebar {
    grid-template-rows: auto;
  }

  body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="feedback"] .coach-lane-card {
    height: auto !important;
    min-height: 640px !important;
    overflow: hidden !important;
  }
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-card {
  align-self: stretch !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 10px !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-list {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 5px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-row {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  min-height: 76px !important;
  padding: 7px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-row > strong {
  width: 50px !important;
  height: 48px !important;
  font-size: 13px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-champs {
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)) !important;
  gap: 6px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-champ {
  min-height: 68px !important;
  padding: 4px 3px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-champ img {
  width: 40px !important;
  height: 40px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-tier-champ span {
  font-size: 10px !important;
}

body[data-build="coach-experiment"][data-view="coach"]:not([data-coach-sidebar-mode="feedback"]) .coach-quick-note-card {
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 10px !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-tier-list {
  display: grid !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-tier-list.empty-manual-tier {
  grid-template-rows: auto repeat(4, minmax(0, 1fr)) !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-tier-row {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

body[data-build="coach-experiment"][data-view="coach"][data-coach-sidebar-mode="tier-expanded"] .coach-tier-champs {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Coach experiment role emblems: use the provided clean PNG marks, not generated SVG. */
body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  color: inherit !important;
  background: transparent !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon svg {
  display: none !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-role-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)) !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-set-tabs {
  gap: 7px !important;
  margin-bottom: -1px !important;
}

/* Coach experiment champion selector: keep card size stable while making names readable. */
body[data-build="coach-experiment"][data-view="coach"] .coach-select-grid {
  grid-template-columns: repeat(auto-fill, 96px) !important;
  gap: 9px 10px !important;
  align-content: start !important;
  justify-content: start !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  min-height: 118px !important;
  grid-template-rows: 58px minmax(28px, auto) 14px !important;
  gap: 4px !important;
  padding: 7px 5px 6px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ img {
  width: 56px !important;
  height: 56px !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ span {
  display: -webkit-box !important;
  min-height: 26px !important;
  overflow: hidden !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  word-break: keep-all !important;
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-champ small {
  display: block !important;
  min-height: 12px !important;
  line-height: 1.1 !important;
}

@media (max-width: 900px) {
  body[data-build="coach-experiment"][data-view="coach"] .coach-header-primary,
  body[data-build="coach-experiment"][data-view="coach"] .coach-header-draft,
  body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout {
    grid-template-columns: 1fr;
  }
  body[data-build="coach-experiment"][data-view="coach"] .coach-header-actions,
  body[data-build="coach-experiment"][data-view="coach"] .coach-ready-panel {
    justify-content: flex-start;
  }
  body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-bar,
  body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-links {
    flex-wrap: wrap;
  }
  body[data-build="coach-experiment"][data-view="coach"] .coach-header .realtime-links {
    width: 100%; margin-left: 0;
  }
  body[data-build="coach-experiment"][data-view="coach"] .coach-select-layout > .coach-confirm-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 0 0;
    border-top: 1px solid rgba(105, 132, 168, 0.3); border-left: 0;
  }
}

/* PLAYER DESIGN C — CANONICAL LAYOUT */
body[data-player-design="c"][data-view="player"] {
  --player-side: clamp(280px, 20vw, 380px);
  --player-gap: clamp(4px, 0.45vw, 8px);
  --player-champ-tile: clamp(66px, 4.8vw, 88px);
  --player-line: #283646;
  --player-panel: #07111b;
  --player-panel-soft: #0b1723;
  --player-gold: #c9a85d;
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #050b12;
}

body[data-player-design="c"][data-view="player"] *,
body[data-player-design="c"][data-view="player"] *::before,
body[data-player-design="c"][data-view="player"] *::after {
  box-sizing: border-box;
}

body[data-player-design="c"][data-view="player"] .app {
  position: relative;
  display: grid;
  grid-template-rows: clamp(42px, 4.8vh, 52px) minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: clamp(4px, 0.45vw, 8px);
  gap: var(--player-gap);
  overflow: hidden;
}

body[data-player-design="c"][data-view="player"] .topbar,
body[data-player-design="c"][data-view="player"] .modebar,
body[data-player-design="c"][data-view="player"] .score-box,
body[data-player-design="c"][data-view="player"] .player-command,
body[data-player-design="c"][data-view="player"] .coach-screen,
body[data-player-design="c"][data-view="player"] .coach-only,
body[data-player-design="c"][data-view="player"] .draft-panel > .panel-head,
body[data-player-design="c"][data-view="player"] .draft-tools,
body[data-player-design="c"][data-view="player"] .coach-confirm-row,
body[data-player-design="c"][data-view="player"] .pool-toolbar > div,
body[data-player-design="c"][data-view="player"] .info-panel > :not(h2):not(#globalBans) {
  display: none;
}

body[data-player-design="c"][data-view="player"] .scoreline {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-player-design="c"][data-view="player"] .set-tabs {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.45vw, 9px);
}

body[data-player-design="c"][data-view="player"] .set-tabs button {
  min-width: clamp(56px, 4.8vw, 82px);
  height: clamp(32px, 4vh, 42px);
  padding: 0 12px;
  border: 1px solid #34475d;
  border-radius: 2px;
  background: #0d1724;
  color: #dbe8f6;
  font-weight: 800;
}

body[data-player-design="c"][data-view="player"] .set-tabs button.active {
  border-color: #3ad2a0;
  background: #35d09e;
  color: #03120d;
}

body[data-player-design="c"][data-view="player"] .player-center-coach-switch {
  position: absolute;
  top: clamp(6px, 0.65vw, 12px);
  left: 50%;
  z-index: 20;
  width: clamp(132px, 11vw, 190px);
  height: clamp(34px, 4.3vh, 46px);
  transform: translateX(-50%);
  border: 1px solid #8c7434;
  border-radius: 2px;
  background: #07101a;
  color: #edf3fa;
  font-weight: 900;
}

body[data-player-design="c"][data-view="player"] .workspace {
  grid-row: 2;
  display: grid;
  grid-template-columns:
    var(--player-side)
    minmax(0, 1fr)
    var(--player-side);
  grid-template-rows:
    clamp(70px, 9vh, 90px)
    minmax(0, 1fr)
    clamp(190px, 27vh, 250px);
  gap: var(--player-gap);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  justify-items: stretch;
}

body[data-player-design="c"][data-view="player"] .panel {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--player-line);
  border-radius: 2px;
  background: var(--player-panel);
  box-shadow: none;
}

body[data-player-design="c"][data-view="player"] .workspace > .panel {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  transform: none;
  align-self: stretch;
  justify-self: stretch;
}

body[data-player-design="c"][data-view="player"] .draft-panel {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  z-index: 2;
  display: grid;
  grid-template-columns:
    var(--player-side)
    minmax(0, 1fr)
    var(--player-side);
  grid-template-rows:
    clamp(70px, 9vh, 90px)
    minmax(0, 1fr)
    clamp(190px, 27vh, 250px);
  gap: var(--player-gap);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) {
  display: contents;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) > div {
  position: relative;
  display: grid;
  grid-template-rows: clamp(42px, 5.6vh, 60px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--player-line);
  background: #040b13;
  pointer-events: auto;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) > div:first-child {
  grid-column: 1;
  grid-row: 1 / 4;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) > div:last-child {
  grid-column: 3;
  grid-row: 1 / 4;
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-identity="our"] {
  border-color: #1767c5;
  box-shadow: inset 0 3px 0 #2490ff;
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-identity="opponent"] {
  border-color: #a82d36;
  box-shadow: inset 0 3px 0 #ef3441;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) h3 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 clamp(12px, 1vw, 20px);
  overflow: hidden;
  background: rgba(7, 17, 28, 0.25);
  color: #f6fbff;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1;
  white-space: nowrap;
}

body[data-player-design="c"][data-view="player"] .draft-panel > .draft-grid:not(.ban-grid) > div:last-child h3 {
  justify-content: flex-end;
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-side="blue"][data-identity="our"] > h3 {
  background: linear-gradient(90deg, rgba(22, 86, 192, 0.8), rgba(7, 17, 28, 0.25));
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-side="red"][data-identity="our"] > h3 {
  background: linear-gradient(270deg, rgba(22, 86, 192, 0.8), rgba(7, 17, 28, 0.25));
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-side="blue"][data-identity="opponent"] > h3 {
  background: linear-gradient(90deg, rgba(174, 32, 43, 0.82), rgba(7, 17, 28, 0.25));
}

body[data-player-design="c"][data-view="player"] .draft-grid:not(.ban-grid) > [data-side="red"][data-identity="opponent"] > h3 {
  background: linear-gradient(270deg, rgba(174, 32, 43, 0.82), rgba(7, 17, 28, 0.25));
}

body[data-player-design="c"][data-view="player"] .slots {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  gap: 3px;
  padding: 3px;
  overflow: hidden;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #273b50;
  border-radius: 0;
  background: linear-gradient(115deg, #081421, #02070c);
  color: #edf6ff;
  text-align: left;
}

body[data-player-design="c"][data-view="player"] [data-identity="our"] .slot.pick-slot.filled {
  border-color: #237ee4;
}

body[data-player-design="c"][data-view="player"] [data-identity="opponent"] .slot.pick-slot.filled {
  border-color: #dc3e48;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot.selected {
  outline: 2px solid #f1d26e;
  outline-offset: -2px;
}

body[data-player-design="c"][data-view="player"] [data-identity="our"] .slot.pick-slot.selected {
  outline-color: #58a6ff;
}

body[data-player-design="c"][data-view="player"] [data-identity="opponent"] .slot.pick-slot.selected {
  outline-color: #ff5964;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot .pick-splash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(1.03) contrast(1.03);
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 5, 10, 0.78) 0, transparent 45%, rgba(0, 5, 10, 0.12) 100%);
  pointer-events: none;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot .slot-caption {
  position: absolute;
  z-index: 2;
  left: clamp(9px, 0.8vw, 15px);
  bottom: clamp(6px, 0.75vh, 10px);
  display: grid;
  gap: 2px;
  max-width: calc(100% - 20px);
  text-shadow: 0 2px 4px #000;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot .slot-caption .role {
  color: #acd9ff;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 800;
}

body[data-player-design="c"][data-view="player"] [data-identity="opponent"] .slot.pick-slot .slot-caption .role {
  color: #ffb0b5;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot .slot-caption strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 1.35vw, 23px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-player-design="c"][data-view="player"] .slot.pick-slot .empty-portrait {
  position: absolute;
  inset: 12% 22%;
  opacity: 0.32;
}

body[data-player-design="c"][data-view="player"] .ban-grid {
  position: static;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 12vw, 185px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 0.75vw, 13px);
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: clamp(6px, 0.65vw, 11px);
  overflow: hidden;
  border: 1px solid var(--player-line);
  background: rgba(5, 12, 20, 0.96);
  transform: none;
  pointer-events: auto;
}

body[data-player-design="c"][data-view="player"] .ban-grid > div:not(.player-ban-timer) {
  display: grid;
  min-width: 0;
  min-height: 0;
}

body[data-player-design="c"][data-view="player"] .ban-grid h3 {
  display: none;
}

body[data-player-design="c"][data-view="player"] .ban-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(4px, 0.45vw, 8px);
  min-width: 0;
}

body[data-player-design="c"][data-view="player"] .ban-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--player-line);
  border-radius: 1px;
  background: #030a12;
  color: #7f9ab5;
}

body[data-player-design="c"][data-view="player"] .ban-grid > [data-identity="our"] .ban-slot {
  border-color: #1767c5;
}

body[data-player-design="c"][data-view="player"] .ban-grid > [data-identity="opponent"] .ban-slot {
  border-color: #bd2833;
}

body[data-player-design="c"][data-view="player"] .ban-slot.selected {
  outline: 2px solid #f1d26e;
  outline-offset: -2px;
}

body[data-player-design="c"][data-view="player"] .ban-grid > [data-identity="our"] .ban-slot.selected {
  outline-color: #58a6ff;
}

body[data-player-design="c"][data-view="player"] .ban-grid > [data-identity="opponent"] .ban-slot.selected {
  outline-color: #ff5964;
}

body[data-player-design="c"][data-view="player"] .ban-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-player-design="c"][data-view="player"] .ban-slot span {
  position: absolute;
  left: 3px;
  bottom: 2px;
  max-width: calc(100% - 6px);
  overflow: hidden;
  color: #fff;
  font-size: clamp(8px, 0.55vw, 11px);
  font-weight: 800;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

body[data-player-design="c"][data-view="player"] .ban-slot.filled span {
  display: none;
}

body[data-player-design="c"][data-view="player"] .player-ban-timer {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  border: 1px solid #8c7434;
  background: #060d15;
}

body[data-player-design="c"][data-view="player"] .player-ban-timer .draft-timer {
  color: #f4f7fb;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body[data-player-design="c"][data-view="player"] .pool-panel {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) clamp(38px, 5vh, 52px);
  gap: clamp(6px, 0.65vw, 11px);
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: clamp(8px, 0.8vw, 14px);
  overflow: hidden;
  background: #0a1621;
  transform: none;
}

body[data-player-design="c"][data-view="player"] .pool-toolbar {
  display: contents;
}

body[data-player-design="c"][data-view="player"] .pool-toolbar input {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 420px);
  max-width: 420px;
  height: clamp(32px, 4vh, 42px);
  min-height: 0;
  justify-self: end;
  padding: 0 13px;
  border: 1px solid #60778e;
  border-radius: 1px;
  background: #050c13;
  color: #edf4fb;
}

body[data-player-design="c"][data-view="player"] .filters {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.4vw, 7px);
  min-width: 0;
}

body[data-player-design="c"][data-view="player"] .filters button {
  width: auto;
  height: clamp(32px, 4vh, 42px);
  min-width: clamp(45px, 3.8vw, 66px);
  min-height: 0;
  padding: 0 10px;
  border: 1px solid #43566b;
  border-radius: 1px;
  background: #101c29;
  color: #dce9f6;
  font-weight: 800;
}

body[data-player-design="c"][data-view="player"] .filters button.active {
  border-color: #d8b95e;
  background: #e0be45;
  color: #151006;
}

body[data-player-design="c"][data-view="player"] #champGrid {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(6, var(--player-champ-tile));
  grid-auto-rows: max-content;
  align-content: start;
  gap: clamp(4px, 0.45vw, 8px);
  width: max-content;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  padding: 2px clamp(5px, 0.5vw, 9px) 2px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  justify-self: center;
  justify-content: center;
}

body[data-player-design="c"][data-view="player"] #champGrid .champ {
  position: relative;
  display: block;
  justify-items: normal;
  align-content: normal;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid #152331;
  border-radius: 1px;
  background: #040a10;
}

body[data-player-design="c"][data-view="player"] #champGrid .champ img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

body[data-player-design="c"][data-view="player"] #champGrid .champ > span:not(.champ-tags),
body[data-player-design="c"][data-view="player"] #champGrid .champ > small,
body[data-player-design="c"][data-view="player"] #champGrid .champ-tags {
  display: none;
}

body[data-player-design="c"][data-view="player"] #champGrid .champ:hover:not(:disabled),
body[data-player-design="c"][data-view="player"] #champGrid .champ:focus-visible {
  border-color: #d8b95e;
  filter: brightness(1.08);
}

body[data-player-design="c"][data-view="player"] #champGrid .champ.pending {
  border-color: #f6d15f;
  box-shadow: inset 0 0 0 2px #fff4b3;
}

body[data-player-design="c"][data-view="player"] #champGrid .champ:disabled,
body[data-player-design="c"][data-view="player"] #champGrid .champ.locked,
body[data-player-design="c"][data-view="player"] #champGrid .champ.current {
  cursor: not-allowed;
  filter: grayscale(1) brightness(0.38);
}

body[data-player-design="c"][data-view="player"] .player-confirm-row {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: clamp(38px, 5vh, 52px);
  align-self: end;
}

body[data-player-design="c"][data-view="player"] .player-confirm-row button {
  width: min(62%, 540px);
  min-width: 210px;
  height: clamp(38px, 5vh, 52px);
  border: 1px solid #b89a45;
  border-radius: 2px;
  background: #08111a;
  color: #f5f7f9;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 900;
}

body[data-player-design="c"][data-view="player"] .player-confirm-row button:not(:disabled):hover {
  background: #162332;
}

body[data-player-design="c"][data-view="player"] .player-confirm-row button:disabled {
  border-color: #485360;
  color: #6e7882;
  cursor: not-allowed;
}

body[data-player-design="c"][data-view="player"] .info-panel {
  grid-column: 2;
  grid-row: 3;
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: clamp(5px, 0.5vw, 8px) clamp(9px, 0.8vw, 14px);
  overflow: hidden;
  background: #06101a;
}

body[data-player-design="c"][data-view="player"] .info-panel > h2 {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  padding: 0 14px;
  color: #eef4fa;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.25;
}

body[data-player-design="c"][data-view="player"] #globalBans {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body[data-player-design="c"][data-view="player"] .player-fearless-board,
body[data-player-design="c"][data-view="player"] .player-fearless-lanes {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

body[data-player-design="c"][data-view="player"] .player-fearless-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(3px, 0.3vw, 5px);
}

body[data-player-design="c"][data-view="player"] .player-fearless-lane {
  display: grid;
  grid-template-columns: clamp(20px, 1.5vw, 28px) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px clamp(2px, 0.2vw, 4px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-left: 1px solid #263443;
}

body[data-player-design="c"][data-view="player"] .player-fearless-lane:first-child {
  border-left: 0;
}

body[data-player-design="c"][data-view="player"] .player-fearless-lane header {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  min-height: 0;
  color: var(--player-gold);
}

body[data-player-design="c"][data-view="player"] .fearless-role-icon {
  width: clamp(20px, 1.5vw, 28px);
  height: clamp(20px, 1.5vw, 28px);
  object-fit: contain;
}

body[data-player-design="c"][data-view="player"] .player-fearless-lane header strong {
  display: none;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row.team1 {
  grid-row: 1;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row.team2 {
  grid-row: 2;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row > b {
  display: none;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row.team1 > b {
  color: #45a8ff;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row.team2 > b {
  color: #ff5962;
}

body[data-player-design="c"][data-view="player"] .fearless-icon {
  position: relative;
  flex: 0 0 clamp(30px, 1.9vw, 40px);
  width: clamp(30px, 1.9vw, 40px);
  min-width: clamp(30px, 1.9vw, 40px);
  height: clamp(30px, 1.9vw, 40px);
  min-height: clamp(30px, 1.9vw, 40px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid #218fe9;
  border-radius: 1px;
  background: #02070c;
}

body[data-player-design="c"][data-view="player"] .fearless-icon.team2 {
  border-color: #e23b44;
}

body[data-player-design="c"][data-view="player"] .fearless-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

body[data-player-design="c"][data-view="player"] .fearless-icon::after {
  display: none;
}

body[data-player-design="c"][data-view="player"] .fearless-icon span {
  position: absolute;
  right: 1px;
  bottom: 0;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: clamp(7px, 0.5vw, 9px);
  font-weight: 900;
}

body[data-player-design="c"][data-view="player"] .fearless-board-empty {
  display: none;
}

body[data-player-design="c"][data-view="player"] .fearless-team-row.permanent {
  display: none;
}

/* Draft confirmation and timer controls. This is the final scoped override. */
.player-confirm-row,
.coach-confirm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.coach-confirm-row {
  position: static;
  z-index: auto;
  grid-row: 3;
  align-self: stretch;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  padding: 4px 16px 4px 0;
}

.player-confirm-row button,
.coach-confirm-row button {
  min-height: 38px;
  padding: 7px 24px;
  border: 1px solid #3cd39b;
  border-radius: 4px;
  background: #10271f;
  color: #f4fff9;
  font-weight: 800;
}

.player-confirm-row button:disabled,
.coach-confirm-row button:disabled {
  border-color: #485263;
  background: #111925;
  color: #778194;
  cursor: default;
}

.draft-timer {
  min-width: 52px;
  color: #f2d35e;
  font-size: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.draft-timer[hidden] {
  display: none;
}

.draft-ready-panel,
.draft-ready-status {
  color: #b9c8d8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.draft-ready-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body[data-player-design="c"][data-view="player"] .player-confirm-row .draft-ready-status {
  position: absolute;
  transform: translateY(-30px);
}

body[data-player-design="c"][data-view="player"] .player-confirm-row #playerReadyButton {
  width: min(28%, 220px);
  min-width: 120px;
}

body[data-player-design="c"][data-view="player"] .player-confirm-row #playerReadyButton[hidden] {
  display: none;
}

.draft-timer.urgent {
  color: #ff6464;
}

.champ.pending {
  border-color: #f2d35e !important;
  box-shadow: inset 0 0 0 2px #f2d35e, 0 0 0 1px rgba(0, 0, 0, 0.8) !important;
}

.coach-confirm-row button {
  min-width: 190px;
  max-width: min(240px, 100%);
}

body[data-build="coach-experiment"][data-view="coach"] .coach-select-grid {
  position: relative !important;
  z-index: 0 !important;
}

.coach-timer-settings {
  align-items: center;
}

.coach-timer-settings > span {
  margin-right: 4px;
  color: #9fb4d0;
  font-size: 12px;
  font-weight: 700;
}

.coach-timer-settings button.active {
  border-color: #3cd39b;
  background: #3cd39b;
  color: #03130d;
}
/* Stable champion pools keep keyed cards mounted while filters hide them. */
#champGrid > .champ[hidden],
#coachSelectGrid > .coach-select-champ[hidden] {
  display: none !important;
}
