* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body.mock-exam {
  display: flex;
  flex-direction: column;
  min-width: 1100px;
  overflow: hidden;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font-family: inherit;
}

.mock-header {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px 0 16px;
  border-bottom: 1px solid #c8c8c8;
  background: #ffffff;
  z-index: 20;
}

.mock-brand {
  color: #e31b23;
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}

.mock-paper-title {
  min-width: 0;
  overflow: hidden;
  color: #222222;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-timer {
  margin-left: auto;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mock-net {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #333333;
}

.mock-net svg {
  width: 18px;
  height: 18px;
}

.mock-net-label {
  color: #777777;
  font-size: 10px;
}

.mock-net.is-offline {
  color: #b04545;
}

.mock-net.is-offline .mock-net-label {
  color: #b04545;
}

.mock-font-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #555555;
  font-size: 11px;
}

.mock-font-control select {
  height: 27px;
  padding: 0 6px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
  font-size: 11px;
}

.mock-section-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.mock-section-tab {
  height: 30px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #555555;
  font-size: 12px;
  cursor: pointer;
}

.mock-section-tab:hover {
  background: #f4f4f4;
}

.mock-section-tab.is-active {
  border-color: #c9c9c9;
  background: #f2f3ef;
  color: #111111;
  font-weight: 600;
}

.mock-header-review {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-size: 11px;
  cursor: pointer;
}

.mock-header-review:hover {
  background: #f2f2f2;
}

.mock-header-submit {
  height: 32px;
  margin-left: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mock-header-submit:hover {
  background: #333333;
}

.mock-main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #ffffff;
}

.mock-section {
  display: none;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.mock-section.is-active {
  display: flex;
}

.mock-section-bar {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid #e4e4e4;
  background: #f2f3ef;
}

.mock-section-name {
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-section-note {
  color: #666666;
  font-size: 12px;
}

.mock-part-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-part-tab {
  height: 26px;
  padding: 0 11px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  cursor: pointer;
}

.mock-part-tab:hover {
  background: #f5f5f5;
}

.mock-part-tab.is-active {
  border-color: #418fc6;
  color: #1f6387;
  font-weight: 700;
}

.mock-audio-bar {
  flex: 0 0 54px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  border-bottom: 1px solid #e4e4e4;
  background: #ffffff;
}

.mock-audio-label {
  flex: 0 0 auto;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
}

.mock-audio-play {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #234d63;
  color: #ffffff;
  cursor: pointer;
}

.mock-audio-play svg {
  width: 16px;
  height: 16px;
}

.mock-audio-track {
  flex: 1 1 auto;
  min-width: 120px;
}

.mock-audio-track input {
  width: 100%;
  height: 14px;
}

.mock-audio-time {
  display: flex;
  justify-content: space-between;
  color: #777777;
  font-size: 10px;
}

.mock-audio-small {
  width: 28px;
  height: 26px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  background: #ffffff;
  color: #555555;
  cursor: pointer;
}

.mock-audio-duration {
  color: #777777;
  font-size: 11px;
  white-space: nowrap;
}

.mock-paper-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: #ffffff;
}

.mock-paper-scroll::-webkit-scrollbar,
.mock-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mock-listen-paper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 36px 90px;
  color: #111111;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.mock-reading-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 50%) 3px minmax(0, 1fr);
}

.mock-reading-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
}

.mock-splitter {
  position: relative;
  background: #8a8a8a;
  z-index: 3;
}

.mock-splitter-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #222222;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  cursor: col-resize;
  touch-action: none;
}

.mock-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 26px 30px 90px;
}

.mock-reader-passage {
  max-width: 100%;
}

