body.competition-app {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(47, 158, 68, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(28, 126, 214, 0.07), transparent 50%),
    #ffffff;
}

.competition-nav a.on {
  background: rgba(47, 158, 68, 0.12);
  border-color: rgba(47, 158, 68, 0.22);
  color: var(--grass);
  font-weight: 700;
}

.competition-main {
  padding: 28px 0 56px;
}

.comp-hero {
  margin-bottom: 22px;
  animation: home-rise 0.55s ease;
}

.comp-hero h1,
#panel-competition .comp-hero h1,
.binder-app[data-binder="competition"] .comp-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #2f9e44;
}

.comp-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.hub-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.hub-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
}

.hub-create-row label {
  margin: 0;
}

.hub-create-actions {
  display: flex;
  align-items: flex-end;
}

.hub-create-actions .btn {
  width: auto;
  min-width: 96px;
  white-space: nowrap;
}

.hub-join-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hub-league-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.hub-league-row .hub-league-info {
  min-width: 0;
}

.hub-league-row .hub-join-btn {
  justify-self: end;
  flex-shrink: 0;
  white-space: nowrap;
}

.hub-league-badge {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grass, #2f9e44);
  white-space: nowrap;
}

.hub-create-form .btn {
  width: auto;
  min-width: 120px;
}

@media (max-width: 720px) {
  .hub-create-row {
    grid-template-columns: 1fr;
  }

  .hub-create-actions .btn {
    width: 100%;
  }
}

.comp-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: home-rise 0.6s ease both;
}

.comp-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.comp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.comp-form input,
.comp-form select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.comp-form input:focus,
.comp-form select:focus {
  outline: none;
  border-color: rgba(47, 158, 68, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.12);
}

.comp-form .btn {
  margin-top: 4px;
  width: 100%;
}

.comp-panel .error,
.binder-page .error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.comp-panel .footer-note,
.binder-page .footer-note {
  margin: 14px 0 0;
  color: var(--muted, #667085);
  font-size: 0.88rem;
}

.comp-panel .footer-note a,
.binder-page .footer-note a {
  color: inherit;
  text-decoration: underline;
}

.comp-list-panel {
  margin-bottom: 14px;
  animation-delay: 0.06s;
}

.comp-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comp-list-head h2 {
  margin: 0;
}

.comp-list-head span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.league-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.league-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafbfc);
}

.league-card strong {
  display: block;
  font-size: 1.05rem;
}

.league-card .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.league-card .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--schedule-blue-deep);
  font-size: 1.05rem;
}

.league-card .actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.comp-next {
  animation-delay: 0.1s;
}

.comp-next ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.comp-toast {
  position: sticky;
  bottom: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a2332;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.25);
}

.comp-back {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.comp-back a {
  color: var(--muted);
  font-weight: 500;
}

.comp-back a:hover {
  color: var(--grass);
}

.lobby-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lobby-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--grass);
}

.lobby-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lobby-code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(28, 126, 214, 0.08);
  border: 1px solid rgba(28, 126, 214, 0.18);
}

.lobby-code-box span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.lobby-code-box strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  color: var(--schedule-blue-deep);
}

.lobby-identity {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.lobby-identity label,
.draft-me {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.lobby-identity select,
.draft-me select,
.draft-toolbar select,
.draft-toolbar input {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  background: #fff;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.lobby-section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.member-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.member-idx {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47, 158, 68, 0.12);
  color: var(--grass);
  font-size: 0.8rem;
  font-weight: 500;
}

.member-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.member-picks {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.lobby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.draft-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.draft-side h2,
.draft-main h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.draft-sub {
  margin-top: 18px !important;
}

.draft-roster-fill {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.draft-fill-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.draft-fill-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.draft-fill-roles li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.draft-fill-roles li.ok {
  color: var(--grass);
}

.draft-fill-roles li.partial {
  color: var(--ink);
}

.draft-fill-roles em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.85;
}

.draft-fill-pos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.draft-fill-pos li {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.72rem;
  color: var(--muted);
}

.draft-fill-pos li.ok {
  border-color: rgba(47, 158, 68, 0.35);
  background: rgba(47, 158, 68, 0.08);
  color: var(--grass);
  font-weight: 700;
}

.draft-order,
.draft-my-picks,
.draft-prefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-pref-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.draft-prefs {
  max-height: 340px;
  overflow: auto;
  margin-bottom: 12px;
  gap: 4px;
}

.draft-prefs li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  min-height: 2rem;
  line-height: 1.25;
}

.draft-prefs li.is-taken {
  opacity: 0.55;
}

.draft-prefs .pref-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.draft-prefs .pref-name {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.draft-prefs .pref-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  flex-shrink: 0;
  align-items: center;
}

.draft-prefs .pref-btn {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 0;
  width: 1.1rem;
  height: 1.7rem;
  min-width: 1.1rem;
  min-height: 1.7rem;
  margin: 0 -1px;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.draft-prefs .pref-btn:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(28, 126, 214, 0.1);
}

.draft-prefs .pref-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.draft-prefs .pref-btn-remove {
  font-size: 1rem;
  font-weight: 700;
}

.draft-order li,
.draft-my-picks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.draft-order li.on {
  border-color: rgba(47, 158, 68, 0.45);
  background: rgba(47, 158, 68, 0.12);
}

.draft-order em,
.draft-my-picks em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}

.draft-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.draft-toolbar input {
  flex: 1;
  min-width: 140px;
}

.draft-turn {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 126, 214, 0.08);
  border: 1px solid rgba(28, 126, 214, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
}

.turn-mine {
  color: var(--grass);
}

.turn-wait {
  color: #b45309;
  font-weight: 600;
}

.draft-pick-wait {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.22);
  color: #92400e;
  font-size: 0.82rem;
}

