.drill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 5vh, 44px);
}

.level-tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--fill);
}

.level-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.level-tabs button[aria-selected="true"] { background: var(--fill-strong); color: var(--text); }

.drill-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 16px;
  font-weight: 500;
}

.drill-jump a { color: var(--muted); text-underline-offset: 3px; }

.drill-jump a:hover { color: var(--text); }

.accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.accent select {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.drill-unsupported { margin-top: 12px; color: var(--muted); font-size: 15px; }

.drills {
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.drills > * { max-width: 760px; }

.drills .level > h2,
.drills .group > h2 {
  margin-top: clamp(40px, 7vh, 64px);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.drills .level > h3 {
  margin-top: 36px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.drill {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--fill);
  scroll-margin-top: 24px;
}

.drill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.drill-head h3,
.drill-head h4 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }

.drill-meta { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

.drill-text { margin-top: 14px; }

.drill-text p {
  color: var(--body);
  font-size: 19px;
  line-height: 1.6;
}

.drill-text p + p { margin-top: 12px; }

.drill-text .line + .line { margin-top: 6px; }

.who { color: var(--muted); font-weight: 600; }

.drill.is-reading .drill-text p { color: var(--muted); }

.drill .w.said,
.drill .w.ok { color: var(--text); }

.drill .w.miss {
  color: #ff9f0a;
  text-decoration: underline wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.drill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.drill-actions .button { min-height: 44px; padding: 0 20px; font-size: 16px; }

.drill-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.drill-score { font-size: 18px; color: var(--body); }

.drill-score strong { color: var(--text); font-weight: 600; }

.drill-pace { color: var(--muted); }

.drill-note { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.45; }

.drill-missed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.drill-missed-label { margin-right: 4px; color: var(--muted); font-size: 15px; }

.drill-word {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg);
  color: #ff9f0a;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

button.drill-word { cursor: pointer; }

.drill-again { min-height: 40px; margin-top: 14px; padding: 0 18px; font-size: 15px; }

@media (max-width: 600px) {
  .drill-text p { font-size: 18px; }
  .accent { width: 100%; justify-content: space-between; }
}
