/* ==========================================================================
   PRO English BD — Speaking Mastery Lab Lesson Enhancements
   1. Full Dark Mode support (activated when <html class="dark"> is synced
      with the site's theme).
   2. Mobile-only (< 640px) spacing & button layout optimization so nested
      borders/paddings don't squeeze main lesson content and action buttons
      don't crowd sentences. Desktop (>= 640px) layout remains untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DARK MODE PALETTE & COMPONENT OVERRIDES
   -------------------------------------------------------------------------- */
html.dark {
  color-scheme: dark;
  --sl-bg: #0b1424;
  --sl-surface: #111d32;
  --sl-surface-2: #16253e;
  --sl-surface-3: #1d304e;
  --sl-border: #283c5a;
  --sl-border-soft: #1f314c;
  --sl-ink: #eaf1fb;
  --sl-ink-2: #c5d4e9;
  --sl-muted: #93a7c4;
  --sl-violet-bg: #221d42;
  --sl-violet-bg-hover: #2d2657;
  --sl-violet-border: #4c3d8f;
  --sl-violet-ink: #d4c4ff;
  --sl-violet-accent: #a78bfa;
  --sl-emerald-bg: #102a24;
  --sl-emerald-border: #225e4d;
  --sl-emerald-ink: #6ee7b7;
  --sl-amber-bg: #2e2212;
  --sl-amber-border: #694b1c;
  --sl-amber-ink: #fcd34d;
  --sl-rose-bg: #311724;
  --sl-rose-border: #6f2b47;
  --sl-rose-ink: #fda4af;
  --sl-sky-bg: #11263b;
  --sl-sky-border: #234e75;
  --sl-sky-ink: #7dd3fc;
}

html.dark,
html.dark body {
  background-color: var(--sl-bg) !important;
  color: var(--sl-ink) !important;
}

/* Custom subtle dark scrollbar inside lesson iframe */
html.dark ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html.dark ::-webkit-scrollbar-track {
  background: #0b1424;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #2b405f;
  border-radius: 9999px;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: #3d5880;
}

/* Top header & standalone sidebar drawer (when opened outside iframe) */
html.dark header,
html.dark #sidebar-drawer {
  background-color: var(--sl-surface) !important;
  border-color: var(--sl-border) !important;
  color: var(--sl-ink) !important;
}

/* Tailwind utility surface overrides in dark mode */
html.dark [class~="bg-white"] {
  background-color: var(--sl-surface) !important;
}
html.dark [class~="bg-slate-50"] {
  background-color: var(--sl-surface-2) !important;
}
html.dark [class~="bg-slate-100"] {
  background-color: var(--sl-surface-3) !important;
}
html.dark [class~="bg-slate-200"] {
  background-color: #243754 !important;
}
html.dark [class~="bg-violet-50"],
html.dark [class~="bg-violet-50/40"],
html.dark [class~="bg-violet-50/60"],
html.dark [class~="bg-violet-50/70"],
html.dark [class~="bg-indigo-50/40"] {
  background-color: var(--sl-violet-bg) !important;
}
html.dark [class~="bg-violet-100"],
html.dark [class~="bg-indigo-100"] {
  background-color: #2c2459 !important;
}
html.dark [class~="bg-emerald-50"],
html.dark [class~="bg-emerald-50/15"],
html.dark [class~="bg-emerald-50/20"],
html.dark [class~="bg-emerald-50/40"],
html.dark [class~="bg-emerald-50/50"] {
  background-color: var(--sl-emerald-bg) !important;
}
html.dark [class~="bg-emerald-100"] {
  background-color: #14382f !important;
}
html.dark [class~="bg-amber-50"],
html.dark [class~="bg-amber-50/40"] {
  background-color: var(--sl-amber-bg) !important;
}
html.dark [class~="bg-amber-100"] {
  background-color: #3a2a14 !important;
}
html.dark [class~="bg-rose-50"],
html.dark [class~="bg-rose-50/40"],
html.dark [class~="bg-rose-50/50"],
html.dark [class~="bg-red-50"] {
  background-color: var(--sl-rose-bg) !important;
}
html.dark [class~="bg-rose-100"],
html.dark [class~="bg-red-100"] {
  background-color: #3f1c2b !important;
}
html.dark [class~="bg-sky-50/40"],
html.dark [class~="bg-sky-100"] {
  background-color: var(--sl-sky-bg) !important;
}

