/* css/components/course.css */
/* Course section: lessons, units, grammar, vocabulary, review exercises */

/* ══════════════════════════════════════════════════════════════════════════
   COURSE UNIT CONTENT VIEWER
   ══════════════════════════════════════════════════════════════════════════ */

/* Course block/tab switcher view */
.cu-course-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

/* Unit section layout in block view */
.cu-unit-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cu-unit-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  padding: 8px 4px 10px;
  border-bottom: 1.5px solid rgba(45, 46, 95, 0.08);
  margin-bottom: 10px;
}

.cu-unit-section-header .material-symbols-outlined {
  font-size: 1.05rem;
}

.cu-us-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
}

.cu-us-done {
  color: #10b981;
  display: flex;
  align-items: center;
}

.cu-us-done .material-symbols-outlined {
  font-size: 1rem;
}

/* Section navigation bar */
.cu-section-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 46, 95, 0.08);
}

.cu-section-nav > :first-child { justify-self: start; }
.cu-section-nav > :nth-child(2) { justify-self: center; }
.cu-section-nav > :last-child { justify-self: end; }

.cu-section-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.cu-section-nav-center .cu-ex-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.cu-section-nav-center .cu-ex-footer > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cu-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(45, 46, 95, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-medium, #64748b);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.cu-nav-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.cu-nav-btn .material-symbols-outlined {
  font-size: 1rem;
}

/* Section dots navigation bar */
.cu-dots-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(45, 46, 95, 0.06);
  margin-bottom: 16px;
}

.cu-dot-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  line-height: 1;
}

.cu-dot-nav:hover {
  transform: scale(1.12);
}

.cu-dot-theory {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}

.cu-dot-theory.cu-dot-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.cu-dot-exercise {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: #8b5cf6;
}

