.topic-view { max-width: 960px; margin: 0 auto; padding: 20px; letter-spacing: 0; }
.topic-view * { box-sizing: border-box; letter-spacing: 0; }
.topic-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.topic-header h1 { margin: 0; font-size: 24px; line-height: 1.35; }
.topic-header p { margin: 0 0 4px; }
.topic-header > button { width: 48px; height: 48px; padding: 0; flex: 0 0 48px; }
.topic-view h2 { font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.topic-view p, .topic-view button { overflow-wrap: anywhere; }
.topic-progress { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.topic-sentence { font-size: 20px; font-weight: 600; line-height: 1.6; }
.topic-view .question-card { min-width: 0; }
.topic-view .choice-grid { min-width: 0; }
.topic-view .choice-button { min-height: 52px; }
.topic-token-answer { min-height: 72px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #b9cdc5; padding: 12px 0; margin: 12px 0; }
.topic-token-bank { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.topic-token-bank button, .topic-token-answer button { border-radius: 4px; min-height: 44px; padding: 8px 14px; }
.topic-token-bank button:disabled { visibility: hidden; }
.topic-reset { width: 44px; height: 44px; padding: 0; margin-top: 12px; font-size: 24px; }
.topic-view .letter-answer { min-height: 70px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.topic-view .letter-answer:empty::before { content: ''; }
.topic-actions, .topic-tools { min-height: 52px; gap: 12px; }
.topic-actions button { min-width: 144px; }
.topic-feedback { border-top: 1px solid #d8e5df; margin-top: 24px; padding-top: 18px; text-align: left; }
.topic-feedback p { margin: 12px 0 0; }
.topic-status { border-left: 3px solid #9b6b19; padding: 4px 16px; margin: 16px 0; }
.topic-method { text-align: left; }
.topic-example { padding: 16px 0; border-top: 1px solid #d8e5df; }
.topic-example p { margin-bottom: 0; }
.topic-chunks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic-chunks dt { color: #5e7169; font-size: 14px; }
.topic-chunks dd { margin: 6px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.topic-result dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.topic-result dt { font-size: 14px; color: #5e7169; }
.topic-result dd { margin: 8px 0 0; font-size: 20px; font-weight: 600; }
@media (max-width: 600px) {
  .topic-view { padding: 14px; }
  .topic-header h1 { font-size: 22px; }
  .topic-view h2 { font-size: 18px; }
  .topic-view .question-card { padding: 18px; }
  .topic-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-actions button { min-width: 0; padding: 12px 8px; }
  .topic-view .letter-key { padding: 0; min-width: 0; }
  .topic-result dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-chunks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.repractice-answer-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.repractice-answer-comparison > div {
  min-width: 0;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7faf8;
}
.repractice-answer-comparison dt, .repractice-reasons dt {
  font-weight: 700;
}
.repractice-answer-comparison dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.repractice-model-sentence {
  overflow-wrap: anywhere;
}
.repractice-reasons > div + div {
  margin-top: 12px;
}
.repractice-reasons dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .repractice-answer-comparison { gap: 8px; }
  .repractice-answer-comparison > div { padding: 9px; }
}
