.coach-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    linear-gradient(rgba(5, 9, 18, 0.68), rgba(5, 9, 18, 0.82)),
    url("https://cdn.royaleapi.com/static/img/cards/v4-aba2d2c1/battle-ram.png") left 8% bottom 6% / min(32vw, 260px) auto no-repeat,
    url("https://cdn.royaleapi.com/static/img/cards/v4-aba2d2c1/royal-giant.png") right 5% top 12% / min(30vw, 250px) auto no-repeat,
    linear-gradient(135deg, #08111f 0%, #172135 45%, #0c121f 100%);
}

.coach-site-header {
  background: rgba(7, 11, 22, 0.7);
}

.coach-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.coach-nav .nav-links {
  justify-self: center;
}

.coach-shell {
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.coach-stage {
  width: min(100%, 760px);
  display: grid;
  gap: 1rem;
}

.coach-progress {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-self: end;
  min-width: max-content;
}

.coach-progress-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.coach-progress-dot.active {
  width: 1.65rem;
  border-radius: 999px;
  background: #5ea2ff;
}

.coach-card {
  min-height: min(68vh, 620px);
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055)),
    rgba(12, 18, 32, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.coach-card[hidden] {
  display: none !important;
}

.coach-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #8fc2ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.coach-card h1,
.coach-card h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.coach-card h2 {
  max-width: 16ch;
  font-size: clamp(1.95rem, 5vw, 3.6rem);
}

.coach-copy {
  max-width: 58ch;
  color: #c4cde5;
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.coach-small-copy {
  max-width: 54ch;
  color: #aeb8d6;
  font-size: 0.82rem;
  line-height: 1.45;
}

.coach-form-message {
  min-height: 1.2rem;
  color: #aeb8d6;
  font-size: 0.82rem;
  line-height: 1.35;
}

.coach-form-message.error {
  color: #ffb4b4;
}

.coach-tag-form {
  display: grid;
  gap: 0.7rem;
  max-width: 560px;
}

.coach-input-label {
  color: #8fc2ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.coach-tag-input {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f6ff;
  padding: 0.85rem 1rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  outline: none;
}

.coach-tag-input:focus {
  border-color: rgba(94, 162, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.16);
}

.coach-tag-input:disabled {
  opacity: 0.72;
}

.coach-tag-input::placeholder {
  color: rgba(196, 205, 229, 0.62);
}

.coach-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 620px;
}

.coach-summary-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.75rem;
}

.coach-summary-grid span,
.coach-summary-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-summary-grid span {
  color: #aeb8d6;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coach-summary-grid strong {
  color: #f3f6ff;
  font-size: 1.08rem;
}

.coach-actions,
.coach-choice-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.coach-primary-action,
.coach-secondary-action,
.coach-choice {
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.coach-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(94, 162, 255, 0.72);
  background: #5ea2ff;
  color: #071021;
  font-weight: 900;
  padding: 0.85rem 1.1rem;
}

.coach-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f6ff;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
}

.coach-legacy-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(205, 215, 232, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #c4cfdf;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

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

.coach-choice {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.coach-choice strong {
  font-size: 1rem;
}

.coach-choice span {
  color: #aeb8d6;
  font-size: 0.86rem;
}

.coach-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 680px;
}

.coach-mode-choice {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f6ff;
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.coach-mode-choice strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.coach-mode-choice.selected {
  border-color: rgba(94, 162, 255, 0.78);
  background: rgba(94, 162, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.22) inset;
}

.coach-mode-summary {
  display: grid;
  gap: 0.65rem;
  max-width: 680px;
}

.coach-mode-summary h3 {
  margin: 0;
  color: #f3f6ff;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.15;
}

.coach-mode-summary p {
  margin: 0;
  color: #c4cde5;
  font-size: 0.88rem;
}

.coach-priority-list {
  display: grid;
  gap: 0.5rem;
}

.coach-priority-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.6rem;
}

.coach-priority-item span {
  color: #8fc2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.coach-priority-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f6ff;
  font-size: 0.92rem;
}

.coach-priority-item button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f6ff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
}

.coach-priority-item button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.coach-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 760px;
}

