/* Schedules / Lineup / Scoring match cards — self-contained (prebuilt Tailwind has no arbitrary sizes) */

.match-kanban .placement-kanban-col {
  width: 20rem;
  flex: 0 0 20rem;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), flex-basis 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.match-kanban .placement-kanban-col.has-open-card {
  width: min(23.5rem, 92vw);
  flex: 0 0 min(23.5rem, 92vw);
}

.match-kanban.is-score .placement-kanban-col.has-open-card {
  width: min(40rem, 94vw);
  flex: 0 0 min(40rem, 94vw);
}

.match-board-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-board-card {
  /* overflow must stay visible so action menus / fixed panels are not clipped */
  overflow: visible;
  padding: 0.7rem 0.75rem 0.65rem;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.match-board-card-wrap:has(.match-board-action-menu[open]),
.match-board-card:has(.match-board-action-menu[open]) {
  position: relative;
  z-index: 95;
}

.match-board-card-wrap.is-open > .match-board-card {
  border-color: color-mix(in srgb, var(--color-primary, #00a86b) 45%, #e5e7eb);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary, #00a86b) 25%, transparent);
}

.match-board-roster {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
}

.mb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.mb-card-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.mb-status {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.mb-status.is-completed { background: #dcfce7; color: #166534; }
.mb-status.is-cancelled { background: #fee2e2; color: #b91c1c; }
.mb-status.is-postponed,
.mb-status.is-needs_lineup { background: #fffbeb; color: #92400e; }
.mb-status.is-forfeited { background: #f3e8ff; color: #6b21a8; }
.mb-status.is-scheduled { background: #f1f5f9; color: #334155; }
.mb-status.is-in_progress { background: #dbeafe; color: #1e40af; }
.mb-status.is-ready { background: #d1fae5; color: #047857; }
.mb-status.is-lineup_set { background: #e0f2fe; color: #075985; }

.mb-dupr {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.mb-dupr.is-none { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.mb-dupr.is-synced { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.mb-dupr.is-syncing { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.mb-dupr.is-error { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.mb-dupr.is-held,
.mb-dupr.is-partial { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.mb-card-week {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
}

.mb-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.25rem 0.35rem;
  padding: 0.15rem 0 0.05rem;
}

.mb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.22rem;
  min-width: 0;
}

.mb-logo {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 3px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.mb-logo-sm {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  padding: 2px;
}

.mb-logo-fallback {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.mb-logo-sm.mb-logo-fallback {
  font-size: 0.55rem;
}

.mb-team-side {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

.mb-team-club {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.mb-team-detail {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-pair {
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-pair.is-empty {
  color: #94a3b8;
  font-weight: 600;
}

.mb-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding-top: 0.45rem;
  min-width: 2.4rem;
}

.mb-vs-pill {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.mb-vs-score {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.mb-card-meta {
  margin-top: 0.55rem;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-card-actions {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
}

.mb-expand-btn {
  flex-shrink: 0;
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 0.5rem;
  font-size: 11px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mb-expand-btn i {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.match-board-card-wrap.is-open .mb-expand-btn {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.match-board-card-wrap.is-open .mb-expand-btn i {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .match-kanban .placement-kanban-col,
  .mb-expand-btn,
  .mb-expand-btn i,
  .match-board-card,
  .pk-night,
  .pk-night-bar {
    transition: none !important;
  }
}

.mb-expand-btn:hover {
  background: #f8fafc;
}

.mb-action-menu {
  flex: 1 1 auto;
  min-width: 0;
}

.mb-list-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 9.5rem;
}

.mb-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 9.5rem;
  width: 100%;
}

.mb-action-menu > .mb-action-direct,
.mb-action-stack > .mb-action-direct,
.mb-list-actions .mb-action-direct,
.mb-action-menu > summary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.45rem 0.65rem !important;
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.mb-action-stack > .mb-action-direct.is-primary,
.mb-list-actions .mb-action-direct.is-primary {
  border-color: #6ee7b7 !important;
  color: #047857 !important;
  background: #ecfdf5 !important;
}

.mb-action-stack > .mb-action-direct.is-change,
.mb-action-stack > .mb-action-direct[data-match-action='score_request_change'],
.mb-list-actions .mb-action-direct.is-change,
.mb-list-actions .mb-action-direct[data-match-action='score_request_change'] {
  border-color: #fcd34d !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}

.mb-action-menu > summary::-webkit-details-marker {
  display: none;
}

.mb-action-menu > .mb-action-direct:hover,
.mb-action-stack > .mb-action-direct:hover,
.mb-list-actions .mb-action-direct:hover,
.mb-action-menu > summary:hover {
  filter: brightness(0.98);
}

.mb-action-stack > .mb-action-direct.is-change:hover,
.mb-list-actions .mb-action-direct.is-change:hover {
  background: #fef3c7 !important;
}

/* Player portal: dropdown panels (admin styles live in admin.html) */
.placement-action-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 90;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.placement-action-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.placement-action-panel button:hover {
  background: #f3f4f6;
}

.placement-action-panel button.is-primary {
  color: #047857;
}

.placement-action-menu {
  position: relative;
}

.mb-expand-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mb-expand-side {
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.5rem 0.55rem;
}

.mb-expand-club {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.mb-expand-club-name {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.mb-expand-players {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.mb-expand-players.is-empty {
  color: #94a3b8;
}

.match-board-subcard {
  padding: 0.15rem 0.05rem 0.1rem;
}

@media (max-width: 639px) {
  .mb-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .mb-card-actions {
    flex-wrap: wrap;
  }

  .mb-action-direct,
  .mb-action-menu {
    min-height: 2.5rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .mb-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.mb-lineup-slots {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f1f5f9;
}

.mb-lineup-progress {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.mb-lineup-slots.is-complete .mb-lineup-progress {
  color: #047857;
}

.mb-lineup-slots.is-partial .mb-lineup-progress {
  color: #b45309;
}

.mb-slots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.mb-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.22rem;
}

.mb-slot {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.28rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.mb-slot.is-filled {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.match-board-card-wrap.is-lineup-complete > .match-board-card {
  border-color: #a7f3d0;
}

.match-board-card-wrap.is-lineup-partial > .match-board-card {
  border-color: #fde68a;
}

.match-board-card-wrap.is-lineup-openable > .match-board-card {
  cursor: pointer;
}

.match-board-card-wrap > .match-board-card {
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.match-board-card-wrap > .match-board-card:hover,
.match-board-card-wrap.is-lineup-openable > .match-board-card:hover {
  border-color: color-mix(in srgb, var(--color-primary, #00a86b) 42%, #e5e7eb);
  background: #f7fffb;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-primary, #00a86b) 28%, transparent),
    0 10px 28px -16px rgba(15, 23, 42, 0.18);
}

.mb-list-matchup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mb-list-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

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

.mb-list-vs {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}

.mb-lineup-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.mb-lineup-list .mb-lineup-slots {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mb-lineup-list .mb-lineup-progress,
.mb-lineup-list .mb-slots {
  justify-content: flex-start;
}

.mb-lineup-row.is-lineup-openable {
  cursor: pointer;
}

.mb-lineup-row.is-lineup-complete {
  box-shadow: inset 3px 0 0 #34d399;
}

.mb-lineup-row.is-lineup-partial {
  box-shadow: inset 3px 0 0 #fbbf24;
}

/* Pickleball starting-lineup cards — do not reuse .lu-sheet (dark editor) */
.pk-desk {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pk-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.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: 0.75rem;
}

.pk-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.pk-week-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.pk-week-head p {
  margin: 0.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: 0.85rem;
}

.pk-night {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.pk-night.is-lineup-complete { box-shadow: inset 4px 0 0 #10b981; }
.pk-night.is-lineup-partial { 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.is-score-done { box-shadow: inset 4px 0 0 #10b981; }
.pk-night.is-score-blocked { box-shadow: inset 4px 0 0 #f59e0b; }
.pk-night.is-openable { cursor: pointer; }

.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, 0.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, 0.22);
}

.pk-night.is-lineup-empty:hover {
  box-shadow:
    inset 4px 0 0 #cbd5e1,
    0 10px 28px -16px rgba(15, 23, 42, 0.22);
}

.pk-night.is-score-ready:hover {
  box-shadow:
    inset 4px 0 0 #38bdf8,
    0 10px 28px -16px rgba(15, 23, 42, 0.22);
}

.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: 0.5rem 0.75rem;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.pk-night-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.pk-week {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.pk-night-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pk-count {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.pk-edit {
  border: 0;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.pk-edit:hover { background: #000; }

.pk-edit.is-ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.pk-edit.is-ghost:hover { background: #f8fafc; }

.pk-night-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

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

.pk-roster {
  display: flex;
  flex-direction: column;
  gap: 0.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: 0.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: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pk-team {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.pk-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.pk-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.85rem;
}

.pk-roster.is-away .pk-slot {
  justify-content: flex-end;
}

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

.pk-slot.is-set .pk-letter {
  color: #047857;
  background: #ecfdf5;
}

.pk-player {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-roster.is-away .pk-player {
  text-align: right;
}

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

.pk-dupr {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

.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;
}

.mb-expand-player-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mb-game-player {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mb-game-away .mb-game-player {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.pk-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 760px) {
  .pk-night-grid {
    grid-template-columns: 1fr;
  }
  .pk-vs {
    width: auto;
    padding: 0.15rem 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,
  .pk-roster.is-away .pk-player {
    text-align: left;
  }
  .pk-roster.is-away .pk-slot {
    justify-content: flex-start;
  }
}

/* ── Score Requests list ── */
.sreq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  background: #f8fafc;
}

.sreq-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-left: 3px solid #cbd5e1;
  transition:
    border-color 180ms ease,
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sreq-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.sreq-card.is-pending { border-left-color: #f59e0b; }
.sreq-card.is-done { border-left-color: #10b981; }
.sreq-card.is-rejected { border-left-color: #ef4444; }
.sreq-card.is-cancelled { border-left-color: #94a3b8; }

.sreq-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sreq-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}

.sreq-week {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sreq-matchup {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  min-width: 0;
}

.sreq-matchup .sreq-vs {
  display: inline-block;
  margin: 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: lowercase;
}

.sreq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.sreq-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sreq-meta i {
  font-size: 0.65rem;
  color: #94a3b8;
}

.sreq-extras {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.sreq-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.sreq-attach:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.sreq-attach .sreq-attach-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.sreq-hardcopy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}

.sreq-note {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
}

.sreq-review {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
}

.sreq-review.is-rejected {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.sreq-review.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.sreq-card-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.sreq-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

.sreq-status.is-pending { background: #fef3c7; color: #92400e; }
.sreq-status.is-done { background: #d1fae5; color: #065f46; }
.sreq-status.is-rejected { background: #fee2e2; color: #991b1b; }
.sreq-status.is-cancelled { background: #f1f5f9; color: #64748b; }

.sreq-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sreq-actions .sreq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sreq-actions .sreq-btn:hover {
  transform: translateY(-1px);
}

.sreq-actions .sreq-btn.is-primary {
  background: var(--color-primary, #00A86B);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 168, 107, 0.25);
}

.sreq-actions .sreq-btn.is-primary:hover {
  background: #059669;
}

.sreq-actions .sreq-btn.is-danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.sreq-actions .sreq-btn.is-danger:hover {
  background: #fef2f2;
}

@media (max-width: 640px) {
  .sreq-card {
    grid-template-columns: 1fr;
  }
  .sreq-card-side {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sreq-actions {
    flex-direction: row;
    flex: 1;
  }
  .sreq-actions .sreq-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sreq-card,
  .sreq-actions .sreq-btn {
    transition: none !important;
  }
  .sreq-card:hover,
  .sreq-actions .sreq-btn:hover {
    transform: none;
  }
}

