/* Shared result sections use each test's Prep semantic tokens. */
.learner-feedback h2 {
  font: 600 22px/1.45 var(--font-display);
  margin: 0 0 12px;
}
.learner-feedback h3,
.technical-area h3 {
  font: 600 17px/1.5 var(--font-display);
  margin: 0 0 12px;
}
.learner-feedback h4,
.evidence-source h4 {
  font: 600 15px/1.5 var(--font-body);
  margin: 0 0 8px;
}
.kc-evidence {
  margin-top: 12px;
  border-top: 1px solid var(--color-hairline);
}
.kc-evidence > summary {
  padding: 12px 0;
  cursor: pointer;
  color: var(--color-brand);
}
.kc-evidence > summary code {
  display: block;
  color: var(--color-text-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.evidence-count {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.evidence-status {
  display: block;
  color: var(--color-text-2);
  font-size: 14px;
  margin-top: 4px;
}
.evidence-body {
  padding: 0 0 16px;
}
.evidence-source {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-fill);
  border-radius: var(--radius-m);
  min-width: 0;
}
.evidence-id {
  overflow-wrap: anywhere;
}
.evidence-stimulus {
  white-space: pre-wrap;
}
.evidence-options {
  padding-left: 24px;
}
.evidence-options li {
  margin: 8px 0;
}
.evidence-correct {
  color: var(--color-brand);
}
.evidence-readings {
  margin: 16px 0 0;
  padding-left: 20px;
}
.evidence-readings li + li {
  margin-top: 12px;
}
.evidence-source audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}
.evidence-source p {
  overflow-wrap: anywhere;
}
.attempt-reference > summary {
  cursor: pointer;
  padding: 8px 0;
}
.technical-area {
  margin-top: 24px;
}
.attempt-reference {
  font-size: 13px;
  color: var(--color-text-2);
  overflow-wrap: anywhere;
}
.attempt-reference p {
  margin: 8px 0;
}
.kc-evidence summary:focus-visible,
.mentor-evidence summary:focus-visible,
.result-history summary:focus-visible,
.technical-formula summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}
@media (min-width: 760px) {
  .technical-area .kc-evidence > summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
  .evidence-status {
    text-align: right;
  }
}