.cu-dot-exercise.cu-dot-active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.cu-dot-vocab {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.cu-dot-vocab.cu-dot-active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.cu-dot-nav.cu-dot-done-mark {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

/* Roadmap active item */
.course-roadmap-item.crm-active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
  font-weight: 700;
}

/* Grammar Form row */
.cu-gc-form-row {
  border: 1px solid rgba(45, 46, 95, 0.12);
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 6px;
}
.cu-gc-form-content {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cu-gc-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  background: rgba(59, 130, 246, 0.06);
  padding: 6px 14px;
  margin: -8px -14px 8px;
  border-bottom: 1px solid rgba(45, 46, 95, 0.1);
  line-height: 1.4;
}
.cu-gc-form-item {
  font-size: 0.87rem;
  color: var(--text-dark, #0f172a);
  font-style: italic;
  line-height: 1.5;
}
/* Formula line (e.g. "have/has + past participle") */
.cu-gc-form-formula {
  font-size: 0.87rem;
  color: var(--text-dark, #0f172a);
  font-style: italic;
  font-weight: 600;
  padding: 3px 0 5px;
}
/* Structured statement / negative / question rows */
.cu-gc-form-stmt-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 3px 0;
  border-top: 1px solid rgba(45, 46, 95, 0.05);
  gap: 6px;
}
.cu-gc-form-stmt-row:first-child {
  border-top: none;
}
.cu-gc-form-stmt-row.cu-gc-form-two-col {
  grid-template-columns: 72px 1fr 1fr;
}
.cu-gc-form-stmt-label {
  font-size: 0.76rem;
  font-style: italic;
  color: #64748b;
  line-height: 1.6;
  white-space: nowrap;
}
.cu-gc-form-stmt-cell {
  font-size: 0.86rem;
  color: var(--text-dark, #0f172a);
  font-style: italic;
  line-height: 1.55;
}
.cu-gc-form-stmt-note {
  font-size: 0.78rem;
  color: #64748b;
  padding-left: 78px;
  padding-bottom: 4px;
  font-style: italic;
  line-height: 1.5;
}

/* Watch out! box */
.cu-gc-watchout {
  background: rgba(234, 179, 8, 0.07);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-left: 3px solid #eab308;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 4px 0 2px;
}
.cu-gc-watchout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cu-gc-watchout-icon {
  font-size: 18px;
  color: #ca8a04;
}
.cu-gc-watchout-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cu-gc-watchout-desc {
  font-size: 0.87rem;
  color: var(--text-dark, #0f172a);
  line-height: 1.55;
  margin-bottom: 6px;
}
.cu-gc-watchout-list {
  margin: 4px 0 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cu-gc-watchout-list li {
  font-size: 0.86rem;
  color: var(--text-dark, #0f172a);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.cu-gc-watchout-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #ca8a04;
}
/* ✓ correct example line */
.cu-gc-watchout-list li.cu-gc-wo-correct::before { content: ''; }
.cu-gc-watchout-list li.cu-gc-wo-correct { padding-left: 0; color: var(--text-dark, #0f172a); }
.cu-gc-wo-correct .cu-gc-wo-mark {
  display: inline-block;
  color: #16a34a;
  font-weight: 700;
  margin-right: 5px;
  font-style: normal;
}
/* ✗ incorrect example line */
.cu-gc-watchout-list li.cu-gc-wo-incorrect::before { content: ''; }
.cu-gc-watchout-list li.cu-gc-wo-incorrect { padding-left: 0; color: #94a3b8; }
.cu-gc-wo-incorrect .cu-gc-wo-mark {
  display: inline-block;
  color: #dc2626;
  font-weight: 700;
  margin-right: 5px;
  font-style: normal;
}
.cu-gc-wo-incorrect s { color: #94a3b8; text-decoration-color: #dc2626; }
.cu-gc-wo-incorrect s strong { color: #94a3b8; font-weight: 600; }
/* Note line in Watch out */
.cu-gc-watchout-list li.cu-gc-wo-note { color: #64748b; font-style: italic; }

/* Two-column grid inside Watch out! (e.g. irregular plurals) */
.cu-gc-wo-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .cu-gc-wo-columns { grid-template-columns: 1fr; }
}

/* Useful notes info box */
.cu-gc-usefnote {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 4px 0 2px;
}
.cu-gc-usefnote-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cu-gc-usefnote-icon {
  font-size: 18px;
  color: #2563eb;
}
.cu-gc-usefnote-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cu-gc-usefnote-desc {
  font-size: 0.87rem;
  color: var(--text-dark, #0f172a);
  line-height: 1.55;
  margin-bottom: 6px;
}
.cu-gc-usefnote-list {
  margin: 4px 0 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cu-gc-usefnote-list li {
  font-size: 0.86rem;
  color: var(--text-dark, #0f172a);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.cu-gc-usefnote-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #2563eb;
}
.cu-gc-usefnote-list li.cu-theory-list-correct::before { content: ''; }
.cu-gc-usefnote-list li.cu-theory-list-correct { padding-left: 0; }
.cu-gc-usefnote-list li.cu-theory-list-incorrect::before { content: ''; }
.cu-gc-usefnote-list li.cu-theory-list-incorrect { padding-left: 0; }
.cu-gc-usefnote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* Two-column side-by-side theory block */
.cu-theory-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin: 8px 0;
}
.cu-theory-col {
  min-width: 0;
}
.cu-theory-col-desc {
  margin-top: 6px;
}
@media (max-width: 600px) {
  .cu-theory-two-cols { grid-template-columns: 1fr; }
}

/* Uses + Examples table */
.cu-uses-examples-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 10px;
  font-size: 0.87rem;
}

.cu-ue-head {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 6px 10px 8px;
  border-bottom: 2px solid rgba(45, 46, 95, 0.08);
}

.cu-ue-head:first-child {
  width: 38%;
  color: #3b82f6;
}

.cu-ue-head:last-child {
  color: #64748b;
}

.cu-ue-row {
  border-bottom: 1px solid rgba(45, 46, 95, 0.05);
}

.cu-ue-row:last-child {
  border-bottom: none;
}

.cu-ue-use {
  padding: 7px 10px 7px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
  vertical-align: top;
  line-height: 1.5;
  border-right: 1px solid rgba(45, 46, 95, 0.07);
  width: 38%;
}

.cu-ue-example {
  padding: 7px 10px 7px 12px;
  font-size: 0.85rem;
  color: var(--text-medium, #64748b);
  vertical-align: top;
  line-height: 1.55;
  font-style: italic;
}

.cu-ue-example strong {
  color: var(--text-dark, #0f172a);
  font-style: normal;
}

/* Subtitle-as-table: right column (items list, not italic) */
.cu-ue-items {
  padding: 7px 10px 7px 12px;
  font-size: 0.85rem;
  color: var(--text-dark, #0f172a);
  vertical-align: top;
  line-height: 1.55;
}

/* Type name heading within a type-table cell */
.cu-ue-type-name {
  display: block;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin-bottom: 4px;
}

/* Full-width cell spanning all columns (e.g. common uncountable nouns) */
.cu-ue-full-cell {
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--text-medium, #64748b);
  font-style: italic;
}

/* 3-column quantifier table */
.cu-ue-quantifier {
  padding: 7px 10px;
  font-size: 0.85rem;
  vertical-align: top;
  border-right: 1px solid rgba(45, 46, 95, 0.07);
  width: 20%;
}
.cu-3col-table .cu-ue-head:first-child { width: 20%; }
.cu-3col-table .cu-ue-use {
  width: 40%;
  border-right: 1px solid rgba(45, 46, 95, 0.07);
}

/* 3-column modal table (Use | Modal | Example) */
.cu-ue-modal {
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-dark, #0f172a);
  vertical-align: top;
  border-right: 1px solid rgba(45, 46, 95, 0.07);
}
.cu-modal-table .cu-ue-head:nth-child(2) { width: 20%; }
.cu-modal-table .cu-ue-use { border-right: 1px solid rgba(45, 46, 95, 0.07); }

/* Direct/Reported table: type-group header row */
.cu-dr-type-row {
  background: rgba(45, 46, 95, 0.04);
  border-bottom: none;
}
.cu-dr-type-cell {
  padding: 5px 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.cu-dr-table .cu-ue-use { width: 50%; }

/* Common words chips */
.cu-theory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.cu-theory-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  line-height: 1.5;
}

/* Stative verb categories */
.cu-theory-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 6px;
}

.cu-theory-cat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cu-theory-cat-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

/* US vs UK comparison block */
.cu-usuk-block {
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin: 4px 0 6px;
}

.cu-usuk-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(59, 130, 246, 0.08);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.cu-usuk-col-head {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2D2E5F;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cu-usuk-col-head:first-child {
  border-right: 1px solid rgba(59, 130, 246, 0.15);
}

.cu-usuk-flag {
  font-size: 1rem;
}

.cu-usuk-note {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-medium, #64748b);
  font-style: italic;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  background: rgba(255,255,255,0.6);
}

.cu-usuk-note-mid {
  margin-top: 6px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: none;
}

.cu-usuk-rows {
  display: flex;
  flex-direction: column;
}

.cu-usuk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(45, 46, 95, 0.06);
}

.cu-usuk-row:last-child {
  border-bottom: none;
}

.cu-usuk-row-full {
  grid-template-columns: 1fr;
}

.cu-usuk-cell {
  padding: 7px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dark, #0f172a);
}

.cu-usuk-us {
  border-right: 1px solid rgba(45, 46, 95, 0.06);
  background: rgba(239, 68, 68, 0.03);
}

.cu-usuk-uk {
  background: rgba(59, 130, 246, 0.03);
}

/* Restart buttons */
.cu-reset-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium, #64748b);
  background: rgba(45, 46, 95, 0.05);
  border: 1px solid rgba(45, 46, 95, 0.15);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.cu-reset-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.cu-reset-btn .material-symbols-outlined {
  font-size: 1rem;
}

.cu-reset-btn-sm {
  padding: 6px 10px;
  min-width: 36px;
  min-height: 36px;
  justify-content: center;
  font-size: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-medium, #64748b);
}

.cu-reset-btn-sm:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.cu-reset-btn-sm:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.cu-reset-btn-sm .material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Review section slots in block view */
.fe-map-review-block {
  flex-direction: column;
  align-items: flex-start;
}

.fe-map-review-block .fe-map-review-slots {
  width: 100%;
}

.fe-map-review-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

/* Progress test slots – 2-column grid */
.fe-map-pt-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}

.fe-map-pt-block .fe-map-pt-slots {
  width: 100%;
}

@media (max-width: 500px) {
  .fe-map-pt-slots {
    grid-template-columns: 1fr;
  }
}

.fe-review-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
  width: 100%;
}

.fe-review-slot:hover {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.35);
}

.fe-rs-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  flex-shrink: 0;
}

.fe-rs-name {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
  line-height: 1.3;
}

.fe-rs-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.fe-rs-score.fe-rs-score-pending {
  color: #94a3b8;
  background: rgba(45, 46, 95, 0.06);
}

.fe-rs-total-score {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
  margin-left: 4px;
}

.fe-rs-total-score.fe-rs-score-pending {
  color: #94a3b8;
  background: rgba(45, 46, 95, 0.06);
}

/* Roadmap collapsible groups */
.crm-block-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  padding: 4px 2px 8px;
  border-bottom: 1px solid rgba(45, 46, 95, 0.08);
  margin-bottom: 4px;
}

.crm-group {
  margin-bottom: 4px;
  min-width: 0;
  overflow: hidden;
}

.crm-group-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  width: 100%;
  font-family: inherit;
  text-align: left;
  border: 1.5px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.crm-current-hdr {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.crm-current-hdr:hover {
  background: rgba(59, 130, 246, 0.15);
}

.crm-other-hdr {
  background: rgba(45, 46, 95, 0.03);
  color: var(--text-dark, #0f172a);
}

.crm-other-hdr:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.crm-group-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.crm-group-icon .material-symbols-outlined {
  font-size: 0.95rem;
}

.crm-current-hdr .crm-group-icon .material-symbols-outlined { color: #3b82f6; }
.crm-other-hdr .crm-group-icon .material-symbols-outlined { color: #64748b; }

.crm-group-title {
  flex: 1;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: break-word;
}

.crm-group-arrow {
  font-size: 1rem !important;
  flex-shrink: 0;
  color: inherit;
}

.crm-group-items {
  padding: 4px 0 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


/* Block tabs bar */
.cu-block-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 8px;
}

.cu-block-tab {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(45, 46, 95, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-medium, #64748b);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cu-block-tab:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}
.cu-block-tab-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.cu-block-tab-active:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.cu-block-tab-locked {
  opacity: 0.48;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}
.cu-block-tab-locked .material-symbols-outlined {
  font-size: 0.85rem;
}

/* Unit cards grid */
.cu-unit-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cu-unit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 46, 95, 0.08);
  box-shadow: 0 2px 10px rgba(45, 46, 95, 0.05);
  transition: box-shadow 0.15s, transform 0.12s;
}

.cu-unit-card-available {
  cursor: pointer;
}
.cu-unit-card-available:hover {
  box-shadow: 0 6px 20px rgba(45, 46, 95, 0.11);
  transform: translateY(-1px);
}

.cu-unit-card-locked {
  opacity: 0.55;
}

.cu-unit-card-icon {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(45, 46, 95, 0.04);
  border-radius: 10px;
}
.cu-unit-card-icon .material-symbols-outlined {
  font-size: 1.4rem;
}
.cu-unit-card-locked .cu-unit-card-icon {
  color: #94a3b8;
}

.cu-unit-card-body {
  flex: 1;
  min-width: 0;
}
.cu-unit-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  color: #94a3b8;
}
.cu-unit-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
  line-height: 1.3;
}

.cu-unit-card-arrow {
  color: #94a3b8;
  flex-shrink: 0;
}
.cu-unit-card-arrow .material-symbols-outlined {
  font-size: 1.2rem;
}

.course-unit-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

/* Course unit page header (mobile-friendly) */
.subpage-header--course-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.subpage-header--course-unit .subpage-header-unit-core {
  flex: 1;
  min-width: 0;
}
.subpage-header--course-unit .subpage-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.3;
  font-size: 1rem;
  font-weight: 800;
}
.subpage-header--course-unit .subpage-subtitle {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
}

/* Course theory overview header (B1/B2/C1 live on hub tiles, not in this bar) */
.subpage-header--course-theory {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}
.subpage-header--course-theory .subpage-header-core {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.subpage-header--course-theory .subpage-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.25;
  font-size: 1.05rem;
  font-weight: 800;
}
.subpage-header--course-theory .subpage-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

/* Section card */
.cu-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 46, 95, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(45, 46, 95, 0.06);
}

.cu-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(45, 46, 95, 0.07);
}
.cu-section-title .material-symbols-outlined {
  font-size: 1.15rem;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cu-theory .cu-section-title .material-symbols-outlined { color: #3b82f6; }
.cu-exercise .cu-section-title .material-symbols-outlined { color: #8b5cf6; }
.cu-vocab .cu-section-title .material-symbols-outlined { color: #10b981; }
.cu-pv .cu-section-title .material-symbols-outlined { color: #f59e0b; }
.cu-collocations .cu-section-title .material-symbols-outlined { color: #6366f1; }
.cu-idioms .cu-section-title .material-symbols-outlined { color: #ec4899; }
.cu-wf .cu-section-title .material-symbols-outlined { color: #ef4444; }

/* Theory body */
.cu-theory-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cu-theory-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.cu-theory-desc {
  font-size: 0.9rem;
  color: var(--text-medium, #64748b);
  font-style: italic;
}
.cu-theory-list {
  margin: 4px 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cu-theory-list li {
  font-size: 0.88rem;
  color: var(--text-dark, #0f172a);
  line-height: 1.55;
}

/* ✓/✗ items inside regular theory lists */
.cu-theory-list li.cu-theory-list-correct,
.cu-theory-list li.cu-theory-list-incorrect {
  list-style: none;
  margin-left: -18px;
  padding-left: 22px;
  position: relative;
}
.cu-theory-list-mark {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-style: normal;
}
.cu-theory-list li.cu-theory-list-correct { color: var(--text-dark, #0f172a); }
.cu-theory-list-correct .cu-theory-list-mark { color: #16a34a; }
.cu-theory-list li.cu-theory-list-incorrect { color: #94a3b8; }
.cu-theory-list-incorrect .cu-theory-list-mark { color: #dc2626; }
.cu-theory-list-incorrect s { color: #94a3b8; text-decoration-color: #dc2626; }
.cu-theory-list-incorrect s strong { color: #94a3b8; font-weight: 600; }

/* Exercise sections */
.cu-ex-instructions {
  font-size: 0.88rem;
  color: var(--text-medium, #64748b);
  font-style: italic;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
}
.cu-ex-wordbank {
  font-size: 0.85rem;
  color: var(--text-medium, #64748b);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 6px 8px;
}
.cu-ex-wordbank strong {
  color: var(--text-dark, #0f172a);
  margin-right: 4px;
  white-space: nowrap;
}
.cu-ex-wordbank .material-symbols-outlined {
  font-size: 1rem;
  color: #3b82f6;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.2em;
}
.cu-wordbank-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px 4px;
  min-height: 1.65rem;
  box-sizing: border-box;
  line-height: 1.2;
  background: #fff;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 7px;
  font-weight: 600;
  color: #1e40af;
  font-size: 0.83rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, text-decoration 0.15s, opacity 0.15s;
  user-select: none;
  vertical-align: baseline;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .cu-wordbank-item:hover {
    background: rgba(59, 130, 246, 0.08);
  }
}
.cu-wordbank-item.cu-wordbank-used {
  text-decoration: line-through;
  opacity: 0.45;
  background: rgba(45, 46, 95, 0.06);
  color: #64748b;
  border-color: rgba(45, 46, 95, 0.15);
}

/* Hint words in parentheses (e.g. (EXPLAIN), (do), (1)) */
.cu-hint-word {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 5px;
  color: #6d28d9;
  font-size: 0.82em;
  font-weight: 600;
  font-style: normal;
  margin: 0 1px;
  vertical-align: baseline;
}

/* Dark pill for gap + hint combinations (e.g. "1 [____] you") — styled like reading-type3-input-word-row */
.cu-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 3px 8px 3px 8px;
  vertical-align: middle;
  margin: 2px 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cu-hint-pill:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.cu-hint-pill-num {
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 1px 6px;
  line-height: 1.5;
}
.cu-ex-num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  width: 1.4em;
  height: 1.4em;
  line-height: 1;
  vertical-align: middle;
  margin: 0 2px;
  flex-shrink: 0;
}
.cu-hint-pill-input {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--text-dark, #0f172a) !important;
  padding: 3px 8px !important;
  width: 80px;
  min-width: 65px;
  max-width: 100%;
  font-size: 0.9rem !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  resize: none;
  vertical-align: middle;
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
textarea.cu-hint-pill-input {
  overflow-wrap: normal;
  word-break: normal;
}
.cu-hint-pill-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: none !important;
  outline: none;
}
.cu-hint-pill-word {
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  padding: 1px 8px;
  line-height: 1.5;
}
.cu-wf-pill-word {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}
/* Middle text between two inputs in a grouped gap pill */
.cu-hint-pill-mid {
  color: var(--text-dark, #0f172a);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Key Word Transformation two-sentence layout */
.cu-ex-num-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  background: var(--primary, #3b82f6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px 0 8px 0;
  min-width: 26px;
  text-align: center;
  letter-spacing: 0.02em;
}
.cu-ex-kwtrans {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cu-ex-kwtrans-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 2;
}
.cu-ex-kwtrans-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}
.cu-ex-kwtrans-text {
  flex: 1;
  min-width: 0;
}

.cu-kwt-copy-btn {
  align-self: center;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Multiple-choice options (Exercise E) — hidden; interaction via gap-pill modal only */
.cu-mc-options {
  display: none;
}
.cu-mc-blank {
  display: inline-block;
  color: #94a3b8;
  letter-spacing: 2px;
  font-weight: 600;
  vertical-align: middle;
}
.cu-mc-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45, 46, 95, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 5px;
  flex-shrink: 0;
}
.cu-option-btn.cu-mc-option {
  min-width: 120px;
  flex-grow: 1;
  max-width: calc(50% - 4px);
  justify-content: flex-start;
}

/* Retry button */
.cu-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #7c3aed;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.28);
}
.cu-retry-btn:hover { background: #6d28d9; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38); }
.cu-retry-btn:active { transform: scale(0.97); }
.cu-retry-btn:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }

/* Pagination for long exercise item lists */
.cu-ex-page-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cu-ex-pdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(45, 46, 95, 0.15);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.cu-ex-pdot:hover {
  background: rgba(45, 46, 95, 0.3);
}
.cu-ex-pdot-active {
  background: var(--primary, #3b82f6);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.3);
}
/* Text-label variant used for crossword Across/Down tabs */
.cu-ex-pdot.cu-ex-pdot-label {
  width: auto;
  height: auto;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(45, 46, 95, 0.6);
  background: rgba(45, 46, 95, 0.06);
  border: 1.5px solid transparent;
  transform: none;
}
.cu-ex-pdot.cu-ex-pdot-label:hover {
  background: rgba(45, 46, 95, 0.12);
  color: rgba(45, 46, 95, 0.85);
}
.cu-ex-pdot.cu-ex-pdot-label.cu-ex-pdot-active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--primary, #3b82f6);
  transform: none;
}
.cu-ex-page {
  display: none;
}
.cu-ex-page.cu-ex-page-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cu-ex-page-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.22);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cu-ex-page-more:hover {
  background: rgba(59, 130, 246, 0.12);
}
.cu-ex-page-more .material-symbols-outlined {
  font-size: 1rem;
}
.cu-ex-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cu-ex-sub {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(45, 46, 95, 0.07);
}
.cu-ex-sub:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cu-ex-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin-bottom: 8px;
}
.cu-ex-item {
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 1px 4px rgba(45, 46, 95, 0.04);
  transition: border-color 0.2s;
  position: relative;
  padding-top: 22px;
}
.cu-ex-sentence {
  font-size: 0.92rem;
  color: var(--text-dark, #0f172a);
  line-height: 2;
  margin-bottom: 6px;
}
.cu-ex-context {
  font-size: 0.9rem;
  color: var(--text-muted, #475569);
  line-height: 1.55;
  margin-bottom: 6px;
}

/* Inline gap input box */
.cu-gap-input {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  max-width: 80vw;
  padding: 3px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.2;
  color: var(--text-dark, #0f172a);
  background: #f8fafc;
  border: 2px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, width 0.12s;
  margin: 0 3px;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.06);
}
.cu-gap-input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
/* Correct: green + bounce */
.cu-gap-input.cu-input-correct {
  border-color: #059669 !important;
  background: rgba(5, 150, 105, 0.07) !important;
  color: #064e3b !important;
  animation: feBounceIn 0.35s ease;
}
/* Incorrect: amber — constructive, non-punitive */
.cu-gap-input.cu-input-incorrect {
  border-color: #d97706 !important;
  background: rgba(217, 119, 6, 0.07) !important;
  color: #78350f !important;
  animation: feShake 0.4s ease;
}
/* Inline correct-answer reveal shown next to incorrect inputs after checking */
.cu-input-inline-reveal {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  animation: feBounceIn 0.3s ease;
}
.cu-input-inline-reveal::before {
  content: '✓ ';
  color: #7c3aed;
}
/* Show correct answer in input (toggle mode) */
.cu-gap-input.cu-input-show-correct {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.09) !important;
  color: #5b21b6 !important;
  animation: feBounceIn 0.3s ease;
  max-width: none;
}
/* Alt-solution cycle badge — shown next to inputs that have multiple valid answers */
.cu-alt-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 2px;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.6;
}
.cu-alt-badge::before {
  content: '↻ ';
}
.cu-alt-badge:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.5);
}
/* Readonly inputs in show-correct mode with multiple alternatives are clickable to cycle */
.cu-gap-input[readonly].cu-input-show-correct {
  cursor: pointer;
}
.cu-gap-standalone {
  width: 100%;
  max-width: 520px;
  display: block;
  margin-top: 8px;
}

/* Inline gaps: auto-resize textarea flows with sentence text (replaces one-line <input>) */
.cu-inline-gap-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  vertical-align: text-bottom;
  max-width: 100%;
  box-sizing: border-box;
}
.cu-inline-gap-wrap--block {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}
.cu-inline-gap-wrap--block textarea.cu-gap-inline-textarea.cu-gap-standalone {
  margin-top: 0;
}
textarea.cu-gap-input.cu-gap-inline-textarea {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  min-width: 5ch;
  max-width: 100%;
  min-height: 1.55em;
  padding: 3px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--text-dark, #0f172a);
  background: #f8fafc;
  border: 2px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  outline: none;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0 3px;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.06);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, width 0.12s;
}
textarea.cu-gap-input.cu-gap-inline-textarea:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.cu-inline-gap-wrap--block textarea.cu-gap-input.cu-gap-inline-textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
textarea.cu-gap-input.cu-bc-input.cu-gap-inline-textarea {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 2em;
  margin: 0;
}

/* Textarea variant for long free-write answers (e.g. error-correction rewrite exercises) */
textarea.cu-gap-input.cu-gap-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  resize: none;
  overflow: hidden;
  line-height: 1.55;
  padding: 6px 10px;
  margin: 6px 0 0;
  min-height: 2.8em;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Option buttons (circle the correct word) — WCAG: min 44px touch target */
.cu-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding: 5px 13px;
  min-height: 34px;
  margin: 3px 4px;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
  background: rgba(45, 46, 95, 0.04);
  border: 1.5px solid rgba(45, 46, 95, 0.16);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.cu-option-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.38);
  color: #1d4ed8;
  transform: translateY(-1px);
}
.cu-option-btn:active {
  transform: scale(0.96);
}
.cu-option-btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}
.cu-option-selected {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.cu-option-selected:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}
/* Correct option: green + bounce */
.cu-option-correct {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
  animation: feBounceIn 0.35s ease;
}
/* Incorrect option: amber — constructive, non-punitive */
.cu-option-incorrect {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
  animation: feShake 0.4s ease;
}
/* Correct answer reveal — the option the student should have chosen */
.cu-option-correct-reveal {
  background: rgba(37, 99, 235, 0.12) !important;
  border: 2px solid #2563eb !important;
  color: #1e3a8a !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22) !important;
  animation: feBounceIn 0.35s ease;
}

/* Footer row: answer reveal only (no button per item) */
.cu-ex-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
}

/* Section-level exercise footer with Corregir / Mostrar buttons */
.cu-ex-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 46, 95, 0.07);
  flex-wrap: wrap;
}

.cu-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.cu-check-btn:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38); }
.cu-check-btn:active { transform: scale(0.97); }
.cu-check-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.cu-check-btn:disabled { background: rgba(45, 46, 95, 0.18); color: rgba(45,46,95,0.4); cursor: default; box-shadow: none; transform: none; }

.cu-show-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.08);
  border: 1.5px solid rgba(37, 99, 235, 0.28);
  border-radius: 10px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.cu-show-all-btn:hover { background: rgba(37, 99, 235, 0.14); }
.cu-show-all-btn:active { transform: scale(0.97); }
.cu-show-all-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Score summary after checking */
.cu-ex-score-summary {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  animation: feSlideIn 0.35s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cu-ex-score-good {
  background: rgba(5, 150, 105, 0.09);
  color: #064e3b;
  border: 1.5px solid rgba(5, 150, 105, 0.22);
}
.cu-ex-score-review {
  background: rgba(217, 119, 6, 0.08);
  color: #78350f;
  border: 1.5px solid rgba(217, 119, 6, 0.22);
}

/* "Got it" button for theory sections */
.cu-entendido-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.cu-entendido-btn:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38); }
.cu-entendido-btn:active { transform: scale(0.97); }
.cu-entendido-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.cu-answer-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.cu-answer-btn:hover {
  background: rgba(59, 130, 246, 0.15);
}
.cu-answer {
  font-size: 0.88rem;
  font-weight: 700;
  color: #064e3b;
  margin-top: 8px;
  padding: 7px 12px;
  background: rgba(5, 150, 105, 0.08);
  border-radius: 8px;
  border: 1.5px solid rgba(5, 150, 105, 0.2);
  animation: feSlideIn 0.25s ease;
}

/* Per-item answer toggle button (shown after checking when answer is wrong) */
.cu-item-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.07);
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 6px;
  font-family: inherit;
}
.cu-item-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.13);
}
.cu-item-toggle-btn .material-symbols-outlined {
  font-size: 1rem;
  vertical-align: middle;
}
.cu-item-toggle-btn[data-mode="correct"] {
  color: #065f46;
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.28);
}
.cu-item-toggle-btn[data-mode="correct"]:hover {
  background: rgba(5, 150, 105, 0.14);
}

/* Vocabulary words */
.cu-vocab-group {
  margin-bottom: 16px;
}
.cu-vocab-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.cu-vocab-words {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.cu-vocab-word {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.12);
}
.cu-word {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
}
.cu-pos {
  font-size: 0.75rem;
  color: var(--text-medium, #64748b);
  font-style: italic;
}
.cu-variant {
  font-size: 0.72rem;
  color: var(--text-medium, #64748b);
}

/* Phrasal verbs / idioms list */
.cu-pv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cu-pv-item {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  align-items: flex-start;
}
.cu-idioms .cu-pv-item {
  background: rgba(236, 72, 153, 0.04);
  border-color: rgba(236, 72, 153, 0.12);
}
.cu-pv-verb {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  min-width: 160px;
  flex-shrink: 0;
}
.cu-pv-meaning {
  font-size: 0.85rem;
  color: var(--text-medium, #64748b);
  line-height: 1.5;
}

/* Collocations */
.cu-coll-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cu-coll-item {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  align-items: flex-start;
}
.cu-coll-word {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6366f1;
  min-width: 120px;
  flex-shrink: 0;
}
.cu-coll-patterns {
  font-size: 0.84rem;
  color: var(--text-medium, #64748b);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .cu-section { padding: 14px 14px; }
  .cu-vocab-words { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cu-pv-verb { min-width: 120px; }
  .cu-coll-word { min-width: 90px; }
}

/* ── Course Navigation Sidebar (left) ───────────────────────────────── */
.course-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.course-nav-header {
  display: flex;
  align-items: center;
  padding: 12px 14px 10px;
  border-bottom: 2px solid rgba(45, 46, 95, 0.08);
  margin-bottom: 6px;
}

.course-nav-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #2D2E5F;
  letter-spacing: 0.01em;
}

.course-nav-title .material-symbols-outlined {
  font-size: 1.2rem;
  color: #46B1E1;
}

.course-nav-empty {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-light, #94a3b8);
}

.course-nav-blocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
}

.course-nav-block {
  border-radius: 10px;
  overflow: hidden;
}

.course-nav-block-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background 0.15s;
}

.cnb-available {
  cursor: pointer;
  color: #2D2E5F;
  background: rgba(45, 46, 95, 0.04);
}

.cnb-available:hover {
  background: rgba(45, 46, 95, 0.09);
}

.cnb-has-active {
  background: rgba(70, 177, 225, 0.18);
  color: #0e6b94;
  border-left: 3px solid #46B1E1;
}

.cnb-locked {
  cursor: default;
  color: var(--text-light, #94a3b8);
  opacity: 0.7;
  gap: 6px;
}

.cnb-pack-locked {
  cursor: pointer;
  color: var(--text-medium);
  background: rgba(99,102,241,0.06);
  border: 1px dashed rgba(99,102,241,0.3);
  border-radius: 8px;
}
.cnb-pack-locked:hover { background: rgba(99,102,241,0.12); }

.cnb-lock-icon {
  display: flex;
  align-items: center;
}

.cnb-lock-icon .material-symbols-outlined,
.cnb-arrow {
  font-size: 1rem;
  flex-shrink: 0;
}

.cnb-label {
  flex: 1;
}

.course-nav-items {
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 4px 10px;
}

.course-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  transition: background 0.12s;
}

.cni-available {
  cursor: pointer;
  color: var(--text-dark, #0f172a);
}

.cni-available:hover {
  background: rgba(59, 130, 246, 0.07);
  color: #2563eb;
}

.cni-active {
  background: rgba(59, 130, 246, 0.13);
  color: #1d4ed8;
  font-weight: 700;
}

.cni-active:hover {
  background: rgba(59, 130, 246, 0.18);
}

.cni-locked {
  color: var(--text-light, #94a3b8);
  opacity: 0.65;
}

.cni-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cni-icon .material-symbols-outlined {
  font-size: 0.9rem;
}

.cni-text {
  flex: 1;
  line-height: 1.35;
}

/* ── Course Learning Roadmap Sidebar (right) ─────────────────────────── */
.course-roadmap-widget {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 46, 95, 0.09);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 16px rgba(45, 46, 95, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-roadmap-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5a7a9a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.course-roadmap-heading .material-symbols-outlined {
  font-size: 1rem;
  color: #46B1E1;
}

.course-roadmap-unit-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2D2E5F;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(45, 46, 95, 0.08);
  line-height: 1.4;
}

.course-roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: rgba(45, 46, 95, 0.03);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark, #0f172a);
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  width: 100%;
  font-family: inherit;
}

.course-roadmap-item:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.crm-theory {
  border-left: 3px solid #3b82f6;
}

.crm-exercise {
  border-left: 3px solid #8b5cf6;
}

.crm-vocab {
  border-left: 3px solid #10b981;
}

.crm-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.crm-icon .material-symbols-outlined {
  font-size: 0.95rem;
}

.crm-theory .crm-icon .material-symbols-outlined { color: #3b82f6; }
.crm-exercise .crm-icon .material-symbols-outlined { color: #8b5cf6; }
.crm-vocab .crm-icon .material-symbols-outlined { color: #10b981; }

.crm-text {
  flex: 1;
}

.cu-unit-section .fe-map-lesson {
  flex-wrap: nowrap;
}

.cu-unit-section .fe-map-lesson .fe-map-lesson-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
}

.cu-unit-section .fe-map-lesson .fe-map-points-row {
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.cu-unit-section .fe-map-lesson .fe-dot-section-marker {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

.course-nav-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(45, 46, 95, 0.15);
  background: rgba(45, 46, 95, 0.04);
  color: var(--text-medium, #64748b);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.course-nav-back-btn:hover {
  background: rgba(45, 46, 95, 0.1);
  color: #2D2E5F;
}

.course-nav-back-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

/* ── Course Overview (all blocks roadmap) ──────────────────────────────── */
.cu-overview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
}

.cu-overview-block-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 46, 95, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(45, 46, 95, 0.06);
}

.cu-overview-block-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.cu-overview-block-filter-scroll::-webkit-scrollbar {
  height: 4px;
}

.cu-overview-block-filter-scroll::-webkit-scrollbar-thumb {
  background: rgba(45, 46, 95, 0.2);
  border-radius: 4px;
}

.cu-overview-block-filter-fixed {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

@media (hover: hover) and (pointer: fine) {
  .cu-obf-btn:hover {
    border-color: rgba(59, 130, 246, 0.75);
    background: rgba(59, 130, 246, 0.1);
    color: #1e3a8a;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
  }

  .cu-obf-btn-active:hover {
    background: linear-gradient(90deg, #2563eb, #2ea6db);
    border-color: #2563eb;
    color: #fff;
  }
}

.cu-overview-block-filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(70, 177, 225, 0.14);
  color: #0ea5e9;
  flex-shrink: 0;
}

.cu-overview-block-filter-icon .material-symbols-outlined {
  font-size: 1.05rem;
}

.cu-obf-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid rgba(45, 46, 95, 0.2);
  background: #fff;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.cu-obf-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.cu-obf-btn-active {
  background: linear-gradient(90deg, #3b82f6, #46B1E1);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
}

.cu-obf-select-none.cu-obf-btn-active {
  background: #ef4444;
  border-color: #ef4444;
}

/* Overall progress bar */
.cu-overview-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 46, 95, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(45, 46, 95, 0.06);
}

.cu-overview-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cu-overview-progress-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2D2E5F;
}

.cu-overview-progress-label .material-symbols-outlined {
  font-size: 1rem;
  color: #46B1E1;
}

.cu-overview-progress-pct {
  font-size: 1.1rem;
  font-weight: 800;
  color: #3b82f6;
}

.cu-overview-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(45, 46, 95, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.cu-overview-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #46B1E1);
  border-radius: 8px;
  transition: width 0.4s ease;
  min-width: 0;
}

.cu-overview-progress-sub {
  font-size: 0.78rem;
  color: var(--text-medium, #64748b);
  margin-top: 6px;
}

/* Block cards grid */
.cu-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.cu-overview-filterable.cu-overview-card-hidden {
  display: none;
}

/* Block card */
.cu-block-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(45, 46, 95, 0.09);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(45, 46, 95, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.12s;
}

.cu-block-card-available:hover,
.cu-block-card-in-progress:hover {
  box-shadow: 0 8px 24px rgba(45, 46, 95, 0.12);
  transform: translateY(-2px);
}

.cu-block-card-locked {
  opacity: 0.75;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cu-block-card-locked::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.45);
  border-radius: inherit;
  pointer-events: none;
}
.cu-block-lock-badge {
  position: absolute; top: 10px; right: 10px;
  background: #6366f1; color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  display: flex; align-items: center; gap: 4px;
  z-index: 1;
}

.cu-block-card-done {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(240, 253, 247, 0.9);
}

.cu-block-card-in-progress {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.9);
}

/* Block card header */
.cu-block-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cu-block-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2D2E5F;
}

/* Status badges */
.cu-block-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cu-badge-available {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cu-badge-progress {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cu-badge-done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cu-badge-locked {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cu-block-badge .material-symbols-outlined {
  font-size: 0.85rem;
}

/* Unit rows within block card */
.cu-block-units {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cu-block-unit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  transition: background 0.12s;
}

.cu-block-unit-available {
  cursor: pointer;
  color: var(--text-dark, #0f172a);
  background: rgba(45, 46, 95, 0.03);
  border: 1px solid rgba(45, 46, 95, 0.06);
}

.cu-block-unit-available:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.18);
}

.cu-block-unit-locked {
  color: var(--text-light, #94a3b8);
  background: rgba(45, 46, 95, 0.02);
  border: 1px solid transparent;
}

.cu-bur-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cu-bur-icon .material-symbols-outlined {
  font-size: 0.95rem;
}

.cu-bur-text {
  flex: 1;
  line-height: 1.35;
  font-weight: 500;
}

.cu-bur-done {
  display: flex;
  align-items: center;
  color: #10b981;
  flex-shrink: 0;
}

.cu-bur-done .material-symbols-outlined {
  font-size: 1rem;
}

.cu-bur-arrow {
  display: flex;
  align-items: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.cu-bur-arrow .material-symbols-outlined {
  font-size: 1rem;
}

/* Review row */
.cu-block-review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 2px;
  transition: background 0.12s;
}

.cu-block-review-available {
  cursor: pointer;
  color: #92400e;
  background: rgba(245, 158, 11, 0.07);
  border: 1.5px solid rgba(245, 158, 11, 0.2);
}

.cu-block-review-available:hover {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.35);
}

.cu-block-review-locked {
  color: var(--text-light, #94a3b8);
  background: rgba(45, 46, 95, 0.02);
  border: 1px solid transparent;
}

.cu-brr-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cu-brr-icon .material-symbols-outlined {
  font-size: 0.95rem;
  color: #f59e0b;
}

.cu-block-review-locked .cu-brr-icon .material-symbols-outlined {
  color: #94a3b8;
}

.cu-brr-text {
  flex: 1;
  font-size: 0.8rem;
}

.cu-brr-done {
  display: flex;
  align-items: center;
  color: #10b981;
  flex-shrink: 0;
}

.cu-brr-done .material-symbols-outlined {
  font-size: 1rem;
}

.cu-brr-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f59e0b;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.cu-brr-badge-locked {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* Block-level progress bar */
.cu-block-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cu-block-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(45, 46, 95, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.cu-block-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #46B1E1);
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}

.cu-block-card-done .cu-block-progress-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.cu-block-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-medium, #64748b);
  white-space: nowrap;
  min-width: 28px;
  text-align: right;
}

/* Progress indicator in sidebar nav */
.cnb-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  margin-right: 2px;
}

.cni-check {
  display: flex;
  align-items: center;
  color: #10b981;
  flex-shrink: 0;
  margin-left: auto;
}

.cni-check .material-symbols-outlined {
  font-size: 0.9rem;
}

.cni-done {
  color: var(--text-medium, #64748b);
}

/* Unit card done state */
.cu-unit-card-done {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(240, 253, 247, 0.95);
}

.cu-unit-card-done-badge {
  display: flex;
  align-items: center;
  color: #10b981;
  flex-shrink: 0;
}

.cu-unit-card-done-badge .material-symbols-outlined {
  font-size: 1.3rem;
}

/* Review unit evaluation banner */
.cu-review-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.06));
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.cu-review-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  flex-shrink: 0;
}

.cu-review-banner-icon .material-symbols-outlined {
  font-size: 1.7rem;
  color: #d97706;
}

.cu-review-banner-body {
  flex: 1;
  min-width: 0;
}

.cu-review-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.cu-review-banner-title {
  font-size: 1rem;
  font-weight: 800;
  color: #2D2E5F;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cu-review-banner-covers {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #92400e;
  font-style: italic;
}

.cu-review-banner-covers .material-symbols-outlined {
  font-size: 0.9rem;
  color: #f59e0b;
}

.cu-review-banner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cu-review-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #d97706;
  line-height: 1;
}

.cu-review-stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .cu-blocks-grid { grid-template-columns: 1fr; }
  .cu-review-banner { flex-wrap: wrap; }
  .cu-review-banner-stat { width: 100%; flex-direction: row; gap: 8px; justify-content: center; }
  .cu-overview-block-filter-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }
  .cu-overview-block-filter-scroll {
    gap: 6px;
  }
  .cu-overview-block-filter-fixed {
    gap: 6px;
  }
  .cu-obf-btn {
    flex: 0 0 auto;
  }
}

/* ── Review total score bar ─────────────────────────────────────────── */
.cu-review-total-score {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  margin: 8px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
}

.cu-review-total-score .material-symbols-outlined {
  font-size: 1.1rem;
  color: #d97706;
}

.cu-review-total-label {
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cu-review-total-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #d97706;
}

.cu-review-total-max {
  font-size: 0.88rem;
  color: #78350f;
  font-weight: 600;
}

.cu-review-total-pct {
  font-size: 0.85rem;
  color: #92400e;
  font-weight: 700;
  margin-left: 4px;
}

.cu-block-card-header[onclick]:hover {
  opacity: 0.85;
}

/* ── Progress Test overview card ────────────────────────────────────── */
.cu-pt-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.05));
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.07);
  transition: box-shadow 0.15s, transform 0.12s;
}

.cu-pt-ov-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cu-pt-overview-card.cu-pt-card-available:hover {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.14);
  transform: translateY(-2px);
}