.coach-start-choice {
  display: grid;
  gap: 0.3rem;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f6ff;
  padding: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.coach-start-choice strong,
.coach-start-choice span {
  display: block;
}

.coach-start-choice span {
  color: #aeb8d6;
  font-size: 0.84rem;
  line-height: 1.35;
}

.coach-start-choice.selected {
  border-color: rgba(94, 162, 255, 0.78);
  background: rgba(94, 162, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.22) inset;
}

.coach-battlelog-panel {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
}

.coach-battlelog-panel[hidden] {
  display: none !important;
}

.coach-battlelog-list {
  display: grid;
  gap: 0.55rem;
}

.coach-battlelog-deck {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f6ff;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.coach-battlelog-deck.selected {
  border-color: rgba(94, 162, 255, 0.78);
  background: rgba(94, 162, 255, 0.16);
}

.coach-battlelog-deck small {
  color: #aeb8d6;
}

.coach-battlelog-deck div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.28rem;
}

.coach-battlelog-deck span {
  min-height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.coach-battlelog-deck img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coach-empty-state {
  color: #aeb8d6;
  font-size: 0.86rem;
}

.coach-builder-card {
  align-content: start;
}

.coach-scratch-builder {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.coach-scratch-panel {
  display: grid;
  gap: 0.75rem;
}

.coach-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.coach-builder-actions {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.coach-scratch-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.55rem;
}

.coach-scratch-toolbar [data-toggle-autocomplete] {
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
}

.coach-builder-head span,
.coach-builder-head strong {
  display: block;
}

.coach-builder-head span {
  color: #8fc2ff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-builder-head strong {
  color: #f3f6ff;
  font-size: 1.1rem;
}

.coach-compact-action {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
}

.coach-icon-action {
  min-height: 38px;
  min-width: 58px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}

.coach-variant-notice {
  margin: 0;
  border: 1px solid rgba(255, 199, 95, 0.4);
  border-radius: 8px;
  background: rgba(255, 199, 95, 0.12);
  color: #ffe0a3;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.65rem 0.75rem;
}

.coach-variant-notice[hidden] {
  display: none !important;
}

.coach-autocomplete-panel {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.coach-autocomplete-panel[hidden] {
  display: none !important;
}

.coach-autocomplete-list {
  display: grid;
  gap: 0.6rem;
}

.coach-customization-warning {
  margin: 0;
  border: 1px solid rgba(255, 199, 95, 0.4);
  border-radius: 8px;
  background: rgba(255, 199, 95, 0.12);
  color: #ffe0a3;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.65rem 0.75rem;
}

.coach-autocomplete-deck {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 15, 31, 0.54);
  padding: 0.7rem;
}

.coach-autocomplete-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #c4cde5;
  font-size: 0.78rem;
}

.coach-autocomplete-head strong {
  color: #8fc2ff;
  font-size: 0.9rem;
}

.coach-autocomplete-cards,
.coach-review-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.coach-autocomplete-cards span,
.coach-review-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.coach-autocomplete-cards img,
.coach-review-card img {
  width: min(70px, 88%);
  height: 64px;
  object-fit: contain;
}

.coach-autocomplete-cards small {
  position: absolute;
  right: 0.25rem;
  bottom: 0.2rem;
  border-radius: 999px;
  background: rgba(94, 162, 255, 0.18);
  color: #dbe8ff;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 0.12rem 0.28rem;
}

.coach-review-deck {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.coach-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.coach-review-head span {
  color: #8fc2ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-review-head strong {
  color: #f3f6ff;
}

.coach-review-card {
  min-height: 112px;
  padding: 0.45rem;
  text-align: center;
}

.coach-review-card.special-variant {
  border: 1px solid rgba(94, 162, 255, 0.46);
  background: rgba(94, 162, 255, 0.12);
}

.coach-review-card.empty {
  color: #aeb8d6;
}

.coach-review-card span {
  max-width: 100%;
  overflow: hidden;
  color: #f3f6ff;
  font-size: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-review-card small {
  color: #aeb8d6;
  font-size: 0.62rem;
  font-weight: 800;
}

.coach-final-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 980px;
}

.coach-final-deck {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.coach-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coach-preference-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.25fr);
  gap: 1rem;
  max-width: 980px;
}

.coach-preference-panel,
.coach-required-recommendations {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.coach-required-recommendations {
  border: 1px solid rgba(94, 162, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(94, 162, 255, 0.14), rgba(94, 162, 255, 0.055)),
    rgba(8, 15, 31, 0.66);
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.12) inset;
  padding: 0.9rem;
}

.coach-required-head {
  display: grid;
  gap: 0.15rem;
}

.coach-required-head span {
  color: #8fc2ff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-required-head strong {
  color: #f3f6ff;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.1;
}

.coach-required-selected {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 74px;
}

.coach-required-picker {
  display: grid;
  gap: 0.75rem;
}

.coach-required-picker[hidden] {
  display: none;
}

.coach-required-chip {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 86px;
  border: 1px solid rgba(94, 162, 255, 0.44);
  border-radius: 8px;
  background: rgba(94, 162, 255, 0.12);
  color: #f3f6ff;
  cursor: pointer;
  padding: 0.45rem;
  text-align: center;
}

.coach-required-chip img {
  width: min(54px, 80%);
  height: 48px;
  object-fit: contain;
}

.coach-required-chip span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-required-chip small {
  color: #aeb8d6;
  font-size: 0.58rem;
  font-weight: 800;
}

.coach-required-deck {
  border-color: rgba(94, 162, 255, 0.3);
  background: rgba(12, 24, 48, 0.72);
}

.coach-load-more-action {
  width: 100%;
  justify-content: center;
}

.coach-deck-progress {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(94, 162, 255, 0.36);
  border-radius: 8px;
  background: rgba(94, 162, 255, 0.1);
  padding: 0.8rem;
}

.coach-deck-progress div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.coach-deck-progress span {
  color: #8fc2ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-deck-progress strong {
  color: #f3f6ff;
  font-size: 0.9rem;
}

.coach-deck-progress-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.coach-deck-progress-step {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.coach-deck-progress-step.active {
  background: #5ea2ff;
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.38);
}

.coach-scratch-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 88px));
  justify-content: start;
  gap: 0.45rem;
}

