.marketplace-hero,
.course-landing-hero {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.marketplace-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
}

.marketplace-hero h2,
.course-landing-hero h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.marketplace-hero p,
.course-hero-copy p {
  max-width: 740px;
}

.marketplace-summary,
.empty-state,
.course-detail-card,
.course-enroll-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.marketplace-summary {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 160px;
  text-align: center;
}

.marketplace-summary strong {
  color: var(--green-dark);
  font-size: 46px;
  line-height: 1;
}

.marketplace-summary span,
.course-card-meta,
.course-mini-facts dt,
.module-position,
.module-preview small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.marketplace-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 160px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.marketplace-grid {
  align-items: stretch;
}

.marketplace-card {
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 0;
}

.course-thumb,
.course-preview-box {
  display: grid;
  place-items: center;
  min-height: 154px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(31, 143, 95, 0.95), rgba(54, 92, 134, 0.82)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px);
}

.course-thumb span,
.course-preview-box span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 600;
}

.course-thumb .fi,
.course-preview-box .fi {
  width: 42px;
  height: 30px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.course-card-body,
.course-card-footer {
  padding: 18px;
}

.course-card-body {
  display: grid;
  gap: 12px;
}

.course-card-meta,
.course-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.course-mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.course-mini-facts div {
  display: grid;
  gap: 2px;
}

.course-mini-facts dd {
  margin: 0;
  font-weight: 600;
}

.course-mini-facts.stacked {
  grid-template-columns: 1fr;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.course-card-footer strong,
.course-enroll-card strong {
  color: var(--green-dark);
  font-size: 22px;
}

.empty-state {
  display: grid;
  gap: 10px;
  max-width: 680px;
  padding: 28px;
}

.empty-state h3 {
  margin: 0;
}

.course-landing-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 97, 63, 0.98), rgba(54, 92, 134, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 22px);
  border-radius: var(--radius);
}

.course-landing-hero .eyebrow,
.course-landing-hero .muted {
  color: rgba(255, 255, 255, 0.78);
}

.course-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.course-hero-copy h2 {
  max-width: 860px;
}

.course-hero-stats span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 600;
}

.course-enroll-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  color: var(--text);
}

.course-enroll-card .button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.course-enroll-card p {
  margin: 0;
  color: var(--muted);
}

.course-enroll-card form {
  display: grid;
}

.course-enroll-card .button {
  width: 100%;
}

.compact-notice {
  margin: 0;
}

.course-preview-box {
  min-height: 190px;
  border-radius: calc(var(--radius) - 2px);
}

.course-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.course-detail-main,
.course-detail-sidebar,
.module-list {
  display: grid;
  align-content: start;
  gap: 18px;
}

.course-detail-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.pre-line {
  white-space: pre-line;
}

.course-detail-card h3,
.module-preview h4 {
  margin: 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
  font-weight: 600;
}

.module-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.module-preview ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.module-preview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.audience-grid div {
  padding: 16px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audience-grid p {
  margin-bottom: 0;
}

.instructor-preview-card {
  text-align: center;
}

.instructor-mini-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 600;
}

.learn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 97, 63, 0.98), rgba(31, 143, 95, 0.84)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 22px);
  border-radius: var(--radius);
}

.learn-hero .eyebrow,
.learn-hero .muted {
  color: rgba(255, 255, 255, 0.78);
}

.learn-hero h2 {
  margin: 0;
  font-size: 34px;
}

.learn-progress-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 150px;
  color: var(--text);
  background: #ffffff;
  border-radius: var(--radius);
}

.learn-progress-card span,
.learn-progress-card small {
  color: var(--muted);
  font-weight: 600;
}

.learn-progress-card strong {
  color: var(--green-dark);
  font-size: 42px;
}

.learn-tabs {
  margin-bottom: 22px;
}

.learn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.learn-word-list,
.learn-placeholder-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.learn-word-list div,
.learn-placeholder-grid article {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.learn-word-list dt {
  font-weight: 600;
}

.learn-word-list dd {
  margin: 0;
}

.learn-word-list small,
.learn-placeholder-grid span {
  color: var(--muted);
}

.student-knowledge-course-header,
.student-knowledge-player-header,
.student-knowledge-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px 26px;
  background: #eef8f1;
  border: 1px solid #cfe5d5;
  border-radius: 10px;
}

.student-knowledge-course-header h2,
.student-knowledge-player-header h2,
.student-knowledge-result-header h2 {
  margin: 4px 0 0;
}

.student-knowledge-header-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 1.35rem;
}

.student-knowledge-section {
  display: grid;
  gap: 20px;
}

.student-knowledge-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.student-knowledge-section-heading h3,
.student-knowledge-section-heading p {
  margin: 0;
}

.student-knowledge-section-heading h3 {
  margin-top: 4px;
  font-size: 1.55rem;
}

.student-knowledge-section-heading > div > p:last-child {
  max-width: 650px;
  margin-top: 7px;
  color: var(--muted);
}

.student-knowledge-total {
  display: grid;
  min-width: 94px;
  padding: 10px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.student-knowledge-total strong {
  color: var(--green-dark);
  font-size: 1.4rem;
}

.student-knowledge-folders {
  display: grid;
  gap: 12px;
}

.student-knowledge-folder {
  --folder-accent: #197d4a;
  --folder-soft: #edf8f0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--folder-accent);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(22, 70, 42, .045);
}

.student-knowledge-folder.folder-color-blue { --folder-accent: #2f6fbc; --folder-soft: #edf4fc; }
.student-knowledge-folder.folder-color-purple { --folder-accent: #7454a6; --folder-soft: #f3effa; }
.student-knowledge-folder.folder-color-orange { --folder-accent: #b96516; --folder-soft: #fff3e7; }
.student-knowledge-folder.folder-color-gray { --folder-accent: #66716a; --folder-soft: #f0f3f1; }

.student-knowledge-folder-header {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.student-knowledge-folder-header:hover { background: #f8fbf9; }
.student-knowledge-folder-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--folder-accent); background: var(--folder-soft); border-radius: 8px; }
.student-knowledge-folder-copy { display: grid; min-width: 0; gap: 3px; }
.student-knowledge-folder-copy strong,
.student-knowledge-folder-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-knowledge-folder-copy small { color: var(--muted); font-size: .82rem; }
.student-knowledge-folder-meta { display: flex; align-items: center; gap: 12px; }
.student-knowledge-folder-meta em { padding: 5px 9px; color: var(--folder-accent); background: var(--folder-soft); border-radius: 999px; font-size: .76rem; font-style: normal; white-space: nowrap; }
.student-knowledge-folder-meta > i { color: var(--muted); font-size: .8rem; transition: transform .2s ease; }
.student-knowledge-folder.is-open .student-knowledge-folder-meta > i { transform: rotate(180deg); }
.student-knowledge-folder-content { border-top: 1px solid var(--line); }
.student-knowledge-folder-list { display: grid; }

.student-knowledge-folder-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 110px minmax(120px, .85fr) minmax(150px, auto) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #edf1ee;
}

.student-knowledge-folder-row:last-child { border-bottom: 0; }
.student-knowledge-folder-row.is-completed { background: #f7f8f7; }
.student-knowledge-folder-row > * { min-width: 0; }
.student-knowledge-folder-row-title { display: grid; gap: 3px; }
.student-knowledge-folder-row-title strong,
.student-knowledge-folder-row-title small,
.student-knowledge-folder-row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-knowledge-folder-row-title small,
.student-knowledge-folder-row-meta { color: var(--muted); font-size: .78rem; }
.student-knowledge-folder-row.is-completed .student-knowledge-folder-row-title strong { color: #59645d; }
.student-knowledge-folder-row-meta { display: flex; align-items: center; gap: 6px; }
.student-knowledge-folder-row-meta i { color: var(--folder-accent); }
.student-knowledge-folder-row .student-knowledge-state { justify-self: start; }
.student-knowledge-folder-row .button { justify-content: center; white-space: nowrap; }

.student-knowledge-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-knowledge-card {
  display: grid;
  min-width: 0;
  gap: 17px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(22, 70, 42, .06);
}

.student-knowledge-card-topline,
.student-knowledge-card-action,
.student-knowledge-player-summary,
.student-knowledge-submit-bar,
.student-knowledge-result-actions {
  display: flex;
  align-items: center;
}

.student-knowledge-card-topline {
  justify-content: space-between;
  gap: 10px;
}

.student-knowledge-type,
.student-knowledge-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
}

.student-knowledge-type {
  color: var(--green-dark);
}

.student-knowledge-state {
  padding: 5px 9px;
  color: #68736b;
  background: #f2f4f2;
  border-radius: 999px;
}

.student-knowledge-state.is-completed {
  color: #12643c;
  background: #e6f6eb;
}

.student-knowledge-card-copy h4,
.student-knowledge-card-copy p {
  margin: 0;
}

.student-knowledge-card-copy h4 {
  font-size: 1.18rem;
}

.student-knowledge-card-copy p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.student-knowledge-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.student-knowledge-card-meta div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid #e2ebe5;
  border-radius: 7px;
}

.student-knowledge-card-meta dt {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .7rem;
}

.student-knowledge-card-meta dd {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-knowledge-card-action {
  justify-content: space-between;
  min-height: 44px;
}

.student-knowledge-empty {
  min-height: 330px;
}

.student-knowledge-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--green-dark);
  background: #e9f7ed;
  border-radius: 50%;
  font-size: 1.4rem;
}

.student-knowledge-player-header,
.student-knowledge-result-header {
  display: grid;
  justify-content: stretch;
}

.student-knowledge-player-header > p,
.student-knowledge-result-header > div > p {
  margin: 0;
  color: var(--muted);
}

.student-knowledge-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

.student-knowledge-player-summary {
  flex-wrap: wrap;
  gap: 9px;
}

.student-knowledge-player-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #3f5145;
  background: #fff;
  border: 1px solid #d4e7da;
  border-radius: 7px;
  font-size: .8rem;
}

.student-knowledge-player {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  gap: 16px;
}

.student-knowledge-answer-error {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  color: #8f4b08;
  background: #fff7ed;
  border: 1px solid #f3bd7b;
  border-radius: 8px;
}

.student-knowledge-answer-error p {
  margin: 3px 0 0;
}

.student-knowledge-progress {
  overflow: hidden;
  height: 7px;
  background: #e4ece6;
  border-radius: 999px;
}

.student-knowledge-progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width .2s ease;
}

.student-knowledge-question-list,
.student-knowledge-result-list {
  display: grid;
  gap: 14px;
}

.student-knowledge-question {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(23, 65, 39, .05);
}

.student-knowledge-question.has-error {
  border-color: #dc8d3b;
}

.student-knowledge-question > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f1f8f3;
  border-bottom: 1px solid #dbe8df;
}

.student-knowledge-question-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #c8e2d0;
  border-radius: 50%;
  font-weight: 600;
}

.student-knowledge-question > header div {
  display: grid;
  gap: 2px;
}

.student-knowledge-question > header small {
  color: var(--muted);
}

.student-knowledge-question-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.student-knowledge-question-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
}

.student-knowledge-text-answer {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
}

.student-knowledge-text-answer input,
.student-knowledge-matching-list select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #bcd5c4;
  border-radius: 8px;
  font: inherit;
}

.student-knowledge-option-grid,
.student-knowledge-boolean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}

.student-knowledge-option input,
.student-knowledge-boolean-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.student-knowledge-option > span,
.student-knowledge-boolean-grid label > span {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d6e2d9;
  border-radius: 8px;
  cursor: pointer;
}

.student-knowledge-option > span strong {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green-dark);
  background: #eaf7ed;
  border-radius: 50%;
}

.student-knowledge-option input:checked + span,
.student-knowledge-boolean-grid input:checked + span {
  color: var(--green-dark);
  background: #eefaf2;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.student-knowledge-boolean-grid label > span {
  justify-content: center;
  font-weight: 600;
}

.student-knowledge-instruction {
  margin: 0;
  color: var(--muted);
}

.student-knowledge-matching-list {
  display: grid;
  gap: 9px;
}

.student-knowledge-matching-list label {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) 24px minmax(180px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: #f8fbf9;
  border: 1px solid #e1eae4;
  border-radius: 8px;
}

.student-knowledge-matching-list label > i {
  color: var(--green-dark);
  text-align: center;
}

.student-word-order {
  display: grid;
  gap: 12px;
}

.student-word-order input[type="hidden"] {
  display: none !important;
}

.student-word-order-answer {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  min-height: 64px;
  gap: 7px;
  padding: 10px;
  background: #f6fbf7;
  border: 1px dashed #9dc9aa;
  border-radius: 8px;
}

