:root {
  --blue: #0756b8;
  --blue-ink: #063b80;
  --red: #ef332f;
  --orange: #ef5b32;
  --yellow: #ffcf1c;
  --green: #06b96b;
  --sky: #dcecf7;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe3ef;
  --soft: #f6f8fc;
  --paper: #ffffff;
  --shadow: 0 14px 34px rgba(22, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--sky);
  font-family: "Kollektif", Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(12, 87, 200, 0.2);
}

.secondary {
  background: #eef2f7;
  color: var(--ink);
}

.danger {
  background: var(--red);
  color: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand-block {
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 18px;
}

.brand-lockup {
  position: relative;
  width: 172px;
  height: 62px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  background: #f4f0e7;
}

.brand-lockup img {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 320px;
  max-width: none;
  height: auto;
}

.brand-name {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.overall {
  margin: 16px 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.overall-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.overall-row strong {
  color: var(--blue-ink);
}

.progress-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f5;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.25s ease;
}

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

.lesson-tab {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.lesson-tab:hover {
  background: #f7f9fd;
}

.lesson-tab.active {
  border-color: #b9cff2;
  background: #edf4ff;
}

.lesson-tab.done .tab-state {
  background: var(--green);
  color: #fff;
}

.tab-number,
.tab-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
}

.tab-number {
  background: #fff4cf;
  color: #7a5700;
}

.tab-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.tab-score {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tab-state {
  width: 22px;
  height: 22px;
  background: #e6ebf3;
  color: #667085;
}

.main {
  padding: 24px;
}

.lesson-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 24px;
  border: 1px solid #bfd6ec;
  border-top: 6px solid var(--orange);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 6px 0 8px;
  font-size: 42px;
  line-height: 1.05;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.lesson-meter {
  display: grid;
  gap: 8px;
  min-width: 170px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.lesson-meter strong {
  color: var(--blue-ink);
  font-size: 16px;
}

.actions {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(22, 32, 51, 0.06);
  backdrop-filter: blur(8px);
}

.lesson-controls {
  align-items: center;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #cad7e9;
  background: #fff;
  color: var(--blue-ink);
}

.switch-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #b8c4d3;
  transition: background 0.2s ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.language-switch[aria-checked="true"] .switch-track {
  background: var(--green);
}

.language-switch[aria-checked="true"] .switch-thumb {
  transform: translateX(16px);
}

.english-only .it-copy {
  display: none !important;
}

.lesson-path {
  display: flex;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto 16px;
}

.path-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #bcd0e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.path-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #d9e6f5;
}

.path-step.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.path-step.active span {
  background: var(--yellow);
  color: #6a4b00;
}

.lesson-content,
.practice-section {
  max-width: 1120px;
  margin: 0 auto 18px;
  scroll-margin-top: 76px;
}

.lesson-overview {
  display: block;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid #b7d2e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-overview-copy {
  align-self: center;
  padding: 24px 28px;
}

.lesson-overview h2 {
  margin: 5px 0 10px;
  color: var(--blue-ink);
  font-size: 30px;
}

.lesson-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.lesson-copy + .lesson-copy {
  margin-top: 8px;
}

.it-copy {
  color: #475467;
  font-style: italic;
}

.italian-title {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 9px;
  border-left: 4px solid var(--green);
  background: #eefaf4;
  color: #176743;
  font-size: 14px;
  font-weight: 800;
}

.lesson-sections-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 0 2px;
}

.lesson-sections-bar > div {
  display: grid;
  gap: 3px;
}

.lesson-sections-bar strong {
  font-size: 18px;
}

.lesson-sections-bar span {
  font-size: 13px;
}

button.compact {
  min-height: 36px;
  padding: 7px 10px;
}

.lesson-accordion {
  display: grid;
  gap: 8px;
}

.lesson-section {
  overflow: hidden;
  border: 1px solid #cbd9e9;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.lesson-section.warning {
  border-left-color: var(--yellow);
}

.lesson-section.error {
  border-left-color: var(--red);
}

.lesson-section.tip {
  border-left-color: var(--green);
}

.lesson-section.compare {
  border-left-color: var(--orange);
}

.lesson-section summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
}

.lesson-section summary::-webkit-details-marker {
  display: none;
}

.section-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 52px;
  overflow: hidden;
}

.section-art img {
  position: absolute;
  width: 125px;
  max-width: none;
  height: auto;
}

.asset-what-it-is img { left: 4px; top: -46px; }
.asset-how-it-works img { left: -63px; top: 7px; }
.asset-remember img { left: -54px; top: -48px; }
.asset-example img { left: -59px; top: -92px; }
.asset-warning-exceptions img { left: 6px; top: -164px; }
.asset-warning-errors img { left: -57px; top: -164px; }
.asset-tip img { left: 2px; top: -221px; }
.asset-compare img { left: -59px; top: -221px; }