.cu-pt-overview-card.cu-pt-card-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
}

.cu-pt-overview-card.cu-pt-card-locked {
  opacity: 0.6;
}

.cu-pt-ov-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  flex-shrink: 0;
}

.cu-pt-ov-icon .material-symbols-outlined {
  font-size: 1.25rem;
  color: #7c3aed;
}

.cu-pt-card-done .cu-pt-ov-icon {
  background: rgba(16, 185, 129, 0.12);
}

.cu-pt-card-done .cu-pt-ov-icon .material-symbols-outlined {
  color: #10b981;
}

.cu-pt-ov-body {
  flex: 1;
  min-width: 0;
}

.cu-pt-ov-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}

.cu-pt-card-done .cu-pt-ov-label {
  color: #10b981;
}

.cu-pt-ov-title {
  font-size: 1rem;
  font-weight: 800;
  color: #2D2E5F;
  line-height: 1.3;
  margin-bottom: 6px;
}

.cu-pt-ov-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  padding: 3px 10px;
}

.cu-pt-ov-score .material-symbols-outlined {
  font-size: 0.95rem;
  color: #059669;
}

.cu-pt-ov-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c3aed;
}

.cu-pt-ov-cta .material-symbols-outlined {
  font-size: 0.95rem;
}

.cu-pt-ov-check {
  color: #10b981;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cu-pt-ov-check .material-symbols-outlined {
  font-size: 1.6rem;
}

