.answer-explanation-toggle-button {
  position: fixed;
  top: 92px;
  right: 34px;
  z-index: 80;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 96px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgb(15 118 110 / 22%);
  cursor: pointer;
}

#examView.general-exam.book-19.test-1.module-reading .cd-passage-pane .is-reading-evidence-active {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

#examView.general-exam.book-19.test-1.module-reading .cd-passage-pane .reading-locator-highlight {
  background: #fff3a3;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25);
  color: inherit;
  padding: 0 2px;
}

#examView.general-exam.book-19.test-1.module-reading .cd-passage-pane .a7-inline-passage-translation {
  margin-top: 4px;
}

#examView.general-exam.book-19.test-2.module-reading .cd-passage-pane .is-reading-evidence-active {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

#examView.general-exam.book-19.test-2.module-reading .cd-passage-pane .reading-locator-highlight {
  background: #fff3a3;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25);
  color: inherit;
  padding: 0 2px;
}

#examView.general-exam.book-19.test-2.module-reading .cd-passage-pane .a7-inline-passage-translation {
  margin-top: 4px;
}

#examView.general-exam.book-19.test-3.module-reading .cd-passage-pane .is-reading-evidence-active {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

#examView.general-exam.book-19.test-3.module-reading .cd-passage-pane .reading-locator-highlight {
  background: #fff3a3;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25);
  color: inherit;
  padding: 0 2px;
}

#examView.general-exam.book-19.test-3.module-reading .cd-passage-pane .a7-inline-passage-translation {
  margin-top: 4px;
}

#examView.general-exam.book-19.test-4.module-reading .cd-passage-pane .is-reading-evidence-active {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

#examView.general-exam.book-19.test-4.module-reading .cd-passage-pane .reading-locator-highlight {
  background: #fff3a3;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25);
  color: inherit;
  padding: 0 2px;
}

#examView.general-exam.book-19.test-4.module-reading .cd-passage-pane .a7-inline-passage-translation {
  margin-top: 4px;
}

.listening-transcript-toggle-button {
  position: fixed;
  top: 92px;
  right: 148px;
  z-index: 80;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 96px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgb(29 78 216 / 20%);
  cursor: pointer;
}

.answer-explanation-toggle-button:hover {
  background: #115e59;
  border-color: #115e59;
}

.listening-transcript-toggle-button:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.answer-explanation-toggle-button:focus-visible {
  outline: 3px solid rgb(20 184 166 / 36%);
  outline-offset: 2px;
}

.listening-transcript-toggle-button:focus-visible {
  outline: 3px solid rgb(59 130 246 / 36%);
  outline-offset: 2px;
}

.answer-explanation-toggle-button[hidden],
.listening-transcript-toggle-button[hidden] {
  display: none !important;
}

.answer-explanation-panel {
  width: min(1080px, calc(100% - 36px));
  margin: 28px auto 12px;
  padding: 22px 24px;
  border: 1px solid #b7c7dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(15 23 42 / 10%);
}

.answer-explanation-panel.has-question-explanations .cambridge-explanation-grid {
  display: block;
}

.answer-explanation-panel.has-question-explanations .cambridge-explanation-grid > article {
  margin: 0;
}

.answer-explanation-panel.has-question-explanations .cambridge-explanation-grid > article[hidden] {
  display: none !important;
}

.answer-explanation-panel.has-question-explanations .cambridge-explanation-grid[hidden],
.answer-explanation-panel [data-answer-explanation-overview][hidden] {
  display: none !important;
}

#examView.module-reading .answer-explanation-panel.has-question-explanations:not(.has-selected-question) {
  display: none !important;
}

.cambridge-answer-explanation .cambridge-explanation-grid > article > strong:first-child {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 7px 12px;
  border: 1px solid #f59e0b;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
  color: #7c2d12;
  box-shadow: 0 8px 18px rgb(245 158 11 / 18%);
  line-height: 1.35;
}

.a7-reading-locator-term {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 8px;
  border: 1px solid #d97706;
  border-radius: 999px;
  background: #fef08a;
  color: #7c2d12;
  font-weight: 900;
  line-height: 1.35;
}

.a12-reading-explanation-card {
  display: block;
}

.a12-reading-explanation-fields {
  display: grid;
  gap: 12px;
}

.a12-reading-explanation-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.a12-reading-explanation-row > b {
  white-space: nowrap;
  color: #111827;
  font-weight: 800;
  line-height: 1.7;
}

.a12-reading-explanation-row > p {
  margin: 0;
  min-width: 0;
  line-height: 1.7;
}

.a7-reading-locator-strip {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
}

.a7-reading-locator-strip strong {
  margin-right: 6px;
  color: #78350f;
}

