/* Interactive Piqle-style lineup editor */

.lu-sheet {
  --lu-border: #e5e7eb;
  --lu-fill: #1f2937;
  --lu-bg: #111827;
  --lu-text: #f9fafb;
  --lu-muted: #9ca3af;
  --lu-accent: #cce600;
  background: var(--lu-bg);
  color: var(--lu-text);
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #374151;
}

/* Match banner with logos */
.lu-match-banner {
  background: linear-gradient(160deg, #1f2937 0%, #0f172a 55%, #111827 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 4px;
}

.lu-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.lu-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.lu-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(0, 168, 107, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(0, 168, 107, 0.35);
}

.lu-chip-muted {
  background: rgba(156, 163, 175, 0.12);
  color: #d1d5db;
  border-color: #4b5563;
}

.lu-banner-date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.lu-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.lu-team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lu-team-card-away {
  justify-content: flex-end;
  text-align: right;
}

.lu-team-copy {
  min-width: 0;
}

.lu-team-side {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.lu-team-title {
  font-size: 15px;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.25;
  margin-top: 2px;
  word-break: break-word;
}

.lu-vs {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.35);
}

.lu-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
}

.lu-logo-lg {
  width: 56px;
  height: 56px;
}

.lu-logo-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 3px;
}

.lu-logo-fallback {
  background: #e5e7eb;
  color: #4b5563;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lu-logo-lg.lu-logo-fallback {
  font-size: 16px;
}

.lu-roster-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lu-section-label {
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .lu-teams-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lu-vs {
    margin: 0 auto;
  }

  .lu-team-card,
  .lu-team-card-away {
    justify-content: flex-start;
    text-align: left;
  }

  .lu-team-card-away {
    flex-direction: row-reverse;
  }
}

.lu-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lu-table th,
.lu-table td {
  border: 1px solid var(--lu-border);
  padding: 5px 6px;
  font-size: 13px;
  line-height: 1.25;
  vertical-align: middle;
}

.lu-fill {
  background: #374151;
}

.lu-center {
  text-align: center;
}

.lu-bold {
  font-weight: 700;
}

.lu-week {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  color: #f9fafb;
  white-space: nowrap;
}

.lu-team-head {
  font-weight: 700;
  text-align: center;
}

.lu-team-name {
  background: #374151;
  min-height: 30px;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.lu-player-label {
  width: 1.2in;
  font-weight: 700;
  font-size: 12px;
  color: var(--lu-muted);
}

.lu-letter-cell {
  width: 0.4in;
  padding: 3px !important;
  text-align: center;
  vertical-align: middle;
}

.lu-letter {
  width: 100%;
  min-width: 1.75rem;
  min-height: 2rem;
  padding: 0.25rem;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  cursor: pointer;
}

.lu-letter:hover:not(:disabled) {
  border-color: #60a5fa;
  color: #fff;
}

.lu-letter.is-active-letter {
  background: #1d4ed8;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.lu-letter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lu-player {
  background: #0b1220;
  padding: 3px !important;
}

.lu-slot-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  background: #0b1220;
  color: #f9fafb;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
}

.lu-slot-btn:hover:not(:disabled) {
  border-color: #4b5563;
}

.lu-slot-btn.is-active-slot {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.lu-slot-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lu-slot-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-slot-chevron {
  flex-shrink: 0;
  font-size: 10px;
  opacity: 0.65;
}

.lu-slot-picker {
  position: fixed;
  z-index: 300;
  max-height: min(280px, 50vh);
  overflow-y: auto;
  background: #0b1220;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 4px;
}

.lu-slot-picker.hidden {
  display: none;
}

.lu-slot-face {
  display: inline-flex;
  flex-shrink: 0;
}

.lu-slot-face:empty {
  display: none;
}

.lu-slot-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f3f4f6;
  font-size: 12px;
  cursor: pointer;
}

.lu-slot-option:hover,
.lu-slot-option.is-current {
  background: #1e3a5f;
}

.lu-spacer {
  background: #374151;
  width: 0.35in;
}

.lu-game-num {
  width: 0.45in;
  text-align: center;
  font-weight: 800;
}

.lu-pair {
  width: 0.7in;
  text-align: center;
  font-weight: 800;
}

.lu-score {
  width: 0.95in;
  background: #374151;
  text-align: center;
  padding: 2px !important;
}

.lu-score-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 2px;
  outline: none;
}