.cu-pt-ov-lock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ── Progress Test block view card ──────────────────────────────────── */
.fe-map-pt-block {
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px;
  gap: 10px;
}

.fe-map-pt-block .fe-map-lesson-title {
  width: 100%;
  justify-content: space-between;
}

.cu-pt-block-desc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
}

.cu-pt-block-desc .material-symbols-outlined {
  font-size: 0.9rem;
  color: #94a3b8;
}

.cu-pt-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 10px;
  padding: 5px 12px;
  margin-top: 2px;
}

.cu-pt-block-cta .material-symbols-outlined {
  font-size: 1rem;
}

/* ── Progress Test banner (inside unit view) ─────────────────────────── */
.cu-pt-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(167, 139, 250, 0.05));
  border-color: rgba(124, 58, 237, 0.22);
}

.cu-pt-banner .cu-review-banner-icon {
  background: rgba(124, 58, 237, 0.12);
}

.cu-pt-banner .cu-review-banner-icon .material-symbols-outlined {
  color: #7c3aed;
}

.cu-pt-banner .cu-review-banner-label {
  color: #7c3aed;
}

.cu-pt-banner .cu-review-banner-stat {
  background: rgba(124, 58, 237, 0.09);
  border-color: rgba(124, 58, 237, 0.18);
}

