.local-intro {
  margin: 0 auto 24px;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* Header row lines up with the rest of TNQ: centered ~51px from the top (44px on phones) */
.teacher-page .teacher-header {
  margin-top: 4px;
}

.teacher-page .teacher-header .brand-mark img {
  width: 40px;
  height: 40px;
}

.teacher-page .theme-toggle svg {
  width: 22px;
  height: 22px;
}

.teacher-page .step-panel {
  min-width: 0;
  min-height: 0;
  padding: 26px;
  gap: 14px;
}

.teacher-page .teacher-shell { max-width: 1000px; padding-bottom: 32px; }
.teacher-page .slide-indicator { list-style: none; padding: 0; margin: 0 0 16px; gap: 20px; }
.teacher-page .slide-dot { display: flex; align-items: center; gap: 8px; width: auto; height: auto; border-radius: 0; background: none; transform: none; font-size: .8rem; color: var(--color-text-secondary); }
.teacher-page .slide-dot > span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--color-border); border-radius: 50%; font-weight: 700; }
.teacher-page .slide-dot.active { color: var(--color-text-primary); font-weight: 700; }
.teacher-page .slide-dot.active > span { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.teacher-page .slide-dot.complete > span { color: var(--color-text-primary); background: var(--color-primary-light); }
.teacher-page .step-panel h2 { margin: 0; font-size: 1.25rem; }
.teacher-page .step-panel .muted { margin: 0; line-height: 1.5; font-size: .88rem; }
.teacher-page .step-footer { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--color-border); align-items: center; }
.field-label { font-size: .83rem; font-weight: 700; }
.deck-preview { padding: 16px; background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 12px; }
.preview-label { display: block; color: var(--color-text-secondary); font-size: .73rem; margin-bottom: 10px; }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.preview-pair span { color: var(--color-text-secondary); }
.setup-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.setup-links a { padding-block: 4px; color: var(--color-text-secondary); font-size: .83rem; text-decoration: underline; text-underline-offset: 3px; }
.setup-links a:hover { color: var(--color-primary); }
.setup-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.setup-options.without-teams { grid-template-columns: minmax(0, 1fr); }
.teacher-page #team-mode { align-self: flex-start; }
.teacher-page .team-row { grid-template-columns: minmax(0, 1fr) auto; }
.teacher-page .team-points-pill { border: 0; background: none; padding: 0 4px; font-size: .8rem; color: var(--color-text-secondary); }
.teacher-page .stack-card .toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.teacher-page .segmented button:disabled { opacity: .5; cursor: default; }
.teacher-page .mode-card { gap: 12px; padding: 22px; }
.teacher-page .mode-card h3 { font-size: 1.15rem; }
.teacher-page .mode-card p { flex: 1; font-size: .9rem; line-height: 1.6; }
.teacher-page .mode-card button { margin-top: 6px; }
.launch-summary { margin: 0; color: var(--color-text-secondary); font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.teacher-page :is(button, a):focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.teacher-page .step-track {
  align-items: flex-start;
}

.teacher-page .step-panel[aria-hidden="true"] {
  height: 0;
  min-height: 0;
  padding-block: 0;
  overflow: hidden;
  visibility: hidden;
}

.teacher-page .step-panel h2:focus {
  outline: none;
}

@media (max-width: 767px) {
  .teacher-page .teacher-header {
    margin-top: 10px;
  }

  .teacher-page .teacher-header .brand-mark img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .teacher-page .step-panel { padding: 20px; }
  .setup-options { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .teacher-page .slide-indicator { gap: 12px; justify-content: space-between; }
  .teacher-page .slide-dot { font-size: .7rem; gap: 5px; }
  .teacher-page .slide-dot > span { width: 22px; height: 22px; }
  .preview-pair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .teacher-page .mode-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-page .step-footer > * {
    max-width: 100%;
  }

  .teacher-page .toggle-row {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-page .step-track {
    transition: none;
  }

  .teacher-page .mode-card.opening {
    animation: none;
  }
}
