/* Word Chunks only. Load after practice-page.css and shared website styles. */
body.wc-practice .category-row { margin-bottom: 0; z-index: auto; isolation: auto; }
body.wc-practice .cat-pill,
body.wc-practice .level-pill {
  background: transparent;
  color: var(--muted);
  border-color: var(--border2);
  min-height: 44px;
  font-size: 13px;
  white-space: normal;
  text-align: start;
}
body.wc-practice .cat-pill:hover { background: var(--surface2); color: var(--text); }
body.wc-practice .cat-pill.active,
body.wc-practice .level-pill.active { background: var(--practice-accent-wash); color: var(--sky); border-color: var(--sky); }
body.wc-practice .stats-row { gap: 12px; margin-bottom: 20px; }
body.wc-practice .stat-pill { background: transparent; color: var(--muted); padding: 0; font-size: 13px; }

body.wc-practice .start-card,
body.wc-practice .loading-card,
body.wc-practice #chunkCard,
body.wc-practice .result-card {
  background: var(--practice-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: none;
  animation: none;
}
body.wc-practice .start-emoji svg { width: 36px; height: 36px; }
body.wc-practice .start-title { font-size: 22px; font-weight: 600; }
body.wc-practice .start-sub { max-width: 48ch; font-size: 15px; }
body.wc-practice .chunk-card { padding: 0; background: transparent; border: 0; text-align: start; margin-bottom: 24px; animation: none; }
body.wc-practice .category-generate-btn {
  display: flex;
  width: fit-content;
  margin-inline-start: auto;
  margin-bottom: 20px;
  min-height: 44px;
  padding: 10px 18px;
  background: transparent;
  border-color: var(--border2);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
body.wc-practice .category-generate-btn:hover { background: var(--surface2); color: var(--text); }
body.wc-practice .chunk-native {
  font-size: clamp(23px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: start;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}
body.wc-practice .chunk-hint { margin-bottom: 0; font-size: 14px; text-align: start; }
body.wc-practice .input-section { margin-bottom: 0; }
body.wc-practice .answer-label,
body.wc-practice .student-answer-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
body.wc-practice .chunk-input,
body.wc-practice .chunk-ask-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 16px;
  min-height: 60px;
  font-size: 18px;
  line-height: 1.6;
  padding: 14px 18px;
}
body.wc-practice .chunk-input:focus,
body.wc-practice .chunk-ask-input:focus { border-color: var(--sky); }
body.wc-practice .chunk-input::placeholder,
body.wc-practice .chunk-ask-input::placeholder { color: var(--muted); opacity: 1; }
body.wc-practice .input-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
body.wc-practice .btn-hint-sm,
body.wc-practice .btn-reveal-sm {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  min-height: 44px;
  justify-content: center;
  font-size: 13px;
}
body.wc-practice .btn-hint-sm:hover,
body.wc-practice .btn-reveal-sm:hover { background: var(--surface2); color: var(--text); }
body.wc-practice .btn-hint-sm.used { max-width: none; white-space: normal; color: var(--gold); overflow-wrap: anywhere; }
body.wc-practice .btn-check { grid-column: 1 / -1; justify-content: center; }
body.wc-practice .btn-start,
body.wc-practice .btn-check,
body.wc-practice .btn-next,
body.wc-practice .btn-r-submit,
body.wc-practice .wc-tour-action.primary {
  background: var(--sky);
  color: var(--practice-on-accent);
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}
body.wc-practice .btn-start:hover,
body.wc-practice .btn-check:hover:not(:disabled),
body.wc-practice .btn-next:hover,
body.wc-practice .btn-r-submit:hover,
body.wc-practice .wc-tour-action.primary:hover { background: var(--sky2); color: var(--practice-on-accent); transform: none; }
body.wc-practice .btn-check:disabled { opacity: 1; color: var(--muted); background: var(--bg3); border-color: var(--border); }
body.wc-practice .spinner-sm { border-top-color: currentColor; }
body.wc-practice .spinner-large { border-color: var(--border); border-top-color: var(--sky); }
body.wc-practice .result-card { text-align: start; }
body.wc-practice .score-ring-wrap { justify-content: flex-start; }
body.wc-practice .correct-row,
body.wc-practice .student-answer-row,
body.wc-practice .tip-box { background: var(--bg); border-color: var(--border); text-align: start; }
body.wc-practice .correct-text { min-width: 0; font-size: 18px; font-weight: 500; }
body.wc-practice .correct-text,
body.wc-practice .student-answer-text,
body.wc-practice .tip-text,
body.wc-practice .feedback-text,
body.wc-practice .chunk-ask-answer { overflow-wrap: anywhere; }
body.wc-practice .feedback-text { font-size: 15px; }
body.wc-practice .icon-btn { color: var(--text); background: transparent; min-width: 44px; min-height: 44px; }
body.wc-practice .icon-btn:hover { background: var(--surface2); }
body.wc-practice .btn-next { width: 100%; justify-content: center; }
body.wc-practice .report-btn { color: var(--muted) !important; margin-inline: 0 !important; text-align: start; }
body.wc-practice .report-btn:hover { color: var(--red) !important; }

/* Explanation questions stay accessible, with a quiet disclosure that leaves
   the correct answer, feedback and Next action easy to scan. */
body.wc-practice .chunk-ask { padding: 0; background: transparent; border-color: var(--border); }
body.wc-practice .chunk-ask summary {
  cursor: pointer;
  min-height: 48px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
body.wc-practice .chunk-ask-body { border-top: 1px solid var(--border); padding: 16px; }
body.wc-practice .chunk-ask-input { min-width: 0; min-height: 48px; font-size: 16px; border-radius: 12px; }
body.wc-practice .chunk-ask-row { grid-template-columns: minmax(0,1fr) auto; }
body.wc-practice .chunk-ask-btn { min-height: 48px; background: var(--bg2); color: var(--text); border: 1px solid var(--border2); }
body.wc-practice .chunk-ask-answer { background: var(--bg); border-color: var(--border); font-size: 14px; }
body.wc-practice .vault-card,
body.wc-practice .report-card,
body.wc-practice .wc-tour-card { background: var(--practice-card); border-color: var(--border); box-shadow: none; }
body.wc-practice .wc-tour-card h2,
body.wc-practice .wc-tour-card p { color: var(--text); }
body.wc-practice .wc-tour-progress,
body.wc-practice .wc-tour-close,
body.wc-practice .wc-tour-action { color: var(--muted); }
body.wc-practice .wc-tour-action { background: transparent; border-color: var(--border2); }
body.wc-practice .wc-tour-action:hover,
body.wc-practice .wc-tour-close:hover { color: var(--text); }
body.wc-practice .wc-tour-action.primary { color: var(--practice-on-accent); background: var(--sky); border-color: transparent; }
body.wc-practice .wc-tour-spotlight { border-color: var(--sky); background: transparent; box-shadow: 0 0 0 9999px rgba(0,0,0,.68); }
body.wc-practice .pp-tour-btn { min-height: 44px !important; background: transparent; color: var(--muted); border-color: var(--border); }
body.wc-practice .pp-tour-btn:hover { background: var(--practice-accent-wash); color: var(--sky); border-color: var(--sky); }
body.wc-practice .ai-badge-nav { background: transparent; color: var(--muted); border-color: var(--border); }
body.wc-practice .ai-dot { animation: none; }

@media (max-width: 860px) {
  body.wc-practice .start-card,
  body.wc-practice .loading-card,
  body.wc-practice #chunkCard,
  body.wc-practice .result-card { padding: 20px; border-radius: 16px; }
  body.wc-practice .correct-row { flex-wrap: wrap; }
  body.wc-practice .correct-text { flex: 1 1 120px; }
  body.wc-practice .correct-actions { margin-inline-start: auto; }
  body.wc-practice .chunk-ask-row { grid-template-columns: minmax(0,1fr); }
  body.wc-practice .btn-start { width: 100%; justify-content: center; }
}