/* Tailwind border overrides in dark mode */
html.dark [class~="border-slate-100"] {
  border-color: var(--sl-border-soft) !important;
}
html.dark [class~="border-slate-200"],
html.dark [class~="border-slate-200/80"],
html.dark [class~="border-slate-200/60"],
html.dark [class~="border-slate-200/50"] {
  border-color: var(--sl-border) !important;
}
html.dark [class~="border-violet-200"],
html.dark [class~="border-violet-200/70"],
html.dark [class~="border-violet-200/60"],
html.dark [class~="border-violet-200/50"],
html.dark [class~="border-violet-300"],
html.dark [class~="border-indigo-200"] {
  border-color: var(--sl-violet-border) !important;
}
html.dark [class~="border-emerald-100"],
html.dark [class~="border-emerald-200"],
html.dark [class~="border-emerald-200/60"] {
  border-color: var(--sl-emerald-border) !important;
}
html.dark [class~="border-amber-200"],
html.dark [class~="border-amber-200/50"] {
  border-color: var(--sl-amber-border) !important;
}
html.dark [class~="border-rose-200"],
html.dark [class~="border-rose-200/70"] {
  border-color: var(--sl-rose-border) !important;
}
html.dark [class~="border-sky-200"] {
  border-color: var(--sl-sky-border) !important;
}

/* Tailwind text color overrides in dark mode */
html.dark [class~="text-slate-950"],
html.dark [class~="text-slate-900"],
html.dark [class~="text-slate-850"],
html.dark [class~="text-slate-800"] {
  color: var(--sl-ink) !important;
}
html.dark [class~="text-slate-700"],
html.dark [class~="text-slate-600"] {
  color: var(--sl-ink-2) !important;
}
html.dark [class~="text-slate-500"],
html.dark [class~="text-slate-400"] {
  color: var(--sl-muted) !important;
}
html.dark [class~="text-violet-800"],
html.dark [class~="text-violet-700"],
html.dark [class~="text-violet-600"],
html.dark [class~="text-violet-500"],
html.dark [class~="text-violet-400"] {
  color: var(--sl-violet-ink) !important;
}
html.dark [class~="text-indigo-700"],
html.dark [class~="text-indigo-600"],
html.dark [class~="text-indigo-500"],
html.dark [class~="text-indigo-400"] {
  color: #a5b4fc !important;
}
html.dark [class~="text-emerald-700"],
html.dark [class~="text-emerald-600"],
html.dark [class~="text-emerald-500"] {
  color: var(--sl-emerald-ink) !important;
}
html.dark [class~="text-amber-800"],
html.dark [class~="text-amber-700"],
html.dark [class~="text-amber-600"],
html.dark [class~="text-amber-500"] {
  color: var(--sl-amber-ink) !important;
}
html.dark [class~="text-rose-700"],
html.dark [class~="text-rose-600"],
html.dark [class~="text-rose-500"],
html.dark [class~="text-red-600"] {
  color: var(--sl-rose-ink) !important;
}
html.dark [class~="text-sky-700"],
html.dark [class~="text-sky-600"] {
  color: var(--sl-sky-ink) !important;
}

