.athlete-dashboard h2 {
  margin-top: 0;
  font-size: 20px;
}

.athlete-dashboard h3,
.athlete-dashboard summary {
  font-size: 17px;
  font-weight: 700;
}

.athlete-dashboard summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.athlete-dashboard summary::-webkit-details-marker {
  display: none;
}

.athlete-dashboard summary::after {
  content: '⌄';
  flex: 0 0 auto;
  color: var(--muted);
}

.athlete-dashboard details[open] > summary::after {
  content: '⌃';
}

#athleteDashboardContent {
  display: grid;
  gap: 12px;
}

#athleteDashboardContent > .card {
  margin-bottom: 0;
}

#athleteDashboardContent > .card:first-child {
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(20,24,30,.98), rgba(10,12,16,.98));
}

#athleteDashboardContent > .card:nth-child(2) {
  border-color: rgba(85,217,144,.22);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

#athleteDashboardContent > .card:nth-child(3) {
  border-color: rgba(239,48,56,.22);
}

.athlete-dashboard .cycle-row {
  margin-top: 14px;
}

.athlete-dashboard .cycle-row-head {
  align-items: flex-start;
  gap: 12px;
}

.athlete-dashboard .cycle-row-head strong {
  overflow-wrap: anywhere;
  min-width: 0;
}

.athlete-dashboard .cycle-summary-grid {
  margin-block: 12px;
}

.athlete-dashboard .cycle-row > button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.athlete-dashboard p,
.self-history-entry {
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.self-badge {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.self-settled {
  color: var(--ok);
}

.self-warning {
  color: var(--danger);
}

.self-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.self-history-entry {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.self-history-entry:last-child {
  border-bottom: 0;
}

.self-history-entry small {
  color: var(--muted);
  text-align: start;
}

#selfPaymentCard {
  border-color: rgba(239,48,56,.30);
  background: linear-gradient(180deg, rgba(35,18,22,.92), rgba(15,17,21,.98));
}

#self-cycle-panel:not([hidden]) {
  border-color: rgba(85,217,144,.24);
  scroll-margin-top: 14px;
}

#athleteDashboardRefresh {
  min-height: 44px;
  margin-bottom: 12px;
}

@media (max-width: 430px) {
  .athlete-dashboard .card {
    padding: 15px;
    border-radius: 16px;
  }

  .athlete-dashboard h2 {
    font-size: 18px;
  }

  .athlete-dashboard h3,
  .athlete-dashboard summary {
    font-size: 15px;
  }

  .athlete-dashboard .cycle-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .athlete-dashboard .cycle-summary-grid > div {
    min-width: 0;
    padding-inline: 3px;
  }

  .athlete-dashboard .cycle-summary-grid span {
    font-size: 8px;
  }

  .athlete-dashboard .cycle-summary-grid strong {
    overflow-wrap: anywhere;
    font-size: 12px;
  }
}