.coach-scratch-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.28rem;
  min-height: 102px;
  border: 1px dashed rgba(143, 194, 255, 0.28);
  border-radius: 8px;
  background: rgba(94, 162, 255, 0.08);
  color: #f3f6ff;
  cursor: pointer;
  overflow: hidden;
  padding: 0.45rem;
  text-align: center;
}

.coach-scratch-slot.filled {
  border-style: solid;
  background: rgba(255, 255, 255, 0.07);
}

.coach-scratch-slot.selected {
  border-color: rgba(94, 162, 255, 0.86);
  background: rgba(94, 162, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.28) inset;
}

.coach-scratch-slot.variant-missing {
  border-color: rgba(255, 199, 95, 0.58);
  background: rgba(255, 199, 95, 0.09);
}

.coach-scratch-slot.special-variant {
  overflow: visible;
  border-color: rgba(94, 162, 255, 0.5);
  background: rgba(94, 162, 255, 0.12);
}

.coach-scratch-slot img {
  width: min(76px, 100%);
  height: 70px;
  object-fit: contain;
}

.coach-scratch-slot.special-variant img {
  transform: translateY(-4px) scale(1.08);
}

.coach-scratch-slot span {
  max-width: 100%;
  overflow: hidden;
  color: #f3f6ff;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-scratch-slot small {
  color: #aeb8d6;
  font-size: 0.68rem;
}

.coach-scratch-slot b {
  border-radius: 999px;
  background: rgba(94, 162, 255, 0.16);
  color: #dbe8ff;
  font-size: 0.66rem;
  line-height: 1;
  padding: 0.22rem 0.42rem;
}

.coach-card-search {
  width: min(100%, 360px);
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 26, 0.72);
  color: #f3f6ff;
  font-size: 1rem;
  outline: none;
  padding: 0.75rem 0.9rem;
}

.coach-card-search:focus {
  border-color: rgba(94, 162, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.14);
}

.coach-scratch-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.5rem;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding-right: 0.15rem;
}

.coach-scratch-card {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f6ff;
  cursor: pointer;
  padding: 0.55rem;
  text-align: center;
}