.cu-pt-banner .cu-review-stat-num {
  color: #7c3aed;
}

.cu-pt-banner .cu-review-stat-lbl {
  color: #5b21b6;
}

/* ── Progress Test scoring info line ─────────────────────────────────── */
.cu-pt-scoring-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.07);
  border-radius: 8px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.cu-pt-scoring-info .material-symbols-outlined {
  font-size: 0.9rem;
  color: #7c3aed;
}

/* ── Word Formation section list ────────────────────────────────────── */
.cu-wf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.cu-wf-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cu-wf-base {
  font-weight: 800;
  font-size: 0.95rem;
  color: #4f46e5;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 4px;
}

.cu-wf-chips {
  flex: 1;
  margin: 0;
}

.cu-wf-chip {
  font-size: 0.78rem;
}

/* ── MC gap pill (shows selected option text) ───────────────────────── */
.cu-mc-gap-pill {
  display: inline-block;
  min-width: 60px;
  padding: 1px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px dashed #94a3b8;
  font-weight: 500;
  font-size: 0.9rem;
  color: #64748b;
  vertical-align: middle;
  margin: 0 2px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cu-mc-gap-pill-filled,
.cu-mc-gap-pill-correct,
.cu-mc-gap-pill-incorrect {
  border-style: solid;
  font-weight: 700;
}

.cu-mc-gap-pill-filled {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

.cu-mc-gap-pill-correct {
  background: #d1fae5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

.cu-mc-gap-pill-incorrect {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #92400e !important;
}

/* ── Yes/No exercise items ──────────────────────────────────────────── */
.cu-yn-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
}

.cu-yn-row {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.cu-yn-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.cu-yn-content .cu-ex-context {
  margin-bottom: 0;
}

.cu-yn-sentence {
  flex: 1;
  min-width: 0;
}

.cu-yn-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.cu-yn-btn {
  padding: 5px 18px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #64748b;
  font-family: 'Nunito', sans-serif;
}

.cu-yn-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.cu-yn-btn.cu-yn-selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.cu-yn-btn.cu-yn-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.cu-yn-btn.cu-yn-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

/* Correct answer reveal for YN — the button the student should have chosen */
.cu-yn-btn.cu-yn-correct-reveal {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
  animation: feBounceIn 0.35s ease;
}

/* ── Item tick buttons (Exercise H style: fill-in + tick) ────────────── */
.cu-item-tick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.cu-item-tick-row .cu-yn-buttons {
  margin-left: 0;
}

/* ── OK fill button (Exercise H showOkBtn style: sentence + OK button) ── */
.cu-ok-inline-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cu-ok-inline-sentence {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.cu-ok-inline-row .cu-ok-fill-btn {
  flex-shrink: 0;
  margin-left: auto;
}

.cu-ok-fill-btn {
  padding: 5px 18px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #64748b;
  font-family: 'Nunito', sans-serif;
}

.cu-ok-fill-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.cu-ok-fill-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── Word-tick exercise (e.g. Exercise P: tick valid -y adjectives) ─── */
.cu-word-tick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cu-word-tick-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #334155;
  font-family: 'Nunito', sans-serif;
}

.cu-word-tick-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.cu-word-tick-btn.cu-word-tick-selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.cu-word-tick-btn.cu-word-tick-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.cu-word-tick-btn.cu-word-tick-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.cu-word-tick-btn.cu-word-tick-reveal {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
  animation: feBounceIn 0.35s ease;
}

/* ── Word-Spot exercise (clickable passage words) ────────────────────── */
.cu-ws-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 12px;
}
.cu-ws-counter .material-symbols-outlined {
  font-size: 1.1rem;
  color: #6d28d9;
}

.cu-ws-passage {
  line-height: 1.85;
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 14px;
}

.cu-ws-word {
  display: inline;
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 3px;
  transition: background 0.15s, color 0.15s, text-decoration 0.15s;
  border-bottom: 2px solid transparent;
}
.cu-ws-word:hover {
  background: rgba(109, 40, 217, 0.08);
  border-bottom-color: rgba(109, 40, 217, 0.4);
}
.cu-ws-word.cu-ws-selected {
  background: rgba(109, 40, 217, 0.15);
  border-bottom-color: #6d28d9;
  color: #4c1d95;
  text-decoration: line-through;
}
.cu-ws-word.cu-ws-correct {
  background: rgba(34, 197, 94, 0.15);
  border-bottom-color: #22c55e;
  color: #15803d;
  cursor: default;
}
.cu-ws-word.cu-ws-incorrect {
  background: rgba(239, 68, 68, 0.12);
  border-bottom-color: #ef4444;
  color: #b91c1c;
  cursor: default;
}
.cu-ws-word.cu-ws-reveal {
  background: rgba(37, 99, 235, 0.12);
  border-bottom-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
  cursor: default;
  animation: feBounceIn 0.35s ease;
}

/* ── Comma-placement exercise (clickable comma slots) ─────────────────── */
.cu-comma-exercise {
  width: 100%;
}

.cu-comma-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.cu-comma-item:last-child {
  margin-bottom: 0;
}

.cu-comma-sentence {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  line-height: 1.9;
  font-size: 0.95rem;
  color: #334155;
}

.cu-comma-slot {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px dashed #cbd5e1;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1;
}

.cu-comma-slot:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.cu-comma-slot.cu-comma-selected {
  border-style: solid;
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.cu-comma-slot.cu-comma-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
  cursor: default;
}

.cu-comma-slot.cu-comma-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  cursor: default;
}

.cu-comma-slot.cu-comma-reveal,
.cu-comma-slot.cu-comma-show-correct {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
  cursor: default;
  animation: feBounceIn 0.35s ease;
}

.cu-comma-item.cu-comma-item-correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

.cu-comma-item.cu-comma-item-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

/* ── Find-the-extra-word exercise ───────────────────────────────────── */
.cu-few-exercise {
  width: 100%;
}

.cu-few-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.cu-few-item:last-child {
  margin-bottom: 0;
}

.cu-few-sentence-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cu-few-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 2;
  font-size: 0.95rem;
  color: #334155;
  flex: 1;
  min-width: 0;
}

