.lms-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.lms-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.lms-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0.5rem 0 0.5rem;
}

.lms-gate {
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.lms-gate label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lms-gate input,
.lms-gate select {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.lms-gate .btn {
  width: 100%;
  justify-content: center;
}

.lms-gate-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.lms-progress-wrap {
  margin-bottom: 1.5rem;
}

.lms-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.lms-progress-track {
  height: 0.55rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lms-progress-bar {
  height: 100%;
  background: var(--brand);
  width: 0;
  transition: width 0.3s;
}

.lms-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lms-tier-tab {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lms-tier-tab.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hover);
}

.lms-unit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lms-unit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.lms-unit.is-done {
  border-color: rgba(13, 92, 82, 0.35);
  background: rgba(13, 92, 82, 0.04);
}

.lms-unit-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 0.35rem;
}

.lms-unit-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.lms-unit-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-hover);
}

.lms-unit-extra {
  font-size: 0.78rem;
  margin-left: 0.65rem;
  color: var(--ink-muted);
}

.lms-certificate {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-soft) 0%, #fff 100%);
}

.lms-certificate h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.lms-reset {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

@media print {
  .site-header,
  .lms-gate,
  .lms-unit-check input,
  .lms-unit-link,
  .lms-unit-extra,
  .lms-reset,
  .lms-graduate-ladder,
  .no-print {
    display: none !important;
  }
  .lms-certificate {
    border: none;
    box-shadow: none;
  }
}