.student-word-order-answer:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.student-word-order-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-word-order-chips button,
.student-word-order-answer button {
  min-height: 39px;
  padding: 7px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbdcd0;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.student-word-order-chips button:disabled {
  opacity: .28;
}

.student-word-order-answer button {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.student-word-order-clear {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

.student-knowledge-submit-bar {
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(22, 70, 42, .06);
}

.student-knowledge-result-header {
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
}

.student-knowledge-score-ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-content: center;
  justify-self: end;
  color: var(--green-dark);
  background: radial-gradient(circle, #fff 61%, transparent 63%), conic-gradient(var(--green) calc(var(--score) * 1%), #dbe8df 0);
  border-radius: 50%;
  text-align: center;
}

.student-knowledge-score-ring strong {
  font-size: 1.55rem;
}

.student-knowledge-score-ring span {
  color: var(--muted);
  font-size: .78rem;
}

.student-knowledge-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.student-knowledge-result-summary > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.student-knowledge-result-summary > div > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: #eaf7ed;
  border-radius: 8px;
}

.student-knowledge-result-summary div div {
  display: grid;
  gap: 2px;
}

.student-knowledge-result-summary small {
  color: var(--muted);
}

.student-knowledge-result-summary strong {
  font-size: 1.2rem;
}

.student-knowledge-result-list > header h3,
.student-knowledge-result-list > header p {
  margin: 0;
}

.student-knowledge-result-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.student-knowledge-result-item.is-correct {
  border-color: #9ed3ad;
}

.student-knowledge-result-item.is-incorrect {
  border-color: #efbd7f;
}

.student-knowledge-result-item > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #f6faf7;
}

.student-knowledge-result-item.is-incorrect > header {
  background: #fff8ef;
}

.student-knowledge-result-item > header > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.student-knowledge-result-item.is-incorrect > header > span {
  background: #c76e14;
}

.student-knowledge-result-item > header div {
  display: grid;
  gap: 2px;
}

.student-knowledge-result-item > header small {
  color: var(--muted);
}

.student-knowledge-result-item > header em {
  color: var(--green-dark);
  font-size: .78rem;
  font-style: normal;
  font-weight: 600;
}

.student-knowledge-result-item.is-incorrect > header em {
  color: #9a520b;
}

.student-knowledge-result-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 15px;
}

.student-knowledge-result-answers section {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
}

.student-knowledge-result-answers span,
.student-knowledge-explanation span {
  color: var(--muted);
  font-size: .76rem;
}

.student-knowledge-result-answers ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-knowledge-result-answers li {
  display: grid;
  grid-template-columns: minmax(70px, auto) 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.student-knowledge-result-answers li i {
  color: var(--green-dark);
}

.student-knowledge-explanation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 15px 15px;
  padding: 11px 12px;
  color: #614d20;
  background: #fffbea;
  border: 1px solid #eee0a7;
  border-radius: 8px;
}

.student-knowledge-explanation p {
  margin: 3px 0 0;
}