/* Preserve contrast-dark hero banner & CTA button text/badges */
html.dark .contrast-dark {
  background-color: #3730a3 !important;
  color: #ffffff !important;
}
html.dark .contrast-dark.bg-gradient-to-r {
  background-image: linear-gradient(120deg, #4338ca 0%, #3730a3 55%, #312e81 100%) !important;
}
html.dark .contrast-dark p,
html.dark .contrast-dark h1,
html.dark .contrast-dark h2,
html.dark .contrast-dark h3,
html.dark .contrast-dark span,
html.dark .contrast-dark button,
html.dark .contrast-dark summary,
html.dark .contrast-dark .bn-help {
  color: #ffffff !important;
}
html.dark .contrast-dark .contrast-badge {
  background-color: #fef3c7 !important;
  color: #1e293b !important;
}

/* Override hardcoded inline styles found in lesson HTML bodies (e.g. sec_0 Structure boxes & inputs) */
html.dark [style*="background-color:#f5f3ff"],
html.dark [style*="background-color: #f5f3ff"] {
  background-color: var(--sl-violet-bg) !important;
  color: var(--sl-ink) !important;
  border-color: var(--sl-violet-border) !important;
}
html.dark [style*="background-color:#ffffff"],
html.dark [style*="background-color: #ffffff"],
html.dark [style*="background-color:#fff"],
html.dark [style*="background:#fff"] {
  background-color: var(--sl-surface-2) !important;
  color: var(--sl-ink) !important;
  border-color: var(--sl-border) !important;
}
html.dark [style*="color:#1e293b"],
html.dark [style*="color: #1e293b"] {
  color: var(--sl-ink) !important;
}
html.dark [style*="color:#334155"],
html.dark [style*="color: #334155"] {
  color: var(--sl-ink-2) !important;
}
html.dark [style*="color:#5b21b6"],
html.dark [style*="color: #5b21b6"] {
  color: var(--sl-violet-ink) !important;
}

/* Stage navigation buttons */
html.dark .stage-nav-btn {
  background-image: none !important;
  background-color: var(--sl-surface-2) !important;
  color: var(--sl-ink-2) !important;
  border-color: var(--sl-border) !important;
}
html.dark .stage-nav-btn:hover {
  background-color: var(--sl-surface-3) !important;
  border-color: var(--sl-violet-border) !important;
}
html.dark .stage-nav-btn p,
html.dark .stage-nav-btn span {
  color: var(--sl-ink-2) !important;
}
html.dark .stage-nav-btn [data-stage-tag] {
  background-color: var(--sl-surface-3) !important;
  color: var(--sl-muted) !important;
}
html.dark .stage-nav-btn[data-active="true"],
html.dark .stage-nav-btn.from-violet-600 {
  background-color: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}
html.dark .stage-nav-btn[data-active="true"] p,
html.dark .stage-nav-btn[data-active="true"] span,
html.dark .stage-nav-btn.from-violet-600 p,
html.dark .stage-nav-btn.from-violet-600 span {
  color: #ffffff !important;
}
html.dark .stage-nav-btn[data-active="true"] [data-stage-tag],
html.dark .stage-nav-btn.from-violet-600 [data-stage-tag] {
  background-color: #312e81 !important;
  color: #e0e7ff !important;
}

/* Quick expand/collapse tool buttons */
html.dark .quick-section-tools button {
  background-color: var(--sl-surface-2) !important;
  border-color: var(--sl-border) !important;
  color: var(--sl-ink-2) !important;
}
html.dark .quick-section-tools button:hover {
  background-color: var(--sl-surface-3) !important;
  color: #ffffff !important;
}

/* Progress bar */
html.dark progress#lesson-progress {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1e304d;
  border-radius: 9999px;
  overflow: hidden;
  accent-color: #8b5cf6;
}
html.dark progress#lesson-progress::-webkit-progress-bar {
  background-color: #1e304d;
  border-radius: 9999px;
}
html.dark progress#lesson-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border-radius: 9999px;
}
html.dark progress#lesson-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border-radius: 9999px;
}

