body.embed-mode .app-header {
  display: none;
}

body.embed-mode .shell {
  max-width: none;
  padding: 10px;
}

body.embed-mode .section {
  box-shadow: none;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.join-mode-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  margin: 0 0 20px;
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft);
  color: #493f18;
  font-size: 13px;
}

.join-mode-notice strong {
  color: #3f3510;
  white-space: nowrap;
}

.join-preflight {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -22px -22px 20px;
  padding: 18px 22px;
  background: var(--blue2);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}

.join-preflight-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #dcecf5;
  font-size: 12px;
  font-weight: 800;
}

.join-preflight-copy > strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.join-preflight-copy p {
  margin: 5px 0 0;
  color: #eef7fb;
  font-size: 13px;
  line-height: 1.5;
}

.rotate-phone {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.rotate-phone i {
  display: block;
  width: 43px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 5px;
  position: relative;
}

.rotate-phone i::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.join-heading {
  margin-bottom: 14px;
}

.join-heading h2 {
  margin: 0;
  color: var(--blue2);
  font-size: 22px;
  line-height: 1.35;
}

.join-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.student-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.student-brief div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #f5f9fc;
}

.student-brief span,
.student-brief strong {
  display: block;
}

.student-brief span {
  color: var(--muted);
  font-size: 11px;
}

.student-brief strong {
  margin-top: 2px;
  color: var(--blue2);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

#joinForm {
  padding-top: 2px;
}

#joinForm h3 {
  margin: 0 0 10px;
  color: #33424d;
  font-size: 15px;
}

.join-submit {
  min-width: 190px;
}

.student-shell {
  max-width: 1440px;
}

.exam-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 20px;
}

.orientation-tip {
  display: none;
}

.exam-title span,
.exam-status span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.exam-status {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.progress-stat,
.elapsed-stat,
.time-stat {
  min-width: 96px;
}

.progress-stat strong {
  display: block;
  color: var(--blue2);
  font-size: 19px;
}

.elapsed-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--blue2);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 112px;
  height: 5px;
  margin-top: 3px;
  background: #dfe7ec;
  overflow: hidden;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .18s ease;
}

.time-stat .clock {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.blank-link {
  cursor: pointer;
  font: inherit;
  padding: 0 7px;
}

.blank-link:hover,
.blank-link:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(23, 107, 159, .22);
}

.blank.filled {
  width: auto;
  min-width: 68px;
  height: auto;
  min-height: 32px;
  padding: 2px 7px;
  gap: 5px;
  background: var(--yellow-soft);
  border-color: #c3a218;
  vertical-align: baseline;
}

.blank-number {
  color: var(--blue2);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.blank-answer {
  color: #111;
  font-family: "Times New Roman", serif;
  font-size: .9em;
  font-weight: 700;
}

.question-focus {
  outline: 3px solid var(--yellow);
  box-shadow: 0 0 0 6px rgba(241, 207, 76, .25);
}

.result-summary {
  margin-bottom: 18px;
}

.result-actions {
  justify-content: center;
}

.wrong-review {
  margin-top: 10px;
}

.wrong-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wrong-review-head h2 {
  margin: 0;
  color: var(--blue2);
}

.student-wrong-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: 20px;
  align-items: start;
}

.wrong-passage {
  position: sticky;
  top: 12px;
}

.wrong-questions {
  display: grid;
  gap: 12px;
}

.wrong-question h3 span {
  margin-left: 8px;
  color: var(--red);
  font-size: 13px;
}

.review-option {
  cursor: default;
}

.review-option.my-wrong {
  border-color: #c56c65;
  background: #fdebea;
  color: #8b2a25;
  font-weight: 900;
}

.all-correct {
  padding: 26px;
  border: 1px solid #8cb999;
  background: #e7f3ea;
  color: var(--green);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.ability-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ability-row {
  grid-template-columns: 122px minmax(0, 1fr) 54px;
}

.ability-pick {
  min-width: 0;
  border: 1px solid #a9bac6;
  background: #fff;
  color: var(--blue2);
  padding: 6px 8px;
  text-align: left;
  font-weight: 900;
}

.ability-pick small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}

.ability-pick.active {
  border-color: #c3a218;
  background: var(--yellow-soft);
  color: #3f3510;
}

.ability-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ability-detail-head h4 {
  margin: 0;
  color: var(--blue2);
  font-size: 17px;
}

.ability-detail-head span {
  color: var(--muted);
  font-size: 12px;
}

.ability-loss-list {
  display: grid;
  gap: 8px;
}

.ability-loss-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.ability-loss-question strong {
  display: block;
  color: var(--blue2);
}

.ability-loss-question small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ability-loss-students {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.loss-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  margin-right: 2px;
}

.loss-student {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #dfa09b;
  background: #fdebea;
  color: #8b2a25;
  font-size: 12px;
  font-weight: 900;
}

.loss-student small {
  color: #95504b;
  font-weight: 600;
}

.no-loss {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ability-empty {
  padding: 24px 10px;
}

@media (min-width: 701px) and (max-width: 900px) {
  .exam-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
  }

  .passage-panel {
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 86px);
  }
}

@media (max-width: 700px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }

  .passage-panel {
    position: static;
    max-height: none;
  }

  .ability-loss-row {
    grid-template-columns: 1fr;
  }

  .student-brief {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-wrong-grid {
    grid-template-columns: 1fr;
  }

  .wrong-passage {
    position: static;
  }
}

@media (max-width: 460px) {
  .join-preflight {
    margin: -22px -22px 18px;
    padding: 16px 18px;
  }

  .join-preflight-copy > strong {
    font-size: 21px;
  }

  .rotate-phone b {
    display: none;
  }

  .student-brief {
    gap: 5px;
  }

  .student-brief div {
    padding: 8px 6px;
    text-align: center;
  }

  .student-brief strong {
    font-size: 16px;
  }

  .join-mode-notice {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .orientation-tip {
    display: block;
    margin-bottom: 10px;
    padding: 9px 11px;
    border-left: 4px solid var(--yellow);
    background: #fff7cb;
    color: #493f18;
  }

  .orientation-tip strong,
  .orientation-tip span {
    display: block;
  }

  .orientation-tip span {
    margin-top: 2px;
    font-size: 12px;
  }

  .exam-status {
    width: 100%;
  }

  .progress-stat,
  .elapsed-stat,
  .time-stat {
    flex: 1;
  }

  .progress-track {
    width: 100%;
  }
}