.coach-scratch-card.selected {
  border-color: rgba(94, 162, 255, 0.86);
  background: rgba(94, 162, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(94, 162, 255, 0.22) inset;
}

.coach-scratch-card.used {
  cursor: default;
  opacity: 0.45;
}

.coach-scratch-card.previous-used {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.42;
}

.coach-scratch-card.locked {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.38;
}

.coach-scratch-card img {
  width: min(78px, 82%);
  height: 70px;
  object-fit: contain;
}

.coach-scratch-card span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-scratch-card small {
  color: #aeb8d6;
  font-size: 0.68rem;
  font-weight: 800;
}

.coach-primary-action.disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.coach-primary-action:hover,
.coach-secondary-action:hover,
.coach-choice:hover,
.coach-mode-choice:hover,
.coach-start-choice:hover,
.coach-icon-action:hover,
.coach-scratch-slot:hover,
.coach-scratch-card:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 162, 255, 0.66);
}

.coach-scratch-card.locked:hover,
.coach-scratch-card.previous-used:hover,
.coach-scratch-card.used:hover {
  transform: none;
}

@media (max-width: 700px) {
  .coach-page {
    background:
      linear-gradient(rgba(5, 9, 18, 0.74), rgba(5, 9, 18, 0.86)),
      linear-gradient(135deg, #08111f 0%, #172135 52%, #0c121f 100%);
  }

  .coach-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .coach-nav .nav-links {
    justify-self: stretch;
  }

  .coach-progress {
    grid-column: 1 / -1;
    justify-self: end;
    gap: 0.35rem;
  }

  .coach-progress-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .coach-progress-dot.active {
    width: 1.35rem;
  }

  .coach-card {
    min-height: 72vh;
  }

  .coach-choice-grid,
  .coach-actions,
  .coach-summary-grid,
  .coach-mode-grid,
  .coach-start-grid {
    grid-template-columns: 1fr;
  }

  .coach-builder-card {
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  .coach-builder-head {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .coach-builder-head > div {
    flex: 1 1 160px;
  }

  .coach-builder-head .coach-compact-action {
    flex: 1 1 140px;
  }

  .coach-builder-actions {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .coach-scratch-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .coach-scratch-toolbar .coach-primary-action,
  .coach-scratch-toolbar .coach-secondary-action {
    width: auto;
  }

  .coach-builder-actions .coach-secondary-action {
    width: auto;
  }

  .coach-scratch-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
  }

  .coach-scratch-slot {
    min-height: 96px;
    padding: 0.35rem;
  }

  .coach-scratch-slot img {
    width: min(64px, 100%);
    height: 58px;
  }

  .coach-scratch-slot span {
    font-size: 0.66rem;
  }

  .coach-scratch-slot small,
  .coach-scratch-slot b {
    font-size: 0.56rem;
  }

  .coach-scratch-pool {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    max-height: none;
  }

  .coach-scratch-card {
    min-height: 112px;
    padding: 0.45rem;
  }

  .coach-scratch-card img {
    width: min(70px, 82%);
    height: 62px;
  }

  .coach-scratch-card span {
    font-size: 0.68rem;
  }

  .coach-autocomplete-cards,
  .coach-review-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .coach-autocomplete-cards span {
    min-height: 66px;
  }

  .coach-autocomplete-cards img,
  .coach-review-card img {
    width: min(58px, 88%);
    height: 54px;
  }

  .coach-review-card {
    min-height: 94px;
    padding: 0.35rem;
  }

  .coach-review-card span {
    font-size: 0.62rem;
  }

  .coach-preference-layout {
    grid-template-columns: 1fr;
  }

  .coach-final-overview {
    grid-template-columns: 1fr;
  }

  .coach-required-selected {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coach-required-chip {
    min-height: 78px;
  }

  .coach-priority-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .coach-priority-item button {
    width: 100%;
  }

  .coach-primary-action,
  .coach-secondary-action,
  .coach-choice {
    width: 100%;
  }

  .coach-legacy-action {
    width: auto;
  }

  .coach-builder-actions .coach-secondary-action {
    width: auto;
  }

  .coach-scratch-toolbar .coach-primary-action,
  .coach-scratch-toolbar .coach-secondary-action {
    width: auto;
  }
}
