.medley-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.medley-hero {
  margin-bottom: 32px;
  padding: 38px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #191c38, #353066 65%, #68478d);
  color: #fff;
  text-align: center;
}

.medley-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 225, 155, 0.5);
  border-radius: 20px;
  color: #ffe19b;
  font-size: 0.8rem;
  line-height: 1.7;
}

.medley-note {
  margin: 20px 0 12px;
  color: #ffe19b;
  font-size: 4.5rem;
  line-height: 1;
}

.medley-hero h1 {
  margin: 0 0 16px;
  border: none;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.4;
}

.medley-lead {
  margin: 0 0 16px;
  line-height: 1.8;
}

.medley-credit {
  margin: 0;
  color: #ffe19b;
  font-weight: 700;
}

.medley-section {
  margin-bottom: 26px;
}

.medley-section h2,
.medley-card h3 {
  margin: 0 0 14px;
  border: none;
  color: #302a42;
  font-size: 1.25rem;
  line-height: 1.5;
}

.medley-section p,
.medley-card p {
  margin: 0 0 16px;
  color: #57515f;
  line-height: 1.9;
}

.medley-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.medley-card {
  padding: 26px;
  border: 1px solid #e6deed;
  border-radius: 16px;
  background: #fff;
}

.medley-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #ede5f8;
  color: #573784;
  font-size: 0.8rem;
  font-weight: 700;
}

.medley-status-progress {
  background: #fff1d5;
  color: #775100;
}

.medley-btn {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.medley-btn-primary {
  background: #563681;
  color: #fff;
}

.medley-btn-primary:hover {
  background: #3e245f;
  color: #fff;
}

.medley-btn:focus-visible {
  outline: 3px solid #936600;
  outline-offset: 4px;
}

.medley-back {
  margin-top: 32px;
  text-align: center;
}

.medley-btn-back {
  border-color: #563681;
  color: #563681;
}

.medley-btn-back:hover {
  background: #563681;
  color: #fff;
}

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

@media (max-width: 600px) {
  .medley-hero {
    padding: 28px 16px;
  }

  .medley-card {
    padding: 20px;
  }
}

.medley-version {
  margin: -6px 0 14px;
  color: #e3d6f3;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.medley-downloads {
  margin-top: 34px;
}

.medley-downloads .medley-card {
  display: flex;
  flex-direction: column;
}

.medley-downloads .medley-status {
  align-self: flex-start;
}

.medley-download-action {
  margin-top: auto;
}

.medley-card .medley-access {
  margin: 14px 0 0;
  font-size: 0.85rem;
  line-height: 2;
}

.medley-access code {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: #f2edf8;
  color: #3e245f;
  font-size: 0.95rem;
  user-select: all;
}

.medley-progress {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid #e6deed;
  border-radius: 16px;
  background: #f8f6fb;
}

.medley-progress-list {
  margin: 0;
}

.medley-progress-list > div + div {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e6deed;
}

.medley-progress-list dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #302a42;
  font-weight: 700;
}

.medley-progress-list .medley-status {
  margin: 0;
}

.medley-progress-list dd {
  margin: 10px 0 0;
  color: #57515f;
  line-height: 1.9;
}

@media (max-width: 600px) {
  .medley-progress {
    padding: 20px;
  }
}