.lesson-section-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lesson-section-title strong {
  font-size: 17px;
}

.lesson-section-title span {
  font-size: 13px;
}

.lesson-section-title small {
  color: #8090a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--blue-ink);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.lesson-section[open] .summary-icon {
  transform: rotate(45deg);
}

.lesson-section-body {
  padding: 18px 24px 24px 124px;
  border-top: 1px solid #edf1f6;
}

.source-copy {
  max-width: 920px;
}

.source-line {
  min-height: 1.45em;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-line + .source-line {
  margin-top: 2px;
}

.source-line.it-copy {
  color: #4b596d;
}

.pattern-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pattern-list li {
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  background: #f2f7fd;
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

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

.example-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  background: #fff8f4;
  line-height: 1.45;
}

.example-row strong {
  color: var(--ink);
}

.correction-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
}

.correction-row span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  font-size: 11px;
  font-weight: 900;
}

.correction-row.wrong {
  background: #fff0f0;
  color: #a91f28;
}

.correction-row.right {
  background: #ebfaf2;
  color: #166534;
}

.lesson-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #b7d2e9;
  border-radius: 8px;
  background: #f7fbff;
}

.lesson-bridge > div {
  display: grid;
  gap: 3px;
}

.practice-section {
  padding-top: 8px;
}

.practice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 20px;
  border-top: 6px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 32, 51, 0.05);
}

.practice-heading h2 {
  margin: 5px 0 6px;
  color: var(--blue-ink);
  font-size: 28px;
}

.practice-heading p {
  margin: 0;
  color: var(--muted);
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.activities,
.answer-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.activity,
.answer-panel {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(22, 32, 51, 0.04);
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff4cf;
  color: #7a5700;
  font-weight: 900;
  flex-shrink: 0;
}

h2 {
  margin: 0;
  font-size: 23px;
}

h2 .small {
  color: var(--muted);
  font-size: 0.65em;
  font-weight: 700;
}

.activity-desc {
  margin: 0 0 18px 46px;
  color: var(--muted);
  line-height: 1.5;
}

.question {
  border-top: 1px solid #edf1f7;
  padding: 16px 0;
}

.question:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.q-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.q-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--yellow);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.sentence {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.text-answer {
  width: min(210px, 100%);
  min-height: 40px;
  margin: 0 4px;
  padding: 8px 10px;
  border: 2px solid #d4deed;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.text-answer.wide {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  text-align: left;
  font-weight: 600;
}

.option-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dde7f5;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
  line-height: 1.4;
}

.option input {
  transform: scale(1.05);
}

.drag-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 62px;
  margin: 12px 0 16px 46px;
  padding: 12px;
  border: 1px solid #dde7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.drag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8e5fb;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.drag-chip.active {
  outline: 3px solid rgba(245, 180, 0, 0.45);
}

.drag-chip.used {
  background: #e8f6eb;
  border-color: #b7ebc6;
  color: #166534;
}

.drag-chip.dragging {
  opacity: 0.45;
}

.drag-chip.touch-drag-source {
  opacity: 0.25;
}

.touch-drag-ghost {
  position: fixed;
  z-index: 1000;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  box-shadow: 0 12px 26px rgba(22, 32, 51, 0.24);
  opacity: 0.96;
  transform: translate(-50%, -50%) scale(1.04);
}

body.is-touch-dragging {
  overscroll-behavior: none;
  user-select: none;
}

.drag-bank.active {
  border-color: var(--blue);
  background: #f1f6ff;
}

.drop-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 116px;
  min-height: 42px;
  margin: 0 4px;
  padding: 4px 8px;
  border: 2px dashed #cad7eb;
  border-radius: 8px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drop-slot.active {
  border-color: var(--blue);
  background: #f1f6ff;
}

.drop-slot.filled {
  border-style: solid;
  background: #f8fbff;
}

.drop-slot.correct {
  border-color: #b7ebc6;
  background: #ecfdf3;
}

.drop-slot.incorrect {
  border-color: #fecdd3;
  background: #fff1f2;
}

