.tdn-90-section-board,
.tdn-drill-home-cards,
.tdn-drill-shell {
  font-family: "Be Vietnam Pro", sans-serif;
}

.tdn-90-section-board {
  display: grid;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 16px 18px;
  border: 1px solid #d9d3c6;
  border-radius: 18px;
  background: #fffdf8;
}

.tdn-90-section-board h3 {
  margin: 0;
  color: #29483d;
  font-size: 16px;
}

.tdn-90-section-board > p {
  margin: 0;
  color: #5b6c64;
  font-size: 14px;
  line-height: 1.55;
}

.tdn-90-section-bars {
  display: grid;
  gap: 10px;
}

.tdn-90-section-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tdn-90-section-bars span {
  color: #405a50;
  font-size: 13px;
  font-weight: 650;
}

.tdn-90-section-bars b {
  color: #244f40;
  font-size: 13px;
}

.tdn-90-bar {
  height: 10px;
  border-radius: 999px;
  background: #efe8d8;
  grid-column: 1 / -1;
  overflow: hidden;
}

.tdn-90-bar i {
  display: block;
  height: 100%;
  background: #3d8f73;
}

.tdn-90-bar.is-low i {
  background: #d08a2f;
}

.tdn-90-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tdn-drill-home-cards {
  margin: 12px 0 4px;
}

.tdn-drill-home-cards article,
.tdn-drill-grid article {
  padding: 16px 18px;
  border: 1px solid #d9d3c6;
  border-radius: 18px;
  background: #fff;
}

.tdn-drill-home-cards span,
.tdn-drill-grid span,
.tdn-drill-kicker,
.tdn-drill-repair > span {
  color: #8d6a2b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tdn-drill-home-cards h3,
.tdn-drill-grid h3 {
  margin: 4px 0;
  color: #29483d;
  font-size: 17px;
}

.tdn-drill-app {
  min-height: 100vh;
  background: #f4f1e9;
  color: #20352d;
}

.tdn-drill-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.tdn-drill-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d9d3c6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.tdn-drill-topbar button {
  justify-self: start;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #405a50;
  font-weight: 750;
  cursor: pointer;
}

.tdn-drill-topbar span {
  justify-self: end;
  color: #66776f;
  font-size: 13px;
  font-weight: 650;
}

.tdn-drill-hero,
.tdn-drill-repair,
.tdn-drill-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d9d3c6;
  border-radius: 18px;
  background: #fff;
}

.tdn-drill-hero h1,
.tdn-drill-repair h2,
.tdn-drill-card h2 {
  margin: 6px 0;
  color: #244f40;
}

.tdn-drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tdn-drill-progress {
  margin: 14px 0 6px;
  height: 10px;
  border-radius: 999px;
  background: #efe8d8;
  overflow: hidden;
}

.tdn-drill-progress i {
  display: block;
  height: 100%;
  background: #3d8f73;
}

.tdn-drill-step {
  margin: 0 0 8px;
  color: #66776f;
  font-size: 13px;
  font-weight: 650;
}

.tdn-drill-input,
.tdn-drill-textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #cfc6b4;
  border-radius: 12px;
  font: inherit;
}

.tdn-drill-choices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tdn-drill-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9d3c6;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.tdn-drill-choice.is-selected {
  border-color: #3d8f73;
  background: #eef8f2;
}

.tdn-drill-choice.is-correct {
  border-color: #2f8a62;
  background: #e7f6ee;
}

.tdn-drill-choice.is-wrong {
  border-color: #c46a4a;
  background: #fdeee8;
}

.tdn-drill-feedback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
}

.tdn-drill-feedback.is-correct {
  background: #e7f6ee;
}

.tdn-drill-feedback.is-wrong {
  background: #fdeee8;
}

.tdn-drill-passage {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 4px solid #d2c599;
  color: #405a50;
  line-height: 1.6;
}

.tdn-drill-repair {
  background: #fff6e8;
}

.tdn-drill-card footer,
.tdn-90-actions {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .tdn-90-section-board,
  .tdn-drill-home-cards article,
  .tdn-drill-grid article {
    padding: 14px;
  }

  .tdn-drill-topbar {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
  }

  .tdn-drill-topbar span,
  .tdn-drill-topbar strong {
    justify-self: start;
  }
}