.draft-pick-ready {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(47, 158, 68, 0.1);
  border: 1px solid rgba(47, 158, 68, 0.22);
  color: var(--grass);
  font-size: 0.82rem;
  font-weight: 600;
}

.draft-done-msg {
  margin: 12px 0 0;
  color: var(--grass-bright);
  font-weight: 500;
}

.draft-rules-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.draft-rules-box .lobby-section-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.draft-rules {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.draft-rules li + li {
  margin-top: 4px;
}

.draft-rules strong {
  color: var(--ink);
  font-weight: 700;
}

.draft-player-list {
  max-height: min(62vh, 680px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.draft-player-head,
.draft-player-list .draft-player-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.4fr) 3.2rem minmax(4.5rem, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
}

.draft-quota-badge,
.acq-quota-badge {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.draft-player-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.draft-player-list .draft-player-row {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 9px 12px;
}

.draft-player-list .draft-player-row:last-child {
  border-bottom: 0;
}

.draft-player-list .col-pos {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.draft-player-list .col-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-player-list .col-team {
  font-size: 0.8rem;
  color: var(--muted);
}

.draft-player-list .col-salary {
  font-size: 0.78rem;
  color: #0f6a3a;
  font-weight: 600;
  text-align: right;
}

.draft-player-list .draft-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  justify-self: end;
}

.draft-player-list .draft-player-row .btn {
  min-width: 2.6rem;
  padding-inline: 0.55rem;
}

.lu-mobile-tabs {
  display: none;
}

/* Competition standings — sum-first expandable cards */
.comp-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-rank-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.comp-rank-card.is-me {
  border-color: rgba(47, 158, 68, 0.45);
  background: rgba(47, 158, 68, 0.06);
}

.comp-rank-card > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}

.comp-rank-card > summary::-webkit-details-marker {
  display: none;
}

.comp-rank-card[open] > summary {
  border-bottom: 1px solid var(--line);
}

.comp-rank-card .rank-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.comp-rank-card .rank-points {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.comp-rank-day-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 14px;
}

.comp-rank-day-detail .comp-rank-day {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 5.8rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.comp-rank-day-detail .comp-rank-day::before {
  content: attr(data-day);
  color: var(--muted);
  font-weight: 600;
}

.comp-rank-day-detail .comp-rank-day.is-frozen {
  background: #eef8f0;
}

/* —— Competition lineup (table + DnD) —— */
.lu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lu-toolbar-actions {
  display: flex;
  gap: 8px;
}

.lu-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.lu-ok {
  color: var(--grass);
}

.lu-need {
  color: #b45309;
  font-weight: 600;
}

.lu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.lu-col-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.lu-mgr {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(47, 158, 68, 0.08);
  border: 1px solid rgba(47, 158, 68, 0.18);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.lu-section-title {
  margin: 16px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.lu-section-title span {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.lu-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.lu-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lu-row {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) 3.4rem;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}

.lu-row-bat {
  grid-template-columns: 1.6rem 2.2rem 4.6rem minmax(0, 1fr) 3.2rem;
}

.lu-order-handle {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  font-size: 0.85rem;
  letter-spacing: -0.08em;
  padding: 4px 0;
  line-height: 1;
}

.lu-order-handle:active {
  cursor: grabbing;
}

.lu-pos-fixed {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
}

.lu-pos-fixed:hover {
  border-color: rgba(28, 126, 214, 0.45);
  color: var(--ink);
}

.lu-row.is-selected {
  outline: 2px solid rgba(47, 158, 68, 0.55);
  outline-offset: -2px;
  background: rgba(47, 158, 68, 0.08);
}

.lu-row.is-selected .lu-pos-fixed {
  border-color: rgba(47, 158, 68, 0.45);
  background: rgba(47, 158, 68, 0.12);
  color: var(--grass);
}

.lu-row.is-eligible {
  outline: 2px solid rgba(28, 126, 214, 0.55);
  outline-offset: -2px;
  background: rgba(28, 126, 214, 0.08);
}

.lu-row.is-blocked {
  opacity: 0.38;
  pointer-events: none;
}

.lu-row.is-dragging-row {
  opacity: 0.55;
}

.lu-chip.is-dimmed {
  opacity: 0.32;
  pointer-events: none;
}

.lu-chip.is-pickable {
  outline: 2px solid rgba(47, 158, 68, 0.55);
  background: rgba(47, 158, 68, 0.1);
  cursor: pointer;
}

.lu-chip.is-pickable:hover {
  background: rgba(47, 158, 68, 0.18);
}

.lu-chip[data-from="bat"],
.lu-chip[data-from="bench"],
.lu-chip[data-from="pit"],
.lu-chip[data-from="bullpen"] {
  cursor: pointer;
}

.lu-role-btn {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}

.lu-role-btn:hover {
  border-color: rgba(28, 126, 214, 0.45);
  color: var(--ink);
}

.lu-row.is-selected .lu-role-btn {
  border-color: rgba(28, 126, 214, 0.65);
  background: rgba(28, 126, 214, 0.1);
  color: var(--ink);
}

.lu-row:last-child {
  border-bottom: 0;
}

.lu-row.lu-head {
  background: #f4f7fa;
  min-height: 0;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.lu-order,
.lu-role {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.lu-pos-cell {
  min-width: 0;
}

.lu-pos-select {
  width: 100%;
  max-width: 6.2rem;
  font-size: 0.78rem;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.lu-cell {
  min-width: 0;
}

.lu-empty {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 0;
}

.lu-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor: grab;
  user-select: none;
}

.lu-chip strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.lu-chip span {
  font-size: 0.75rem;
  color: var(--muted);
}

.lu-chip.is-dragging {
  opacity: 0.45;
}

.lu-drop.is-over {
  outline: 2px solid rgba(28, 126, 214, 0.55);
  outline-offset: -2px;
  background: rgba(28, 126, 214, 0.06);
}

.lu-pool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  padding: 8px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(248, 250, 252, 0.9);
}

.lu-reserve-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lu-reserve-row {
  grid-template-columns: 2.4rem minmax(0, 1fr) 3.2rem;
}

/* —— Player acquisition (FA) —— */
.acq-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acq-mine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.acq-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.acq-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
}

.acq-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.acq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.acq-filters input {
  flex: 1;
  min-width: 160px;
}

.acq-list-head,
.acq-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1.3fr) 3rem minmax(4.5rem, 1fr) 3.2rem auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.acq-list-head {
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.acq-list {
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #fff;
  max-height: min(52vh, 560px);
  overflow: auto;
}

.acq-row {
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.acq-row:last-child {
  border-bottom: 0;
}

.acq-row .col-name {
  font-size: 0.9rem;
}

.acq-row .col-team,
.acq-row .col-pos {
  color: var(--muted);
  font-size: 0.8rem;
}

.acq-row .col-salary {
  color: #0f6a3a;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: right;
}

.acq-row .col-pts {
  font-weight: 600;
  text-align: right;
  font-size: 0.8rem;
}

.acq-row .col-pts small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.acq-owned-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 64px;
}

.acq-owned-list .acq-row {
  grid-template-columns: 4.2rem minmax(0, 1.3fr) 3rem minmax(4rem, 1fr) 3.2rem auto;
}

.acq-slot-empty {
  opacity: 0.72;
  color: var(--muted);
}

.acq-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .acq-mine-grid {
    grid-template-columns: 1fr;
  }

  .acq-list-head,
  .acq-row,
  .acq-owned-list .acq-row {
    grid-template-columns: 3.4rem minmax(0, 1fr) 2.6rem minmax(3.5rem, 0.9fr) 2.8rem auto;
    gap: 6px;
    padding: 8px;
  }
}

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

  .draft-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .draft-side,
  .draft-main,
  .draft-head,
  .comp-panel {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .lobby-title {
    font-size: 1.15rem;
    line-height: 1.3;
    word-break: keep-all;
  }

  .lobby-meta {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .draft-rules {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .draft-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .draft-toolbar input,
  .draft-toolbar select,
  .draft-me select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

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

  .draft-turn {
    position: sticky;
    top: 0;
    z-index: 5;
    font-size: 0.82rem;
  }

  .draft-player-list {
    max-width: 100%;
    overflow-x: hidden;
  }

  .draft-player-head {
    display: none;
  }

  .draft-player-list .draft-player-row {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto auto;
    grid-template-areas:
      "pos name pref pick"
      ". team team pick";
    gap: 2px 6px;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    max-width: 100%;
    box-sizing: border-box;
  }

  .draft-player-list .draft-player-row .col-pos {
    grid-area: pos;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.68rem;
  }

  .draft-player-list .draft-player-row .col-name {
    grid-area: name;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .draft-player-list .draft-player-row .col-team {
    grid-area: team;
    font-size: 0.68rem;
  }

  .draft-player-list .draft-player-row .col-salary {
    display: none;
  }

  .draft-player-list .draft-row-actions {
    display: contents;
  }

  .draft-player-list .draft-row-actions [data-pref-add] {
    grid-area: pref;
    justify-self: start;
    min-width: 0;
    min-height: 28px;
    padding: 2px 6px;
    font-size: 0.64rem;
  }

  .draft-player-list .draft-row-actions [data-pick] {
    grid-area: pick;
    align-self: center;
    min-width: 2.2rem;
    min-height: 30px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .draft-player-list .draft-row-actions .btn {
    width: auto;
  }

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

  .lu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lu-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lu-toolbar-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .lu-row-bat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
    grid-template-columns: none;
  }

  .lu-row-bat .lu-order-handle {
    order: 0;
  }

  .lu-row-bat .lu-order {
    order: 1;
    font-weight: 700;
  }

  .lu-row-bat .lu-pos-fixed {
    order: 2;
    min-width: 3.6rem;
  }

  .lu-row-bat .lu-cell {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .lu-row-bat > .btn {
    order: 4;
    flex: 1 1 calc(50% - 4px);
    min-height: 40px;
  }

  .lu-row:not(.lu-row-bat):not(.lu-head) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    grid-template-columns: none;
  }

  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-role,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-role-btn {
    min-width: 4.5rem;
  }

  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-cell {
    flex: 1 1 100%;
    width: 100%;
  }

  .lu-row:not(.lu-row-bat):not(.lu-head) > .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 40px;
  }

  .lu-table .lu-head {
    display: none;
  }

  .lu-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 12px;
  }

  .lu-mobile-tab {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 12px;
    padding: 12px 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
  }

  .lu-mobile-tab.on {
    border-color: var(--binder-accent, var(--grass));
    background: rgba(47, 158, 68, 0.1);
    color: var(--binder-accent, var(--grass));
  }

  .lu-layout[data-mobile-pane="bat"] .lu-board-pit,
  .lu-layout[data-mobile-pane="pit"] .lu-board-bat {
    display: none;
  }

  .lu-row-bat .lu-cell,
  .lu-row-bat .lu-chip-wrap,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-cell,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-chip-wrap {
    display: contents;
  }

  .lu-row-bat .lu-chip,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-chip,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-empty {
    flex: 1 1 100%;
    width: 100%;
    order: 3;
  }

  .lu-row-bat .lu-cap-btn,
  .lu-row:not(.lu-row-bat):not(.lu-head) .lu-cap-btn {
    order: 4;
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-height: 40px;
    font-size: 0.84rem;
  }

  .lu-row-bat > .btn,
  .lu-row:not(.lu-row-bat):not(.lu-head) > .btn {
    order: 5;
  }

  .comp-rank-day-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hub-create-row {
    grid-template-columns: 1fr;
  }

  .hub-create-actions .btn {
    width: 100%;
  }
}

.lu-lock-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lu-lock-banner.is-locked {
  background: #fff4e6;
  border: 1px solid #ffd8a8;
}

.lu-chip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lu-chip-wrap .lu-chip {
  flex: 1;
  min-width: 0;
}

.lu-chip.is-captain {
  outline: 2px solid #e67700;
  background: #fff9db;
}

.lu-cap-btn {
  flex: 0 0 auto;
  border: 1px solid #ffd8a8;
  background: #fff4e6;
  color: #e67700;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lu-cap-btn.is-on,
.lu-cap-btn:hover {
  background: #e67700;
  border-color: #e67700;
  color: #fff;
}