.feedback {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.feedback.show {
  display: block;
}

.feedback.ok {
  border: 1px solid #b7ebc6;
  background: #ecfdf3;
  color: #166534;
}

.feedback.bad {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #a91f28;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.answer-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.answer-card strong {
  color: var(--blue-ink);
}

.answer-card ol {
  margin: 10px 0 0 20px;
  padding: 0;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lesson-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 4px 10px;
    scroll-snap-type: x proximity;
  }

  .lesson-tab {
    min-width: 230px;
    scroll-snap-align: start;
  }

  .lesson-hero,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-meter {
    text-align: left;
  }

  .lesson-overview {
    display: block;
  }

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

  .practice-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding: 12px 10px;
  }

  .brand-block {
    padding: 2px 2px 10px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    margin-top: 2px;
    font-size: 12px;
  }

  .brand-lockup {
    display: block;
    width: 178px;
    height: 52px;
    margin-bottom: 8px;
  }

  .overall {
    margin: 10px 2px;
    padding: 10px;
  }

  .lesson-list {
    padding-bottom: 6px;
  }

  .lesson-tab {
    grid-template-columns: 28px 1fr auto;
    min-width: 190px;
    min-height: 46px;
    gap: 8px;
    padding: 6px 8px;
  }

  .tab-number {
    width: 26px;
    height: 26px;
  }

  .tab-title {
    font-size: 12px;
  }

  .tab-score {
    font-size: 11px;
  }

  .main {
    padding: 8px;
  }

  .lesson-hero,
  .activity,
  .answer-panel {
    padding: 14px;
  }

  .lesson-hero {
    gap: 10px;
    margin-bottom: 8px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  h1 {
    margin: 4px 0 6px;
    font-size: 25px;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.4;
  }

  .lesson-meter {
    display: flex;
    justify-content: space-between;
    min-width: 0;
    font-size: 12px;
    text-align: left;
  }

  .lesson-meter strong {
    font-size: 13px;
  }

  .actions {
    display: grid;
    position: sticky;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px;
  }

  .lesson-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .action-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .lesson-controls .action-group:first-child {
    display: flex;
  }

  .lesson-controls .action-group:last-child {
    width: min(220px, 48%);
  }

  .language-control > span {
    display: none;
  }

  .action-group:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions button {
    width: 100%;
    min-height: 38px;
    padding: 7px 5px;
    font-size: 12px;
    line-height: 1.15;
  }

  .activity,
  .answer-panel {
    margin-bottom: 8px;
  }

  .lesson-path {
    gap: 6px;
    margin-bottom: 8px;
  }

  .path-step {
    flex: 1;
    justify-content: center;
    padding: 7px 8px;
    font-size: 12px;
  }

  .lesson-overview {
    min-height: 146px;
  }

  .lesson-overview-copy {
    padding: 16px 14px;
  }

  .lesson-overview h2 {
    font-size: 23px;
  }

  .lesson-copy {
    font-size: 14px;
    line-height: 1.5;
  }

  .italian-title {
    margin-top: 10px;
    font-size: 12px;
  }

  .lesson-sections-bar {
    margin-top: 12px;
  }

  .lesson-sections-bar strong {
    font-size: 16px;
  }

  .lesson-section summary {
    grid-template-columns: 76px minmax(0, 1fr) 26px;
    gap: 8px;
    min-height: 68px;
    padding: 8px 10px;
  }

  .summary-icon {
    width: 26px;
    height: 26px;
  }

  .section-art {
    width: 70px;
    height: 50px;
  }

  .lesson-section-title strong {
    font-size: 15px;
  }

  .lesson-section-title span {
    font-size: 12px;
  }

  .lesson-section-body {
    padding: 12px 12px 14px;
  }

  .source-line {
    font-size: 14px;
    line-height: 1.5;
  }

  .pattern-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 12px;
  }

  .pattern-list li,
  .example-row {
    padding: 9px 10px;
    font-size: 13px;
  }

  .lesson-bridge {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .lesson-bridge button {
    width: 100%;
  }

  .practice-heading {
    padding: 14px;
  }

  .practice-heading h2 {
    font-size: 21px;
  }

  .practice-heading p {
    font-size: 13px;
  }

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

  .practice-actions .danger {
    grid-column: 1 / -1;
  }

  .practice-actions button {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 12px;
  }

  .section-heading {
    gap: 8px;
  }

  .badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .activity-desc,
  .drag-bank {
    margin-left: 0;
  }

  .activity-desc {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .question {
    padding: 12px 0;
  }

  .q-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .q-number {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .sentence {
    font-size: 15px;
    line-height: 1.6;
  }

  .text-answer {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 16px;
  }

  .option-list {
    gap: 6px;
    margin-top: 8px;
  }

  .option {
    padding: 9px 10px;
    font-size: 14px;
  }

  .drag-bank {
    gap: 7px;
    min-height: 54px;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 9px;
  }

  .drag-chip {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .drop-slot {
    min-width: 88px;
    min-height: 38px;
    margin: 2px;
    padding: 3px 6px;
  }

  .feedback {
    padding: 8px 10px;
    font-size: 13px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .answer-card {
    padding: 11px;
    font-size: 14px;
  }
}