/* Section cards & accordions */
html.dark .section-card {
  background-color: var(--sl-surface) !important;
  border-color: var(--sl-border) !important;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.25) !important;
}
html.dark .section-card > div[role="button"]:hover h2 {
  color: var(--sl-violet-ink) !important;
}

/* Semantic lesson typography & containers */
html.dark .lesson-en {
  color: #f1f5ff !important;
}
html.dark .lesson-bn {
  color: var(--sl-ink-2) !important;
}
html.dark .lesson-label {
  color: var(--sl-muted) !important;
}
html.dark .lesson-subheading {
  color: var(--sl-violet-ink) !important;
}
html.dark .lesson-drill-title {
  color: #a5b4fc !important;
}
html.dark .lesson-paragraph,
html.dark .lesson-list {
  color: var(--sl-ink-2) !important;
}
html.dark .lesson-pair {
  background-color: var(--sl-surface-2) !important;
  border-color: var(--sl-border) !important;
}
html.dark .lesson-prompt,
html.dark .practice-card,
html.dark .ladder-node,
html.dark .connector-card,
html.dark .drill-turn {
  background-color: #132138 !important;
  border-color: var(--sl-border) !important;
}
html.dark .connector-card > .lesson-pair {
  background-color: var(--sl-surface-2) !important;
}
html.dark .drill-turn > .lesson-pair {
  background-color: transparent !important;
}
html.dark .lesson-form {
  background-color: #182342 !important;
  border-color: #364178 !important;
}
html.dark .lesson-form:nth-child(2) {
  background-color: #2a1826 !important;
  border-color: #5f2d45 !important;
}
html.dark .lesson-form:nth-child(3) {
  background-color: #13243b !important;
  border-color: #274a75 !important;
}
html.dark .lesson-form:nth-child(5) {
  background-color: #112a25 !important;
  border-color: #235d4e !important;
}
html.dark .lesson-form > .lesson-pair {
  background-color: transparent !important;
  border-top-color: var(--sl-border) !important;
}

/* Collapsible panels & answers */
html.dark .answer-panel,
html.dark .foundation-panel {
  background-color: #18203c !important;
  border-color: var(--sl-violet-border) !important;
}
html.dark .answer-panel > summary,
html.dark .foundation-panel > summary {
  color: var(--sl-violet-ink) !important;
}
html.dark .answer-panel > summary span {
  color: var(--sl-muted) !important;
}
html.dark .ladder-answer {
  background-color: #1a2140 !important;
  border-left-color: #8b5cf6 !important;
}
html.dark .hide-ladder-answers .ladder-node::after,
html.dark .hide-role-answers .role-you::after {
  color: var(--sl-violet-ink) !important;
}

/* Exercises, clues, cues, role-play */
html.dark .exercise-number {
  background-color: var(--sl-violet-bg) !important;
  color: var(--sl-violet-ink) !important;
  border: 1px solid var(--sl-violet-border);
}
html.dark .exercise-clue {
  background-color: var(--sl-surface-2) !important;
  border-color: var(--sl-border) !important;
}
html.dark .lesson-cue-list li {
  background-color: var(--sl-surface-2) !important;
  border-color: var(--sl-border) !important;
  color: var(--sl-ink-2) !important;
}
html.dark .role-line {
  border-color: var(--sl-border) !important;
}
html.dark .role-you {
  background-color: var(--sl-violet-bg) !important;
  border-color: var(--sl-violet-border) !important;
}
html.dark .role-friend {
  background-color: var(--sl-surface-2) !important;
}

/* Tables */
html.dark .lesson-table-scroll {
  background-color: var(--sl-surface) !important;
  border-color: var(--sl-violet-border) !important;
}
html.dark .lesson-table {
  color: var(--sl-ink-2) !important;
}
html.dark .lesson-table th {
  background-color: var(--sl-violet-bg) !important;
  color: var(--sl-violet-ink) !important;
}
html.dark .lesson-table th,
html.dark .lesson-table td {
  border-bottom-color: var(--sl-border) !important;
}