.cu-few-sentence-plain {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

.cu-few-word {
  display: inline;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1.5px solid transparent;
  user-select: none;
}

.cu-few-word-static {
  display: inline;
  padding: 2px 3px;
}

.cu-few-word:hover {
  background: rgba(109, 40, 217, 0.08);
  border-color: rgba(109, 40, 217, 0.35);
}

.cu-few-word.cu-few-selected {
  background: rgba(109, 40, 217, 0.15);
  border-color: #7c3aed;
  color: #4c1d95;
  text-decoration: line-through;
}

.cu-few-word.cu-few-correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #15803d;
  cursor: default;
  text-decoration: line-through;
}

.cu-few-word.cu-few-incorrect {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #b91c1c;
  cursor: default;
  text-decoration: line-through;
}

.cu-few-word.cu-few-reveal {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
  cursor: default;
  text-decoration: line-through;
  animation: feBounceIn 0.35s ease;
}

.cu-few-word[data-few-disabled="1"] {
  cursor: default;
  pointer-events: none;
}

.cu-few-ok-btn {
  flex-shrink: 0;
  padding: 5px 16px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #64748b;
  font-family: 'Nunito', sans-serif;
}

.cu-few-ok-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.cu-few-ok-btn.cu-few-ok-selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.cu-few-ok-btn.cu-few-ok-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
  cursor: default;
}

.cu-few-ok-btn.cu-few-ok-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  cursor: default;
}

.cu-few-ok-btn.cu-few-ok-reveal {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
  animation: feBounceIn 0.35s ease;
  cursor: default;
}

.cu-few-passage-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #e2e8f0;
}

.cu-few-item.cu-few-ok-correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

.cu-few-item.cu-few-ok-reveal {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
}

/* ── Bold-Correct exercise ───────────────────────────────────────────── */
.cu-bc-exercise {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cu-bc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.cu-bc-item:last-child {
  margin-bottom: 0;
}

.cu-bc-row {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cu-bc-sentence {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
}

.cu-bc-sentence strong {
  font-weight: 700;
  color: #1e293b;
}

.cu-bc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cu-bc-input {
  flex: 1;
  min-width: 120px;
  max-width: 100%;
}

.cu-bc-ok-btn {
  flex-shrink: 0;
  padding: 5px 18px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #64748b;
  font-family: 'Nunito', sans-serif;
}

.cu-bc-ok-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.cu-bc-ok-btn.cu-bc-ok-selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.cu-bc-ok-btn.cu-bc-ok-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
  cursor: default;
}

.cu-bc-ok-btn.cu-bc-ok-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  cursor: default;
}

.cu-bc-ok-btn.cu-bc-ok-reveal {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  color: #1e40af;
  font-weight: 700;
  animation: feBounceIn 0.35s ease;
  cursor: default;
}

.cu-bc-item.cu-bc-item-correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

.cu-bc-item.cu-bc-item-incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

.cu-bc-reveal {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.10);
  border: 1.5px solid #2563eb;
  border-radius: 6px;
  padding: 3px 10px;
  animation: feBounceIn 0.35s ease;
}

/* textarea variant of bold-correct (Section I style) */
.cu-bc-controls-textarea {
  flex-direction: column;
  align-items: stretch;
}

.cu-bc-controls-textarea .cu-bc-input {
  max-width: 100%;
  width: 100%;
  resize: vertical;
}

.cu-bc-controls-textarea .cu-bc-ok-btn {
  align-self: flex-start;
}

/* ── Key Word Transformation (reading4 style) ───────────────────────── */
.cu-kwtrans-item {
  display: flex;
  flex-direction: column;
}

.cu-kwtrans-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cu-kwtrans-original {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.cu-kwtrans-keyword-row {
  display: flex;
  align-items: center;
}

.cu-kwtrans-keyword {
  display: inline-block;
  padding: 2px 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cu-kwtrans-second {
  font-size: 0.92rem;
  color: #334155;
  line-height: 2;
}

/* Inline word bank for KW transform: shown on small screens only (see mobile + display rule) */
.cu-kwtrans-wordbank-slot {
  display: none;
}

/* ── Sync (one-word-for-three) exercise ──────────────────────────────── */
.cu-sync-sentences {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cu-sync-sentence {
  padding: 4px 0;
  line-height: 2;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.cu-sync-sentence:last-child {
  border-bottom: none;
}

/* ── Passage exercise (word formation text with inline gaps) ─────────── */
.cu-passage-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 10px;
  text-align: center;
}

.cu-passage-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.93rem;
  line-height: 2.2;
  color: #1e293b;
  margin-bottom: 12px;
}

.cu-wf-gap-wrap {
  display: inline;
}

/* ── Inline multiple-choice exercise (exercise C/E style) ───────────── */
.cu-mc-inline-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.cu-mc-inline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 1px 4px rgba(45, 46, 95, 0.04);
  position: relative;
}

.cu-mc-inline-item .cu-ex-sentence {
  flex: 1;
  line-height: 2.2;
  margin-bottom: 0;
}

/* Sentence top-padding modifier (ex.sentencePaddingTop) */
.cu-mc-inline-sentence-pt .cu-mc-inline-item .cu-ex-sentence {
  padding-top: 10px;
}

/* Continuous email/passage block (ex.continuous) – no per-item badges */
.cu-mc-inline-continuous {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 1px 4px rgba(45, 46, 95, 0.04);
  padding: 14px 18px;
}
.cu-mc-inline-continuous .cu-ex-sentence {
  line-height: 2.2;
  margin-bottom: 0;
}

/* ── Multiple-choice passage gap pills (exercise D style) ───────────── */
.cu-mc-passage-gap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 2px;
}

.cu-mc-passage-gap-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 1px 6px;
  line-height: 1.5;
  flex-shrink: 0;
}

.cu-mc-passage-gap-slot {
  display: inline-block;
  min-width: 90px;
  padding: 2px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px dashed #94a3b8;
  font-weight: 500;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  vertical-align: middle;
  line-height: 1.4;
  height: 20px;
}

.cu-mc-passage-gap-slot.cu-mc-passage-gap-filled {
  background: #e0f2fe;
  border-color: #38bdf8;
  border-style: solid;
  color: #0369a1;
  font-weight: 700;
}

.cu-mc-passage-gap:hover .cu-mc-passage-gap-slot:not(.cu-mc-passage-gap-filled) {
  background: #e2e8f0;
  border-color: #64748b;
}

.cu-mc-passage-gap.cu-mc-passage-gap-answered .cu-mc-passage-gap-slot {
  background: #e0f2fe;
  border-color: #38bdf8;
  border-style: solid;
  color: #0369a1;
  font-weight: 700;
}

.cu-mc-passage-gap.cu-mc-passage-gap-correct .cu-mc-passage-gap-slot {
  background: #f0fdf4;
  border-color: #22c55e;
  border-style: solid;
  color: #15803d;
}

.cu-mc-passage-gap.cu-mc-passage-gap-incorrect .cu-mc-passage-gap-slot {
  background: #fff7ed;
  border-color: #f97316;
  border-style: solid;
  color: #c2410c;
}

/* Show-correct state: revealed correct answers (used by "Show answers" toggle and "Correct answers" view) */
.cu-mc-passage-gap.cu-mc-passage-gap-show-correct .cu-mc-passage-gap-slot {
  background: #f5f3ff;
  border-color: #a78bfa;
  border-style: solid;
  color: #6d28d9;
  font-weight: 700;
}

/* Split gap: two-slot pill for sentences with (N) ...... FIXED_TEXT ...... */
.cu-mc-passage-gap-split .cu-mc-passage-gap-slot {
  display: none;
}

.cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-slot-post {
  display: inline-block;
  min-width: 60px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px dashed #94a3b8;
  font-weight: 500;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  vertical-align: middle;
  line-height: 1.4;
  min-height: 20px;
}

.cu-mc-passage-gap-mid {
  font-size: 0.9rem;
  color: #475569;
  padding: 0 3px;
}

.cu-mc-passage-gap-split:hover .cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-split:hover .cu-mc-passage-gap-slot-post {
  background: #e2e8f0;
  border-color: #64748b;
}

.cu-mc-passage-gap-split.cu-mc-passage-gap-answered .cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-split.cu-mc-passage-gap-answered .cu-mc-passage-gap-slot-post {
  background: #e0f2fe;
  border-color: #38bdf8;
  border-style: solid;
  color: #0369a1;
  font-weight: 700;
}

.cu-mc-passage-gap-split.cu-mc-passage-gap-correct .cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-split.cu-mc-passage-gap-correct .cu-mc-passage-gap-slot-post {
  background: #f0fdf4;
  border-color: #22c55e;
  border-style: solid;
  color: #15803d;
}

.cu-mc-passage-gap-split.cu-mc-passage-gap-incorrect .cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-split.cu-mc-passage-gap-incorrect .cu-mc-passage-gap-slot-post {
  background: #fff7ed;
  border-color: #f97316;
  border-style: solid;
  color: #c2410c;
}

.cu-mc-passage-gap-split.cu-mc-passage-gap-show-correct .cu-mc-passage-gap-slot-pre,
.cu-mc-passage-gap-split.cu-mc-passage-gap-show-correct .cu-mc-passage-gap-slot-post {
  background: #f5f3ff;
  border-color: #a78bfa;
  border-style: solid;
  color: #6d28d9;
  font-weight: 700;
}

/* View-toggle buttons added after check (Your answers / Correct answers) */
.cu-mc-passage-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cu-mc-passage-view-btn .material-symbols-outlined {
  font-size: 1rem;
}

.cu-mc-passage-view-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #1e293b;
}

.cu-mc-passage-view-btn.cu-mc-passage-view-active {
  background: #0369a1;
  color: #fff;
  border-color: #0369a1;
}

/* ── Two-column matching exercise ────────────────────────────────────── */
.cu-match-exercise {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cu-match-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.cu-match-left-cell,
.cu-match-right-cell {
  width: 50%;
  padding: 0;
  vertical-align: top;
}

.cu-match-left-cell {
  padding-right: 6px;
}

.cu-match-right-cell {
  padding-left: 6px;
}

.cu-match-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
  height: 100%;
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s;
}

.cu-match-right-item {
  cursor: grab;
  user-select: none;
}

.cu-match-right-item:active {
  cursor: grabbing;
}

.cu-match-right-item.cu-match-dragging {
  opacity: 0.5;
  background: #dbeafe;
  border-color: #3b82f6;
}

.cu-match-right-item.cu-match-drag-over {
  background: #eff6ff;
  border-color: #60a5fa;
  border-style: dashed;
}

.cu-match-num,
.cu-match-letter {
  font-weight: 800;
  font-size: 0.82rem;
  min-width: 20px;
  flex-shrink: 0;
  color: #3b82f6;
}

.cu-match-letter {
  color: #7c3aed;
}

.cu-match-correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
}

.cu-match-show-correct {
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
}

.cu-match-incorrect {
  background: #fff7ed !important;
  border-color: #f97316 !important;
}

