.playlab-missions {
  background: #f5f7fb;
  min-height: calc(100vh - 120px);
  padding: 24px 0 40px;
}

.plm-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #10172a 0%, #1d4ed8 62%, #38bdf8 100%);
  border-radius: 28px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 32px;
}

.plm-kicker {
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.plm-hero h1,
.plm-detail-aside h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin: 0 0 10px;
}

.plm-hero__desc,
.plm-detail-aside p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  margin: 0;
}

.plm-progress-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  min-width: 210px;
  padding: 20px;
}

.plm-progress-card__num {
  display: block;
  font-size: 32px;
  font-weight: 900;
}

.plm-progress-card__label {
  color: #dbeafe;
  display: block;
  margin-bottom: 14px;
}

.plm-progress-bar {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.plm-progress-bar span {
  background: #facc15;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.plm-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plm-card,
.plm-detail-aside,
.plm-section {
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.plm-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 22px;
}

.plm-card.is-completed {
  border-color: #86efac;
}

.plm-card__top,
.plm-card__meta,
.plm-code-card__head,
.plm-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.plm-level,
.plm-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.plm-level {
  background: #dbeafe;
  color: #1d4ed8;
}

.plm-status {
  background: #f1f5f9;
  color: #64748b;
}

.plm-status--done,
.plm-complete-badge {
  background: #dcfce7;
  color: #15803d;
}

.plm-card h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  margin: 18px 0 8px;
}

.plm-card p {
  color: #475569;
  line-height: 1.6;
}

.plm-card__meta {
  color: #64748b;
  font-size: 13px;
  margin: 8px 0 12px;
}

.plm-card__bullets {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-left: 18px;
}

.plm-btn {
  background: #2563eb;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  text-decoration: none;
}

.plm-btn:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.plm-btn:disabled {
  background: #94a3b8;
  cursor: default;
}

.plm-btn--ghost {
  background: #e0f2fe;
  color: #0369a1;
}

.plm-btn--ghost:hover {
  background: #bae6fd;
  color: #075985;
}

.plm-breadcrumb {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.plm-breadcrumb a {
  color: #2563eb;
  font-weight: 800;
}

.plm-detail-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.plm-detail-aside {
  background: #0f172a;
  color: #fff;
  padding: 24px;
  position: sticky;
  top: 16px;
}

.plm-detail-aside dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.plm-detail-aside dt {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

.plm-detail-aside dd {
  margin: 2px 0 0;
}

.plm-note,
.plm-complete-badge {
  border-radius: 14px;
  padding: 12px;
}

.plm-note {
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.plm-detail-main {
  display: grid;
  gap: 18px;
}

.plm-section {
  padding: 24px;
}

.plm-section h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 16px;
}

.plm-learn-list,
.plm-checklist,
.plm-options {
  display: grid;
  gap: 10px;
}

.plm-learn-list {
  margin: 0;
  padding-left: 20px;
}

.plm-step-list {
  display: grid;
  gap: 12px;
}

.plm-step {
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.plm-step span {
  align-items: center;
  background: #2563eb;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
}

.plm-step p,
.plm-practice {
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

.plm-practice {
  background: #eff6ff;
  border-left: 5px solid #2563eb;
  border-radius: 16px;
  padding: 16px;
}

.plm-code-card {
  border-radius: 18px;
  margin-top: 16px;
  overflow: hidden;
}

.plm-code-card__head {
  background: #111827;
  color: #e5e7eb;
  padding: 12px 16px;
}

.plm-code-card pre {
  background: #020617;
  color: #e2e8f0;
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

.plm-run-placeholder {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 16px;
  color: #475569;
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 16px;
}

.plm-quiz {
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 16px;
}

.plm-quiz__q {
  color: #0f172a;
  font-weight: 800;
}

.plm-options label,
.plm-checklist label {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.plm-fill-input {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}

.plm-quiz__feedback {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 0;
}

.plm-section--finish {
  border-color: #bfdbfe;
}

.plm-complete-message {
  color: #15803d;
  font-weight: 800;
  margin: 12px 0 0;
}

.plm-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plm-link-list a {
  background: #e0f2fe;
  border-radius: 999px;
  color: #0369a1;
  font-weight: 800;
  padding: 10px 14px;
}

.plm-lesson-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.plm-lesson-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
  text-decoration: none;
}

.plm-lesson-row:hover {
  background: #eff6ff;
  color: #0f172a;
  text-decoration: none;
}

.plm-lesson-row.is-completed {
  border-color: #86efac;
}

.plm-lesson-check {
  align-items: center;
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.plm-lesson-row.is-completed .plm-lesson-check {
  background: #dcfce7;
  color: #15803d;
}

.plm-lesson-main {
  display: grid;
  gap: 4px;
}

.plm-lesson-main small,
.plm-lesson-arrow {
  color: #64748b;
}

.plm-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plm-tag-list span,
.plm-subtitle {
  background: #eef2ff;
  border-radius: 999px;
  color: #3730a3;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.plm-subtitle {
  margin: 18px 0 10px;
}

@media (max-width: 1100px) {
  .plm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plm-detail-layout {
    grid-template-columns: 1fr;
  }

  .plm-detail-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .playlab-missions {
    padding-top: 12px;
  }

  .plm-hero,
  .plm-actions,
  .plm-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .plm-hero {
    border-radius: 20px;
    padding: 22px;
  }

  .plm-grid {
    grid-template-columns: 1fr;
  }

  .plm-section,
  .plm-card,
  .plm-detail-aside {
    border-radius: 18px;
    padding: 18px;
  }
}