.a7-inline-passage-translation {
  margin: -2px 0 12px 22px;
  padding: 8px 10px;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  color: #134e4a;
  font-size: 0.94em;
  line-height: 1.65;
}

.a7-inline-passage-translation strong {
  color: #0f766e;
  font-weight: 900;
}

.listening-study-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.listening-study-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 7px 0 10px;
  padding: 7px 12px;
  border: 1px solid #f59e0b;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
  color: #7c2d12;
  box-shadow: 0 8px 18px rgb(245 158 11 / 18%);
  font-weight: 900;
  line-height: 1.35;
}

.listening-study-answer-badge span {
  color: #9a3412;
}

.listening-study-answer-badge strong {
  color: #7c2d12;
}

.listening-study-answer-badge:hover,
.listening-study-answer-badge:focus-visible {
  border-color: #ea580c;
  background: linear-gradient(90deg, #ffedd5 0%, #fde68a 100%);
  outline: 3px solid rgb(249 115 22 / 28%);
  outline-offset: 2px;
}

.exam-footer .study-footer-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(15 118 110 / 18%);
}

.exam-footer .study-footer-button:hover {
  background: #115e59;
  border-color: #115e59;
}

.exam-footer .study-footer-button.is-active {
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 12px 26px rgb(15 23 42 / 22%);
}

#resultView .review-list {
  padding-bottom: 84px;
}

#resultView .result-return-button {
  position: fixed;
  right: 34px;
  bottom: 28px;
  z-index: 40;
  min-width: 118px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 75, 70, 0.2);
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 16px 34px rgb(255 75 70 / 26%);
  font-weight: 900;
}

#resultView .result-return-button:hover {
  background: var(--primary-strong);
}

.is-explanation-active {
  outline: 3px solid rgb(20 184 166 / 45%) !important;
  outline-offset: 2px;
}

.listening-scroll > .cd-listening:has(.cd-listening-workspace.has-study-panel) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.cd-listening-workspace.has-study-panel {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(360px, 38%);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0 18px;
}

.cd-listening-workspace.has-study-panel > .cd-paper,
.cd-listening-study-panel {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
}

.cd-listening-workspace.has-study-panel > .cd-paper {
  padding-right: 4px;
}

.cd-listening-study-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid #dbe3ef;
  padding: 12px 14px;
}

.cd-listening-study-panel .answer-explanation-panel,
.cd-listening-study-panel .listening-transcript-panel {
  width: auto;
  margin: 0;
}

.cd-listening-study-panel .answer-explanation-panel {
  flex: 0 0 auto;
  max-height: min(34vh, 330px);
  overflow: auto;
}

.cd-listening-study-panel .listening-transcript-panel {
  flex: 1 1 auto;
  min-height: 260px;
  overflow: auto;
}

.answer-explanation-panel .forecast-explanation-head {
  margin-bottom: 14px;
}

.answer-explanation-panel .forecast-explanation-body {
  line-height: 1.75;
}

.answer-explanation-panel [data-answer-explanation-overview] {
  font-size: 12px;
  line-height: 1.55;
}

.answer-explanation-panel [data-answer-explanation-overview] h4 {
  font-size: 14px;
}