/* Toggle button for matching exercise correct-order view */
.cu-match-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.07);
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.cu-match-view-btn:hover {
  background: rgba(37, 99, 235, 0.13);
}
.cu-match-view-btn .material-symbols-outlined {
  font-size: 1rem;
  vertical-align: middle;
}
.cu-match-view-btn[data-mode="correct"] {
  color: #065f46;
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.28);
}
.cu-match-view-btn[data-mode="correct"]:hover {
  background: rgba(5, 150, 105, 0.14);
}

/* Keyword-row inside kwtrans-match left cell */
.cu-match-kwrow {
  margin: 0;
  flex: 1;
}
.cu-match-kwrow .cu-kwtrans-keyword {
  text-transform: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: normal;
  word-break: break-word;
}

/* ── Custom confirm dialog ───────────────────────────────────────────── */
.cu-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.cu-confirm-dialog {
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px 22px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Nunito', sans-serif;
}

.cu-confirm-message {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  text-align: center;
}

.cu-confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cu-confirm-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: 'Nunito', sans-serif;
}

.cu-confirm-cancel {
  background: #f1f5f9;
  color: #64748b;
}

.cu-confirm-cancel:hover {
  background: #e2e8f0;
}

.cu-confirm-ok {
  background: #3b82f6;
  color: #fff;
}

.cu-confirm-ok:hover {
  background: #2563eb;
}