.mock-kicker {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.mock-lead {
  margin: 0 0 12px;
  font-size: 15px;
}

.mock-passage-title {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.mock-passage-intro {
  margin: 0 0 12px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
}

.mock-reader-passage p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

.mock-reader-passage .section-label,
.mock-reader-passage .p-section {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.mock-reader-passage .p-heading {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.mock-q-range {
  margin: 24px 0 7px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.mock-q-range:first-child {
  margin-top: 0;
}

.mock-q-heading {
  margin: 16px 0 5px;
  font-size: 16px;
  font-weight: 700;
}

.mock-q-line {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
}

.mock-q-option {
  margin: 0 0 3px 22px;
  font-size: 16px;
  line-height: 1.5;
}

.mock-inline-input {
  display: inline-block;
  width: 130px;
  height: 28px;
  margin: 0 4px;
  padding: 2px 7px;
  border: 1px solid #858585;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  line-height: normal;
  vertical-align: baseline;
  outline: none;
}

.mock-inline-input.is-letter {
  width: 48px;
  text-align: center;
}

.mock-inline-input:focus {
  border-color: #1f6387;
  box-shadow: 0 0 0 2px rgba(31, 99, 135, 0.15);
}

.mock-inline-input:disabled {
  background: #f4f4f4;
  color: #777777;
}

.mock-tf-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 2px 0 8px;
}

.mock-tf-option {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}

.mock-tf-option input {
  margin: 4px 7px 0 0;
}

.mock-question-number {
  font-weight: 700;
  margin-right: 4px;
}

.mock-writing-scroll {
  padding: 24px 34px 80px;
}

.mock-writing-list {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.mock-writing-task {
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid #e3e3e3;
}

.mock-writing-task:last-child {
  border-bottom: 0;
}

.mock-writing-task h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.mock-writing-task-meta {
  margin: 0 0 12px;
  color: #666666;
  font-size: 12px;
}

.mock-writing-prompt {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dedede;
  background: #ffffff;
}

.mock-writing-prompt img {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.mock-writing-task textarea {
  display: block;
  width: 100%;
  min-height: 230px;
  padding: 12px 14px;
  border: 1px solid #858585;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.mock-writing-task textarea:focus {
  border-color: #1f6387;
  box-shadow: 0 0 0 2px rgba(31, 99, 135, 0.12);
}

.mock-writing-count {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #777777;
  font-size: 11px;
}

.mock-footer {
  flex: 0 0 54px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #e4e4e4;
  background: #ffffff;
  z-index: 20;
}

.mock-footer-part {
  flex: 0 0 auto;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.mock-footer-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mock-footer-nav::-webkit-scrollbar {
  display: none;
}

.mock-footer-q {
  flex: 0 0 auto;
  min-width: 21px;
  height: 27px;
  padding: 2px 4px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #333333;
  font-size: 14px;
  cursor: pointer;
}

.mock-footer-q:hover {
  border-color: #999999;
  background: #f5f5f5;
}

.mock-footer-q.is-current {
  border-color: #418fc6;
  font-weight: 700;
}

.mock-footer-q.is-answered {
  font-weight: 700;
}

.mock-footer-q.is-answered::after {
  content: "";
  display: block;
  height: 2px;
  margin: 1px 2px 0;
  background: #555555;
}

.mock-footer-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-footer-arrow {
  width: 29px;
  height: 29px;
  border: 1px solid #999999;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mock-footer-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.mock-footer-submit {
  height: 33px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mock-footer-submit:hover {
  background: #333333;
}

.mock-result {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.34);
}

.mock-result[hidden] {
  display: none;
}

.mock-result-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 30px 24px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.mock-result-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #666666;
  font-size: 22px;
  cursor: pointer;
}

.mock-result h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.mock-result-lead {
  margin: 0 0 20px;
  color: #666666;
  font-size: 13px;
}

.mock-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mock-score-box {
  padding: 14px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.mock-score-box span {
  display: block;
  color: #777777;
  font-size: 11px;
}

.mock-score-box strong {
  display: block;
  margin-top: 3px;
  font-size: 27px;
}

.mock-writing-result {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid #e7e2d3;
  background: #fffdf5;
  color: #6f654a;
  font-size: 12px;
  line-height: 1.6;
}

.mock-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mock-result-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  cursor: pointer;
}

.mock-result-actions button.primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .mock-header {
    gap: 10px;
    padding-right: 10px;
  }

  .mock-paper-title {
    display: none;
  }

  .mock-section-tab {
    padding: 0 9px;
  }

  .mock-listen-paper {
    padding-left: 24px;
    padding-right: 24px;
  }

  .mock-scroll {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Bottom part tabs */
.mock-footer-parts {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-footer-part-tab {
  height: 27px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #555555;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.mock-footer-part-tab:hover {
  background: #f4f4f4;
}

.mock-footer-part-tab.is-active {
  border-color: #418fc6;
  color: #1f6387;
  font-weight: 700;
}

/* Entry confirmation */
.mock-intro,
.mock-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 28, 33, 0.58);
}

.mock-intro[hidden],
.mock-confirm[hidden] {
  display: none;
}

.mock-intro-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 34px 26px;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.mock-intro-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #5d6a72;
  font-size: 11px;
  text-decoration: none;
}

.mock-intro-back:hover {
  color: #111111;
}

.mock-intro-eyebrow {
  margin: 0 0 8px;
  color: #5e7b86;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.mock-intro-card h1 {
  margin: 0 0 10px;
  font-size: 31px;
  letter-spacing: -0.8px;
}

.mock-intro-lead {
  margin: 0 0 18px;
  color: #5c696f;
  font-size: 13px;
  line-height: 1.6;
}

.mock-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.mock-intro-stat {
  padding: 12px 13px;
  border: 1px solid #ddd8cc;
  border-radius: 5px;
  background: #ffffff;
}

.mock-intro-stat span {
  display: block;
  color: #7b868b;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-intro-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.mock-intro-rules {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e6e1d4;
}

.mock-intro-rules li {
  padding: 9px 0;
  border-bottom: 1px solid #eeeae0;
  color: #4f5d63;
  font-size: 12px;
  line-height: 1.5;
}

.mock-intro-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  color: #3f4e55;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.mock-intro-confirm input {
  margin: 2px 0 0;
}

.mock-intro-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.mock-intro-cancel {
  padding: 9px 14px;
  color: #55636a;
  font-size: 12px;
  text-decoration: none;
}

.mock-intro-start {
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #1e3b4d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mock-intro-start:disabled {
  background: #d3d8d8;
  cursor: default;
}

.mock-confirm-card {
  width: min(440px, 100%);
  padding: 24px 26px 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.mock-confirm-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.mock-confirm-card p {
  margin: 0 0 20px;
  color: #5c696f;
  font-size: 13px;
  line-height: 1.55;
}

.mock-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mock-confirm-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-size: 12px;
  cursor: pointer;
}

.mock-confirm-actions button.primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

@media (max-width: 900px) {
  .mock-footer-parts {
    display: none;
  }

  .mock-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* highlight toolbar */
.mock-highlight-bar {
  position: fixed;
  z-index: 300;
  display: flex;
  overflow: hidden;
  border: 1px solid #737373;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.mock-highlight-bar[hidden] {
  display: none;
}

.mock-highlight-bar button {
  height: 40px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #555555;
  font-size: 12px;
  cursor: pointer;
}

.mock-highlight-bar button:hover {
  background: #f2f2f2;
}

.mock-highlight {
  background: #fff0a6;
  color: inherit;
  padding: 0;
}

/* text size */
body.mock-font-small .mock-reader-passage p,
body.mock-font-small .mock-reader-passage .p-section,
body.mock-font-small .mock-reader-passage .p-heading,
body.mock-font-small .mock-q-line,
body.mock-font-small .mock-q-option,
body.mock-font-small .mock-q-range,
body.mock-font-small .mock-q-heading,
body.mock-font-small .mock-listen-paper,
body.mock-font-small .mock-tf-option {
  font-size: 14px;
}

body.mock-font-small .mock-inline-input {
  height: 25px;
  font-size: 14px;
}

body.mock-font-large .mock-reader-passage p,
body.mock-font-large .mock-reader-passage .p-section,
body.mock-font-large .mock-reader-passage .p-heading,
body.mock-font-large .mock-q-line,
body.mock-font-large .mock-q-option,
body.mock-font-large .mock-q-range,
body.mock-font-large .mock-q-heading,
body.mock-font-large .mock-listen-paper,
body.mock-font-large .mock-tf-option {
  font-size: 18px;
}

body.mock-font-large .mock-inline-input {
  height: 31px;
  font-size: 18px;
}

@media (max-width: 1400px) {
  .mock-net-label {
    display: none;
  }
}

@media (max-width: 1200px) {
  .mock-font-control span {
    display: none;
  }
}

/* Post-submission correctness and explanation review */
.mock-header-review[hidden] {
  display: none;
}

.mock-inline-input.is-correct {
  border-color: #2f7d46;
  background: #f0f8f1;
}

.mock-inline-input.is-wrong {
  border-color: #b54545;
  background: #fff5f5;
}

.mock-tf-option.is-correct span {
  color: #2f7d46;
  font-weight: 700;
}

.mock-tf-option.is-wrong span {
  color: #b54545;
}

.mock-footer-q.is-correct {
  color: #2f7d46;
}

.mock-footer-q.is-correct::after {
  background: #2f7d46;
}

.mock-footer-q.is-wrong {
  color: #b54545;
}

.mock-footer-q.is-wrong::after {
  background: #b54545;
}

.mock-result-card.is-review {
  width: min(860px, 100%);
}

.mock-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.mock-review-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.mock-review-head p {
  margin: 0;
  color: #6a7479;
  font-size: 12px;
}

.mock-review-total {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #faf9f5;
  text-align: center;
}

.mock-review-total strong {
  display: block;
  font-size: 23px;
}

.mock-review-total span {
  color: #777777;
  font-size: 10px;
}

.mock-review-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e2da;
}

.mock-review-filter {
  height: 29px;
  padding: 0 10px;
  border: 1px solid #cecece;
  border-radius: 3px;
  background: #ffffff;
  color: #444444;
  font-size: 11px;
  cursor: pointer;
}

.mock-review-filter.is-active {
  border-color: #1e3b4d;
  background: #1e3b4d;
  color: #ffffff;
}

.mock-review-count {
  margin-left: auto;
  color: #7a858a;
  font-size: 11px;
}

.mock-review-section {
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d9d5ca;
  font-size: 15px;
}

.mock-review-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 10px 11px;
  border-bottom: 1px solid #efede6;
  border-left: 3px solid transparent;
}

.mock-review-row.is-correct {
  border-left-color: #2f7d46;
}

.mock-review-row.is-wrong {
  border-left-color: #b54545;
  background: #fffafa;
}

.mock-review-q {
  padding-top: 1px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
}

.mock-review-main {
  min-width: 0;
}

.mock-review-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mock-review-badge {
  font-size: 11px;
  font-weight: 700;
}

.mock-review-badge.ok {
  color: #2f7d46;
}

.mock-review-badge.bad {
  color: #b54545;
}

.mock-review-prompt {
  margin: 0 0 4px;
  color: #3f4d54;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.mock-review-answer {
  color: #333333;
  font-size: 12px;
  line-height: 1.5;
}

.mock-review-answer b {
  color: #111111;
}

.mock-review-explanation {
  margin-top: 5px;
  color: #626c70;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.mock-review-none {
  margin: 8px 0 20px;
  color: #7a858a;
  font-size: 12px;
}

.mock-review-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e4e2da;
}

.mock-review-actions button {
  height: 33px;
  padding: 0 13px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-size: 12px;
  cursor: pointer;
}

.mock-review-actions button.primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.mock-footnote {
  margin-top: 20px !important;
  padding-top: 9px;
  border-top: 1px solid #e2ded4;
  color: #6c7478;
  font-size: 13px !important;
  line-height: 1.5;
}

/* Larger default exam text */
.mock-reader-passage p,
.mock-reader-passage .p-section,
.mock-reader-passage .p-heading,
.mock-q-line,
.mock-q-option,
.mock-q-range,
.mock-q-heading,
.mock-tf-option,
.mock-listen-paper,
.mock-lead {
  font-size: 20px;
  line-height: 1.64;
}

.mock-passage-title {
  font-size: 20px;
}

.mock-inline-input {
  height: 34px;
  font-size: 20px;
}

.mock-writing-task textarea {
  font-size: 17px;
  line-height: 1.6;
}

body.mock-font-small .mock-reader-passage p,
body.mock-font-small .mock-reader-passage .p-section,
body.mock-font-small .mock-reader-passage .p-heading,
body.mock-font-small .mock-q-line,
body.mock-font-small .mock-q-option,
body.mock-font-small .mock-q-range,
body.mock-font-small .mock-q-heading,
body.mock-font-small .mock-listen-paper,
body.mock-font-small .mock-tf-option,
body.mock-font-small .mock-lead {
  font-size: 16px;
}

body.mock-font-small .mock-inline-input {
  height: 28px;
  font-size: 16px;
}

body.mock-font-large .mock-reader-passage p,
body.mock-font-large .mock-reader-passage .p-section,
body.mock-font-large .mock-reader-passage .p-heading,
body.mock-font-large .mock-q-line,
body.mock-font-large .mock-q-option,
body.mock-font-large .mock-q-range,
body.mock-font-large .mock-q-heading,
body.mock-font-large .mock-listen-paper,
body.mock-font-large .mock-tf-option,
body.mock-font-large .mock-lead {
  font-size: 23px;
}

body.mock-font-large .mock-inline-input {
  height: 36px;
  font-size: 23px;
}

body.mock-font-xlarge .mock-reader-passage p,
body.mock-font-xlarge .mock-reader-passage .p-section,
body.mock-font-xlarge .mock-reader-passage .p-heading,
body.mock-font-xlarge .mock-q-line,
body.mock-font-xlarge .mock-q-option,
body.mock-font-xlarge .mock-q-range,
body.mock-font-xlarge .mock-q-heading,
body.mock-font-xlarge .mock-listen-paper,
body.mock-font-xlarge .mock-tf-option,
body.mock-font-xlarge .mock-lead {
  font-size: 27px;
}

body.mock-font-xlarge .mock-inline-input {
  height: 40px;
  font-size: 27px;
}

/* Inline correct answer after submission */
.mock-inline-answer {
  display: inline-block;
  margin-left: 9px;
  padding: 1px 6px;
  border: 1px solid #9bc7a8;
  border-radius: 3px;
  background: #f2faf4;
  color: #2f7d46;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
}

button.mock-inline-answer {
  cursor: pointer;
}

button.mock-inline-answer:hover {
  background: #e4f4e8;
}

.mock-review-locate {
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid #b9c9cf;
  border-radius: 3px;
  background: #ffffff;
  color: #2e6578;
  font-size: 10px;
  cursor: pointer;
}

.mock-review-locate:hover {
  background: #f1f7f8;
}

mark.source-sentence-mark {
  background: #ffe98a;
  color: #111111;
  padding: 0;
  border-radius: 1px;
}

mark.source-sentence-mark.is-flashing {
  box-shadow: 0 0 0 4px rgba(255, 214, 76, 0.35);
}

.source-located {
  background: #fff9dc;
  box-shadow: 0 0 0 4px rgba(255, 214, 76, 0.22);
}

.mock-review-explanation[data-locate-q] {
  cursor: pointer;
}
.mock-review-explanation[data-locate-q]:hover {
  color: #2e6578;
  text-decoration: underline;
}

.mock-timer.is-overtime {
  color: #b54545;
}

/* Accuracy after submission */
.mock-accuracy {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #b9d6c1;
  border-radius: 3px;
  background: #f1f8f3;
  color: #2f7d46;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-inline-explain {
  height: 24px;
  margin-left: 5px;
  padding: 0 7px;
  border: 1px solid #b9c9cf;
  border-radius: 3px;
  background: #ffffff;
  color: #2e6578;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  cursor: pointer;
}

.mock-inline-explain:hover {
  background: #f1f7f8;
}

.mock-explain-card {
  position: fixed;
  right: 24px;
  bottom: 68px;
  z-index: 360;
  width: 380px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 14px 15px 13px;
  border: 1px solid #cfc9bb;
  border-radius: 8px;
  background: #fffef9;
  box-shadow: 0 14px 38px rgba(20, 30, 36, 0.24);
  color: #263238;
  font-size: 13px;
  line-height: 1.55;
}

.mock-explain-card[hidden] {
  display: none;
}

.mock-explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mock-explain-head strong {
  font-size: 14px;
}

.mock-explain-close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b757a;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.mock-explain-status {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.mock-explain-status.ok {
  color: #2f7d46;
}

.mock-explain-status.bad {
  color: #b54545;
}

.mock-explain-prompt {
  margin-bottom: 7px;
  color: #3f4d54;
  font-size: 12px;
  font-weight: 600;
}

.mock-explain-answers {
  margin-bottom: 9px;
  padding: 8px 9px;
  border-radius: 4px;
  background: #f7f5ee;
  font-size: 12px;
  line-height: 1.75;
}

.mock-explain-text {
  color: #4d5a60;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .mock-explain-card {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.mock-explain-note {
  margin: 4px 0 8px;
  padding: 6px 8px;
  border-left: 3px solid #d8c58a;
  background: #fffaf0;
  color: #7a6a45;
  font-size: 11px;
  line-height: 1.5;
}

/* Listening transcript */
.mock-transcript-box {
  margin: 10px 0 11px;
  border: 1px solid #ded8cb;
  border-radius: 5px;
  background: #fbfaf4;
  overflow: hidden;
}

.mock-transcript-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid #e9e4d9;
  color: #5f6b72;
  font-size: 11px;
  font-weight: 700;
}

.mock-transcript-box-head button {
  height: 24px;
  padding: 0 7px;
  border: 1px solid #b9c9cf;
  border-radius: 3px;
  background: #ffffff;
  color: #2e6578;
  font-size: 10px;
  cursor: pointer;
}

.mock-transcript-line {
  display: flex;
  gap: 8px;
  padding: 8px 9px;
  color: #3d4a50;
  font-size: 12px;
  line-height: 1.55;
}

.mock-transcript-time {
  flex: 0 0 34px;
  color: #2e6578;
  font-size: 10px;
  font-weight: 700;
}

.mock-transcript-excerpt-note {
  padding: 8px 9px;
  color: #8b8f89;
  font-size: 11px;
}

.mock-transcript-panel {
  position: fixed;
  top: 70px;
  right: 18px;
  bottom: 70px;
  z-index: 390;
  width: 440px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfc9bb;
  border-radius: 8px;
  background: #fffef9;
  box-shadow: 0 15px 42px rgba(20, 30, 36, 0.28);
}

.mock-transcript-panel[hidden] {
  display: none;
}

.mock-transcript-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid #e7e2d6;
}

.mock-transcript-panel-head strong {
  font-size: 13px;
}

.mock-transcript-close {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #697277;
  font-size: 19px;
  cursor: pointer;
}

.mock-transcript-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.mock-transcript-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  padding: 7px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #39464d;
  text-align: left;
  cursor: pointer;
}

.mock-transcript-row:hover {
  background: #f5f2e9;
}

.mock-transcript-row.is-current {
  border-color: #d8c487;
  background: #fff6cf;
}

.mock-transcript-row span {
  color: #8a6d2e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.mock-transcript-row em {
  color: inherit;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mock-transcript-panel {
    top: 62px;
    right: 8px;
    bottom: 60px;
    width: auto;
    left: 8px;
  }
}