/* Learner result and internal analysis are separate, addressable screens. */
body:has(.screen-result-learner) {
  --content-max: 760px;
}
body:has(.screen-result-technical) {
  --content-max: 1120px;
}
.result-main,
.mentor-sections,
.screen-result-technical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.mentor-sections h2,
.course-next h2,
.evidence-guide h2,
.confidence-header h2 {
  font: 600 22px/1.45 var(--font-display);
  margin: 0 0 12px;
}
.mentor-sections p,
.course-next p,
.evidence-guide p {
  margin: 0 0 12px;
}
.mentor-points {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.mentor-point {
  padding: 16px;
  border-radius: var(--radius-l);
  background: var(--color-fill);
}
.mentor-point.is-strength { background: var(--color-tint); }
.mentor-point p { margin: 0 0 12px; }

.mentor-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-2);
}
.mentor-actions {
  margin: 16px 0 0;
  padding-left: 24px;
}
.mentor-actions li {
  padding-left: 8px;
}
.mentor-actions li + li {
  margin-top: 12px;
}
.mentor-actions li::marker {
  color: var(--color-brand);
  font-weight: 600;
}
.course-next {
  background: var(--color-tint);
  border-color: var(--color-tint-border);
}
.course-path {
  font-weight: 600;
}
.course-cta {
  text-decoration: none;
  margin: 24px 0 12px;
  text-align: center;
  white-space: normal;
}
.technical-entry {
  padding: 24px 0;
  border-top: 1px solid var(--color-hairline);
}
.technical-entry a {
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
.result-history > summary,
.technical-formula > summary {
  cursor: pointer;
  font-weight: 600;
}
.internal-notice {
  background: var(--color-warning-tint);
  padding: 12px 20px;
  border-radius: var(--radius-m);
  font-weight: 600;
  margin: 0;
}
.screen-result-technical > .btn {
  align-self: start;
}
.screen-result-technical h1 {
  font: 600 30px/1.35 var(--font-display);
  margin: 0 0 12px;
}
.confidence-header {
  margin: 16px 0;
}
.proficiency-groups {
  display: grid;
  gap: 16px;
  align-items: start;
}
.proficiency-group {
  min-width: 0;
  padding: 20px;
}
.proficiency-group > h3 {
  font: 600 18px/1.5 var(--font-display);
  margin: 0;
}
.technical-area h4 {
  font: 600 14px/1.5 var(--font-body);
  color: var(--color-text-2);
  margin: 16px 0 8px;
}
.proficiency-group .kc-evidence > summary {
  display: block;
}
.proficiency-group .evidence-status {
  text-align: left;
}
.technical-area .kc-evidence {
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .proficiency-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Contextual occurrences use the same centered dialog and review content. */
.occurrence-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.occurrence-list li + li {
  border-top: 1px solid var(--color-hairline);
}
.occurrence-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.occurrence-button span {
  color: var(--color-text-2);
  font-size: 14px;
}
.occurrence-button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}
.evidence-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.evidence-dialog[open] {
  display: flex;
  flex-direction: column;
}
.evidence-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-hairline);
}
.evidence-dialog-header h2 {
  font: 600 20px/1.4 var(--font-display);
  margin: 0;
}
.evidence-dialog-content {
  overflow-y: auto;
  padding: 0 24px 24px;
  overscroll-behavior-y: contain;
}
.evidence-dialog .evidence-source {
  background: var(--color-surface);
  padding: 0;
}
.review-link {
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
body:has(.screen-attempt-review) {
  --content-max: 800px;
}
.screen-attempt-review,
.review-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.screen-attempt-review > .btn {
  align-self: start;
}
.screen-attempt-review h1 {
  font: 600 28px/1.4 var(--font-display);
  margin: 12px 0;
}
.review-item .evidence-source {
  margin: 0;
  padding: 0;
  background: none;
}
.review-item .evidence-readings:empty {
  display: none;
}
.review-score {
  font-weight: 600;
  color: var(--color-brand);
}
.review-transcript {
  margin: 16px 0;
}
.review-transcript summary {
  color: var(--color-brand);
  cursor: pointer;
}
.review-transcript p {
  white-space: pre-wrap;
}
.attempt-summary {
  padding-top: 12px;
  padding-bottom: 12px;
}
.attempt-summary .path {
  margin: 0;
}

/* Results: a native-scale score story, then concrete coaching and the next step. */
.screen-result-learner [hidden] { display: none !important; }
.screen-result-learner .result-main { gap: 24px; }
.screen-result-learner .result-hero { display: grid; grid-template-columns: 120px 1fr; align-items: center; text-align: left; column-gap: 24px; }
.screen-result-learner .result-hero .bee { width: 120px; height: 120px; grid-row: span 2; margin: 0; }
.screen-result-learner .result-title { font-size: clamp(28px,4vw,40px); margin: 0; }
.screen-result-learner .result-study { font-size: 22px; margin: 8px 0 0; }
.screen-result-learner .score-card { text-align: left; padding: 32px; }
.screen-result-learner .score-value { font-size: clamp(38px,6vw,64px); }
.position-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.position-heading h2 { font:600 30px/1.3 var(--font-display); margin:8px 0 0; }
.result-badge { border-radius:var(--radius-full); padding:8px 12px; background:var(--color-tint); color:var(--color-brand); font-size:13px; }
.level-scale { margin:24px 0 32px; }
.level-track,.observed-track { height:10px; background:var(--color-fill); border-radius:var(--radius-full); overflow:hidden; }
.level-track span,.observed-track span { display:block; height:100%; background:var(--color-brand); border-radius:inherit; }
.level-ticks { display:flex; justify-content:space-between; color:var(--color-text-2); font-size:12px; margin-top:10px; }
.level-ticks .reached { color:var(--color-brand); font-weight:600; }
.reference-heading { border-top:1px solid var(--color-hairline); padding-top:24px; }
.reference-heading h3 { font:600 28px/1.4 var(--font-display); margin:8px 0; }
.reference-heading h3 span { font:400 14px/1.5 var(--font-body); color:var(--color-text-2); }
.reference-chart { display:flex; gap:8px; height:146px; margin:24px 0; }
.reference-column { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11px; color:var(--color-text-2); }
.reference-value { font-size:10px; }
.reference-bar-space { width:100%; max-width:52px; height:100%; display:flex; align-items:end; }
.reference-bar-space span { display:block; width:100%; min-height:2px; border-radius:6px 6px 0 0; background:var(--color-border-strong); }
.reference-column.is-current { color:var(--color-brand); font-weight:600; }
.reference-column.is-current .reference-bar-space span { background:var(--color-brand); }
.result-position .caption { line-height:1.65; }
.result-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:20px; margin:20px 0 28px; }
.result-metric { display:flex; align-items:center; gap:12px; }
.result-metric svg { width:68px; height:68px; flex-shrink:0; transform:rotate(-90deg); }
.result-metric circle { fill:none; stroke-width:8; }
.metric-track { stroke:var(--color-fill); }
.metric-progress { stroke:var(--color-brand); stroke-linecap:round; }
.result-metric strong { font:600 25px/1.4 var(--font-display); }
.result-metric p { margin:0; }
.result-metric .section-label { font-size:12px; }
.result-metric .caption { font-size:12px; }
.observed-skills { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.observed-skill>div:first-child { display:flex; justify-content:space-between; gap:8px; font-size:14px; margin-bottom:10px; }
.observed-skill span { color:var(--color-text-2); }
.difficulty-chart { border-top:1px solid var(--color-hairline); padding-top:20px; margin-top:24px; }
.difficulty-chart svg { display:block; width:100%; overflow:visible; }
.difficulty-line { fill:none; stroke:var(--color-border-strong); stroke-width:3; }
.difficulty-chart text { fill:var(--color-text-2); font:12px var(--font-body); text-anchor:middle; }
.difficulty-chart .difficulty-value { font-size:11px; }
.answered-right { fill:var(--color-brand); background:var(--color-brand); }
.answered-wrong { fill:var(--color-negative); background:var(--color-negative); }
.legend-dot { display:inline-block; height:8px; width:8px; border-radius:50%; margin:0 2px 0 8px; }
.course-path { display:flex; flex-wrap:wrap; list-style:none; padding:0; gap:12px; margin:24px 0; }
.course-path li { display:flex; align-items:center; gap:8px; font-size:14px; }
.course-path li:not(:last-child)::after { content:'→'; color:var(--color-text-2); margin-left:4px; }
.course-path span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--color-brand); color:var(--color-on-brand); font-size:12px; }
.result-preparation { min-height:60vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:16px; max-width:560px; margin:auto; padding:32px 0; }
.result-preparation h1 { font:600 28px/1.4 var(--font-display); margin:0; }
.result-preparation p { margin:0; color:var(--color-text-2); }
.preparation-mark { display:flex; align-items:center; justify-content:center; gap:8px; width:88px; height:88px; border-radius:50%; background:var(--color-tint); color:var(--color-brand); font-size:32px; margin-bottom:16px; }
.preparation-mark span { width:10px; height:10px; border-radius:50%; background:var(--color-brand); animation:result-pulse 1.2s ease-in-out infinite; }
.preparation-mark span:nth-child(2) { animation-delay:.15s; }
.preparation-mark span:nth-child(3) { animation-delay:.3s; }
@keyframes result-pulse { 50% { opacity:.25; transform:translateY(-6px); } }
@media(prefers-reduced-motion:reduce) { .preparation-mark span { animation:none; } }
@media(max-width:600px) {
 .position-heading { align-items:start; }
 .result-badge { max-width:116px; text-align:center; }
 .reference-chart { gap:4px; }
 .observed-skills { grid-template-columns:1fr; gap:16px; }
 .result-metrics { grid-template-columns:1fr; gap:16px; }
 .screen-result-learner .result-hero { grid-template-columns:72px 1fr; column-gap:16px; }
 .screen-result-learner .result-hero .bee { width:72px; height:72px; }
 .screen-result-learner .result-title { font-size:25px; }
 .screen-result-learner .result-study { font-size:18px; }
 .screen-result-learner .score-card { padding:24px; }
 .mentor-point { padding:16px; }
}
.screen-result-learner .actions.actions-static {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.result-reference .reference-heading { border-top:0; padding-top:0; }

.reference-gauge { display:grid; grid-template-columns:minmax(180px,280px) 1fr; align-items:center; gap:24px; }
.reference-gauge svg { width:100%; overflow:visible; }
.gauge-track,.gauge-progress { fill:none; stroke-width:18; stroke-linecap:round; }
.gauge-track { stroke:var(--color-border-strong); }
.gauge-progress { stroke:var(--color-brand); }
.gauge-needle,.gauge-hub { fill:var(--color-text); }
.reference-gauge svg text { fill:var(--color-text-2); font:12px var(--font-body); }
.reference-gauge h2 { margin:4px 0; font:600 24px/1.4 var(--font-display); }
.reference-gauge h2 span { color:var(--color-brand); white-space:nowrap; }
.reference-gauge p { margin:4px 0; }
.reference-method p { margin:12px 0; }
@media (max-width:560px) { .reference-gauge { grid-template-columns:1fr; gap:12px; text-align:center; } .reference-gauge svg { max-width:260px; margin:auto; } }

.mentor-point header { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.mentor-icon { color:var(--color-brand); display:flex; flex-shrink:0; }
.mentor-icon svg { width:24px; height:24px; }
.mentor-point h3 { font:600 16px/1.5 var(--font-display); margin:0; }
.mentor-point .mentor-label { font-size:12px; }
.mentor-point p { margin:0; font-size:15px; line-height:1.6; }
.mentor-question { font-weight:600; }
.chinese-gloss ruby { ruby-position:over; }
.chinese-gloss rt { font:400 11px/1.2 var(--font-body); color:var(--color-text-2); }
.gloss-meaning { color:var(--color-text-2); font-size:.9em; }

.language-picker { margin-left:auto; display:flex; align-items:center; }
.language-picker select { font:500 14px/1.5 var(--font-body); color:var(--color-text); background:var(--color-fill); border:1px solid var(--color-hairline); border-radius:var(--radius-pill); padding:8px 12px; max-width:130px; cursor:pointer; }
.language-picker select:focus-visible { outline:2px solid var(--color-brand); outline-offset:2px; }
@media(max-width:560px) { .topbar-product { display:none; } .topbar-inner { gap:8px; } .topbar-restart { font-size:12px; padding:8px; } .language-picker select { max-width:112px; } }
html[lang="th"] { --font-display:var(--font-body); }

/* Timed items: the bar runs along the foot of the module head and takes no row of its own;
   the seconds show beside the instruction only near the end. */
.module-head { position: relative; }
.item-clock { display: contents; }
.item-clock-count {
  flex: none;
  margin-left: auto;
  font: 600 14px/20px var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-negative);
}
.item-clock-count:empty { display: none; }
.item-clock-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-hairline);
  overflow: hidden;
}
.item-clock-fill {
  display: block;
  height: 100%;
  background: var(--color-brand);
  transform-origin: left center;
  transition: transform 250ms linear;
}
.item-clock.is-ending .item-clock-fill { background: var(--color-negative); }
.play.is-prompt .play-glyph { animation: pulse-ring 1.2s var(--ease-standard) infinite; }
@media (prefers-reduced-motion: reduce) {
  .item-clock-fill { transition: none; }
  .play.is-prompt .play-glyph { animation: none; }
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.learner-feedback,.learner-actions { gap:12px; }
.learner-feedback > h2,.learner-feedback > p,.learner-feedback > .mentor-points { margin:0; }
.learner-actions > h2,.learner-actions > .mentor-actions { margin-top:0; margin-bottom:0; }
.mentor-point .chinese-gloss { line-height:2; }

/* Status is expressed with labels, icons and semantic colour together. */
.mentor-point { border:1px solid var(--color-border-strong); }
.mentor-point.is-strength { background:var(--color-positive-tint); border-color:var(--color-positive); }
.mentor-point.is-priority { background:var(--color-warning-tint); border-color:var(--color-warning); }
.mentor-point.is-strength .mentor-icon,.mentor-point.is-strength .mentor-label { color:var(--color-positive); }
.mentor-point.is-priority .mentor-icon,.mentor-point.is-priority .mentor-label { color:var(--color-warning); }
.mentor-point .mentor-icon { width:40px; height:40px; border-radius:var(--radius-full); align-items:center; justify-content:center; background:var(--color-surface); }
.mentor-point .mentor-label { display:inline-block; font-weight:700; font-size:14px; }
.mentor-point .practice-open { margin-top:16px; min-height:44px; }
.practice-caption { display:block; margin-top:8px; color:var(--color-text-2); font-size:12px; }
.practice-dialog { width:min(680px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:24px; border:1px solid var(--color-hairline); border-radius:var(--radius-l-plus); background:var(--color-surface); color:var(--color-text); overflow:auto; box-shadow:var(--shadow-overlay); }
.practice-dialog::backdrop { background:var(--color-scrim); }
.practice-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.practice-header h2 { font:600 20px/1.4 var(--font-display); margin:4px 0 16px; }
.practice-header p { margin:0; }
.practice-content { display:grid; gap:16px; }
.practice-content p,.practice-content h3 { margin:0; }
.practice-content h3 { font:600 18px/1.5 var(--font-display); }
.practice-steps { display:flex; flex-wrap:wrap; gap:12px; list-style:none; padding:0; margin:0; color:var(--color-text-2); font-size:13px; }
.practice-steps [aria-current] { color:var(--color-brand); font-weight:700; }
.practice-steps .is-done { color:var(--color-positive); }
.practice-lesson,.practice-stimulus,.practice-feedback,.practice-hint { padding:16px; border-radius:var(--radius-m); background:var(--color-fill); }
.practice-lesson { background:var(--color-tint); }
.practice-options { display:grid; gap:8px; }
.practice-option { display:flex; align-items:center; gap:12px; width:100%; padding:14px; text-align:left; border:1px solid var(--color-border-strong); border-radius:var(--radius-m); background:var(--color-surface); color:var(--color-text); font:inherit; cursor:pointer; }
.practice-option.is-selected { border-color:var(--color-brand); background:var(--color-tint); }
.practice-option-letter { font-weight:700; color:var(--color-text-2); }
.practice-option:focus-visible { outline:3px solid var(--color-brand); outline-offset:2px; }
.practice-feedback.is-correct { background:var(--color-positive-tint); }
.practice-feedback.is-support,.practice-hint { background:var(--color-warning-tint); }
.practice-feedback p { margin-top:8px; }
.practice-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.practice-chat { display:grid; gap:12px; border-top:1px solid var(--color-hairline); padding-top:16px; }
.practice-chat form { display:flex; gap:8px; flex-wrap:wrap; }
.practice-chat input { flex:1; min-width:160px; border:1px solid var(--color-border-strong); border-radius:var(--radius-m); background:var(--color-surface); color:var(--color-text); padding:12px; font:inherit; }
.practice-message { padding:12px; border-radius:var(--radius-m); background:var(--color-fill); }
.practice-message.is-mentor { background:var(--color-tint); }
.practice-complete { display:grid; gap:16px; }
.practice-done-mark { color:var(--color-positive); font-size:32px; }
.practice-due { padding:12px; border-radius:var(--radius-m); background:var(--color-tint); }
@media(max-width:560px){.practice-dialog{padding:16px}.practice-header h2{font-size:18px}.practice-option{padding:12px}}

/* Full attempt review: pinyin and translation toggles, spoken script bands, answer marks. */
.review-display {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 0;
  background: var(--color-bar-wide, var(--color-canvas));
  backdrop-filter: saturate(180%) blur(20px);
}
.review-toggle, .segmented button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-2);
  font: 600 14px/20px var(--font-body);
  cursor: pointer;
}
.review-toggle[aria-pressed="true"], .segmented button[aria-pressed="true"] {
  border-color: var(--color-tint-border);
  background: var(--color-tint);
  color: var(--color-brand);
}
.review-toggle[aria-pressed="true"]::before { content: "✓ "; }
.review-toggle:focus-visible, .segmented button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.review-items ruby { ruby-position: over; }
.review-items rt { font: 400 11px/1.2 var(--font-body); color: var(--color-text-2); }
.review-items[data-pinyin="off"] rt { display: none; }
.review-items .evidence-stimulus p { margin: 0 0 8px; line-height: 2.2; }
.review-items .evidence-options li { line-height: 2.2; }
.review-items[data-pinyin="off"] .evidence-stimulus p,
.review-items[data-pinyin="off"] .evidence-options li { line-height: 1.6; }
.hz-word { margin-right: 0.3em; }
.review-translation {
  display: block;
  margin-top: 2px;
  color: var(--color-text-2);
  font: 400 14px/20px var(--font-body);
  white-space: normal;
}
.review-items[data-translate="off"] .review-translation { display: none; }
.spoken-script { margin: 8px 0; line-height: 2.2; white-space: pre-wrap; }
.spoken { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.spoken.is-said { color: var(--color-positive); }
.spoken.is-slip { color: var(--color-warning); text-decoration-line: underline; text-decoration-style: dotted; }
.spoken.is-weak, .spoken.is-not_said { color: var(--color-negative); }
.spoken-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend-chip::before { content: "●"; margin-right: 4px; }
.legend-chip.is-said::before { color: var(--color-positive); }
.legend-chip.is-slip::before { color: var(--color-warning); }
.legend-chip.is-weak::before { color: var(--color-negative); }
.spoken-answer { margin: 16px 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.answer-mark { padding: 1px 2px; border-radius: 4px; color: inherit; }
.answer-mark.is-strength { background: var(--color-positive-tint); box-shadow: inset 0 -2px 0 var(--color-positive); }
.answer-mark.is-error { background: var(--color-negative-tint); box-shadow: inset 0 -2px 0 var(--color-negative); }
.answer-fix { color: var(--color-positive); font-weight: 600; }
.answer-mark-list ul { margin: 4px 0 12px; padding-left: 20px; }
.answer-mark-list.is-strength .section-label { color: var(--color-positive); }
.answer-mark-list.is-error .section-label { color: var(--color-negative); }