/* Interactive buttons: audio, tabs, reveal toggles, step buttons */
html.dark .lesson-audio {
  background-color: var(--sl-violet-bg) !important;
  border-color: var(--sl-violet-border) !important;
  color: var(--sl-violet-ink) !important;
}
html.dark .lesson-audio:hover {
  background-color: var(--sl-violet-bg-hover) !important;
  color: #ffffff !important;
}
html.dark .lesson-tabs button,
html.dark .lesson-button,
html.dark .wb-tab,
html.dark .prac-tab-btn,
html.dark .ladder-step-btn {
  background-color: var(--sl-violet-bg) !important;
  border-color: var(--sl-violet-border) !important;
  color: var(--sl-violet-ink) !important;
}
html.dark .lesson-tabs button:hover,
html.dark .lesson-button:hover,
html.dark .wb-tab:hover,
html.dark .prac-tab-btn:hover,
html.dark .ladder-step-btn:hover {
  background-color: var(--sl-violet-bg-hover) !important;
  color: #ffffff !important;
}
html.dark .lesson-tabs button[aria-pressed="true"],
html.dark .lesson-tabs button[aria-current="step"],
html.dark .ladder-step-btn[aria-current="step"],
html.dark .lesson-button[aria-pressed="true"],
html.dark button[class~="bg-violet-600"],
html.dark .wb-tab[class~="bg-violet-600"],
html.dark .prac-tab-btn[class~="bg-violet-600"],
html.dark .ladder-step-btn[class~="bg-violet-600"] {
  background-color: #6d28d9 !important;
  border-color: #8b5cf6 !important;
  color: #ffffff !important;
}
html.dark body .sentence-toggle,
html.dark body .sentence-actions .sentence-toggle,
html.dark body .sentence-actions .block-answer-toggle {
  background-color: rgba(124, 58, 237, 0.14) !important;
  border-color: var(--sl-violet-border) !important;
  color: var(--sl-violet-ink) !important;
}
html.dark body .sentence-toggle:hover,
html.dark body .sentence-actions .sentence-toggle:hover,
html.dark body .sentence-actions .block-answer-toggle:hover {
  background-color: rgba(124, 58, 237, 0.28) !important;
  color: #ffffff !important;
}

/* Audio settings, selects, inputs, floating speech toolbar */
html.dark #lesson-audio-settings select,
html.dark input:not([type="checkbox"]):not([type="radio"]),
html.dark textarea,
html.dark select {
  background-color: var(--sl-surface-2) !important;
  border-color: var(--sl-border) !important;
  color: var(--sl-ink) !important;
}
html.dark #lesson-audio-settings select option,
html.dark select option {
  background-color: #111d32;
  color: #eaf1fb;
}
html.dark #lesson-speech-toolbar {
  background-color: #14223a !important;
  border-color: var(--sl-violet-border) !important;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.65) !important;
}

/* Section completion checkbox label */
html.dark label:has(> .practice-complete) {
  background-color: var(--sl-emerald-bg) !important;
  border-color: var(--sl-emerald-border) !important;
  color: var(--sl-emerald-ink) !important;
}
html.dark .practice-complete {
  accent-color: #10b981;
}

/* Voice recorder & modal */
html.dark #recording-player-box {
  background-color: var(--sl-surface) !important;
  border-color: var(--sl-border) !important;
}
html.dark #recording-download {
  color: var(--sl-violet-ink) !important;
}
html.dark #mic-pause-btn[aria-pressed="true"] {
  background-color: #6d28d9 !important;
  border-color: #8b5cf6 !important;
  color: #ffffff !important;
}
html.dark #celebration-modal > div {
  background-color: var(--sl-surface) !important;
  border: 1px solid var(--sl-border);
}