.student-knowledge-result-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .student-knowledge-list-page .content-area,
  .student-knowledge-player-page .content-area,
  .student-knowledge-result-page .content-area {
    padding-bottom: 104px;
  }

  .student-knowledge-course-header,
  .student-knowledge-player-header,
  .student-knowledge-result-header {
    margin: 0 0 12px;
    padding: 16px;
    border-radius: 8px;
  }

  .student-knowledge-course-header h2,
  .student-knowledge-player-header h2,
  .student-knowledge-result-header h2 {
    font-size: 1.45rem;
  }

  .student-knowledge-header-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .student-knowledge-section-heading {
    align-items: center;
  }

  .student-knowledge-section-heading h3 {
    font-size: 1.25rem;
  }

  .student-knowledge-section-heading > div > p:last-child {
    font-size: .86rem;
  }

  .student-knowledge-total {
    min-width: 70px;
    padding: 8px;
    font-size: .72rem;
  }

  .student-knowledge-folder-header { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .student-knowledge-folder-icon { width: 38px; height: 38px; }
  .student-knowledge-folder-meta em { display: none; }
  .student-knowledge-folder-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
  .student-knowledge-folder-row-title { grid-column: 1 / -1; }
  .student-knowledge-folder-row-meta { white-space: normal; }
  .student-knowledge-folder-row .student-knowledge-state { grid-column: 1 / -1; }
  .student-knowledge-folder-row .button { grid-column: 1 / -1; width: 100%; }

  .student-knowledge-card-grid,
  .student-knowledge-result-answers {
    grid-template-columns: 1fr;
  }

  .student-knowledge-card {
    padding: 15px;
  }

  .student-knowledge-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-knowledge-player-header {
    gap: 8px;
  }

  .student-knowledge-player-header .student-knowledge-back {
    display: none;
  }

  .student-knowledge-question-body {
    padding: 15px;
  }

  .student-knowledge-option-grid {
    grid-template-columns: 1fr;
  }

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

  .student-knowledge-matching-list label {
    grid-template-columns: 1fr;
  }

  .student-knowledge-matching-list label > i {
    transform: rotate(90deg);
  }

  .student-knowledge-submit-bar,
  .student-knowledge-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .student-knowledge-submit-bar .button,
  .student-knowledge-result-actions .button {
    width: 100%;
  }

  .student-knowledge-submit-bar .primary {
    grid-row: 1;
  }

  .student-knowledge-result-header {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .student-knowledge-score-ring {
    width: 86px;
    height: 86px;
  }

  .student-knowledge-score-ring strong {
    font-size: 1.15rem;
  }

  .student-knowledge-result-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .student-knowledge-result-summary > div {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 5px;
    text-align: center;
  }

  .student-knowledge-result-summary > div > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .student-knowledge-result-item > header {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .student-knowledge-result-item > header em {
    grid-column: 2;
  }
}

.lesson-display-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  align-items: start;
  gap: 20px;
}

.lesson-content-card {
  align-content: start;
  font-size: 1.02rem;
  line-height: 1.75;
}

.lesson-body {
  display: grid;
  gap: 12px;
}

.lesson-body h2,
.lesson-body h3,
.lesson-body p,
.lesson-body blockquote,
.lesson-body ul,
.lesson-body ol {
  margin: 0;
}

.lesson-body blockquote {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #fbfdfb;
}

.lesson-body a {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lesson-body ul,
.lesson-body ol {
  padding-left: 1.5rem;
}

.lesson-body li[data-list="bullet"] {
  list-style-type: disc;
}

.lesson-body li[data-list="ordered"] {
  list-style-type: decimal;
}

.lesson-body .ql-align-center {
  text-align: center;
}

.lesson-body .ql-align-right {
  text-align: right;
}

.lesson-body .ql-align-justify {
  text-align: justify;
}

.lesson-video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: var(--radius);
}

.lesson-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-sidebar {
  position: sticky;
  top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lesson-sidebar.lesson-sidebar-accordion { display: flex; flex-direction: column; gap: 12px; height: 95vh; max-height: 95vh; padding: 0; overflow: hidden; background: transparent; border: 0; box-shadow: none; }
.sidebar-accordion-section { flex: 0 0 auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(22, 44, 30, 0.05); }
.sidebar-accordion-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; color: var(--text); background: transparent; border: 0; border-radius: 12px; font: inherit; font-weight: 500; text-align: left; cursor: pointer; transition: color .16s ease, background-color .16s ease; }
.sidebar-accordion-header:hover { color: var(--green-dark); background: #f4faf6; }
.sidebar-accordion-header:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.sidebar-accordion-title,.sidebar-accordion-meta { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar-accordion-title i { width: 18px; color: var(--green-dark); text-align: center; }
.sidebar-accordion-count { display: inline-grid; min-width: 25px; height: 25px; place-items: center; padding: 0 6px; color: var(--green-dark); background: var(--surface-soft); border: 1px solid #b9d9c4; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.sidebar-accordion-chevron { color: var(--muted); font-size: .78rem; transition: transform .18s ease; }
.sidebar-accordion-section.is-open .sidebar-accordion-chevron { transform: rotate(180deg); }
.sidebar-accordion-content { display: grid; gap: 12px; min-height: 0; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.lesson-sidebar-accordion.is-enhanced { overflow: hidden; }
.lesson-sidebar-accordion.is-enhanced .sidebar-accordion-section:not(.is-open) .sidebar-accordion-content { display: none; }
.lesson-sidebar-accordion.is-enhanced .sidebar-accordion-section.is-open { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.lesson-sidebar-accordion.is-enhanced .sidebar-accordion-section.is-open .sidebar-accordion-content { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
.sidebar-lesson-groups,.sidebar-lesson-list,.sidebar-check-list { display: grid; gap: 8px; }
.sidebar-lesson-group { display: grid; gap: 7px; }
.sidebar-lesson-group + .sidebar-lesson-group { padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-lesson-group h3 { margin: 0; color: var(--muted); font-size: .77rem; font-weight: 500; text-transform: uppercase; }
.sidebar-lesson-item { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px; color: var(--text); border: 1px solid transparent; border-radius: 8px; text-decoration: none; }
.sidebar-lesson-item:hover { background: #f7fbf8; border-color: #dcebe1; }
.sidebar-lesson-item.is-current { color: var(--green-dark); background: #edf9f0; border-color: #b9d9c4; }
.sidebar-lesson-indicator { display: grid; width: 25px; height: 25px; place-items: center; color: #6c7b72; background: #f1f4f2; border-radius: 50%; font-size: .7rem; }
.sidebar-lesson-item.is-current .sidebar-lesson-indicator { color: #ffffff; background: var(--green); }
.sidebar-lesson-item > span:last-child { min-width: 0; overflow-wrap: anywhere; font-size: .87rem; font-weight: 400; }
.sidebar-lesson-item small { display: block; margin-top: 2px; color: var(--green-dark); font-size: .72rem; font-weight: 400; }
.sidebar-check-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; align-items: center; gap: 10px; padding: 10px; color: var(--text); background: #ffffff; border: 1px solid #dcebe1; border-radius: 8px; text-decoration: none; }
.sidebar-check-item:hover { background: #f7fbf8; border-color: #8ec7a4; }
.sidebar-check-type-icon,.sidebar-check-play-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; font-size: .79rem; }
.sidebar-check-play-icon { width: 26px; height: 26px; color: #ffffff; background: var(--green); font-size: .66rem; }
.sidebar-check-copy { display: grid; min-width: 0; gap: 3px; }
.sidebar-check-copy strong { overflow-wrap: anywhere; font-size: .86rem; }
.sidebar-check-copy small { color: var(--muted); font-size: .73rem; }
.sidebar-footnote-list { display: grid; gap: 8px; padding: 0 0 0 22px; margin: 0; }
.sidebar-footnote-item { padding: 3px 0 9px 3px; color: var(--text); border-bottom: 1px solid var(--line); line-height: 1.45; }
.sidebar-footnote-item:last-child { border-bottom: 0; }
.sidebar-empty-state { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.lesson-notes,.lesson-note-form,.student-note-list,.student-note-edit-form { display: grid; gap: 10px; }
[data-new-note-form][hidden], [data-note-edit-form][hidden], [data-note-text][hidden] { display: none !important; }
.new-note-toggle { justify-self: start; padding: 0; color: var(--green-dark); background: transparent; border: 0; font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; }
.new-note-toggle:hover { text-decoration: underline; }
.new-note-toggle:focus-visible,.note-icon-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.note-compose-field { position: relative; }
.note-compose-field textarea,.student-note-edit-form textarea { width: 100%; min-height: 78px; padding: 10px 44px 10px 11px; color: var(--text); background: #ffffff; border: 1px solid var(--line); border-radius: 9px; font: inherit; resize: vertical; }
.note-compose-submit { position: absolute; right: 8px; bottom: 8px; }
.note-icon-button { display: inline-grid; width: 31px; min-width: 31px; height: 31px; min-height: 31px; place-items: center; padding: 0; color: var(--green-dark); background: #ffffff; border: 1px solid #cde3d4; border-radius: 7px; cursor: pointer; }
.note-icon-button:hover:not(:disabled) { color: #ffffff; background: var(--green); border-color: var(--green); }
.note-icon-button.danger { color: #b42318; border-color: #efc7c3; }
.note-icon-button.danger:hover:not(:disabled) { background: #d92d20; border-color: #d92d20; }
.note-icon-button:disabled { color: #8c9991; background: #f4f6f5; border-color: #e2e8e4; cursor: not-allowed; opacity: .72; }
.note-inline-error { margin: 0; color: #b42318; font-size: .78rem; font-weight: 500; }
.student-note-list { gap: 8px; }
.student-note-card { padding: 10px; background: #fbfdfb; border: 1px solid var(--line); border-radius: 9px; }
.student-note-display { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: start; gap: 9px; }
.student-note-number { display: grid; width: 25px; height: 25px; place-items: center; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; font-size: .76rem; font-weight: 600; }
.student-note-display p { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: .87rem; line-height: 1.45; white-space: pre-wrap; }
.student-note-actions { display: flex; align-items: center; gap: 6px; }
.student-note-actions form { margin: 0; }
.student-note-edit-form { margin-top: 2px; }
.student-note-card.is-editing { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: start; }
.student-note-card.is-editing .student-note-display { display: contents; }
.student-note-card.is-editing .student-note-edit-form { grid-column: 2; grid-row: 1; margin: 0; }
.student-note-card.is-editing .student-note-edit-form textarea { min-height: 70px; }

.knowledge-check-page { display: grid; gap: 20px; }
.knowledge-check-header { display: grid; gap: 7px; padding: 4px 2px; }
.knowledge-check-header h2 { margin: 0; color: var(--text); font-size: 32px; }
.knowledge-check-header .eyebrow { margin: 8px 0 0; color: var(--green-dark); }
.knowledge-check-back-link { width: fit-content; color: var(--green-dark); font-weight: 600; text-decoration: none; }
.knowledge-check-back-link::before { content: "← "; }
.knowledge-check-back-link:hover { text-decoration: underline; }
.knowledge-check-header-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--muted); }
.knowledge-check-header-meta span:first-child { color: var(--green-dark); font-weight: 600; }
.knowledge-check-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr); align-items: start; gap: 20px; }
.knowledge-check-main, .knowledge-solve-form, .knowledge-result-list { min-width: 0; }
.knowledge-solve-form, .knowledge-result-list { display: grid; gap: 14px; }
.check-instructions-card { display: grid; gap: 14px; margin-bottom: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.check-instructions-heading { display: flex; align-items: center; gap: 10px; }
.check-instructions-heading span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; }
.check-instructions-heading h3 { margin: 0; }
.check-instructions-copy { margin: 0; color: var(--text); line-height: 1.65; white-space: pre-line; }
.check-instructions-video { aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; border-radius: 8px; }
.check-instructions-video iframe { width: 100%; height: 100%; border: 0; }
.check-instruction-media { display: grid; gap: 12px; }
.check-instruction-image { display: grid; gap: 8px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f8fbf8; }
.check-instruction-image-button { position: relative; display: block; width: 100%; padding: 0; background: #ffffff; border: 0; cursor: zoom-in; }
.check-instruction-image img { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #ffffff; }
.check-instruction-image-zoom { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; color: #ffffff; background: rgba(19, 78, 50, .86); border-radius: 7px; font-size: .78rem; font-weight: 600; opacity: 0; transition: opacity .16s ease; }
.check-instruction-image-button:hover .check-instruction-image-zoom, .check-instruction-image-button:focus-visible .check-instruction-image-zoom { opacity: 1; }
.check-instruction-image-button:focus-visible { outline: 3px solid rgba(31, 143, 95, .35); outline-offset: -3px; }
.check-instruction-image figcaption { display: grid; gap: 3px; padding: 0 14px 14px; color: var(--muted); }
.check-instruction-image figcaption strong { color: var(--text); }
.check-instruction-audio { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbf8; }
.check-instruction-audio div { display: flex; align-items: center; gap: 9px; color: var(--green-dark); }
.check-instruction-audio p { margin: 0; color: var(--muted); }
.check-instruction-audio audio { width: 100%; }
.instruction-image-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 32px; background: rgba(10, 24, 17, .86); }
.instruction-image-modal[hidden] { display: none; }
.instruction-image-modal img { max-width: min(1100px, 100%); max-height: calc(100vh - 64px); object-fit: contain; border-radius: 8px; box-shadow: 0 24px 72px rgba(0, 0, 0, .45); }
.instruction-image-modal-close { position: fixed; top: 18px; right: 20px; display: grid; width: 42px; height: 42px; place-items: center; color: #ffffff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.instruction-image-modal-close:hover, .instruction-image-modal-close:focus-visible { background: rgba(255, 255, 255, .28); outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 2px; }
.knowledge-question-card, .knowledge-result-item, .check-summary-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.knowledge-question-card, .knowledge-result-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.knowledge-question-number { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; font-weight: 600; }
.knowledge-question-body, .knowledge-result-body { display: grid; min-width: 0; gap: 14px; }
.knowledge-question-body h3, .knowledge-result-body h3, .check-summary-card h3, .check-summary-card p { margin: 0; }
.knowledge-question-label { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; }
.answer-grid, .true-false-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.answer-option-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; min-height: 64px; gap: 10px; padding: 12px 14px; color: var(--text); background: #ffffff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.answer-option-card:hover { border-color: #8ec7a4; background: #f7fcf8; }
.answer-option-card:has(input:checked) { border-color: var(--green); background: #edf9f0; box-shadow: inset 0 0 0 1px var(--green); }
.answer-option-card input { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; background: transparent; border: 0; accent-color: var(--green); }
.answer-option-letter { display: grid; place-items: center; width: 27px; height: 27px; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; font-size: .82rem; font-weight: 600; }
.answer-option-text { overflow-wrap: anywhere; font-weight: 500; }
.fill-blank-sentence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: var(--text); font-size: 1.05rem; line-height: 1.75; cursor: text; }
.fill-blank-sentence input { width: min(230px, 100%); min-width: 150px; padding: 6px 8px; color: var(--text); background: #f7fbf8; border: 0; border-bottom: 2px solid var(--green); border-radius: 0; font: inherit; }
.fill-blank-sentence input:focus { outline: 2px solid rgba(31, 143, 95, .22); outline-offset: 2px; }
.fill-blank-sentence small { color: var(--muted); font-size: .88rem; }
.knowledge-submit-row { display: flex; justify-content: flex-end; padding-top: 2px; }
.knowledge-check-sidebar { display: grid; gap: 14px; position: sticky; top: 18px; }
.check-summary-card { display: grid; gap: 14px; padding: 18px; }
.check-summary-list { display: grid; gap: 11px; margin: 0; }
.check-summary-list div { display: grid; gap: 3px; }
.check-summary-list dt { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.check-summary-list dd { margin: 0; color: var(--text); font-weight: 500; }
.check-status-badge, .knowledge-result-badge { display: inline-flex; width: fit-content; padding: 4px 8px; color: #176a45; background: #eaf7ed; border-radius: 999px; font-size: .79rem; font-weight: 600; }
.knowledge-question-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-question-nav a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--green-dark); background: #f1f7f3; border: 1px solid #d6e9dc; border-radius: 7px; font-weight: 600; text-decoration: none; }
.knowledge-question-nav a:hover { color: #ffffff; background: var(--green); border-color: var(--green); }
.check-quick-actions { align-items: stretch; }
.check-quick-actions .button { width: 100%; justify-content: center; }
.check-quick-actions .tertiary { color: var(--green-dark); background: transparent; border: 0; box-shadow: none; }
.knowledge-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.knowledge-result-item.is-correct { border-color: #b9d9c4; background: #fbfefc; }
.knowledge-result-item.is-wrong { border-color: #edc9c6; background: #fffdfd; }
.knowledge-result-item.is-wrong .knowledge-result-badge { color: #b42318; background: #fff0ef; }
.knowledge-answer-feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.knowledge-answer-feedback div { padding: 10px 12px; background: #f7faf8; border-radius: 7px; }
.knowledge-answer-feedback dt { margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.knowledge-answer-feedback dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.knowledge-result-explanation { margin: 0; color: var(--muted); }
.check-result-summary-card .eyebrow { margin: 0; color: var(--green-dark); }

.course-qna-page { display: grid; gap: 20px; }
.course-qna-privacy-card strong { display: grid; place-items: center; min-height: 42px; color: var(--green-dark); font-size: 1.5rem; }
.course-qna-intro { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; color: #315241; background: #f0faf3; border: 1px solid #cbe7d4; border-radius: var(--radius); }
.course-qna-intro i { margin-top: 3px; color: var(--green-dark); }
.course-qna-intro p { margin: 0; line-height: 1.55; }
.course-qna-notice { margin: 0; }
.course-qna-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); align-items: start; gap: 20px; }
.course-qna-main { display: grid; gap: 20px; min-width: 0; }
.course-qna-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.course-qna-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.course-qna-card-heading > div { min-width: 0; }
.course-qna-card-heading h3, .course-qna-card-heading p, .course-qna-thread-detail-header h4, .course-qna-public-item h4 { margin: 0; }
.course-qna-card-heading h3 { font-size: 1.08rem; }
.course-qna-card-heading p { margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.course-qna-card-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; }
.course-qna-badge { display: inline-flex; align-items: center; width: fit-content; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: .74rem; font-weight: 500; white-space: nowrap; }
.course-qna-card-heading > .course-qna-badge { margin-left: auto; }
.course-qna-badge-private { color: #176a45; background: #eaf7ed; border: 1px solid #b9d9c4; }
.course-qna-badge-public { color: #365c86; background: #edf4fc; border: 1px solid #cbdcf1; }
.course-qna-badge-published { color: #176a45; background: #eaf7ed; }
.course-qna-form { display: grid; gap: 14px; }
.course-qna-form label { display: grid; gap: 7px; color: var(--text); font-size: .88rem; font-weight: 500; }
.course-qna-form input, .course-qna-form textarea, .course-qna-reply-form textarea { width: 100%; border-color: #cfe0d4; background: #fff; }
.course-qna-form textarea, .course-qna-reply-form textarea { min-height: 112px; resize: vertical; }
.course-qna-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.course-qna-form-footer small { color: var(--muted); line-height: 1.4; }
.course-qna-form-footer small i { color: var(--green-dark); }
.course-qna-conversation-layout { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); gap: 16px; min-height: 390px; }
.course-qna-thread-list { display: grid; align-content: start; gap: 8px; max-height: 530px; overflow-y: auto; padding-right: 3px; }
.course-qna-thread { display: grid; gap: 5px; padding: 11px; color: var(--text); background: #fbfdfb; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.course-qna-thread:hover { border-color: #9dceb0; background: #f4faf6; }
.course-qna-thread.is-selected { color: var(--green-dark); background: #edf9f0; border-color: #8fcaa4; box-shadow: inset 3px 0 0 var(--green); }
.course-qna-thread-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; font-size: .88rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.course-qna-thread-preview { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.course-qna-thread-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: .72rem; }
.course-qna-status { display: inline-flex; width: fit-content; padding: 3px 6px; color: #527064; background: #eef4f0; border-radius: 999px; font-size: .7rem; }
.course-qna-thread-detail { display: grid; grid-template-rows: auto minmax(140px, 1fr) auto; min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.course-qna-thread-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; background: #fbfdfb; border-bottom: 1px solid var(--line); }
.course-qna-thread-detail-header h4 { margin-bottom: 5px; font-size: .95rem; }
.course-qna-message-list { display: grid; align-content: start; gap: 10px; max-height: 330px; overflow-y: auto; padding: 14px; background: #f8fbf8; }
.course-qna-message { max-width: 88%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.course-qna-message-student { justify-self: end; color: #ffffff; background: var(--green); border-color: var(--green); border-bottom-right-radius: 3px; }
.course-qna-message-instructor { justify-self: start; color: var(--text); background: #ffffff; border-bottom-left-radius: 3px; }
.course-qna-message-author { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 500; opacity: .8; }
.course-qna-message p { margin: 0; overflow-wrap: anywhere; line-height: 1.45; white-space: pre-wrap; }
.course-qna-reply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; padding: 12px; border-top: 1px solid var(--line); }
.course-qna-reply-form textarea { min-height: 58px; }
.course-qna-empty-state { display: grid; justify-items: start; gap: 7px; padding: 22px 4px 4px; color: var(--muted); text-align: left; }
.course-qna-empty-state.compact { padding: 14px 0 0; }
.course-qna-empty-state > i { color: var(--green-dark); font-size: 1.3rem; }
.course-qna-empty-state h4, .course-qna-empty-state p { margin: 0; }
.course-qna-empty-state h4 { color: var(--text); font-size: .98rem; }
.course-qna-empty-state p { line-height: 1.5; }
.course-qna-public-card { position: sticky; top: 18px; }
.course-qna-public-list { display: grid; gap: 12px; }
.course-qna-public-item { padding: 13px; background: #fbfdfb; border: 1px solid var(--line); border-radius: 8px; }
.course-qna-public-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.course-qna-public-item h4 { font-size: .94rem; line-height: 1.35; }
.course-qna-public-item p { margin: 9px 0 0; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.course-qna-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  padding: 5px;
  background: #eef5f0;
  border: 1px solid #d3e1d7;
  border-radius: 999px;
}
.course-qna-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  color: #4b6255;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
}
.course-qna-tab:hover { color: var(--green-dark); border-color: #a8cfb5; }
.course-qna-tab.is-active { color: #fff; background: var(--green); border-color: var(--green); }
.course-qna-tab-count,
.course-qna-tab-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  font-size: .68rem;
  line-height: 1;
}
.course-qna-tab-count { color: var(--green-dark); background: #e5f5ea; }
.course-qna-tab.is-active .course-qna-tab-count { color: var(--green-dark); background: #fff; }
.course-qna-tab-badge { color: #fff; background: #c83c35; }
.course-qna-tab.is-active .course-qna-tab-badge { color: #a52e29; background: #fff; }
.course-qna-public { width: 100%; }
.course-qna-accordion { display: grid; gap: 10px; }
.course-qna-accordion-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.course-qna-accordion-item:hover { border-color: #add2b9; }
.course-qna-accordion-item[open] { border-color: #8fcaa4; box-shadow: 0 10px 24px rgba(27, 86, 52, .07); }
.course-qna-accordion-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 13px 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.course-qna-accordion-button::-webkit-details-marker { display: none; }
.course-qna-accordion-button:focus-visible { outline: 3px solid rgba(31, 148, 91, .22); outline-offset: -3px; }
.course-qna-accordion-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green-dark);
  background: #eaf7ed;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 600;
}
.course-qna-accordion-title { min-width: 0; font-weight: 500; line-height: 1.4; }
.course-qna-accordion-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #668073;
  border-bottom: 2px solid #668073;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.course-qna-accordion-item[open] .course-qna-accordion-chevron { transform: rotate(225deg); }
.course-qna-accordion-answer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px 18px;
  background: #f8fcf9;
  border-top: 1px solid #dbe8df;
}
.course-qna-answer-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #cbe4d2;
  border-radius: 50%;
}
.course-qna-accordion-answer p { margin: 3px 0 0; color: #3f5649; line-height: 1.6; white-space: pre-wrap; }
.course-qna-public-empty { justify-items: center; padding: 48px 20px; text-align: center; }
.course-qna-chat { display: grid; gap: 16px; }
.course-qna-chat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
}
.course-qna-chat-header h3,
.course-qna-chat-header p { margin: 0; }
.course-qna-chat-header h3 { margin-top: 4px; font-size: 1.2rem; }
.course-qna-chat-header > div > p:last-child { margin-top: 5px; color: var(--muted); }
.course-qna-chat-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr);
  align-items: stretch;
  gap: 16px;
}
.course-qna-chat-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}
.course-qna-new-thread-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--green-dark);
  background: #edf9f0;
  border: 1px solid #9dceb0;
  border-radius: 8px;
  text-decoration: none;
}
.course-qna-new-thread-card:hover,
.course-qna-new-thread-card.is-active { background: #e2f5e8; border-color: var(--green); }
.course-qna-new-thread-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 500;
}
.course-qna-new-thread-card strong,
.course-qna-new-thread-card small { display: block; }
.course-qna-new-thread-card strong { font-size: .86rem; font-weight: 500; }
.course-qna-new-thread-card small { margin-top: 2px; color: #5b7567; font-size: .72rem; line-height: 1.35; }
.course-qna-new-thread-arrow { font-size: .9rem; }
.course-qna-student-thread-list { max-height: 520px; padding-right: 3px; }
.course-qna-thread-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.course-qna-thread-card:hover { background: #f7fbf8; border-color: #add2b9; }
.course-qna-thread-card.is-active { color: var(--green-dark); background: #edf9f0; border-color: #8fcaa4; box-shadow: inset 3px 0 0 var(--green); }
.course-qna-thread-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .72rem; }
.course-qna-thread-summary > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.course-qna-conversation {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
}
.course-qna-conversation > .course-qna-card-heading,
.course-qna-conversation > .course-qna-form { margin: 0; padding: 22px; }
.course-qna-conversation > .course-qna-form { align-self: start; }
.course-qna-conversation .course-qna-thread-detail-header { padding: 18px 20px; }
.course-qna-conversation .course-qna-message-list { max-height: 450px; }
.course-qna-new-question-form { grid-row: 2 / 4; border-top: 1px solid var(--line); }
.course-qna-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.course-qna-form-error,
.course-qna-thread-closed {
  margin: 0;
  padding: 10px 12px;
  color: #8d2925;
  background: #fff2f1;
  border: 1px solid #efc5c2;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.45;
}
.course-qna-form-error { grid-column: 1 / -1; }
.course-qna-thread-closed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6770;
  background: #f5f7f6;
  border-color: var(--line);
  border-radius: 0;
  border-width: 1px 0 0;
}
.course-qna-chat-empty { align-content: center; justify-items: center; min-height: 460px; padding: 28px; text-align: center; }
.course-qna-chat-empty .button { margin-top: 8px; }
.nav-unread-badge,
.course-qna-unread-badge {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: #c83c35;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
}
.course-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.course-qna-thread-title-text { overflow: hidden; text-overflow: ellipsis; }
.course-qna-status.status-open { color: #74530d; background: #fff5d6; }
.course-qna-status.status-answered { color: #176a45; background: #e5f6eb; }
.course-qna-status.status-closed { color: #365c86; background: #edf4fc; }
.course-qna-status.status-archived { color: #5f6770; background: #edf0f2; }
.course-qna-instructor-page { display: grid; gap: 18px; }
.course-qna-instructor-header { align-items: stretch; }
.course-qna-instructor-summary {
  display: grid;
  min-width: 150px;
  place-content: center;
  justify-items: center;
  padding: 16px 20px;
  color: var(--green-dark);
  background: #f5fbf6;
  border: 1px solid #c7e3d0;
  border-radius: var(--radius);
}
.course-qna-instructor-summary span,
.course-qna-instructor-summary small { color: var(--muted); font-size: .76rem; }
.course-qna-instructor-summary strong { margin: 3px 0; font-size: 1.8rem; line-height: 1; }
.course-qna-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.course-qna-filters a {
  padding: 8px 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.course-qna-filters a:hover { color: var(--green-dark); border-color: #9dceb0; }
.course-qna-filters a.is-active { color: #fff; background: var(--green); border-color: var(--green); }
.course-qna-instructor-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 16px;
}
.course-qna-instructor-thread-panel,
.course-qna-instructor-conversation { min-width: 0; }
.course-qna-instructor-chat { display: grid; gap: 16px; }
.course-qna-instructor-chat-layout { min-height: 560px; }
.course-qna-instructor-thread-panel { align-content: start; }
.course-qna-instructor-thread-list { max-height: 610px; }
.course-qna-thread-student {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #466355;
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-qna-instructor-conversation { padding: 0; overflow: hidden; }
.course-qna-instructor-conversation .course-qna-thread-detail-header { padding: 18px 20px; }
.course-qna-student-line { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }
.course-qna-instructor-messages { max-height: 470px; min-height: 300px; }
.course-qna-instructor-page .course-qna-message-student {
  justify-self: start;
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  border-radius: 10px 10px 10px 3px;
}
.course-qna-instructor-page .course-qna-message-instructor {
  justify-self: end;
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  border-radius: 10px 10px 3px;
}
.course-qna-instructor-reply { background: #fff; }
.course-qna-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fbfdfb;
  border-top: 1px solid var(--line);
}
.course-qna-status-actions form,
.course-qna-public-actions form { margin: 0; }
.course-qna-status-actions .button { min-height: 38px; padding: 8px 12px; }
.course-qna-instructor-public { display: grid; gap: 16px; }
.course-qna-public-form,
.course-qna-public-list-card { min-width: 0; }
.course-qna-public-form .course-qna-form {
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
  align-items: start;
}
.course-qna-public-form .course-qna-form-actions { grid-column: 1 / -1; }
.course-qna-public-form textarea { min-height: 126px; }
.course-qna-public-list-card .course-qna-card-heading { align-items: center; }
.course-qna-public-list-card .course-qna-card-heading > .course-qna-tab-count { margin-left: auto; }
.course-qna-public-answer { grid-template-columns: 34px minmax(0, 1fr); }
.course-qna-public-answer > div { min-width: 0; }
.course-qna-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.course-qna-public-actions .button { min-height: 38px; padding: 8px 12px; }
.course-qna-public-answer.is-editing {
  display: block;
  padding: 20px;
  background: #fbfdfb;
}
.course-qna-public-edit-form {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 16px;
}
.course-qna-public-edit-field { min-width: 0; }
.course-qna-public-edit-field input,
.course-qna-public-edit-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-color: #bcd9c5;
  background: #fff;
}
.course-qna-public-edit-field textarea { min-height: 150px; }
.course-qna-public-edit-actions {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.course-qna-instructor-empty { margin-top: 0; }

.dictionary-student-intro,
.dictionary-filter-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dictionary-student-intro {
  margin: 22px 0 16px;
}

.dictionary-student-intro h3 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.dictionary-student-intro p {
  margin: 0;
  color: var(--muted);
}

.dictionary-points-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--green-dark);
  background: var(--surface-soft);
  border: 1px solid #b9d9c4;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.dictionary-points-total strong {
  font-size: 1.1rem;
}

.dictionary-practice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 18px;
  padding: 18px;
  background: #f3faf4;
  border: 1px solid #b9d9c4;
  border-radius: var(--radius);
}

.dictionary-practice-panel h3,
.dictionary-practice-panel p {
  margin: 0;
}

.dictionary-practice-panel h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.dictionary-practice-panel > div > p:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.dictionary-practice-availability {
  margin-top: 10px !important;
  color: var(--green-dark) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.dictionary-practice-launcher {
  display: grid;
  grid-template-columns: minmax(155px, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 405px;
}

.dictionary-practice-launcher label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.dictionary-practice-launcher select {
  min-height: 40px;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.dictionary-practice-actions {
  display: flex;
  gap: 8px;
}

.dictionary-practice-actions .button i { margin-right: 6px; }

.practice-hero {
  margin-bottom: 20px;
}

.compact-practice-hero {
  padding-top: 24px;
  padding-bottom: 24px;
}

.dictionary-practice-course-mobile {
  display: none;
}

.dictionary-practice-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.dictionary-practice-filter-links a {
  padding: 8px 11px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.dictionary-practice-filter-links a.active,
.dictionary-practice-filter-links a:hover {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.dictionary-practice-question-card,
.dictionary-practice-result-card {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dictionary-practice-question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.dictionary-practice-prompt {
  color: var(--green-dark);
  font-size: 2.2rem;
  line-height: 1.2;
}

.dictionary-practice-question-card > p {
  margin: -6px 0 0;
  color: var(--muted);
}

.dictionary-writing-form,
.dictionary-choice-form {
  display: grid;
  gap: 18px;
}

.dictionary-writing-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.dictionary-writing-form input[type="text"] {
  min-height: 50px;
  padding: 11px 13px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #91bca0;
  border-radius: 9px;
  font: inherit;
  font-size: 1.12rem;
}

.dictionary-choice-list {
  display: grid;
  gap: 10px;
}

.dictionary-choice-list label {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.dictionary-choice-list label:has(input:checked) {
  background: #edf9f0;
  border-color: var(--green);
}

.dictionary-choice-list input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.dictionary-choice-list span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--green-dark);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.78rem;
}

.dictionary-practice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dictionary-practice-empty {
  max-width: 660px;
  margin: 26px auto;
}

.dictionary-practice-result-card {
  max-width: 660px;
  margin: 0 auto 18px;
}

.dictionary-practice-result-points-icon {
  display: none;
}

.dictionary-practice-result-points-copy {
  display: contents;
}

.dictionary-practice-result-card.correct {
  border-color: #8ac6a0;
}

.dictionary-practice-result-card.incorrect {
  border-color: #e6c17e;
}

.dictionary-practice-result-card h3,
.dictionary-practice-result-card p {
  margin: 0;
}

.dictionary-practice-result-card.correct h3 { color: #11643b; }
.dictionary-practice-result-card.incorrect h3 { color: #92500a; }

.dictionary-practice-result-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dictionary-practice-result-info-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dictionary-practice-result-info-icon {
  display: none;
}

.dictionary-practice-result-info-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dictionary-practice-result-info-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.dictionary-practice-result-info-item strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dictionary-result-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 660px;
  margin: 0 auto;
}

.dictionary-result-status-card h3,
.dictionary-result-status-card p {
  margin: 0;
}

.dictionary-result-status-card h3 { margin-bottom: 6px; font-size: 1rem; }
.dictionary-result-status-card p:last-child { color: var(--muted); font-size: 0.9rem; }
.practice-status-form { justify-content: flex-end; }
.dictionary-result-status-message { flex: 1 0 100%; margin: 0; }

.dictionary-coming-soon {
  max-width: 310px;
  padding: 10px 12px;
  color: var(--green-dark) !important;
  background: var(--surface-soft);
  border: 1px solid #b9d9c4;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.dictionary-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dictionary-stats article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dictionary-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.dictionary-stats strong {
  color: var(--green-dark);
  font-size: 1.8rem;
}

.dictionary-stat-unknown strong { color: #64748b; }
.dictionary-stat-learning strong { color: #c06b12; }
.dictionary-stat-review strong { color: #1769aa; }
.dictionary-stat-known strong { color: #167444; }

.dictionary-notice { margin: 0 0 18px; }

.dictionary-filter-card {
  margin-bottom: 20px;
}

.dictionary-student-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 1fr));
  align-items: end;
  gap: 12px;
  flex: 1;
}

.dictionary-student-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.dictionary-student-filters input,
.dictionary-student-filters select {
  min-height: 42px;
  padding: 9px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.dictionary-filter-actions {
  display: flex;
  gap: 8px;
}

.dictionary-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.dictionary-results-toolbar > div { display: grid; gap: 3px; }
.dictionary-results-toolbar p,
.dictionary-results-toolbar strong { margin: 0; }
.dictionary-results-toolbar p { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.dictionary-results-toolbar strong { color: var(--text); font-size: 0.95rem; }

.dictionary-view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dictionary-view-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dictionary-view-button:hover,
.dictionary-view-button.active {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.dictionary-view-button:focus-visible {
  outline: 3px solid rgba(31, 143, 95, 0.28);
  outline-offset: 2px;
}

.student-dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.student-dictionary-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 252px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.student-dictionary-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.student-dictionary-card h3,
.student-dictionary-card p { margin: 0; }
.dictionary-card-copy { min-width: 0; }
.dictionary-word-heading { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.dictionary-word-heading h3,
.dictionary-word-heading strong { overflow-wrap: anywhere; }
.pronounce-word-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.pronounce-word-button:hover,
.pronounce-word-button:focus-visible,
.pronounce-word-button.is-speaking { border-color: var(--green); background: var(--surface-soft); color: var(--green); }
.pronounce-word-button:active { transform: scale(0.94); }
.pronounce-word-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pronounce-word-button:disabled { cursor: default; opacity: 0.55; }
.student-dictionary-card h3 { color: var(--text); font-size: 1.28rem; line-height: 1.2; }
.student-dictionary-card-heading p { margin-top: 5px; color: var(--green-dark); font-size: 1rem; font-weight: 600; }

.dictionary-example,
.dictionary-note {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.dictionary-card-snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dictionary-entry-details,
.dictionary-tag-list,
.dictionary-status-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.dictionary-entry-details { margin-top: auto; }

.dictionary-level-badge,
.dictionary-tag-list span,
.dictionary-lesson-link,
.student-dictionary-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.dictionary-level-badge { color: #0c5f9d; background: #e8f4fc; }
.dictionary-tag-list span { color: #5c4c17; background: #fff7d8; }
.dictionary-lesson-link { color: var(--green-dark); background: var(--surface-soft); }
.dictionary-lesson-link i { margin-right: 4px; }
.dictionary-unlinked-lesson { color: var(--muted); font-size: 0.82rem; }
.student-dictionary-status.status-unknown { color: #475569; background: #eef2f6; }
.student-dictionary-status.status-learning { color: #92500a; background: #fff0d5; }
.student-dictionary-status.status-review { color: #0f5f99; background: #e4f2ff; }
.student-dictionary-status.status-known { color: #11643b; background: #ddf5e5; }

.dictionary-status-form {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.dictionary-status-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.dictionary-status-form.compact {
  padding-top: 2px;
  border-top: 0;
}

.dictionary-status-form button {
  min-height: 32px;
  padding: 6px 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.dictionary-status-form button:hover,
.dictionary-status-form button.active {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.dictionary-table-card { padding: 0; overflow: hidden; }
.dictionary-table-wrap { overflow-x: auto; }

.student-dictionary-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.student-dictionary-table th,
.student-dictionary-table td {
  padding: 14px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.student-dictionary-table th {
  color: var(--muted);
  background: #f8fbf8;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.student-dictionary-table td small {
  display: block;
  max-width: 230px;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.dictionary-status-form.compact {
  min-width: 220px;
  flex-wrap: nowrap;
}

.dictionary-status-form.compact button {
  padding: 5px 6px;
  font-size: 0.7rem;
}

.dictionary-empty-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 18px;
  text-align: center;
}

.dictionary-empty-state h3,
.dictionary-empty-state p { margin: 0; }

.dictionary-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green-dark);
  background: var(--surface-soft);
  border-radius: 50%;
  font-size: 1.15rem;
}

@media (max-width: 1200px) {
  .course-qna-instructor-layout {
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  }

  .course-qna-publish-card {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .marketplace-hero,
  .marketplace-filters,
  .course-landing-hero,
  .course-detail-layout,
  .learn-hero,
  .learn-layout,
  .lesson-display-layout,
  .learn-word-list,
  .dictionary-stats,
  .student-dictionary-grid,
  .check-list,
  .audience-grid,
  .knowledge-check-layout {
    grid-template-columns: 1fr;
  }

  .course-qna-layout {
    grid-template-columns: 1fr;
  }

  .course-qna-chat-layout {
    grid-template-columns: 1fr;
  }

  .course-qna-chat-sidebar {
    max-height: none;
  }

  .course-qna-student-thread-list {
    max-height: 340px;
  }

  .course-qna-conversation {
    min-height: 440px;
  }

  .course-qna-public-card {
    position: static;
  }

  .course-qna-instructor-layout {
    grid-template-columns: 1fr;
  }

  .course-qna-public-form .course-qna-form { grid-template-columns: 1fr; }

  .course-qna-public-form .course-qna-form-actions { grid-column: auto; }

  .knowledge-check-sidebar { position: static; }

  .filter-actions,
  .course-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .lesson-sidebar-accordion.is-enhanced { height: auto; max-height: none; overflow: visible; }

  .lesson-sidebar-accordion.is-enhanced .sidebar-accordion-section.is-open .sidebar-accordion-content { max-height: 360px; }

  .course-qna-conversation-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .course-qna-thread-list,
  .course-qna-message-list {
    max-height: 280px;
  }

  .course-qna-instructor-messages { min-height: 220px; }

  .dictionary-student-intro,
  .dictionary-filter-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dictionary-student-filters {
    grid-template-columns: 1fr 1fr;
  }

  .dictionary-practice-panel,
  .dictionary-result-status-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dictionary-practice-launcher {
    min-width: 0;
  }

  .practice-status-form {
    justify-content: flex-start;
  }

  .dictionary-results-toolbar { align-items: flex-end; }
}

@media (max-width: 620px) {
  .course-qna-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .course-qna-tab {
    justify-content: center;
    padding-inline: 10px;
  }

  .course-qna-chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-qna-accordion-button {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-inline: 12px;
  }

  .course-qna-accordion-answer {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .course-qna-form-footer,
  .course-qna-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .course-qna-form-actions,
  .course-qna-form-actions .button {
    width: 100%;
  }

  .course-qna-form-actions .button {
    justify-content: center;
  }

  .course-qna-conversation {
    min-height: 380px;
  }

  .course-qna-chat-empty {
    min-height: 340px;
  }

  .course-qna-instructor-header { align-items: stretch; flex-direction: column; }

  .course-qna-instructor-summary { min-width: 0; }

  .course-qna-reply-form { grid-template-columns: 1fr; align-items: stretch; }

  .course-qna-reply-form .button,
  .course-qna-status-actions .button,
  .course-qna-public-form .button,
  .course-qna-public-actions .button,
  .course-qna-public-edit-actions .button { width: 100%; justify-content: center; }

  .course-qna-status-actions,
  .course-qna-public-actions,
  .course-qna-public-edit-actions { align-items: stretch; flex-direction: column; }

  .course-qna-status-actions form,
  .course-qna-public-actions form { width: 100%; }

  .course-qna-thread-detail-header { align-items: flex-start; flex-direction: column; }

  .knowledge-check-header h2 { font-size: 26px; }

  .knowledge-question-card,
  .knowledge-result-item { padding: 16px; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; }

  .knowledge-question-number { width: 30px; height: 30px; }

  .answer-grid,
  .true-false-grid,
  .knowledge-answer-feedback { grid-template-columns: 1fr; }

  .fill-blank-sentence { align-items: center; }

  .fill-blank-sentence input { width: 100%; }

  .knowledge-submit-row { align-items: stretch; }

  .knowledge-submit-row .button { width: 100%; justify-content: center; }

  .knowledge-result-heading { align-items: stretch; flex-direction: column; }

  .dictionary-student-filters {
    grid-template-columns: 1fr;
  }

  .dictionary-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dictionary-practice-launcher {
    grid-template-columns: 1fr;
  }

  .dictionary-practice-actions,
  .dictionary-practice-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .dictionary-practice-question-card,
  .dictionary-practice-result-card {
    padding: 20px;
  }

  .dictionary-practice-prompt {
    font-size: 1.8rem;
  }

  .dictionary-practice-result-card dl {
    grid-template-columns: 1fr;
  }

  .dictionary-results-toolbar { align-items: center; }
}

@media (max-width: 420px) {
  .dictionary-practice-actions {
    flex-direction: column;
  }
}

/* Student course materials */
.material-filter-card { padding: 18px; }
.material-filter-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 14px; }
.material-filter-form label { display: grid; gap: 7px; color: #405049; font-size: .83rem; font-weight: 600; }
.material-filter-actions { display: flex; gap: 8px; }
.material-results-toolbar { margin-top: 22px; }
.student-material-folders { display: grid; gap: 12px; }
.student-material-folder { --folder-accent: #197d4a; --folder-soft: #edf8f0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--folder-accent); border-radius: 10px; box-shadow: 0 8px 24px rgba(22, 70, 42, .045); }
.student-material-folder.folder-color-blue { --folder-accent: #2f6fbc; --folder-soft: #edf4fc; }
.student-material-folder.folder-color-purple { --folder-accent: #7454a6; --folder-soft: #f3effa; }
.student-material-folder.folder-color-orange { --folder-accent: #b96516; --folder-soft: #fff3e7; }
.student-material-folder.folder-color-gray { --folder-accent: #66716a; --folder-soft: #f0f3f1; }
.student-material-folder-header { display: grid; width: 100%; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.student-material-folder-header:hover { background: #f8fbf9; }
.student-material-folder-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--folder-accent); background: var(--folder-soft); border-radius: 8px; }
.student-material-folder-copy { display: grid; min-width: 0; gap: 3px; }
.student-material-folder-copy strong,
.student-material-folder-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-material-folder-copy small { color: var(--muted); font-size: .82rem; }
.student-material-folder-meta { display: flex; align-items: center; gap: 12px; }
.student-material-folder-meta em { padding: 5px 9px; color: var(--folder-accent); background: var(--folder-soft); border-radius: 999px; font-size: .76rem; font-style: normal; white-space: nowrap; }
.student-material-folder-meta > i { color: var(--muted); font-size: .8rem; transition: transform .2s ease; }
.student-material-folder.is-open .student-material-folder-meta > i { transform: rotate(180deg); }
.student-material-folder-content { padding: 14px; background: #fbfdfb; border-top: 1px solid var(--line); }
.student-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.student-material-card { display: grid; grid-template-rows: 142px 1fr auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.student-material-visual { display: grid; place-items: center; gap: 8px; min-height: 142px; color: var(--green-dark); background: #edf8f0; font-size: 2rem; }
.student-material-visual span { font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.student-material-visual.material-type-pdf { color: #b42318; background: #fff1f0; }
.student-material-visual.material-type-document { color: #175cd3; background: #eff6ff; }
.student-material-visual.material-type-presentation { color: #c4320a; background: #fff4ed; }
.student-material-visual.material-type-spreadsheet { color: #067647; background: #ecfdf3; }
.student-material-visual img { width: 100%; height: 100%; object-fit: cover; }
.student-material-card-copy { display: grid; gap: 10px; padding: 16px; }
.student-material-card-copy h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.student-material-card-copy p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.material-file-type { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #587064; font-size: .76rem; font-weight: 600; }
.material-file-type i { color: var(--green-dark); }
.student-material-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; align-self: end; color: #607069; font-size: .77rem; }
.student-material-meta i { color: var(--green-dark); }
.student-material-card-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.student-material-card-actions .button { flex: 1; justify-content: center; }
.material-table-card { padding: 0; overflow: hidden; }
.material-table-wrap { overflow-x: auto; }
.student-material-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.student-material-table th,
.student-material-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.student-material-table th { color: var(--muted); background: #fbfdfb; font-size: .74rem; text-transform: uppercase; }
.student-material-table td { color: #44534c; font-size: .86rem; }
.student-material-table tr:last-child td { border-bottom: 0; }
.student-material-table td:first-child { min-width: 190px; color: var(--text); }
.student-material-table td:first-child strong,
.student-material-table td:first-child small { display: block; }
.student-material-table td:first-child small { margin-top: 4px; color: var(--muted); }
.student-material-actions { display: flex; gap: 6px; }
.material-empty-state { margin-top: 18px; }

@media (max-width: 900px) {
  .student-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .material-filter-form { grid-template-columns: 1fr; }
  .material-filter-actions { align-items: stretch; flex-direction: column; }
  .student-material-folder-header { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .student-material-folder-icon { width: 38px; height: 38px; }
  .student-material-folder-meta em { display: none; }
  .student-material-folder-content { padding: 9px; }
  .student-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .student-material-card { grid-template-rows: 100px 1fr auto; }
  .student-material-visual { min-height: 100px; }
  .student-material-card-copy { gap: 7px; padding: 11px; }
  .student-material-card-actions { align-items: stretch; flex-direction: column; gap: 5px; padding: 0 11px 11px; }
  .student-material-card-actions .button { width: 100%; padding-inline: 7px; font-size: .72rem; }
}

@media (max-width: 380px) {
  .student-material-grid { grid-template-columns: 1fr; }
}

/* Knowledge check instruction media */
.knowledge-check-media-panel { display: grid; gap: 18px; margin-top: 20px; }
.knowledge-check-media-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.knowledge-check-media-heading .eyebrow { margin: 0 0 5px; }
.knowledge-check-media-heading h3 { margin: 0; }
.knowledge-check-media-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); }
.knowledge-check-media-upload { display: grid; gap: 14px; padding: 16px; background: #f8fbf8; border: 1px solid #dceadf; border-radius: 8px; }
.knowledge-check-media-upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.knowledge-check-media-upload-actions small { color: var(--muted); line-height: 1.5; }
.knowledge-check-media-notice { margin: 0; padding: 10px 12px; color: #176a45; background: #edf9f0; border: 1px solid #bde0c8; border-radius: 7px; font-weight: 500; }
.knowledge-check-media-empty { margin: 0; padding: 16px; color: var(--muted); border: 1px dashed #c9ddd0; border-radius: 8px; text-align: center; }
.knowledge-check-media-list { display: grid; gap: 10px; }
.knowledge-check-media-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.knowledge-check-media-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--green-dark); background: #eaf7ed; border-radius: 8px; }
.knowledge-check-media-thumbnail { width: 40px; height: 40px; object-fit: cover; border: 1px solid #d6e9dc; border-radius: 8px; background: #f8fbf8; }
.knowledge-check-media-copy { display: grid; min-width: 0; gap: 4px; }
.knowledge-check-media-copy strong { overflow-wrap: anywhere; }
.knowledge-check-media-copy span, .knowledge-check-media-copy p { margin: 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.knowledge-check-media-actions { display: flex; align-items: center; gap: 7px; }
.knowledge-check-media-actions form { margin: 0; }

@media (max-width: 620px) {
  .knowledge-check-media-upload-actions { align-items: stretch; flex-direction: column; }
  .knowledge-check-media-upload-actions .button { width: 100%; justify-content: center; }
  .knowledge-check-media-item { grid-template-columns: 40px minmax(0, 1fr); }
  .knowledge-check-media-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Marketplace mobile app view */
.marketplace-mobile-filter-button,
.marketplace-filter-overlay,
.marketplace-filter-sheet {
  display: none;
}

@media (max-width: 768px) {
  .marketplace-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 4px 0 2px;
  }

  .marketplace-hero > div:first-child {
    grid-column: 1 / -1;
  }

  .marketplace-hero h2 {
    max-width: 22ch;
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.1;
  }

  .marketplace-hero p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .marketplace-summary {
    display: inline-flex;
    min-height: 44px;
    place-items: initial;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    box-shadow: none;
    text-align: left;
  }

  .marketplace-summary strong {
    font-size: 1.15rem;
  }

  .marketplace-summary span {
    max-width: 13ch;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .marketplace-mobile-filter-button {
    position: sticky;
    z-index: 30;
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 13px;
    color: #ffffff;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 97, 63, 0.18);
    cursor: pointer;
    font-weight: 500;
  }

  .marketplace-active-filter-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
  }

  .marketplace-desktop-filters {
    display: none;
  }

  .marketplace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .marketplace-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(22, 44, 30, 0.07);
  }

  .marketplace-card .course-thumb {
    min-height: 100%;
    grid-row: 1;
    background:
      linear-gradient(145deg, rgba(18, 97, 63, 0.98), rgba(31, 143, 95, 0.75)),
      repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 16px);
  }

  .marketplace-card .course-thumb span {
    width: 58px;
    height: 58px;
    border-width: 1px;
  }

  .marketplace-card .course-thumb .fi {
    width: 36px;
    height: 25px;
  }

  .marketplace-card .course-card-body {
    gap: 7px;
    padding: 13px 13px 12px;
  }

  .marketplace-card .course-card-meta {
    gap: 7px;
    font-size: 0.72rem;
  }

  .marketplace-card .status-pill {
    padding: 4px 8px;
  }

  .marketplace-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .marketplace-card .marketplace-course-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .marketplace-card .course-mini-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .marketplace-card .course-mini-facts div:first-child {
    grid-column: 1 / -1;
  }

  .marketplace-card .course-mini-facts dt {
    font-size: 0.65rem;
  }

  .marketplace-card .course-mini-facts dd {
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketplace-card .course-card-footer {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
    padding: 11px 13px;
  }

  .marketplace-card .course-card-footer strong {
    font-size: 1.12rem;
  }

  .marketplace-card .course-card-footer .button {
    min-height: 42px;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .marketplace-filter-overlay {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: block;
    opacity: 0;
    background: rgba(10, 25, 16, 0.48);
    transition: opacity 0.2s ease;
  }

  .marketplace-filter-overlay[hidden] {
    display: none;
  }

  .marketplace-filter-overlay.is-open {
    opacity: 1;
  }

  .marketplace-filter-sheet {
    position: fixed;
    z-index: 115;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-height: min(88dvh, 680px);
    padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 48px rgba(12, 35, 21, 0.18);
    transform: translateY(105%);
    transition: transform 0.22s ease;
  }

  .marketplace-filter-sheet.is-open {
    transform: translateY(0);
  }

  .marketplace-filter-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    background: #cad6cd;
    border-radius: 999px;
  }

  .marketplace-filter-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .marketplace-filter-sheet-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
  }

  .marketplace-filter-sheet-close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--green-dark);
    background: #f5f8f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
  }

  .marketplace-mobile-filters {
    display: grid;
    gap: 15px;
  }

  .marketplace-mobile-filters label {
    display: grid;
    gap: 7px;
    color: #34453a;
    font-size: 0.84rem;
    font-weight: 500;
  }

  .marketplace-mobile-filters input,
  .marketplace-mobile-filters select {
    width: 100%;
    min-height: 48px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .marketplace-mobile-filters input {
    padding: 10px 12px 10px 40px;
  }

  .marketplace-mobile-filters select {
    padding: 10px 12px;
  }

  .marketplace-filter-control {
    position: relative;
    display: block;
  }

  .marketplace-filter-control i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: var(--muted);
    transform: translateY(-50%);
  }

  .marketplace-mobile-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    margin-top: 4px;
  }

  .marketplace-mobile-filter-actions .button {
    min-height: 48px;
    justify-content: center;
  }

  .empty-state {
    padding: 22px 18px;
  }
}

@media (max-width: 390px) {
  .marketplace-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .marketplace-card .course-card-body {
    padding-inline: 11px;
  }

  .marketplace-mobile-filter-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile dictionary practice workspace */
@media (max-width: 768px) {
  .dictionary-practice-page .content-area {
    padding-top: 12px;
  }

  .dictionary-practice-mobile {
    display: block;
    max-width: 100%;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-header {
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 2px 0 12px;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-header .dictionary-practice-course-label {
    margin: 0 0 5px;
    color: var(--green-dark);
    font-size: 0.69rem;
    font-weight: 500;
    text-transform: uppercase;
  }

  .dictionary-practice-course-desktop {
    display: none;
  }

  .dictionary-practice-course-mobile {
    display: inline;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-header .dictionary-practice-title {
    margin: 0;
    font-size: clamp(1.55rem, 7vw, 2rem);
    font-weight: 600;
    line-height: 1.08;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-header .dictionary-practice-filter-copy {
    display: block;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-points-card {
    display: grid;
    min-height: 90px;
    place-items: center;
    align-content: center;
    gap: 1px;
    padding: 9px 7px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(22, 44, 30, 0.05);
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-points-card span,
  .dictionary-practice-page.student-mobile-page .dictionary-practice-points-card small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-points-card strong {
    color: var(--green-dark);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.05;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-tabs {
    margin-bottom: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .dictionary-practice-filter-chips {
    width: auto;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 -16px 10px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dictionary-practice-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .dictionary-practice-filter-chips a {
    min-height: 36px;
    flex: 0 0 auto;
    align-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .dictionary-practice-card {
    gap: 11px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 9px 24px rgba(22, 44, 30, 0.055);
  }

  .dictionary-practice-card .dictionary-practice-question-heading {
    min-height: 24px;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .dictionary-practice-card .student-dictionary-status {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .dictionary-practice-card .dictionary-practice-prompt {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    font-weight: 600;
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .dictionary-practice-card .dictionary-practice-prompt.is-long {
    font-size: 1.55rem;
  }

  .dictionary-practice-card .dictionary-practice-prompt.is-very-long {
    font-size: 1.3rem;
  }

  .dictionary-practice-card > p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .dictionary-writing-form,
  .dictionary-choice-form {
    gap: 10px;
  }

  .dictionary-practice-input-label {
    gap: 0;
  }

  .dictionary-practice-input-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dictionary-writing-form .dictionary-practice-input {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .dictionary-practice-options {
    gap: 7px;
  }

  .dictionary-practice-options .dictionary-practice-option {
    min-height: 46px;
    grid-template-columns: 19px 25px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .dictionary-practice-option input {
    width: 17px;
    height: 17px;
    min-height: 17px;
  }

  .dictionary-practice-option .dictionary-practice-option-letter {
    width: 25px;
    height: 25px;
    font-size: 0.72rem;
    font-weight: 500;
  }

  .dictionary-practice-option strong {
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .dictionary-practice-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dictionary-practice-buttons .button {
    min-height: 43px;
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .dictionary-notice.is-ajax {
    position: fixed;
    z-index: 90;
    top: 76px;
    right: 14px;
    left: 14px;
    margin: 0;
    box-shadow: 0 12px 30px rgba(22, 44, 30, 0.14);
  }

  .dictionary-notice.is-error {
    color: #8e2525;
    background: #fff2f2;
    border-color: #efc2c2;
  }
}

@media (max-width: 390px) {
  .dictionary-practice-page.student-mobile-page .dictionary-practice-header {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .dictionary-practice-page.student-mobile-page .dictionary-practice-points-card {
    min-height: 82px;
  }

  .dictionary-practice-card {
    padding: 13px;
  }

  .dictionary-practice-options .dictionary-practice-option {
    min-height: 43px;
    padding-block: 7px;
  }
}

/* Student course mobile experience */
.mobile-course-lessons,
.dictionary-mobile-controls {
  display: none;
}

@media (max-width: 768px) {
  .student-mobile-page .learn-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border-radius: 0;
  }

  .student-mobile-page .learn-hero .eyebrow {
    margin-bottom: 5px;
    color: var(--green-dark);
    font-size: 0.7rem;
  }

  .student-mobile-page .learn-hero h2 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .student-mobile-page .learn-hero > div:first-child > p:not(.eyebrow) {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .student-mobile-page .mobile-lessons-hero .learn-progress-card {
    display: none;
  }

  .student-mobile-page .mobile-lessons-hero > div:first-child > p:not(.eyebrow) {
    display: none;
  }

  .student-mobile-page .dictionary-learn-hero .learn-progress-card {
    display: grid;
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) auto;
    place-items: initial;
    align-items: center;
    gap: 2px 12px;
    padding: 12px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #12613f, #1f9a61);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 97, 63, 0.16);
  }

  .student-mobile-page .dictionary-learn-hero .learn-progress-card span {
    align-self: end;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 500;
  }

  .student-mobile-page .dictionary-learn-hero .learn-progress-card strong {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding: 4px 9px;
    color: var(--green-dark);
    background: #ffffff;
    border-radius: 7px;
    font-size: 1rem;
    line-height: 1;
  }

  .student-mobile-page .dictionary-learn-hero .learn-progress-card small {
    align-self: start;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    font-weight: 400;
  }

  .student-mobile-page .lesson-hero .learn-progress-card {
    display: grid;
    min-height: 58px;
    grid-template-columns: 1fr auto;
    place-items: initial;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .student-mobile-page .lesson-hero .learn-progress-card strong {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 1.25rem;
  }

  .student-mobile-page .lesson-hero .learn-progress-card span,
  .student-mobile-page .lesson-hero .learn-progress-card small {
    font-size: 0.72rem;
    font-weight: 400;
  }

  .student-mobile-page .learn-tabs {
    position: sticky;
    z-index: 45;
    top: 64px;
    display: flex;
    width: auto;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 -16px 18px;
    padding: 8px 16px;
    overflow-x: auto;
    background: rgba(245, 247, 243, 0.97);
    border-top: 1px solid rgba(219, 229, 220, 0.7);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .student-mobile-page .learn-tabs::-webkit-scrollbar {
    display: none;
  }

  .student-mobile-page .learn-tabs a {
    min-height: 38px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .mobile-course-lessons {
    display: grid;
    gap: 12px;
  }

  .desktop-course-lessons {
    display: none;
  }

  .mobile-course-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
  }

  .mobile-course-section-heading h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
  }

  .mobile-course-section-heading > span {
    padding: 5px 8px;
    color: var(--green-dark);
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .mobile-module-list {
    display: grid;
    gap: 10px;
  }

  .mobile-module-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(22, 44, 30, 0.05);
  }

  .mobile-module-card summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
  }

  .mobile-module-card summary::-webkit-details-marker {
    display: none;
  }

  .mobile-module-card[open] summary {
    color: var(--green-dark);
    background: #fbfdfb;
    border-bottom: 1px solid var(--line);
  }

  .mobile-module-heading {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-module-heading small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 400;
    text-transform: uppercase;
  }

  .mobile-module-heading strong {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .mobile-module-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.68rem;
  }

  .mobile-module-meta i {
    transition: transform 0.18s ease;
  }

  .mobile-module-card[open] .mobile-module-meta i {
    transform: rotate(180deg);
  }

  .mobile-module-content {
    display: grid;
    gap: 10px;
    padding: 11px;
  }

  .mobile-module-content > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .mobile-lesson-list {
    display: grid;
    gap: 7px;
  }

  .mobile-lesson-item {
    display: grid;
    min-height: 62px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #e1e8e2;
    border-radius: 8px;
  }

  .mobile-lesson-item.is-next {
    color: var(--green-dark);
    background: #f5fbf7;
    border-color: #80bea0;
  }

  .mobile-lesson-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--green-dark);
    background: var(--surface-soft);
    border-radius: 50%;
    font-size: 0.72rem;
  }

  .mobile-lesson-item.is-next .mobile-lesson-icon {
    color: #ffffff;
    background: var(--green);
  }

  .mobile-lesson-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-lesson-copy strong {
    overflow-wrap: anywhere;
    font-size: 0.79rem;
    font-weight: 500;
    line-height: 1.3;
  }

  .mobile-lesson-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 400;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .mobile-lesson-state {
    padding: 4px 7px;
    color: var(--green-dark);
    background: #e8f6ec;
    border-radius: 999px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .mobile-module-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
  }

  .student-mobile-page .lesson-display-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .student-mobile-page .lesson-content-card {
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .student-mobile-page .lesson-video-frame {
    margin: -3px -3px 2px;
  }

  .student-mobile-page .lesson-sidebar.lesson-sidebar-accordion {
    gap: 9px;
  }

  .student-mobile-page .sidebar-accordion-section {
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(22, 44, 30, 0.045);
  }

  .student-mobile-page .sidebar-accordion-header {
    min-height: 50px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 0.84rem;
  }

  .student-mobile-page .sidebar-accordion-content {
    padding: 11px 12px 13px;
  }

  .dictionary-student-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
    margin: 14px 0 12px;
  }

  .dictionary-student-intro h3 {
    margin-bottom: 4px;
    font-size: 1.02rem;
    font-weight: 600;
  }

  .dictionary-student-intro p:not(.eyebrow) {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .dictionary-points-total {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .dictionary-points-total strong {
    font-size: 0.84rem;
  }

  .dictionary-practice-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    background: #f5fbf7;
    border-radius: 8px;
  }

  .dictionary-practice-panel .eyebrow {
    margin-bottom: 3px;
    font-size: 0.66rem;
  }

  .dictionary-practice-panel h3 {
    margin-bottom: 4px;
    font-size: 0.98rem;
    font-weight: 600;
  }

  .dictionary-practice-panel > div > p:last-child {
    font-size: 0.75rem;
  }

  .dictionary-practice-availability {
    display: none;
  }

  .dictionary-practice-launcher {
    display: grid;
    min-width: 0;
    grid-template-columns: 82px repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .dictionary-practice-launcher label {
    display: block;
    min-width: 0;
    font-size: 0;
  }

  .dictionary-practice-launcher select {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .dictionary-practice-actions {
    display: contents;
  }

  .dictionary-practice-actions .button {
    min-height: 40px;
    justify-content: center;
    padding: 8px 9px;
    font-size: 0.72rem;
  }

  .dictionary-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 11px;
  }

  .dictionary-stats article {
    min-height: 67px;
    gap: 3px;
    padding: 8px 7px;
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(22, 44, 30, 0.045);
  }

  .dictionary-stats span {
    overflow: hidden;
    font-size: 0.6rem;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dictionary-stats strong {
    font-size: 1.15rem;
  }

  .dictionary-notice {
    margin-bottom: 11px;
  }

  .dictionary-desktop-filter-card {
    display: none;
  }

  .dictionary-mobile-controls {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
  }

  .dictionary-mobile-search {
    position: relative;
    min-width: 0;
  }

  .dictionary-mobile-search > i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    transform: translateY(-50%);
  }

  .dictionary-mobile-search input {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px 9px 34px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.79rem;
  }

  .dictionary-mobile-filter-panel {
    position: static;
  }

  .dictionary-mobile-filter-panel > summary {
    position: relative;
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    color: var(--green-dark);
    background: #ffffff;
    border: 1px solid #b9d9c4;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 500;
    list-style: none;
  }

  .dictionary-mobile-filter-panel > summary::-webkit-details-marker {
    display: none;
  }

  .dictionary-mobile-filter-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
  }

  .dictionary-mobile-filter-form {
    position: absolute;
    z-index: 50;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: grid;
    gap: 11px;
    padding: 13px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 41, 25, 0.16);
  }

  .dictionary-mobile-filter-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.7rem;
  }

  .dictionary-mobile-filter-form select {
    width: 100%;
    min-height: 41px;
    padding: 7px 9px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
  }

  .dictionary-mobile-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dictionary-mobile-filter-actions .button {
    min-height: 41px;
    justify-content: center;
    padding: 8px;
    font-size: 0.72rem;
  }

  .dictionary-results-toolbar {
    display: none;
  }

  .student-dictionary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-dictionary-card {
    min-height: 0;
    gap: 9px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(22, 44, 30, 0.05);
  }

  .student-dictionary-card-heading {
    gap: 9px;
  }

  .student-dictionary-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
  }

  .student-dictionary-card-heading p {
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 500;
  }

  .student-dictionary-card .pronounce-word-button {
    width: 29px;
    height: 29px;
    background: #f1f9f3;
    border-color: #cfe5d5;
    font-size: 0.72rem;
  }

  .student-dictionary-card .student-dictionary-status {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.67rem;
  }

  .dictionary-example,
  .dictionary-note {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .dictionary-card-snippet {
    -webkit-line-clamp: 2;
  }

  .dictionary-entry-details {
    margin-top: 0;
  }

  .dictionary-level-badge,
  .dictionary-tag-list span,
  .dictionary-lesson-link {
    min-height: 23px;
    padding: 3px 7px;
    font-size: 0.66rem;
  }

  .dictionary-status-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-top: 9px;
  }

  .dictionary-status-label {
    grid-column: 1 / -1;
    font-size: 0.66rem;
    font-weight: 400;
  }

  .dictionary-status-form button {
    min-width: 0;
    min-height: 31px;
    padding: 5px 3px;
    overflow: hidden;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .mobile-lesson-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .mobile-lesson-state {
    display: none;
  }

  .dictionary-practice-actions .button {
    font-size: 0.67rem;
  }

  .dictionary-stats article {
    padding-inline: 5px;
  }
}

/* Mobile dictionary practice results */
@media (max-width: 768px) {
  .dictionary-practice-result-page .content-area {
    padding-top: 12px;
  }

  .dictionary-practice-result {
    display: grid;
    gap: 10px;
    max-width: 100%;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0;
    padding: 2px 0 0;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-course {
    margin: 0 0 3px;
    color: var(--green-dark);
    font-size: 0.67rem;
    font-weight: 500;
    text-transform: uppercase;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.08;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-subtitle {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.25;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-card {
    display: grid;
    min-height: 78px;
    grid-template-columns: 48px minmax(0, 1fr);
    place-items: initial;
    align-items: center;
    align-content: initial;
    gap: 12px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(22, 44, 30, 0.055);
  }

  .dictionary-practice-result-points-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--green-dark);
    background: #edf8f0;
    border-radius: 50%;
    font-size: 1.25rem;
  }

  .dictionary-practice-result-points-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 1px 9px;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-copy span,
  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-copy small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.25;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-copy span {
    grid-column: 1 / -1;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-copy strong {
    grid-column: 1;
    grid-row: 2 / 4;
    color: var(--green-dark);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
  }

  .dictionary-practice-result-page.student-mobile-page .dictionary-practice-result-points-copy small {
    grid-column: 2;
    align-self: center;
  }

  .dictionary-practice-result-card {
    gap: 9px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 9px 24px rgba(22, 44, 30, 0.055);
  }

  .dictionary-practice-result-card.is-correct {
    background: #f7fcf8;
    border-color: #8ac6a0;
  }

  .dictionary-practice-result-card.is-incorrect {
    background: #fffaf5;
    border-color: #e3a85f;
  }

  .dictionary-practice-result-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 600;
  }

  .dictionary-practice-result-label i {
    font-size: 0.92rem;
  }

  .dictionary-practice-result-card.is-correct .dictionary-practice-result-label {
    color: var(--green-dark);
  }

  .dictionary-practice-result-card.is-incorrect .dictionary-practice-result-label {
    color: #a75b0d;
  }

  .dictionary-practice-result-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.12;
  }

  .dictionary-practice-correct-answer {
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .dictionary-practice-result-info {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dictionary-practice-result-info-item {
    display: grid;
    min-height: 53px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 7px;
  }

  .dictionary-practice-result-card.is-correct .dictionary-practice-result-info-item {
    border-color: #cbe6d3;
  }

  .dictionary-practice-result-card.is-incorrect .dictionary-practice-result-info-item {
    border-color: #f0d2ad;
  }

  .dictionary-practice-result-info-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--green-dark);
    background: #eaf6ed;
    border-radius: 50%;
    font-size: 0.78rem;
  }

  .dictionary-practice-result-card.is-incorrect .dictionary-practice-result-info-icon {
    color: #a75b0d;
    background: #fff0df;
  }

  .dictionary-practice-result-info-item > div {
    gap: 1px;
  }

  .dictionary-practice-result-info-item span {
    font-size: 0.67rem;
    font-weight: 400;
  }

  .dictionary-practice-result-info-item strong {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .dictionary-practice-result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dictionary-practice-result-actions .button {
    min-height: 43px;
    width: 100%;
    justify-content: center;
    gap: 9px;
    padding: 9px 12px;
    font-size: 0.77rem;
  }

  .dictionary-practice-status-card {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 11px;
    margin: 0;
    padding: 13px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(22, 44, 30, 0.05);
  }

  .dictionary-practice-status-card .eyebrow {
    margin: 0 0 3px;
    color: var(--green-dark);
    font-size: 0.65rem;
  }

  .dictionary-practice-status-card h3 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .dictionary-practice-status-card p:last-child {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .dictionary-practice-result-page .dictionary-practice-status-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }

  .dictionary-practice-result-page .dictionary-practice-status-actions button {
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    border-radius: 7px;
    font-size: clamp(0.58rem, 2.5vw, 0.7rem);
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
  }

  .dictionary-result-status-message:not(.is-ajax) {
    margin: 0;
  }
}

@media (max-width: 350px) {
  .dictionary-practice-result-page .dictionary-practice-status-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hangman course activity */
.hangman-player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 28px; margin-bottom: 16px; color: #fff; background: linear-gradient(115deg, #17653d, #23975f); border-radius: 8px; }
.hangman-player-header > div { max-width: 780px; }
.hangman-player-header h2, .hangman-player-header p { margin: 0; }
.hangman-player-header h2 { margin: 7px 0; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.hangman-player-header .eyebrow { color: #dff5e6; }
.hangman-player-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #fff; font-weight: 600; text-decoration: none; }
.hangman-preview-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #145c37; background: #fff; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.hangman-game { display: grid; gap: 14px; max-width: 1080px; margin: 18px auto 0; }
.hangman-game [hidden] { display: none !important; }
.hangman-game-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hangman-game-stats > div { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px rgba(21, 57, 34, .04); }
.hangman-game-stats > div > span { display: grid; width: 38px; height: 38px; place-items: center; color: var(--green-dark); background: #e9f7ed; border-radius: 8px; }
.hangman-game-stats p { display: grid; margin: 0; }
.hangman-game-stats small { color: var(--muted); }
.hangman-game-stats strong { font-size: 1.15rem; }
.hangman-game-stats em { font-style: normal; }
.hangman-game-board { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 340px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(21, 57, 34, .06); }
.hangman-drawing { display: grid; place-items: center; align-content: center; padding: 20px; color: var(--green-dark); background: #f0f8f2; border-right: 1px solid var(--line); }
.hangman-drawing svg { width: min(100%, 220px); }
.hangman-gallows, [data-hangman-part] { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
[data-hangman-part] { opacity: 0; transition: opacity .18s ease; }
[data-hangman-part].is-visible { opacity: 1; }
.hangman-drawing > span { padding: 6px 10px; background: #fff; border: 1px solid #cce4d2; border-radius: 999px; font-size: .79rem; }
.hangman-word-area { display: grid; place-items: center; align-content: center; gap: 18px; padding: 34px; text-align: center; }
.hangman-word-area .eyebrow { margin: 0; }
.hangman-word { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 8px; min-height: 58px; }
.hangman-letter { display: grid; min-width: 38px; height: 52px; place-items: end center; padding: 0 4px 7px; color: var(--text); border-bottom: 3px solid #2c8e58; font-size: 1.8rem; font-weight: 700; text-transform: uppercase; }
.hangman-separator { display: grid; min-width: 16px; height: 52px; place-items: end center; padding-bottom: 7px; font-size: 1.6rem; }
.hangman-hint-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--green-dark); background: transparent; border: 1px solid #b9d9c1; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.hangman-hint { max-width: 600px; padding: 10px 13px; color: #325540; background: #f4faf6; border: 1px solid #d0e6d5; border-radius: 7px; }
.hangman-round-message { display: flex; width: min(100%, 620px); align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid; border-radius: 8px; text-align: left; }
.hangman-round-message.is-success { color: #17663c; background: #edf8f0; border-color: #91cda1; }
.hangman-round-message.is-failed { color: #9b4c0d; background: #fff7ed; border-color: #edbd83; }
.hangman-round-message > span { font-size: 1.25rem; }
.hangman-round-message strong, .hangman-round-message p { margin: 0; }
.hangman-round-message p { margin-top: 3px; }
.hangman-keyboard-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.hangman-keyboard-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.hangman-keyboard-card h3, .hangman-keyboard-card p { margin: 0; }
.hangman-keyboard-card > header > span { display: grid; min-width: 32px; height: 32px; place-items: center; color: var(--green-dark); background: #eaf7ed; border-radius: 50%; font-weight: 700; }
.hangman-keyboard { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.hangman-keyboard button { display: grid; min-width: 42px; height: 42px; padding: 0 9px; place-items: center; color: var(--text); background: #fff; border: 1px solid #cfd9d2; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.hangman-keyboard button:hover:not(:disabled) { color: var(--green-dark); background: #eef9f1; border-color: #77ba88; transform: translateY(-1px); }
.hangman-keyboard button:disabled { cursor: default; opacity: 1; }
.hangman-keyboard button.is-correct { color: #fff; background: #218b52; border-color: #218b52; }
.hangman-keyboard button.is-wrong { color: #8a4b3c; background: #f5e8e4; border-color: #e4c3ba; }
.hangman-game-actions { display: flex; justify-content: flex-end; gap: 10px; }
.hangman-game-actions .button { justify-content: center; }

@media (max-width: 760px) {
  .hangman-player-header { display: grid; padding: 18px; }
  .hangman-preview-badge { justify-self: start; }
  .hangman-game { padding-bottom: 76px; }
  .hangman-game-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hangman-game-stats > div { display: grid; justify-items: center; padding: 10px 6px; text-align: center; }
  .hangman-game-stats > div > span { width: 32px; height: 32px; }
  .hangman-game-stats small { font-size: .67rem; }
  .hangman-game-board { grid-template-columns: 1fr; }
  .hangman-drawing { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hangman-drawing svg { width: 150px; height: 140px; }
  .hangman-word-area { min-height: 260px; padding: 24px 14px; }
  .hangman-letter { min-width: 28px; height: 43px; font-size: 1.35rem; }
  .hangman-keyboard-card { padding: 13px; }
  .hangman-keyboard { gap: 5px; }
  .hangman-keyboard button { min-width: 34px; height: 38px; padding: 0 6px; font-size: .85rem; }
  .hangman-game-actions { display: grid; grid-template-columns: 1fr; }
}

/* Crossword preview and player */
.crossword-player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 26px 28px; color: #fff; background: linear-gradient(120deg, #126b47, #27966a); border-radius: 8px; }
.crossword-player-header h2 { margin: 8px 0; color: #fff; font-size: 2rem; }
.crossword-player-header p { margin-bottom: 0; }
.crossword-player-header .eyebrow { color: #dff5e8; }
.crossword-player-back { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.crossword-preview-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; padding: 10px 14px; color: #0c6340; background: #fff; border-radius: 7px; font-weight: 600; }
.crossword-player { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 18px; align-items: start; margin-top: 20px; }
.crossword-player-board-card, .crossword-clues-card, .crossword-result-card { background: #fff; border: 1px solid #dce8df; border-radius: 8px; box-shadow: 0 12px 30px rgba(20, 55, 35, .06); }
.crossword-player-board-card { min-width: 0; padding: 20px; }
.crossword-player-board-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.crossword-player-board-card h3 { margin: 3px 0 0; }
.crossword-player-board-card > header > span { padding: 8px 12px; color: #176a47; background: #eff8f2; border-radius: 7px; }
.crossword-player-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #65746b; font-size: .9rem; }
.crossword-active-clue { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px 12px; color: #244331; background: #f0f8f3; border: 1px solid #cbe3d3; border-radius: 7px; }
.crossword-active-clue > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #08734b; background: #fff; border-radius: 6px; }
.crossword-active-clue div { display: grid; gap: 2px; }
.crossword-active-clue p, .crossword-active-clue small { margin: 0; }
.crossword-active-clue p { color: #08734b; font-size: .7rem; text-transform: uppercase; }
.crossword-active-clue small { color: #5f7066; }
.crossword-player-scroll-hint { display: none; align-items: center; gap: 7px; margin: 0 0 9px; color: #64736a; font-size: .78rem; }
.crossword-player-grid-scroll { width: 100%; max-width: 100%; padding: 10px; overflow-x: auto; background: #f5f8f6; border-radius: 7px; overscroll-behavior-x: contain; scrollbar-color: #a8c8b3 transparent; -webkit-overflow-scrolling: touch; }
.crossword-player-grid { display: grid; grid-template-columns: repeat(15, 38px); grid-template-rows: repeat(15, 38px); width: max-content; min-width: 570px; margin: 0 auto; }
.crossword-player-cell { position: relative; display: grid; width: 38px; height: 38px; margin: 0; padding: 0; place-items: center; background: #fff; border: 1px solid #8ea99a; border-radius: 0; }
.crossword-player-cell.is-blocked { visibility: hidden; pointer-events: none; }
.crossword-player-cell small { position: absolute; z-index: 2; top: 1px; left: 3px; color: #32493b; font-size: .58rem; line-height: 1; }
.crossword-player-cell input { width: 100%; height: 100%; padding: 5px 2px 1px; color: #17251d; text-align: center; background: transparent; border: 0; border-radius: 0; outline: 0; font-size: 1.05rem; font-weight: 600; }
.crossword-player-cell.is-solution strong { font-size: 1rem; }
.crossword-player-cell.is-active-word { background: #e7f6ed; }
.crossword-player-cell:focus-within { z-index: 3; box-shadow: inset 0 0 0 2px #159260; }
.crossword-player-cell.is-correct { background: #e5f7eb; border-color: #50a873; }
.crossword-player-cell.is-incorrect { background: #fff0ee; border-color: #dc7d73; }
.crossword-player-cell.is-solution-shown { color: #075f3c; background: #e8f5ed; border-color: #65a77d; }
.crossword-player-sidebar { display: grid; min-width: 0; gap: 14px; }
.crossword-clues-card { overflow: hidden; }
.crossword-clue-group + .crossword-clue-group { border-top: 1px solid #e2ebe5; }
.crossword-clue-group > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: #f6faf7; }
.crossword-clue-group > header span { display: grid; width: 30px; height: 30px; place-items: center; color: #08734b; background: #e6f5ec; border-radius: 6px; }
.crossword-clue-group h3 { margin: 0; font-size: 1rem; }
.crossword-clue-list { display: grid; padding: 8px; }
.crossword-clue { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; width: 100%; padding: 10px; color: #26372d; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 6px; }
button.crossword-clue { cursor: pointer; }
button.crossword-clue:hover, .crossword-clue.is-active { background: #edf8f1; border-color: #b8dbc5; }
.crossword-clue.is-correct { color: #176b45; background: #ecf8f0; }
.crossword-clue.is-incorrect { color: #9c4138; background: #fff3f1; }
.crossword-clue > strong { color: #08734b; }
.crossword-clue-body { display: grid; min-width: 0; gap: 4px; }
.crossword-clue small { color: #6a776f; font-size: .8rem; }
.crossword-clue-status { display: inline-flex; width: max-content; align-items: center; gap: 5px; margin-top: 3px; padding: 4px 7px; border-radius: 5px; font-size: .72rem; font-style: normal; }
.crossword-clue-status.is-correct { color: #126b43; background: #dff3e7; }
.crossword-clue-status.is-incorrect { color: #9b3f36; background: #fde5e1; }
.crossword-clue-review { display: grid; gap: 2px; margin-top: 4px; padding-top: 7px; border-top: 1px solid rgba(181, 75, 64, .18); }
.crossword-clue-review b { color: inherit; }
.crossword-clue-empty { margin: 0; padding: 16px 18px; color: #6a776f; }
.crossword-player-actions { grid-column: 1 / -1; padding: 12px; background: #fff; border: 1px solid #dce8df; border-radius: 8px; }
.crossword-player-action-group { display: flex; justify-content: flex-end; gap: 10px; }
.crossword-result-card { display: grid; gap: 15px; padding: 17px; border-color: #a7d4b6; background: #f4fbf6; }
.crossword-result-card:focus { outline: 3px solid rgba(21, 146, 96, .2); outline-offset: 2px; }
.crossword-result-card > header { display: flex; align-items: center; gap: 12px; }
.crossword-result-card > header > span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: #08734b; background: #dff3e7; border-radius: 50%; font-size: 1.15rem; }
.crossword-result-card > header div { display: grid; gap: 1px; }
.crossword-result-card h3, .crossword-result-card p { margin: 0; }
.crossword-result-card > header strong { color: #176b45; }
.crossword-result-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.crossword-result-card dl div { display: grid; gap: 2px; padding: 9px 5px; text-align: center; background: #fff; border: 1px solid #d8e9de; border-radius: 6px; }
.crossword-result-card dt { color: #6a776f; font-size: .8rem; }
.crossword-result-card dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.crossword-result-card .is-correct dd { color: #19804f; }
.crossword-result-card .is-incorrect dd { color: #b54b40; }
.crossword-result-card .is-score dd { color: #08734b; }
.crossword-solution-note { display: flex; align-items: center; gap: 7px; padding: 9px 10px; color: #176b45; background: #e5f5eb; border-radius: 6px; font-size: .82rem; }
.crossword-player [hidden] { display: none !important; }
.crossword-player-empty { margin-top: 20px; }

@media (max-width: 900px) {
  .crossword-player { grid-template-columns: minmax(0, 1fr); }
  .crossword-player-grid { margin: 0; }
}

@media (max-width: 640px) {
  .crossword-player-page { overflow-x: hidden; }
  .crossword-player-header { padding: 20px; }
  .crossword-player-header h2 { font-size: 1.55rem; }
  .crossword-preview-badge { display: none; }
  .crossword-player { gap: 14px; margin-top: 14px; padding-bottom: 88px; }
  .crossword-player-board-card { padding: 11px; }
  .crossword-player-board-card > header { align-items: flex-start; }
  .crossword-player-board-card > header h3 { font-size: 1rem; }
  .crossword-player-board-card > header > span { padding: 7px 9px; font-size: .8rem; }
  .crossword-player-hint { font-size: .82rem; }
  .crossword-active-clue { padding: 10px; }
  .crossword-active-clue small { font-size: .78rem; }
  .crossword-player-scroll-hint { display: flex; }
  .crossword-player-grid-scroll { margin: 0; padding: 7px; touch-action: pan-x pan-y; }
  .crossword-player-grid { grid-template-columns: repeat(15, 36px); grid-template-rows: repeat(15, 36px); min-width: 540px; }
  .crossword-player-cell { width: 36px; height: 36px; }
  .crossword-player-cell input { font-size: 1rem; }
  .crossword-clue-group > header { padding: 13px 14px; }
  .crossword-clue-list { gap: 3px; padding: 7px; }
  .crossword-clue { padding: 11px 9px; font-size: .92rem; }
  .crossword-result-card { padding: 14px; }
  .crossword-result-card dl { gap: 5px; }
  .crossword-result-card dt { font-size: .68rem; }
  .crossword-result-card dd { font-size: 1rem; }
  .crossword-player-actions { position: sticky; z-index: 20; bottom: 72px; padding: 8px; box-shadow: 0 -8px 24px rgba(20, 55, 35, .1); }
  .crossword-player-action-group { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .crossword-player-action-group[data-crossword-result-actions] { grid-template-columns: 1fr 1fr; }
  .crossword-player-action-group[data-crossword-result-actions] a { grid-column: 1 / -1; }
  .crossword-player-actions .button { justify-content: center; width: 100%; min-height: 42px; padding: 9px 10px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .crossword-player-cell input { scroll-behavior: auto; }
}

/* Word Search preview and player */
.word-search-player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 26px 28px; color: #fff; background: linear-gradient(120deg, #126b47, #27966a); border-radius: 8px; }
.word-search-player-header h2 { margin: 8px 0; color: #fff; font-size: 2rem; }
.word-search-player-header p { margin-bottom: 0; }
.word-search-player-header .eyebrow { color: #dff5e8; }
.word-search-player-back { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.word-search-preview-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; padding: 10px 14px; color: #0c6340; background: #fff; border-radius: 7px; font-weight: 600; }
.word-search-player-warning { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 14px; color: #7b4b12; background: #fff8e9; border: 1px solid #edcf9e; border-radius: 8px; }
.word-search-player { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; margin-top: 20px; }
.word-search-player-board-card, .word-search-word-panel, .word-search-completion { background: #fff; border: 1px solid #dce8df; border-radius: 8px; box-shadow: 0 12px 30px rgba(20, 55, 35, .06); }
.word-search-player-board-card { min-width: 0; padding: 20px; }
.word-search-player-board-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.word-search-player-board-card h3 { margin: 3px 0 0; }
.word-search-progress-pill { display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 12px; color: #176a47; background: #eff8f2; border-radius: 7px; white-space: nowrap; }
.word-search-progress-pill strong { font-size: 1.2rem; }
.word-search-player-feedback { display: flex; min-height: 24px; align-items: center; gap: 8px; margin: 14px 0 0; color: #66766c; font-size: .9rem; }
.word-search-player-feedback i { color: #3f7056; }
.word-search-player-feedback.is-success { color: #08734b; }
.word-search-player-feedback.is-error { color: #a5483d; }
.word-search-player-feedback.is-success i { color: #08734b; }
.word-search-player-feedback.is-error i { color: #a5483d; }
.word-search-player-grid { display: grid; width: min(100%, 560px); grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 0 auto; padding: 10px; background: #edf3ef; border: 1px solid #d4e1d8; border-radius: 8px; }
.word-search-player-cell { display: grid; min-width: 0; aspect-ratio: 1; padding: 0; place-items: center; color: #20372a; background: #fff; border: 1px solid #cbdacf; border-radius: 6px; cursor: pointer; font-size: clamp(.72rem, 1.5vw, 1rem); font-weight: 600; touch-action: manipulation; user-select: none; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.word-search-player-cell:hover { background: #f3faf5; border-color: #8bb69a; }
.word-search-player-cell:focus-visible { outline: 3px solid rgba(21, 146, 96, .28); outline-offset: 1px; }
.word-search-player-cell.is-selected { color: #075f3c; background: #d8f3e3; border-color: #08734b; box-shadow: inset 0 0 0 2px #08734b, 0 0 0 2px rgba(8, 115, 75, .15); transform: scale(.92); }
.word-search-player-cell.is-found { color: #fff; background: #158a59; border-color: #0c7248; }
.word-search-player-board-card.is-invalid-selection { animation: word-search-invalid-selection .28s ease; }
.word-search-player-panel { display: grid; gap: 14px; }
.word-search-word-panel { overflow: hidden; }
.word-search-word-panel > header { display: flex; align-items: center; gap: 11px; padding: 16px 18px; background: #f6faf7; border-bottom: 1px solid #e1ebe4; }
.word-search-word-panel > header > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #08734b; background: #e4f4ea; border-radius: 7px; }
.word-search-word-panel h3, .word-search-word-panel p { margin: 0; }
.word-search-word-panel p { margin-top: 2px; color: #68766d; font-size: .8rem; }
.word-search-player-words { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.word-search-player-word { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 7px; padding: 8px 10px; color: #32493b; background: #f7faf8; border: 1px solid #dce7df; border-radius: 7px; }
.word-search-player-word i { display: none; color: #08734b; }
.word-search-player-word small { grid-column: 2; color: #758178; font-size: .72rem; }
.word-search-player-word.is-found { color: #176b45; background: #eaf7ef; border-color: #a9d7b9; }
.word-search-player-word.is-found i { display: inline-block; }
.word-search-player-word.is-found strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.word-search-completion { display: grid; gap: 15px; padding: 17px; border-color: #8fcba4; background: #f0faf4; }
.word-search-completion[hidden] { display: none; }
.word-search-completion:focus { outline: 3px solid rgba(21, 146, 96, .2); outline-offset: 2px; }
.word-search-completion > header { display: flex; align-items: center; gap: 13px; }
.word-search-completion > header > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #08734b; background: #dff3e7; border-radius: 50%; font-size: 1.2rem; }
.word-search-completion h3, .word-search-completion p { margin: 0; }
.word-search-completion dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.word-search-completion dl div { display: grid; gap: 3px; padding: 11px; text-align: center; background: #fff; border: 1px solid #c9e6d3; border-radius: 7px; }
.word-search-completion dt { color: #64746a; font-size: .75rem; }
.word-search-completion dd { margin: 0; color: #08734b; font-size: 1.2rem; font-weight: 600; }
.word-search-completion footer { display: grid; gap: 8px; }
.word-search-completion footer .button { justify-content: center; width: 100%; }
.word-search-player-actions { display: grid; gap: 9px; }
.word-search-player-actions[hidden] { display: none; }
.word-search-player-actions .button { justify-content: center; width: 100%; }
.word-search-player-empty { margin-top: 20px; }

@keyframes word-search-invalid-selection {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

@media (max-width: 900px) {
  .word-search-player { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .word-search-player-header { padding: 20px; }
  .word-search-player-header h2 { font-size: 1.55rem; }
  .word-search-preview-badge { display: none; }
  .word-search-player { gap: 14px; margin-top: 14px; }
  .word-search-player-board-card { padding: 11px; }
  .word-search-player-board-card > header { align-items: flex-start; }
  .word-search-player-board-card > header h3 { font-size: 1rem; }
  .word-search-progress-pill { padding: 7px 10px; }
  .word-search-player-grid { max-width: 100%; gap: 2px; padding: 5px; }
  .word-search-player-cell { border-radius: 4px; font-size: clamp(.65rem, 3vw, .84rem); }
  .word-search-player-feedback { padding: 4px 2px 0; font-size: .82rem; }
  .word-search-player-words { padding: 13px; }
  .word-search-player-word { padding: 7px 9px; }
  .word-search-completion { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .word-search-player-cell { transition: none; }
  .word-search-player-board-card.is-invalid-selection { animation: none; }
}
