.sports-editor-mount {
  margin-bottom: 1.5rem;
}

.sports-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sports-editor-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #f4f4f5);
}

.sports-editor-lede {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted, #a1a1aa);
}

.sports-editor-add {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.45);
  background: rgba(255, 140, 0, 0.1);
  color: #ffb04d;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.sports-editor-add:hover {
  background: rgba(255, 140, 0, 0.18);
}

.sports-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.sport-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border-mid, rgba(255, 255, 255, 0.1));
  background: var(--bg-card, #1e1e1e);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.sport-card:hover {
  border-color: rgba(255, 140, 0, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sport-card--primary {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.12);
}

.sport-card--empty {
  align-items: center;
  justify-content: center;
  min-height: 140px;
  color: var(--text-muted, #a1a1aa);
  font-size: 0.9375rem;
}

.sport-card-plus {
  font-size: 1.75rem;
  color: #ff8c00;
  line-height: 1;
}

.sport-card-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8c00;
}

.sport-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary, #f4f4f5);
  line-height: 1.25;
}

.sport-card-meta,
.sport-card-phase {
  font-size: 0.8125rem;
  color: var(--text-secondary, #d4d4d8);
}

.sport-card-schedule {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted, #a1a1aa);
}

.sport-card-edit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff8c00;
}

.sport-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.sport-modal {
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(100, 100, 100, 0.45);
  background: #161618;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.sport-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem 0.5rem;
}

.sport-modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.sport-modal-close {
  border: none;
  background: transparent;
  color: var(--text-muted, #a1a1aa);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sport-modal-body {
  padding: 0.5rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sport-modal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary, #d4d4d8);
}

.sport-modal-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sport-modal-advanced {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(100, 100, 100, 0.28);
  padding-top: 0.65rem;
}

.sport-modal-advanced-summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ff9f40;
  list-style: none;
  margin-bottom: 0.65rem;
}

.sport-modal-advanced-summary::-webkit-details-marker {
  display: none;
}

.sport-modal-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
}

.sport-modal-warn {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 180, 80, 0.45);
  background: rgba(255, 140, 0, 0.1);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 220, 180, 0.95);
}

.sport-modal-warn[hidden] {
  display: none;
}

.sport-modal-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #d4d4d8);
  margin-top: 0.25rem;
}

.sport-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(100, 100, 100, 0.38);
}

.sport-modal-delete {
  border: none;
  background: transparent;
  color: #f87171;
  font-size: 0.8125rem;
  cursor: pointer;
}

.sport-modal-save {
  margin: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

.dash-countdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.dash-countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 100, 100, 0.42);
}

.dash-countdown-chip strong {
  color: #ffb04d;
  font-weight: 700;
}

.profile-sports-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.profile-sport-row {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 100, 100, 0.38);
}

.profile-sport-row-name {
  font-weight: 700;
  color: var(--text-primary, #f4f4f5);
}

.profile-sport-row-meta {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #a1a1aa);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .sport-modal-dates {
    grid-template-columns: 1fr;
  }

  .sports-editor-header {
    flex-direction: column;
  }
}

.buddy-field {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 100, 100, 0.55);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: var(--font, "DM Sans", system-ui, sans-serif);
  font-size: 0.95rem;
}

.buddy-field:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.15);
}

.buddy-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.buddy-day {
  cursor: pointer;
}

.buddy-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buddy-day span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(100, 100, 100, 0.5);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s, background 0.15s;
}

.buddy-day input:checked + span {
  border-color: rgba(255, 140, 0, 0.55);
  background: rgba(255, 140, 0, 0.2);
  color: #ffd4a8;
}

.customize-save-btn {
  font-family: var(--font, "DM Sans", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff8c00, #ff6a00);
  color: #111;
}

.customize-save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sport-modal-save {
  width: auto;
}

.split-day-modal-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #a1a1aa);
}

.split-exercise-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.split-exercise-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
}

.split-exercise-name {
  min-width: 0;
}

.split-exercise-prescription {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.split-exercise-sets,
.split-exercise-reps {
  width: 3rem;
  text-align: center;
}

.split-exercise-times {
  color: var(--text-muted, #a1a1aa);
  font-size: 0.85rem;
}

.split-exercise-remove {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.split-exercise-add {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 140, 0, 0.45);
  background: transparent;
  color: #ffb04d;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.split-day-card--rest {
  opacity: 0.88;
}

.split-library-mount {
  margin-bottom: 0.75rem;
}

.split-week-mount {
  margin-top: 0.25rem;
}

.split-library-header {
  margin-bottom: 0.85rem;
}

.split-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.split-library-action-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #f4f4f5);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.split-library-action-btn--danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.split-library-grid {
  margin-bottom: 0.25rem;
}

.split-library-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.65rem;
}

.split-library-card {
  position: relative;
  padding-top: 1.75rem;
}

.split-library-card--highlight {
  border-color: rgba(255, 140, 0, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 140, 0, 0.2),
    0 10px 28px rgba(255, 140, 0, 0.1);
}

.split-library-card--highlight:hover {
  border-color: rgba(255, 140, 0, 0.72);
}

.split-library-card-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8c00, #ff6a00);
  color: #111;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.split-library-mount--dash {
  width: 100%;
}

.split-library-mount--dash .split-library-grid {
  margin-bottom: 0.35rem;
}
