.gt-lesson-card main {
  padding: 1rem;
}

.gt-lesson-card h2 {
  margin-top: 0;
}

.gt-lesson-card__heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.gt-lesson-card__heading-row h2 {
  margin: 0;
}

#theme-control {
  padding-bottom: 1rem;
}

.gt-lesson-select {
  display: block;
  width: 100%;
  color-scheme: dark;
  border: 1px solid var(--border-color, #4b5563);
  border-radius: 6px;
  background: var(--bg-primary, #111827);
  color: var(--text-primary, #f9fafb);
  padding: 0.4rem 0.6rem;
  min-height: 2.75rem; /* 44px touch target */
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.gt-lesson-select:disabled {
  opacity: 0.6;
  cursor: default;
}

/* color-scheme alone doesn't reliably darken the native popup list in every
   browser -- setting background/color directly on option/optgroup is the
   more robust fix (supported by Chromium/Firefox for the dropdown list). */
.gt-lesson-select option,
.gt-lesson-select optgroup {
  background: var(--bg-primary, #111827);
  color: var(--text-primary, #f9fafb);
}

/* Play does double duty (start the pending lesson, or replay the current
   one) -- kept visually primary/filled so it stands out among the plain
   outline pills (Stop/Loop/Mute/Dismiss) it shares the actions row with,
   the same treatment the old standalone header Play button had. */
.gt-lesson-modal__play {
  border: 1px solid var(--primary, #6366f1);
  background: var(--primary, #6366f1);
  color: #fff;
}

.gt-lesson-modal__play:disabled {
  opacity: 0.5;
  cursor: default;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
}

/* Stop only ever matters mid-play -- a quieter warning color (not the same
   red as a destructive action) so it doesn't compete with Play for
   attention, but still reads as distinct from the plain Loop/Mute/Dismiss
   pills. */
.gt-lesson-modal__stop:not(:disabled) {
  border-color: #f59e0b;
  color: #f59e0b;
}

.gt-lesson-modal__stop:not(:disabled):hover {
  background: #f59e0b;
  color: #111827;
}
