.app-main {
  padding-top: 10px;
}

.top-nav.module-nav-strip {
  padding-top: 10px;
  padding-bottom: 2px;
}

.nav-image-button {
  border-radius: 10px;
}

.top-nav .publisher-link {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
}

.activity-page-header {
  max-width: 920px;
  margin-bottom: 10px;
}

.activity-page-header picture {
  width: clamp(46px, 6vw, 64px);
  margin-bottom: 4px;
}

.activity-tier-badge {
  width: clamp(46px, 6vw, 64px);
}

.activity-page-kicker {
  margin-bottom: 3px;
  font-size: 11px;
}

.activity-page-header h1 {
  margin-bottom: 4px;
  font-size: clamp(24px, 3vw, 32px);
}

.activity-page-header p {
  max-width: 520px;
  margin-bottom: 6px;
  font-size: 14px;
}

.vocab-workflow {
  max-width: 1040px;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .7fr);
  gap: 12px;
  margin-bottom: 14px;
}

.setup-panel,
.quiz-panel {
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.setup-panel h2,
.quiz-panel h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.setup-panel p,
.quiz-panel p {
  margin-bottom: 8px;
  font-size: 14px;
}

.choice-section {
  margin: 10px 0;
}

.choice-label {
  margin-bottom: 6px;
  font-size: 13px;
}

.choice-grid,
.mode-card-grid {
  gap: 6px;
}

.choice-button,
.mode-card {
  min-height: 38px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
}

.choice-button.is-active,
.mode-card.is-active {
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .18);
}

.setup-actions {
  margin-top: 10px;
}

.setup-primary {
  min-height: 40px;
  padding: 9px 14px !important;
  border-radius: 8px !important;
}

.setup-actions .setup-primary {
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .16) !important;
}

.setup-actions .setup-primary:hover,
.setup-actions .setup-primary:focus-visible {
  background: #1e293b !important;
}

#itemsBTN {
  border-radius: 8px !important;
  background: #334155 !important;
  color: #fff !important;
}

.quiz-panel {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.quiz-selection-summary {
  margin: 10px 0 12px !important;
  padding: 9px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 800;
}

.quiz-panel #quizOpen {
  width: 100% !important;
  min-height: 42px;
  border-radius: 8px !important;
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .18) !important;
}

.quiz-panel #quizOpen:hover,
.quiz-panel #quizOpen:focus-visible {
  background: #1e293b !important;
}

@media (max-width: 760px) {
  .vocab-workflow {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-card-grid {
    grid-template-columns: 1fr;
  }

  .activity-page-header picture,
  .activity-tier-badge {
    width: 48px;
  }
}

@media (max-width: 460px) {
  .choice-grid,
  .unit-choice-grid {
    grid-template-columns: 1fr;
  }
}