/* ── COURSE HUB TILES (Theory + Phrasal Verbs + Idioms + Word Formation) ── */
.course-hub-tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.course-hub-theory {
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.course-hub-theory:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.course-hub-theory-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.course-hub-theory-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.course-hub-theory-desc {
  font-size: 0.83rem;
  opacity: 0.75;
  margin-top: 2px;
}

.course-hub-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.course-hub-tile {
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.course-hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.course-hub-tile-icon {
  font-size: 1.8rem;
}

.course-hub-tile-title {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Course hub grid: 2-col grid with Theory card spanning full width */
.course-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.course-hub-grid .fe-category-card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .course-hub-three {
    grid-template-columns: 1fr 1fr;
  }
  .course-hub-grid {
    grid-template-columns: 1fr;
  }
  .course-hub-grid .fe-category-card:first-child {
    grid-column: 1;
  }
}

/* ── Drag-category exercise (Exercise G/M style) ──────────────────────────── */
.cu-drag-category-exercise { display: flex; flex-direction: column; gap: 12px; }
.cu-drag-pool { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: var(--bg-2, #f5f5f5); border-radius: 8px; min-height: 44px; align-items: flex-start; align-content: flex-start; }
.cu-drag-chip { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--accent, #1976d2); color: #fff; border-radius: 20px; font-size: 0.88rem; font-weight: 500; cursor: grab; user-select: none; transition: opacity .15s, box-shadow .15s; align-self: flex-start; flex: 0 0 auto; }
.cu-drag-chip:active { cursor: grabbing; opacity: .8; }
.cu-drag-zones { display: flex; gap: 12px; flex-wrap: wrap; }
.cu-drag-zone { flex: 1 1 120px; border: 2px dashed var(--border, #ccc); border-radius: 8px; padding: 8px; min-height: 60px; transition: border-color .15s, background .15s; }
.cu-drag-zone-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #888); margin-bottom: 6px; }
.cu-drag-zone-items { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; align-items: flex-start; align-content: flex-start; }
.cu-drag-zone-over { border-color: var(--accent, #1976d2); background: var(--accent-light, #e3f0fb); }
.cu-drag-chip-correct { background: var(--correct, #2e7d32) !important; }
.cu-drag-chip-incorrect { background: var(--incorrect, #c62828) !important; }
.cu-drag-chip-unplaced { background: var(--text-muted, #888) !important; }

/* ── Grouped exercise (Exercise A/B style) ────────────────────────────────── */
.cu-grouped-exercise { display: flex; flex-direction: column; gap: 16px; }
.cu-group-section { display: flex; flex-direction: column; gap: 8px; }
.cu-group-wordbank { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; background: var(--bg-2, #f5f5f5); border-radius: 8px; font-size: .88rem; }
.cu-group-wordbank .material-symbols-outlined { font-size: 1.1rem; color: var(--text-muted, #888); flex-shrink: 0; }

/* ── Passage-input exercise (Exercise C style) ────────────────────────────── */
.cu-pi-gap-wrap { display: inline; }
.cu-pi-pill { display: inline-flex; align-items: center; gap: 2px; }
.cu-pi-input { min-width: 60px; max-width: 160px; }

/* ── Crossword exercise (clue-list style) ────────────────────────────────── */
.cu-cw-exercise { display: flex; flex-direction: column; gap: 16px; }
.cu-cw-section { display: flex; flex-direction: column; gap: 8px; }
.cu-cw-section-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent, #1976d2); padding-bottom: 4px; border-bottom: 2px solid var(--accent, #1976d2); }
.cu-cw-clue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cu-cw-clue-item { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; background: var(--bg-2, #f5f5f5); border-radius: 6px; }
.cu-cw-clue-item::marker { display: none; }
.cu-cw-clue-text { font-size: .9rem; color: var(--text, #222); }
.cu-cw-clue-num { font-weight: 700; color: var(--accent, #1976d2); margin-right: 2px; }
.cu-cw-input-row { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.cu-cw-box { display: inline-block; width: 26px; height: 26px; border: 1.5px solid var(--border, #ccc); border-radius: 3px; background: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: 0; line-height: 26px; cursor: text; outline: none; transition: border-color .15s, background .15s; }
.cu-cw-box:focus { border-color: var(--accent, #1976d2); box-shadow: 0 0 0 2px rgba(25,118,210,.18); }
.cu-cw-box:disabled { cursor: default; }
.cu-cw-letter-correct { background: #e8f5e9 !important; border-color: #43a047 !important; color: #2e7d32; }
.cu-cw-letter-incorrect { background: #fce4ec !important; border-color: #e53935 !important; color: #c62828; }
.cu-cw-box.cu-input-show-correct { background: #f5f3ff !important; border-color: #8b5cf6 !important; color: #5b21b6; }
.cu-cw-answer-reveal { font-size: .82rem; font-weight: 600; color: var(--accent, #1976d2); margin-top: 3px; letter-spacing: .04em; }
.cu-cw-input { display: none; }

.cu-correct-inline {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-size: 0.82em;
  font-weight: 500;
  border: 1px solid #a5d6a7;
  white-space: nowrap;
}

.cu-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 7px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  color: #3b82f6;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cu-copy-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #2563eb;
}
.cu-copy-btn:active {
  background: #bfdbfe;
}

@media (max-width: 768px), (max-height: 520px) and (orientation: landscape) and (max-width: 1024px) {
  .course-hub-grid {
    gap: 10px;
  }

  .course-hub-grid .fe-category-card {
    padding: 14px;
    border-radius: 16px;
  }

  .course-hub-grid .fe-category-card-header {
    gap: 10px;
  }

  .course-hub-grid .fe-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 1.55rem;
  }

  .cu-dot-nav,
  .cu-ex-pdot {
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
  }

  .cu-dot-nav {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .cu-ex-pdot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
  }

  .cu-section-nav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .cu-section-nav > :nth-child(2) {
    justify-self: stretch;
    min-width: 0;
  }

  .cu-nav-btn,
  .cu-reset-btn:not(.cu-reset-btn-sm),
  #courseCenterSection .subpage-back-btn {
    gap: 0;
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    font-size: 0;
  }

  .cu-nav-btn .material-symbols-outlined,
  .cu-reset-btn:not(.cu-reset-btn-sm) .material-symbols-outlined,
  .subpage-back-btn .material-symbols-outlined {
    font-size: 1.25rem;
  }

  .cu-reset-btn-sm,
  .cu-reset-btn-sm.cu-reset-btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .cu-reset-btn-sm:hover {
    background: rgba(239, 68, 68, 0.12) !important;
  }

  .cu-reset-btn-sm .material-symbols-outlined {
    font-size: 1.3rem;
  }

  .cu-reset-btn span,
  .subpage-back-btn span:not(.material-symbols-outlined) {
    display: none;
  }

  .cu-check-btn,
  .cu-show-all-btn,
  .cu-retry-btn {
    min-width: 44px;
    width: 44px;
    height: 44px;
    min-height: 44px !important;
    padding: 0;
    font-size: 0;
    border-radius: 14px;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .cu-check-btn .material-symbols-outlined,
  .cu-show-all-btn .material-symbols-outlined,
  .cu-retry-btn .material-symbols-outlined {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1;
  }

  /* Middle column stretches on phones; center icon + label in the bar */
  .cu-section-nav .cu-entendido-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .cu-ex-page-dots {
    gap: 7px;
    margin-bottom: 10px;
  }

  /* Unit header: one compact row on phones */
  .subpage-header--course-unit {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
  }
  .subpage-header--course-unit .subpage-subtitle {
    display: none;
  }
  .subpage-header--course-unit .subpage-title {
    font-size: 0.92rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .subpage-header--course-unit .subpage-title .material-symbols-outlined {
    font-size: 1.05rem;
  }

  .subpage-header--course-theory {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
    align-items: center;
  }
  .subpage-header--course-theory .subpage-subtitle {
    display: none;
  }
  .subpage-header--course-theory .subpage-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .cu-section {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .cu-section-title {
    font-size: 0.92rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 6px;
  }

  /* No numeric labels inside course exercise sections on phones (badges, gap nums, hint pills,
     embedded reading/listening gap markers, etc.). Scoped to .cu-exercise so hub/overview UI keeps block labels. */
  .cu-section.cu-exercise :is(
    .cu-ex-num-badge,
    .cu-ex-num-circle,
    .cu-hint-pill-num,
    .cu-mc-passage-gap-num,
    .cu-cw-clue-num,
    .cu-match-num,
    .cu-alt-badge:not(.cu-theory-alt-badge),
    .reading-type1-gap-number,
    .reading-type2-gap-number,
    .reading-type3-gap-number,
    .reading-type7-gap-num,
    .reading-type7-gap-number,
    .gap-number,
    .gap-number-outside,
    .reading-type4-number,
    .reading-type4-answer-route-num,
    .reading-type5-question-number,
    .listening-type4-q-number,
    .listening-type1-extract-number
  ) {
    display: none !important;
  }

  .cu-ex-sentence,
  .cu-bc-sentence,
  .cu-sync-sentence,
  .cu-passage-text {
    display: block;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .cu-kwtrans-wordbank-slot {
    display: block;
    margin: 4px 0 10px;
  }

  .cu-ex-wordbank--kwtrans-top {
    display: none !important;
  }

  .cu-kwtrans-wordbank-slot .cu-ex-wordbank {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2rem;
    padding: 4px 6px;
    gap: 3px 5px;
    align-content: center;
    border-style: dashed;
    border-color: rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.04);
  }

  /* KW trans match: circular A/B buttons (avoid stretched ovals on narrow rows) */
  button.cu-ex-kwtrans-label.cu-ab-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    align-self: flex-start;
    line-height: 1;
    font-size: 0.76rem;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Keep gaps inside the sentence flow (not full-width rows) so text + answer + hint wrap
     naturally, e.g. "… he [answer wraps] [write] a letter …" */
  .cu-wf-gap-wrap,
  .cu-pi-gap-wrap {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 2px 2px;
    vertical-align: text-bottom;
  }

  /* Hint-gap: one compact row (num + underline field + hint); wraps as a unit in the passage */
  .cu-hint-pill,
  .cu-hint-pill.cu-pi-pill {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-start;
    gap: 4px 8px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 1px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    vertical-align: text-bottom;
  }

  .cu-hint-pill:focus-within {
    border: none !important;
    box-shadow: none !important;
  }

  .cu-hint-pill-word,
  .cu-hint-pill .cu-hint-word {
    flex-shrink: 0;
    align-self: flex-end;
    max-width: 100%;
    margin: 0 0 2px 1px;
    padding: 1px 7px !important;
    border-radius: 6px !important;
    background: rgba(124, 58, 237, 0.12) !important;
    border: 1px solid rgba(124, 58, 237, 0.28) !important;
    color: #5b21b6;
    font-weight: 600;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  /* Slash-separated hints (e.g. I / just): hint (+ optional num) on first row, full-width input below */
  .cu-hint-pill.cu-hint-pill-slash-hint {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Slash hints: pill numbers hidden on mobile — layout as if no num (DOM may still contain span) */
  .cu-hint-pill-slash-hint .cu-hint-word,
  .cu-hint-pill-slash-hint .cu-hint-pill-word {
    order: 1 !important;
    flex: 1 1 auto;
    align-self: flex-end;
  }

  .cu-hint-pill-slash-hint textarea.cu-hint-pill-input {
    order: 2 !important;
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .cu-hint-pill-mid {
    white-space: normal;
    line-height: 1.5;
    padding: 2px 0;
  }

  /* Slash hints: contenteditable block field below hint row (same as textarea ordering) */
  .cu-hint-pill-slash-hint span.cu-inline-gap-wrap.cu-gap-inline-editable.cu-inline-gap-wrap--block {
    order: 2 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Non-slash hint pills: no flex row — field + hint flow like normal inline text (ex. B, passage-input F) */
  .cu-ex-sentence .cu-hint-pill:not(.cu-hint-pill-slash-hint),
  .cu-bc-sentence .cu-hint-pill:not(.cu-hint-pill-slash-hint),
  .cu-sync-sentence .cu-hint-pill:not(.cu-hint-pill-slash-hint),
  .cu-ex-kwtrans-text .cu-hint-pill:not(.cu-hint-pill-slash-hint),
  .cu-passage-text .cu-hint-pill.cu-pi-pill:not(.cu-hint-pill-slash-hint) {
    display: inline !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    align-items: baseline !important;
    align-content: unset !important;
    gap: 0 !important;
    vertical-align: baseline;
    width: auto !important;
    max-width: none !important;
  }

  .cu-passage-text .cu-pi-gap-wrap {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 2px 0 0;
    vertical-align: baseline;
  }

  /* Sentence gaps (mobile): one contenteditable span (.cu-inline-gap-wrap) — true inline flow + per-line notebook underline */
  span.cu-inline-gap-wrap.cu-gap-inline-editable:not(.cu-inline-gap-wrap--block) {
    display: inline !important;
    vertical-align: baseline;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    flex-grow: 0 !important;
    padding: 0 2px 1px;
    margin: 0 1px;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    border: none !important;
    border-radius: 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-color: transparent;
    background-image: linear-gradient(to right, #7a9cff 100%, #7a9cff 100%);
    background-position: 0 1.15em;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    box-shadow: none;
    outline: none;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
    box-sizing: border-box;
  }

  span.cu-inline-gap-wrap.cu-gap-inline-editable:not(.cu-inline-gap-wrap--block):focus {
    background-color: rgba(59, 130, 246, 0.06);
    background-image: linear-gradient(to right, #2563eb 100%, #2563eb 100%);
    background-position: 0 1.15em;
    background-size: 100% 2px;
    background-repeat: no-repeat;
  }

  span.cu-inline-gap-wrap.cu-gap-inline-editable.cu-gap-editable-empty[data-placeholder]::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
  }

  span.cu-inline-gap-wrap.cu-inline-gap-wrap--block.cu-gap-inline-editable {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    margin-top: 6px;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    border: none !important;
    border-radius: 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-color: transparent;
    background-image: linear-gradient(to right, #7a9cff 100%, #7a9cff 100%);
    background-position: 0 1.15em;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    outline: none;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
  }

  span.cu-inline-gap-wrap.cu-inline-gap-wrap--block.cu-gap-inline-editable:focus {
    background-color: rgba(59, 130, 246, 0.06);
    background-image: linear-gradient(to right, #2563eb 100%, #2563eb 100%);
    background-position: 0 1.15em;
    background-size: 100% 2px;
    background-repeat: no-repeat;
  }

  span.cu-inline-gap-wrap.cu-gap-inline-editable[contenteditable="false"] {
    cursor: default;
    opacity: 0.92;
  }

  /* Inline gaps: underline-only, fluid wrap (textarea auto-grows height) */
  input.cu-gap-input:not(.cu-gap-textarea):not(.cu-cw-input),
  textarea.cu-gap-input.cu-gap-inline-textarea {
    display: inline-block;
    vertical-align: baseline;
    width: auto !important;
    min-width: 5ch;
    max-width: 100%;
    margin: 4px 2px;
    padding: 3px 6px 5px !important;
    font-size: 0.86rem !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.55) !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  .cu-inline-gap-wrap:not(.cu-inline-gap-wrap--block) textarea.cu-gap-input.cu-gap-inline-textarea {
    flex: 1 1 10ch;
    min-width: 5ch !important;
    max-width: 100% !important;
    width: auto !important;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.45;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .cu-inline-gap-wrap--block textarea.cu-gap-input.cu-gap-inline-textarea {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: none;
  }

  textarea.cu-hint-pill-input {
    display: block;
    flex: 1 1 10ch;
    width: auto !important;
    max-width: 100% !important;
    min-width: 5ch !important;
    min-height: 1.75rem;
    margin: 0 2px 2px 0 !important;
    padding: 2px 2px 5px !important;
    font-size: 0.9rem !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.55) !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.45;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  @supports (field-sizing: content) {
    input.cu-gap-input:not(.cu-gap-textarea):not(.cu-cw-input),
    textarea.cu-gap-input.cu-gap-inline-textarea {
      field-sizing: content;
    }
  }

  input.cu-gap-input:not(.cu-gap-textarea):not(.cu-cw-input):focus,
  textarea.cu-gap-input.cu-gap-inline-textarea:focus,
  textarea.cu-hint-pill-input:focus {
    border-bottom-color: #2563eb !important;
    box-shadow: none !important;
    background: rgba(59, 130, 246, 0.06) !important;
  }

  .cu-bc-controls {
    flex-direction: column;
    align-items: stretch;
  }

  /* Error-correction OK chips: on phones students type OK in the field (button hidden) */
  .cu-ok-inline-row .cu-ok-fill-btn,
  .cu-bc-ok-btn {
    display: none !important;
  }

  .cu-bc-input {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  textarea.cu-bc-input.cu-gap-inline-textarea {
    display: block !important;
  }

  /* Passage-input gaps: same inline underline behaviour as other hint pills */
  .cu-pi-input.cu-hint-pill-input {
    min-width: 5ch !important;
    max-width: 100% !important;
    width: auto !important;
  }

  .cu-ex-instructions {
    font-size: 0.8rem;
    padding: 8px 10px;
    line-height: 1.45;
  }

  /* Word bank: dense chips — minimal padding/gap/fonts so more tokens fit per row */
  .cu-ex-wordbank {
    font-size: 0.72rem;
    padding: 4px 7px;
    line-height: 1.2;
    border-radius: 8px;
    gap: 3px 5px;
    margin-bottom: 8px;
    align-items: center;
    align-content: center;
  }

  .cu-ex-wordbank .material-symbols-outlined {
    font-size: 0.85rem;
    margin-top: 0.08em;
  }

  .cu-wordbank-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px 3px;
    min-height: 24px;
    line-height: 1.15;
    border-radius: 6px;
    border-width: 1.5px;
    box-sizing: border-box;
  }

  .cu-ex-item {
    padding: 12px 12px;
    min-width: 0;
  }

  input.cu-gap-input.cu-input-correct:not(.cu-gap-textarea):not(.cu-cw-input),
  textarea.cu-gap-input.cu-gap-inline-textarea.cu-input-correct,
  textarea.cu-hint-pill-input.cu-input-correct {
    border-bottom-color: #059669 !important;
    background: rgba(5, 150, 105, 0.08) !important;
  }
  span.cu-inline-gap-wrap.cu-gap-inline-editable.cu-input-correct {
    border: none !important;
    background-color: rgba(5, 150, 105, 0.08) !important;
    background-image: linear-gradient(to right, #059669 100%, #059669 100%) !important;
    background-position: 0 1.15em !important;
    background-size: 100% 2px !important;
    background-repeat: no-repeat !important;
  }
  input.cu-gap-input.cu-input-incorrect:not(.cu-gap-textarea):not(.cu-cw-input),
  textarea.cu-gap-input.cu-gap-inline-textarea.cu-input-incorrect,
  textarea.cu-hint-pill-input.cu-input-incorrect {
    border-bottom-color: #d97706 !important;
    background: rgba(217, 119, 6, 0.08) !important;
  }
  span.cu-inline-gap-wrap.cu-gap-inline-editable.cu-input-incorrect {
    border: none !important;
    background-color: rgba(217, 119, 6, 0.08) !important;
    background-image: linear-gradient(to right, #d97706 100%, #d97706 100%) !important;
    background-position: 0 1.15em !important;
    background-size: 100% 2px !important;
    background-repeat: no-repeat !important;
  }
  input.cu-gap-input.cu-input-show-correct:not(.cu-gap-textarea):not(.cu-cw-input),
  textarea.cu-gap-input.cu-gap-inline-textarea.cu-input-show-correct,
  textarea.cu-hint-pill-input.cu-input-show-correct {
    border-bottom-color: #7c3aed !important;
    background: rgba(124, 58, 237, 0.08) !important;
  }
  span.cu-inline-gap-wrap.cu-gap-inline-editable.cu-input-show-correct {
    border: none !important;
    background-color: rgba(124, 58, 237, 0.08) !important;
    background-image: linear-gradient(to right, #7c3aed 100%, #7c3aed 100%) !important;
    background-position: 0 1.15em !important;
    background-size: 100% 2px !important;
    background-repeat: no-repeat !important;
  }
}