/* Storyboards / SVG visuals */
html.dark .lesson-storyboard,
html.dark .visual-figure img {
  border-color: var(--sl-border) !important;
  background-color: var(--sl-surface-2) !important;
  filter: brightness(0.92) contrast(1.02);
}
html.dark .visual-figure figcaption {
  color: var(--sl-muted) !important;
}

/* --------------------------------------------------------------------------
   2. MOBILE-ONLY LAYOUT & BUTTON ORGANIZATION (< 640px)
      Desktop (>= 640px) is 100% untouched.
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  /* Reclaim horizontal margin/padding on main container */
  html body main {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-top: 8px !important;
    padding-bottom: 14px !important;
  }
  html.embedded-workspace body main {
    padding-top: 8px !important;
  }

  /* Compact Hero, Stage nav, Progress card, Voice recorder */
  html body main > .contrast-dark {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  html body .compact-lesson-title {
    font-size: 20px !important;
    margin: 6px 0 !important;
  }
  html body main > div.bg-white,
  html body main > section:not(.section-card) {
    padding: 10px 9px !important;
    border-radius: 12px !important;
  }
  html body #lesson-audio-settings {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  html body #stage-badge-current {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Flatten redundant nested borders/padding on mobile so content gets full width */
  html body main .section-card,
  html body #sections-container > .section-card {
    padding: 12px 9px !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
  }
  html body .practice-card,
  html body .connector-card,
  html body .ladder-node {
    padding: 10px 0 4px !important;
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  html.dark body .practice-card,
  html.dark body .connector-card,
  html.dark body .ladder-node {
    border-top-color: var(--sl-border) !important;
    background: transparent !important;
  }
  html body .lesson-prompt {
    padding: 10px 9px !important;
    border-radius: 11px !important;
  }
  html body .drill-turn {
    padding: 8px 8px !important;
    border-radius: 10px !important;
  }
  html body .foundation-panel,
  html body .answer-panel {
    padding: 8px 9px !important;
    border-radius: 10px !important;
  }
  html body .lesson-form {
    padding: 9px 9px !important;
    border-radius: 11px !important;
  }
  html body .lesson-stack {
    gap: 8px !important;
  }
  html body .lesson-pair {
    padding: 10px 10px !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }
  html body .role-line {
    max-width: 100% !important;
    padding: 10px 10px !important;
    border-radius: 12px !important;
  }

  /* Reorganize the two action buttons (লুকান + Audio) on mobile:
     Give sentence text 100% full width, place compact action row below! */
  html body .has-sentence-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
  }
  html body .has-sentence-action > :not(.sentence-actions) {
    grid-column: auto !important;
    width: 100% !important;
  }
  html body .has-sentence-action > .sentence-actions {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }
  html.dark body .has-sentence-action > .sentence-actions {
    border-top-color: rgba(148, 163, 184, 0.16);
  }
  html body .sentence-actions .sentence-toggle,
  html body .sentence-actions .block-answer-toggle {
    width: auto !important;
    min-width: 62px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html body .sentence-actions .lesson-audio {
    width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
  }

  /* Keep single audio button sleek in regular .lesson-pair cards too */
  html body .lesson-pair:not(.has-sentence-action) > .lesson-audio {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }
  html body .lesson-form:has(> .lesson-audio) {
    grid-template-columns: minmax(0, 1fr) 36px !important;
    column-gap: 8px !important;
  }
  html body .lesson-form > .lesson-audio {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }

  /* Crisp, readable text flow on full-width cards */
  html body .sentence-piece {
    display: block !important;
    margin: 0 !important;
  }
  html body .lesson-en {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  html body .lesson-bn {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
  }

  /* Slightly more compact tabs & buttons on mobile */
  html body .lesson-tabs button,
  html body .lesson-button,
  html body .wb-tab,
  html body .prac-tab-btn {
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  html body .ladder-step-btn {
    min-width: 38px !important;
    min-height: 38px !important;
  }
}