.answer-explanation-panel.is-highlighted {
  outline: 4px solid rgb(20 184 166 / 34%);
  outline-offset: 4px;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article {
  padding-left: 0;
  border-left: 0;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > strong:first-child {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid #f6c66a;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fff6d8 100%);
  color: #8a2f13;
  box-shadow: 0 10px 22px rgb(249 115 22 / 16%);
  font-weight: 900;
  line-height: 1.35;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article:has(table)
  > .a7-reading-locator-strip {
  display: none;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 16px;
  line-height: 1.62;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  :is(th, td) {
  padding: 11px 14px;
  border: 1px solid #d4dae5;
  vertical-align: top;
  text-align: left;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  th {
  width: 104px;
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  white-space: normal;
  word-break: keep-all;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  td {
  background: #ffffff;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  .a7-reading-locator-term {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-fields {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  border-top: 1px solid #d4dae5;
  border-left: 1px solid #d4dae5;
  background: #ffffff;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 16px;
  line-height: 1.62;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row
  > :is(b, p) {
  margin: 0;
  padding: 11px 14px;
  border-right: 1px solid #d4dae5;
  border-bottom: 1px solid #d4dae5;
  text-align: left;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row
  > b {
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  white-space: normal;
  word-break: keep-all;
}

#examView.academic-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  [data-answer-explanation-overview] {
  display: none !important;
}

/* G4-G20 General Reading: keep answer explanation source tables tidy without touching Academic. */
#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid,
#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article {
  width: 100%;
  min-width: 0;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article {
  padding-left: 0;
  border-left: 0;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(strong, h5):first-child {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid #f6c66a;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fff6d8 100%);
  color: #8a2f13;
  box-shadow: 0 10px 22px rgb(249 115 22 / 16%);
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > h5:first-child
  span {
  display: inline;
  margin-left: 6px;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article:has(table)
  > .a7-reading-locator-strip {
  display: none;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.55;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  :is(th, td) {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #d4dae5;
  vertical-align: top;
  text-align: left;
  white-space: normal;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  th {
  width: 104px;
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  td {
  max-width: 100%;
  background: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  td
  * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  table
  .a7-reading-locator-term {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-fields {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-top: 1px solid #d4dae5;
  border-left: 1px solid #d4dae5;
  background: #ffffff;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.55;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row
  > :is(b, p) {
  min-width: 0;
  margin: 0;
  padding: 11px 14px;
  border-right: 1px solid #d4dae5;
  border-bottom: 1px solid #d4dae5;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.general-exam.module-reading:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a12-reading-explanation-row
  > b {
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* A4-A20 Academic Listening: source-style answer explanation tables. */
#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation,
#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .cambridge-explanation-grid,
#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .cambridge-explanation-grid
  > article {
  width: 100%;
  min-width: 0;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .cambridge-explanation-grid
  > article {
  padding-left: 0;
  border-left: 0;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .cambridge-explanation-grid
  > article
  > .a4-a20-listening-answer-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid #f6c66a;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fff6d8 100%);
  color: #8a2f13;
  box-shadow: 0 10px 22px rgb(249 115 22 / 16%);
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .a4-a20-listening-explanation-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 17px;
  line-height: 1.55;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .a4-a20-listening-explanation-table
  :is(th, td) {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #d4dae5;
  vertical-align: top;
  text-align: left;
  white-space: normal;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .a4-a20-listening-explanation-table
  th {
  width: 104px;
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .a4-a20-listening-explanation-table
  td,
#examView.academic-exam.module-listening:is(
  .book-4,
  .book-5,
  .book-6,
  .book-7,
  .book-8,
  .book-9,
  .book-10,
  .book-11,
  .book-12,
  .book-13,
  .book-14,
  .book-15,
  .book-16,
  .book-17,
  .book-18,
  .book-19,
  .book-20
)
  .answer-explanation-panel
  .a4-a20-listening-source-explanation
  .a4-a20-listening-explanation-table
  td
  * {
  max-width: 100%;
  background: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.academic-exam.book-8.test-1.module-reading .cd-passage-pane .cd-passage-lettered {
  display: block;
  padding-left: 32px;
}

#examView.academic-exam.book-8.test-1.module-reading .cd-passage-pane .cd-passage-lettered .cd-passage-letter {
  display: inline-block;
  width: 28px;
  margin-left: -32px;
  margin-right: 4px;
  vertical-align: baseline;
}

#examView.academic-exam.book-8.test-1.module-reading .cd-passage-pane .reading-locator-highlight {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
  background: #fde047;
  color: #111827;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.listening-transcript-panel {
  width: min(1080px, calc(100% - 36px));
  margin: 28px auto 12px;
  padding: 22px 24px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 14px 36px rgb(15 23 42 / 10%);
  font-family: Arial, sans-serif;
}

.listening-transcript-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbeafe;
}

.listening-transcript-head strong,
.listening-transcript-head span {
  display: block;
}

.listening-transcript-head strong {
  font-size: 18px;
}

.listening-transcript-head span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.listening-transcript-body {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.listening-transcript-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
}

.listening-transcript-row[data-transcript-start] {
  cursor: pointer;
}

.listening-transcript-row[data-transcript-start]:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.listening-transcript-row.is-active {
  border-color: #60a5fa;
  background: #eff6ff;
}

.listening-transcript-row.is-targeted {
  box-shadow: 0 0 0 4px rgb(59 130 246 / 20%);
}

.listening-transcript-row.is-current {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 18%);
}

.listening-transcript-row.is-current > strong {
  color: #15803d;
  font-weight: 900;
}

.listening-transcript-row.is-current p {
  color: #166534;
  font-weight: 800;
}

.listening-transcript-row > strong {
  color: #1f2937;
  font-size: 13px;
}

.listening-transcript-row p {
  margin: 0;
  color: #111827;
  line-height: 1.55;
}

.listening-transcript-q-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.listening-transcript-q {
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 9px;
  font-weight: 800;
  cursor: pointer;
}

.listening-transcript-q:hover,
.listening-transcript-q.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.listening-transcript-q.is-current {
  border-color: #15803d;
  background: #16a34a;
  color: #fff;
}

.listening-transcript-panel.is-highlighted {
  outline: 4px solid rgb(59 130 246 / 32%);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .listening-scroll > .cd-listening:has(.cd-listening-workspace.has-study-panel) {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .cd-listening-workspace.has-study-panel {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0 12px 16px;
  }

  .cd-listening-workspace.has-study-panel > .cd-paper,
  .cd-listening-study-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .cd-listening-study-panel {
    margin-top: 16px;
    border-left: 0;
    padding: 0;
  }

  .cd-listening-study-panel .answer-explanation-panel,
  .cd-listening-study-panel .listening-transcript-panel {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .answer-explanation-toggle-button {
    top: 78px;
    right: 14px;
    min-width: 84px;
    padding: 9px 12px;
  }

  .listening-transcript-toggle-button {
    top: 128px;
    right: 14px;
    min-width: 84px;
    padding: 9px 12px;
  }

  .answer-explanation-panel {
    width: calc(100% - 20px);
    padding: 18px 16px;
  }

  .listening-transcript-panel {
    width: calc(100% - 20px);
    padding: 18px 16px;
  }

  .listening-transcript-row {
    grid-template-columns: 1fr;
  }

  .listening-transcript-q-list {
    justify-content: flex-start;
  }
}

/* A19 Academic Reading: answer explanation layout matching the source-table card style. */
#examView.academic-exam.book-19.module-reading .answer-explanation-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid #b8c8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgb(15 23 42 / 8%);
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .forecast-explanation-head strong {
  font-family: "Times New Roman", SimSun, serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .answer-explanation-note {
  margin: 18px 0 20px;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.65;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .a19-reading-answer-explanation,
#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid {
  width: 100%;
  min-width: 0;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article {
  width: 100%;
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > :is(strong, h5):first-child {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 16px;
  border: 1px solid #fdba74;
  border-left: 4px solid #f97316;
  border-radius: 5px;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: none;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > h5:first-child span {
  display: inline;
  margin-left: 6px;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  background: #ffffff;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.45;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article table :is(th, td) {
  padding: 10px 14px;
  border: 1px solid #d4dce9;
  vertical-align: top;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article table th {
  width: 124px;
  min-width: 124px;
  background: #f3f0f8;
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > p {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > p:has(> b:first-child) {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  column-gap: 14px;
  padding: 0 14px 0 0;
  border: 1px solid #d4dce9;
  border-bottom: 0;
  background: #ffffff;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > p:has(> b:first-child):last-child {
  border-bottom: 1px solid #d4dce9;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > p:has(> b:first-child) > b:first-child {
  align-self: stretch;
  padding: 10px 14px;
  border-right: 1px solid #d4dce9;
  background: #f3f0f8;
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

#examView.academic-exam.book-19.module-reading .answer-explanation-panel .cambridge-explanation-grid > article > p:has(> b:first-child) + p:has(> b:first-child) {
  border-top: 0;
}

/* A4 Academic Listening only: match source-style explanation layout without changing explanation content. */
#examView.academic-exam.book-4.module-listening
  .cd-listening-study-panel
  .answer-explanation-panel {
  max-height: min(58vh, 620px);
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .forecast-explanation-head {
  margin-bottom: 26px;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .forecast-explanation-head
  strong {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  :is(.a4-a20-listening-source-explanation, .a4-listening-answer-explanation) {
  width: 100%;
  max-width: 100%;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  :is(.a4-a20-listening-source-explanation, .a4-listening-answer-explanation)
  > section:first-child {
  margin-bottom: 26px;
  color: #111827;
  font-size: 16px;
  line-height: 1.65;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  :is(.a4-a20-listening-source-explanation, .a4-listening-answer-explanation)
  > section:first-child
  h4 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  :is(.a4-a20-listening-source-explanation, .a4-listening-answer-explanation)
  > section:first-child
  p {
  margin: 0;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid {
  width: 100%;
  min-width: 0;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-left: 0;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article[hidden] {
  display: none !important;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-answer-badge, strong:first-child) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid #f6c66a;
  border-left: 5px solid #f97316;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff7ed 0%, #fff6d8 100%);
  color: #8a2f13;
  box-shadow: 0 10px 22px rgb(249 115 22 / 16%);
  font-family: "Times New Roman", SimSun, serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-explanation-table, .a4-listening-source-explanation) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  color: #111827;
  font-family: "Times New Roman", SimSun, serif;
  font-size: 17px;
  line-height: 1.55;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-explanation-table, .a4-listening-source-explanation)
  :is(th, td) {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #d4dae5;
  vertical-align: top;
  text-align: left;
  white-space: normal;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-explanation-table, .a4-listening-source-explanation)
  th {
  width: 104px;
  background: #f2eff6;
  color: #111827;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-explanation-table, .a4-listening-source-explanation)
  td,
#examView.academic-exam.book-4.module-listening
  .answer-explanation-panel
  .cambridge-explanation-grid
  > article
  > :is(.a4-a20-listening-explanation-table, .a4-listening-source-explanation)
  td
  * {
  max-width: 100%;
  background: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