.lu-score-input::-webkit-outer-spin-button,
.lu-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lu-score-input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.lu-footer-label {
  font-weight: 700;
  text-align: left;
  padding-left: 8px;
}

.lu-diff-pos {
  color: #15803d;
}

.lu-diff-neg {
  color: #dc2626;
}

.lu-game-invalid .lu-score-input,
.lu-game-extra .lu-score-input {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b;
}

.lu-score-rule {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-top: 1px solid rgba(245, 158, 11, 0.35);
}

.lu-roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .lu-roster-grid {
    grid-template-columns: 1fr;
  }
}

.lu-roster {
  background: #0b1220;
  border: 1px solid #374151;
  border-radius: 10px;
  overflow: hidden;
}

.lu-roster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #374151;
  background: #1f2937;
}

.lu-roster-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.lu-roster-team {
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
  margin-top: 2px;
}

.lu-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.lu-reserved-block {
  border-top: 1px dashed #4b5563;
  background: rgba(180, 83, 9, 0.12);
}

.lu-reserved-label {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
}

.lu-reserved-list {
  max-height: 110px;
}

.lu-roster-item.lu-roster-reserved .lu-roster-name {
  color: #fde68a;
}

.lu-section-hint {
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7280;
  font-size: 11px;
}

.lu-roster-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #1f2937;
  font-size: 12px;
}

.lu-roster-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.lu-roster-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lu-roster-dupr {
  font-size: 11px;
  font-weight: 600;
  color: #6ee7b7;
}

.lu-roster-item.is-assignable {
  cursor: default;
}

.lu-roster-item.is-assignable:hover {
  background: transparent;
}

.lu-roster-item:first-child {
  border-top: 0;
}

.lu-roster-item.is-blocked {
  opacity: 0.55;
}

.lu-roster-item.lu-roster-reserved.is-assignable:hover {
  background: transparent;
}

.lu-roster-name {
  font-weight: 600;
  color: #f3f4f6;
  min-width: 0;
}

.lu-roster-meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  padding-top: 1px;
}

.lu-roster-slot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lu-roster-empty {
  padding: 14px 12px;
  color: #9ca3af;
  font-size: 12px;
}

.lu-avail-ok {
  color: #34d399;
}

.lu-avail-out {
  color: #f87171;
}

.lu-avail-maybe {
  color: #fbbf24;
}

.lu-avail-none {
  color: #9ca3af;
}

.lu-auto-btn {
  background: #00a86b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lu-auto-btn:hover {
  background: #059669;
}

.lu-auto-bar {
  margin-top: 10px;
  text-align: center;
}

.lu-auto-both {
  padding: 8px 14px;
  font-size: 12px;
}

.lu-pairings-label {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.lu-pairings .lu-pair-mid {
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  background: #1f2937;
  width: 0.45in;
}

.lu-pair-names {
  text-align: left;
  vertical-align: middle !important;
  padding: 6px 8px !important;
}

.lu-pair-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.lu-pair-players {
  font-size: 12px;
  font-weight: 600;
  color: #f9fafb;
  line-height: 1.3;
  word-break: break-word;
}

.lu-assigned-summary {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #1f2937;
}

.lu-assigned-empty-banner {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.lu-assigned-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.lu-assigned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.lu-assigned-team {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.lu-assigned-players {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lu-assigned-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f3f4f6;
}

.lu-assigned-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #374151;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.lu-assigned-empty {
  color: #6b7280;
  font-weight: 500;
}

.lu-assigned-dupr {
  font-weight: 600;
  color: #6ee7b7;
}

@media (max-width: 560px) {
  .lu-assigned-grid {
    grid-template-columns: 1fr;
  }
}

.lu-game-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.lu-game-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}

.lu-game-card.is-tiebreaker {
  border-color: #f59e0b;
  background: #292524;
}

.lu-game-card.lu-game-invalid {
  border-color: #f87171;
}

.lu-game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lu-game-card-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.lu-game-card-codes {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
}

.lu-game-card-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: start;
}

.lu-game-card-side-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 2px;
}

.lu-game-card-names {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.lu-game-card-vs {
  align-self: center;
  font-size: 10px;
  font-weight: 800;
  color: #6b7280;
}

.lu-game-card-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.lu-game-card-score {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #111827;
  border-radius: 8px;
  padding: 6px 8px;
}

.lu-game-card-score span {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}

.lu-score-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2937;
  border: 1px solid #374151;
  font-size: 12px;
  color: #d1d5db;
}

