.dl-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--ds-glow-purple), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, var(--ds-glow-cyan), transparent),
    var(--ds-bg-deep);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-display);
}

.dl-root {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.dl-header h1 {
  margin: 12px 0 8px;
  font-size: var(--ds-type-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dl-sub {
  margin: 0;
  color: var(--ds-text-secondary);
  font-size: var(--ds-type-base);
  line-height: 1.6;
}

.dl-sub code {
  font-family: var(--ds-font-mono);
  font-size: 0.9em;
  color: var(--ds-live);
}

.dl-cards {
  display: grid;
  gap: 20px;
  margin: 36px 0 28px;
}

@media (min-width: 640px) {
  .dl-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.dl-card {
  padding: 24px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg-panel);
  box-shadow: var(--ds-shadow-panel);
  border: 1px solid var(--ds-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card[data-role="teacher"] {
  border-color: rgba(124, 58, 237, 0.35);
}

.dl-card[data-role="student"] {
  border-color: rgba(234, 88, 12, 0.35);
}

.dl-card h2 {
  margin: 0;
  font-size: var(--ds-type-lg);
}

.dl-card p {
  margin: 0;
  color: var(--ds-text-secondary);
  font-size: var(--ds-type-sm);
  line-height: 1.55;
  flex: 1;
}

.dl-meta {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-type-xs);
  color: var(--ds-text-muted);
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-type-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dl-btn:hover {
  transform: translateY(-1px);
}

.dl-btn-teacher {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.dl-btn-student {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.dl-notes {
  padding: 24px;
  margin-bottom: 32px;
}

.dl-notes h2 {
  margin: 0 0 12px;
  font-size: var(--ds-type-lg);
}

.dl-notes ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ds-text-secondary);
  font-size: var(--ds-type-sm);
  line-height: 1.7;
}

.dl-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: var(--ds-type-sm);
  color: var(--ds-text-muted);
}

.dl-footer a {
  color: var(--ds-live);
  text-decoration: none;
}

.dl-footer a:hover {
  text-decoration: underline;
}

.dl-loading,
.dl-error {
  color: var(--ds-text-secondary);
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
}

.dl-error {
  color: #F87171;
}