.lu-score-totals strong {
  color: #fff;
  margin-left: 4px;
}

.lu-score-rule {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
}

@media (max-width: 640px) {
  .lu-game-cards {
    grid-template-columns: 1fr;
  }
}

.lu-score-dialog {
  width: min(1180px, calc(100vw - 1.5rem));
}

.lu-modal-match {
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px 12px;
}

.lu-modal-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lu-modal-match-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lu-modal-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.lu-modal-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 16.5rem;
  flex: 0 1 auto;
}

.lu-modal-match-away {
  text-align: right;
}

.lu-modal-match-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lu-modal-match-role {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
}

.lu-modal-match-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.lu-modal-match-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lu-modal-match-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.lu-score-board {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.lu-score-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.lu-score-head-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.lu-score-head-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lu-score-head-away {
  justify-content: flex-end;
  text-align: right;
}

.lu-score-head-copy {
  min-width: 0;
}

.lu-score-head-side {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lu-score-logo,
.lu-score-logo.lu-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 4px;
  flex-shrink: 0;
}

.lu-score-logo.lu-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.lu-score-head-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lu-score-head-pill {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.lu-score-vs {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.lu-score-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.lu-score-pd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lu-score-pd strong {
  font-weight: 800;
}

.lu-score-pd .lu-diff-pos {
  color: #047857;
}

.lu-score-pd .lu-diff-neg {
  color: #b91c1c;
}

.lu-score-status {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #334155;
}

.lu-score-status.is-completed {
  background: #0f172a;
  color: #fff;
}

.lu-sg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .lu-sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .lu-sg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lu-sg-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.lu-sg-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  min-width: 0;
}

.lu-sg-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.lu-sg-card-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lu-sg-game-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  white-space: nowrap;
}

.lu-sg-pairs {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

.lu-sg-ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lu-sg-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 11px;
  line-height: 1.3;
}

.lu-sg-id-chip.is-dupr {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.lu-sg-id-chip.is-dupr-code {
  border-color: #d1fae5;
  background: #f0fdf4;
  color: #065f46;
}

.lu-sg-id-chip.is-pending {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.lu-sg-id-chip.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

.lu-sg-id-k {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  font-size: 10px;
}

.lu-sg-id-chip.is-dupr .lu-sg-id-k,
.lu-sg-id-chip.is-dupr-code .lu-sg-id-k {
  color: #059669;
}

.lu-sg-id-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: inherit;
}

.lu-sg-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px 12px 4px;
}

.lu-sg-vs {
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.lu-sg-side {
  min-width: 0;
}

.lu-sg-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  min-width: 0;
}

.lu-sg-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-sg-side-away .lu-sg-team {
  justify-content: flex-end;
  text-align: right;
}

.lu-sg-side-away {
  text-align: right;
}

.lu-sg-player {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.lu-sg-player-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.lu-sg-player-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

.lu-sg-player-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-sg-slot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.lu-sg-dupr-none {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.lu-sg-side-away .lu-sg-player {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.lu-sg-side-away .lu-sg-player-meta {
  align-items: flex-end;
  text-align: right;
}

.lu-sg-side-away .lu-sg-player-name {
  flex-direction: row-reverse;
}

.lu-sg-side-away .dupr-connected-detail {
  justify-content: flex-end;
}

.lu-sg-score {
  margin: 4px 12px 0;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.lu-sg-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 12px 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.lu-sg-card.is-editing .lu-sg-edit {
  display: grid;
}

.lu-sg-card.is-editing .lu-sg-score {
  display: none;
}

.lu-sg-edit label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.lu-sg-side-away + .lu-sg-edit,
.lu-sg-edit label:last-child {
  text-align: right;
}

.lu-sg-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  background: #fff;
}

.lu-sg-change {
  width: calc(100% - 24px);
  margin: 10px 12px 12px;
  border: 0;
  background: #0f172a;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.lu-sg-change:hover {
  background: #1e293b;
}

.lu-dupr-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.lu-dupr-legend-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.lu-dupr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.lu-dupr-legend .lu-sg-dupr {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.lu-sg-dupr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 11px;
}

.lu-sg-dupr.is-synced {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.lu-sg-dupr.is-pending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.lu-sg-dupr.is-skipped {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.lu-sg-dupr.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.lu-sg-logo,
.lu-sg-logo.lu-logo-fallback {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1px;
  flex-shrink: 0;
}

.lu-sg-logo.lu-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
}

.lu-sg-card.is-tiebreaker {
  border-color: #f59e0b;
  background: #fffbeb;
}

.lu-tb-picks {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.lu-tb-pick {
  display: grid;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lu-tb-pick select {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
}

.lu-tb-hint {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.lu-sg-card.lu-game-invalid {
  border-color: #f87171;
}

.lu-score-board .lu-score-totals {
  background: #fff;
  border-color: #e5e7eb;
  color: #475569;
}

.lu-score-board .lu-score-totals strong {
  color: #111827;
}

.lu-score-board .lu-score-rule {
  color: #b45309;
}

#lineup-sheet-panel.bg-slate-50,
#player-score-modal .bg-slate-50 {
  padding: 1.15rem 1.25rem 1.35rem;
}

.lu-score-dialog #lineup-score-actions,
#player-score-modal .flex.flex-wrap.gap-x-3 {
  gap: 0.4rem 1rem;
}

.pk-desk{display:flex;flex-direction:column;gap:1.5rem}
.pk-summary{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;font-size:13px;font-weight:600;color:#64748b}
.pk-summary strong{font-weight:800;color:#0f172a}
.pk-week-block{display:flex;flex-direction:column;gap:.75rem}
.pk-week-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}
.pk-week-head h4{margin:0;font-size:1rem;font-weight:800;color:#0f172a}
.pk-week-head p{margin:.15rem 0 0;font-size:13px;color:#64748b}
.pk-week-head span{font-size:12px;font-weight:700;color:#94a3b8}
.pk-nights{display:flex;flex-direction:column;gap:.85rem}
.pk-night{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;overflow:hidden;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.pk-night.is-lineup-complete,.pk-night.is-score-done{box-shadow:inset 4px 0 0 #10b981}
.pk-night.is-lineup-partial,.pk-night.is-score-blocked{box-shadow:inset 4px 0 0 #f59e0b}
.pk-night.is-lineup-empty{box-shadow:inset 4px 0 0 #cbd5e1}
.pk-night.is-score-ready{box-shadow:inset 4px 0 0 #38bdf8}
.pk-night:hover{border-color:color-mix(in srgb,var(--color-primary,#00a86b) 42%,#cbd5e1);background:#f7fffb}
.pk-night:hover .pk-night-bar{background:#eefbf5;border-bottom-color:color-mix(in srgb,var(--color-primary,#00a86b) 18%,#eef2f7)}
.pk-night.is-lineup-complete:hover,.pk-night.is-score-done:hover{box-shadow:inset 4px 0 0 #10b981,0 10px 28px -16px rgba(15,23,42,.22)}
.pk-night.is-lineup-partial:hover,.pk-night.is-score-blocked:hover{box-shadow:inset 4px 0 0 #f59e0b,0 10px 28px -16px rgba(15,23,42,.22)}
.pk-night.is-lineup-empty:hover{box-shadow:inset 4px 0 0 #cbd5e1,0 10px 28px -16px rgba(15,23,42,.22)}
.pk-night.is-score-ready:hover{box-shadow:inset 4px 0 0 #38bdf8,0 10px 28px -16px rgba(15,23,42,.22)}
.pk-vs{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;gap:.55rem;min-width:8rem;margin:.85rem .15rem;padding:1rem .7rem;border-radius:1.15rem;background:#f8fafc;letter-spacing:0;text-align:center}
.pk-vs-pill{width:2.85rem;height:2.85rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;flex-shrink:0}
.pk-vs-score{font-size:1.55rem;font-weight:800;color:#0f172a;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap;letter-spacing:0}
.pk-vs-pd{font-size:11px;font-weight:800;color:#64748b;font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap;line-height:1;padding:.22rem .55rem;border-radius:999px;background:#fff;border:1px solid #e2e8f0}
.pk-vs-pd.is-pos{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
.pk-vs-pd.is-neg{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.pk-night.is-openable{cursor:pointer}
.pk-night.is-openable:hover{border-color:color-mix(in srgb,var(--color-primary,#00a86b) 55%,#94a3b8)}
.pk-night-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem;padding:.7rem 1rem;background:#f8fafc;border-bottom:1px solid #eef2f7;transition:background-color .16s ease,border-color .16s ease}
.pk-night-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .65rem;font-size:13px;font-weight:600;color:#475569}
.pk-week{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:.15rem .5rem}
.pk-night-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.pk-count{font-size:12px;font-weight:800;color:#334155}
.pk-edit{border:0;border-radius:.5rem;background:#0f172a;color:#fff;font-size:12px;font-weight:700;padding:.4rem .75rem;cursor:pointer}
.pk-edit.is-locked{background:#e2e8f0;color:#334155}
.pk-night-grid{display:grid;grid-template-columns:minmax(0,1fr) 8.25rem minmax(0,1fr);align-items:start}
.pk-roster{display:flex;flex-direction:column;gap:.7rem;min-width:0;padding:1.05rem 1.2rem 1.15rem}
.pk-roster.is-away{align-items:flex-end}
.pk-roster-team{display:flex;align-items:center;gap:.7rem;min-width:0;max-width:100%}
.pk-roster.is-away .pk-roster-team{flex-direction:row-reverse}
.pk-roster-copy{min-width:0}
.pk-roster.is-away .pk-roster-copy{text-align:right}
.pk-role{font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#94a3b8;line-height:1.2}
.pk-team{font-size:1.05rem;font-weight:800;color:#0f172a;line-height:1.25;word-break:break-word}
.pk-slots{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:.28rem}
.pk-slot{display:flex;align-items:center;gap:.5rem;min-height:1.85rem}
.pk-roster.is-away .pk-slot{justify-content:flex-end}
.pk-roster.is-away .pk-player{text-align:right}
.pk-letter{width:1.45rem;height:1.45rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#64748b;background:#f1f5f9;flex-shrink:0}
.pk-slot.is-set .pk-letter{color:#047857;background:#ecfdf5}
.pk-player{font-size:.92rem;font-weight:700;color:#0f172a;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pk-slot.is-open .pk-player{font-weight:600;color:#94a3b8}
.pk-dupr{font-size:11px;font-weight:700;color:#047857;flex-shrink:0}

@media (max-width: 720px) {
  .pk-night-grid{grid-template-columns:1fr}
  .pk-vs{margin:.15rem 1rem .35rem;min-width:0}
  .pk-roster.is-away{align-items:stretch}
  .pk-roster.is-away .pk-roster-team{flex-direction:row}
  .pk-roster.is-away .pk-roster-copy{text-align:left}
  .pk-roster.is-away .pk-slot{justify-content:flex-start}
  .pk-roster.is-away .pk-player{text-align:left}
  .lu-score-head-teams {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .lu-modal-match-teams {
    flex-direction: column;
  }
  .lu-score-head-team,
  .lu-score-head-away,
  .lu-modal-match-team,
  .lu-modal-match-away {
    justify-content: center;
    text-align: center;
    max-width: none;
  }
  .lu-modal-match-away {
    flex-direction: row-reverse;
  }
  .lu-score-meta,
  .lu-modal-match-meta {
    white-space: normal;
  }
}

.lu-lineup-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(84vh, 720px);
}

#lineup-sheet-panel .pk-editor-banner {
  display: none;
}

.lu-sheet.lu-mode-lineup,
.pk-editor {
  --lu-border: #e5e7eb;
  --lu-fill: #f8fafc;
  --lu-bg: transparent;
  --lu-text: #0f172a;
  --lu-muted: #64748b;
  --lu-accent: #047857;
  background: transparent;
  color: #0f172a;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.pk-editor-banner {
  margin-bottom: 0.85rem;
}

.pk-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem minmax(0, 1fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.pk-editor-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #047857;
  background: #f8fafc;
}

.pk-editor-side,
.lu-mode-lineup .lu-roster {
  background: #fff;
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
}

.pk-editor-side + .pk-editor-vs + .pk-editor-side {
  border-left: 1px solid #eef2f7;
}

.pk-editor-team {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.pk-editor-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pk-editor-team .lu-auto-btn,
.pk-editor-team .pk-clear-btn {
  margin-left: 0;
}

.pk-clear-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pk-clear-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.pk-editor-slots {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pk-editor-slot {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.lu-mode-lineup .lu-letter {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid transparent;
}

.lu-mode-lineup .lu-letter:hover:not(:disabled) {
  border-color: #86efac;
  color: #047857;
}

.lu-mode-lineup .lu-letter.is-active-letter {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

.lu-mode-lineup .lu-slot-btn {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.lu-mode-lineup .lu-slot-btn:hover:not(:disabled) {
  border-color: #86efac;
}

.lu-mode-lineup .lu-slot-btn.is-active-slot {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.pk-editor-bench {
  border-top: 0;
  padding-top: 0;
}

.pk-editor-bench-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.lu-mode-lineup .lu-roster-list {
  max-height: 280px;
}

.lu-mode-lineup .lu-roster-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem 0.65rem;
  border-top-color: #f1f5f9;
  border-radius: 0.5rem;
}

.lu-mode-lineup .lu-roster-main {
  align-items: center;
}

.pk-roster-letter {
  width: 3.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  padding: 0.35rem 0.25rem;
  text-align: center;
}

.pk-roster-letter:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.pk-roster-letter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lu-mode-lineup .lu-roster-item.is-assignable {
  cursor: pointer;
}

.lu-mode-lineup .lu-roster-item.is-assignable:hover {
  background: #f0fdf4;
}

.lu-mode-lineup .lu-roster-name {
  color: #0f172a;
}

.lu-mode-lineup .lu-roster-dupr {
  color: #047857;
}

.lu-mode-lineup .lu-roster-empty {
  color: #94a3b8;
}

.lu-mode-lineup .lu-reserved-block {
  background: #fffbeb;
  border-top-color: #fde68a;
}

.lu-mode-lineup .lu-reserved-label {
  color: #b45309;
}

.lu-mode-lineup .lu-roster-item.lu-roster-reserved .lu-roster-name {
  color: #92400e;
}

.pk-editor-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
}

.pk-editor-tab {
  flex: 1;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.pk-editor-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.pk-editor-tab.is-active {
  background: #0f172a;
  color: #fff;
}

.pk-editor-pane {
  display: none;
}

.pk-editor-pane.is-active {
  display: block;
}

.pk-editor-auto {
  text-align: center;
  margin: 0.9rem 0 0;
}

.pk-editor-games-lead {
  margin: 0 0 0.7rem;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.pk-gc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pk-gc {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.5rem 0.7rem;
}

.pk-gc-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
}

.pk-gc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.pk-gc-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
}

.pk-gc-side {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.pk-gc-side.is-away {
  align-items: flex-end;
  text-align: right;
}

.pk-gc-player {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.pk-gc-side.is-away .pk-gc-player {
  flex-direction: row-reverse;
}

.pk-gc-letter {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  flex-shrink: 0;
}

.pk-gc-player:not(.is-open) .pk-gc-letter {
  color: #047857;
  background: #ecfdf5;
}

.pk-gc-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-gc-player.is-open .pk-gc-name {
  font-weight: 600;
  color: #94a3b8;
}

.pk-gc-codes {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
  text-align: center;
}

.pk-gc-score {
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
}

.pk-gc-scoreline {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.1;
  text-align: center;
}

.pk-gc-edit {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pk-gc.is-editing .pk-gc-edit {
  display: flex;
}

.pk-gc.is-editing .pk-gc-scoreline {
  display: none;
}

.pk-gc-input {
  width: 3.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.2rem;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
}

.pk-gc-change {
  border: 0;
  background: transparent;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.pk-gc-change:hover {
  color: #065f46;
}

.pk-gc-tools {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-gc.is-tiebreaker {
  border-color: #f59e0b;
  background: #fffbeb;
}

.pk-gc.lu-game-invalid {
  border-color: #f87171;
}

.lu-slot-picker-light {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.lu-slot-picker-light .lu-slot-option {
  color: #0f172a;
}

.lu-slot-picker-light .lu-slot-option:hover,
.lu-slot-picker-light .lu-slot-option.is-current {
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 720px) {
  .pk-editor-grid {
    grid-template-columns: 1fr;
  }

  .pk-editor-vs {
    padding: 0.25rem 0;
  }

  .pk-editor-side + .pk-editor-vs + .pk-editor-side {
    border-left: 0;
    border-top: 1px solid #eef2f7;
  }
}

.sc-chip [data-triage-count] {
  display: inline-flex;
  min-width: 1.25rem;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  line-height: 1.4;
}
.sc-chip.bg-gray-900 [data-triage-count],
.sc-chip.text-white [data-triage-count] {
  background: rgba(255, 255, 255, 0.18);
}

.sc-inline-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sc-nav-btn {
  min-width: 0;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sc-nav-btn.is-next {
  text-align: right;
}
.sc-nav-btn:hover:not(:disabled) {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.sc-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.sc-nav-kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.sc-nav-btn.is-next .sc-nav-kicker {
  justify-content: flex-end;
}
.sc-nav-name {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-player-photo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.pk-player-photo--sm {
  width: 22px;
  height: 22px;
}

.pk-player-photo--md {
  width: 36px;
  height: 36px;
}
