.main h1 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}
.subject-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 17px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #344e6c;
}
.subject-tab {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #91a5bf;
  padding: 13px 8px 17px;
  text-align: center;
}
.subject-tab::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.subject-tab strong {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.subject-tab.active {
  background: linear-gradient(180deg, rgba(59, 87, 121, 0.26), rgba(17, 31, 51, 0));
  color: #f7f9ff;
}
.subject-tab.active::after {
  background: #ffd178;
  box-shadow: 0 0 12px rgba(255, 209, 120, 0.34);
}
.volume-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(88px, auto));
  grid-auto-flow: column;
  gap: 8px;
  margin-bottom: 28px;
}
.volume {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2e48, #14263d);
  color: #eff4ff;
  border: 1px solid #3f5876;
  border-radius: 13px;
  padding: 13px 11px;
  text-align: center;
}
.volume-copy {
  min-width: 0;
}
.volume-copy strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}
.semester-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.65rem;
  padding: 2px 8px;
  border: 1px solid rgba(157, 177, 202, 0.62);
  border-radius: 999px;
  background: rgba(9, 20, 35, 0.42);
  color: #dce8f7;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1;
}
.volume.active .semester-tag {
  border-color: rgba(255, 209, 120, 0.85);
  background: rgba(255, 209, 120, 0.14);
  color: #ffe4a8;
}
.volume.active {
  background: linear-gradient(145deg, #2d4665, #203752);
  color: #fff3d5;
  border-color: #ffd178;
  box-shadow: inset 0 -3px #ffd178, 0 7px 16px rgba(5, 11, 21, 0.2);
}
.volume.locked {
  opacity: 0.48;
  cursor: not-allowed;
  background: #111f33;
  color: #c2ccdb;
}
.volume small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #9db1ca;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 13px;
}
.map-heading h2 {
  margin: 5px 0;
  font-size: 1.35rem;
}
.map-heading .tag {
  height: max-content;
}
.lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 20px;
}
.lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "num info"
    "title info"
    "bar bar";
  align-items: center;
  column-gap: 18px;
  min-width: 0;
  min-height: 137px;
  background: #1a2e49;
  border: 1px solid #395473;
  border-radius: 15px;
  padding: 16px;
  text-align: left;
  color: #eff4ff;
}
.lesson.active {
  background: #273d60;
  border-color: #ffd178;
}
.lesson:hover {
  border-color: #ffd178;
}
.lesson.empty {
  opacity: 0.7;
}
.lesson.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: #111f33;
  border-color: #31455f;
}
.lesson.locked:hover {
  border-color: #31455f;
}
.lesson.locked .mini-bar {
  opacity: 0.35;
}
.lesson-chooser {
  grid-column: 1 / -1;
  margin: -3px 0 7px;
  padding: 11px 12px 12px;
  border: 1px solid #4b6381;
  border-top-color: #607893;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #14263d, #101f33);
  box-shadow: 0 10px 20px rgba(2, 10, 22, 0.16);
  animation: lesson-drawer-in 180ms ease-out;
}
@keyframes lesson-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lesson-chooser-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  color: #9fb3cc;
  font-size: 0.8rem;
  font-weight: 750;
}
.lesson-chooser-head small {
  color: #7f98b5;
  font-size: 0.76rem;
  font-weight: 650;
}
.lesson-material-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0 14px;
  padding: 13px 16px;
  border: 1px solid #78c9bf;
  border-radius: 12px;
  background: #173d47;
  color: #f2fffa;
  text-decoration: none;
  line-height: 1.5;
}
.lesson-material-link:hover,
.lesson-material-link:focus-visible {
  background: #21535d;
  outline: 2px solid #a7e3d4;
  outline-offset: 2px;
}
.lesson-material-link strong { font-size: 1rem; }
.lesson-material-link span { color: #c8e7e4; font-size: .88rem; }
.lesson-material-link + .lesson-material-link { margin-top: -6px; }
.lesson-material-link.drag-practice-link {
  border-color: #8ea7ff;
  background: #26395d;
}
.lesson-material-link.drag-practice-link:hover,
.lesson-material-link.drag-practice-link:focus-visible {
  background: #324b78;
  outline-color: #bdc9ff;
}
.lesson-material-link.drag-practice-link span { color: #d8deff; }
.publisher-heading {
  margin: 0 2px 10px;
  color: #c5d5e8;
  font-size: 0.9rem;
  font-weight: 800;
}
.publisher-nest {
  margin: -2px 0 5px 30px;
  padding: 12px 0 8px 18px;
  border-left: 2px solid #526b8a;
  animation: lesson-drawer-in 160ms ease-out;
}
.publisher-nest.general {
  border-left-color: #58d39b;
}
.publisher-nest.advanced {
  border-left-color: #8ea7ff;
}
.lesson-num {
  grid-area: num;
  color: #adc1dd;
  font-size: 0.8rem;
}
.lesson > strong {
  grid-area: title;
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.4;
  margin: 6px 0;
}
.lesson.active > strong {
  font-size: 1.3rem;
}
.lesson-info {
  grid-area: info;
  min-width: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  color: #bacde2;
  font-size: 1rem;
  white-space: nowrap;
}
.lesson-info strong {
  color: #ffda8c;
  font-size: 1.45rem;
  line-height: 1.15;
}
.lesson-info small {
  color: #ffd481;
  font-size: 0.76rem;
}
.mini-bar {
  grid-area: bar;
  height: 6px;
  border-radius: 8px;
  background: #0e1c30;
  overflow: hidden;
  margin-top: 10px;
}
.mini-bar i {
  height: 100%;
  display: block;
  background: #ffd178;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.category {
  background: #203752;
  color: #eff4ff;
  border: 1px solid #526b8a;
  border-radius: 14px;
  min-height: 113px;
  text-align: left;
  padding: 17px;
}
.category:hover {
  background: #2e4d70;
}
.category > strong {
  display: block;
  font-size: 1.14rem;
}
.category span,
.category small {
  display: block;
  color: #bfd0e5;
  margin-top: 9px;
}
.category small {
  color: #ffd481;
}
.category-task-list {
  grid-template-columns: 1fr;
  gap: 7px;
}
.paper-option {
  position: relative;
  min-width: 0;
}
.paper-option > .category,
.paper-option > .publisher-card,
.paper-option > .bank-card {
  width: 100%;
}
.replay-corner {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  min-height: 0;
  padding: 4px 8px;
  border: 1px solid #7890ad;
  border-radius: 999px;
  background: #14263de8;
  color: #c9d8ea;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: none;
}
.replay-corner:hover,
.replay-corner:focus-visible {
  border-color: #e6bd6a;
  background: #263d58;
  color: #ffe0a0;
}
.completed-stamp {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #79d9ad;
  border-radius: 999px;
  background: #173f35ed;
  color: #c5f6df;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 3px 10px #06120f70;
}
.completed-stamp::before {
  content: '✓';
  font-size: 0.72rem;
  font-weight: 950;
}
.paper-option:has(.replay-corner) .category-info {
  padding-right: 70px;
}
.publisher-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: start;
}
.publisher-option .completed-stamp {
  position: static;
  width: 100%;
  min-height: 27px;
  justify-content: center;
  margin-top: 6px;
  box-sizing: border-box;
  box-shadow: none;
}
.publisher-option .replay-corner {
  position: static;
  width: 100%;
  min-height: 31px;
  margin-top: 5px;
  padding: 6px 5px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.category-task {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 9px 13px 9px 10px;
  border-left-width: 3px;
  border-radius: 11px;
}
.category-task.general {
  border-left-color: #58d39b;
}
.category-task.advanced {
  border-left-color: #8ea7ff;
}
.category-task.exam {
  border-left-color: #f6c968;
}
.category-task.selected {
  background: #29435f;
  box-shadow: inset 0 0 0 1px #7087a3;
}
.task-mark {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border-radius: 9px;
  font-size: 1.02rem;
  font-weight: 900;
  color: #102136 !important;
}
.general .task-mark {
  background: #70dcb0;
}
.advanced .task-mark {
  background: #9fb3ff;
}
.exam .task-mark {
  background: #f6cb70;
}
.task-copy {
  display: block !important;
  margin: 0 !important;
}
.task-copy > strong {
  display: block;
  color: #f4f7ff;
  font-size: 1.03rem;
}
.task-copy > small {
  display: block;
  margin-top: 3px;
  color: #ffd481;
  font-size: 0.76rem;
}
.category-info {
  min-width: 92px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin: 0 !important;
  color: #bacde2 !important;
  font-size: 0.82rem;
  white-space: nowrap;
}
.category-info > span {
  margin: 0;
}
.category-info > strong {
  color: #ffda8c;
  font-size: 1.13rem;
  line-height: 1.15;
}
.publisher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.publisher-kangxuan {
  grid-column: 1;
  grid-row: 1;
}
.publisher-hanlin {
  grid-column: 2;
  grid-row: 1;
}
.publisher-nanyi {
  grid-column: 3;
  grid-row: 1;
}
.bank-panel {
  align-self: start;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.bank-heading {
  margin-bottom: 8px;
  color: #efd8ff;
  font-size: 0.82rem;
  font-weight: 850;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bank-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.bank-card {
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid #786b93;
  border-radius: 12px;
  background: #1b304a;
  color: #f4efff;
  text-align: left;
}
.bank-card:hover,
.bank-card.selected {
  border-color: #e5b6ff;
  background: #304966;
  box-shadow: inset 3px 0 #e5b6ff;
}
.bank-card strong,
.bank-card span,
.bank-card small {
  display: block;
}
.bank-card strong {
  font-size: 0.92rem;
}
.bank-card span {
  margin-top: 5px;
  color: #c8d9ed;
  font-size: 0.78rem;
}
.bank-card small {
  margin-top: 3px;
  color: #ffd481;
  font-size: 0.7rem;
}
.bank-option .completed-stamp,
.bank-option .replay-corner {
  position: static;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin-top: 5px;
  box-shadow: none;
}
.quiz-bank-name {
  width: fit-content;
  margin: -4px 0 16px;
  padding: 5px 10px;
  border: 1px solid #8f78a6;
  border-radius: 999px;
  background: #2c2440;
  color: #efd8ff;
  font-weight: 800;
}
.publisher-card {
  --publisher-accent: #9fb3cc;
  --publisher-ink: #182940;
  --publisher-shadow: #607893;
  min-width: 0;
  min-height: 108px;
  padding: 10px 8px;
  border: 1px solid #526b8a;
  border-radius: 14px 14px 9px 9px;
  background: linear-gradient(180deg, #1a2e48, #14263d);
  color: #eff4ff;
  text-align: center;
  box-shadow: inset 0 3px var(--publisher-accent);
}
.publisher-card:hover {
  border-color: var(--publisher-accent);
  background: linear-gradient(180deg, #25415f, #1a304a);
}
.publisher-card.kangxuan {
  --publisher-accent: #f08d82;
  --publisher-ink: #542b31;
  --publisher-shadow: #9b4f54;
}
.publisher-card.hanlin {
  --publisher-accent: #79cbe2;
  --publisher-ink: #174252;
  --publisher-shadow: #3f8499;
}
.publisher-card.nanyi {
  --publisher-accent: #d490c8;
  --publisher-ink: #542b55;
  --publisher-shadow: #8b5485;
}
.publisher-card.selected {
  border-color: var(--publisher-accent);
  background: linear-gradient(180deg, #294866, #1b3049);
  box-shadow: inset 0 3px var(--publisher-accent), 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.publisher-card.is-empty,
.publisher-card.is-empty:hover {
  --publisher-accent: #707b89;
  --publisher-ink: #d1d5da;
  --publisher-shadow: #46505b;
  border-color: #4e5a68;
  background: linear-gradient(180deg, #26313e, #202a35);
  color: #9aa4af;
  box-shadow: inset 0 3px #707b89;
  cursor: not-allowed;
  opacity: 0.68;
}
.publisher-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: -1px auto 6px;
  border-radius: 8px 8px 4px 4px;
  background: var(--publisher-accent);
  color: var(--publisher-ink);
  box-shadow: 0 4px 0 var(--publisher-shadow);
  font-size: 0.92rem;
  font-weight: 950;
}
.publisher-card > strong {
  display: block;
  font-size: 1.02rem;
}
.publisher-progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  color: #bcd0e7;
  font-size: 0.8rem;
  white-space: nowrap;
}
.publisher-progress b {
  color: #ffda8c;
  font-size: 1.05rem;
}
.publisher-card > small {
  display: block;
  margin-top: 6px;
  color: #9fb3cc;
  font-size: 0.75rem;
  white-space: nowrap;
}
.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 21px;
}
.number {
  position: relative;
  min-width: 43px;
  min-height: 43px;
  border: 1px solid #6682a1;
  background: #203550;
  color: #f4f7ff;
  border-radius: 10px;
  font-weight: 800;
}
.number.active {
  outline: 2px solid #ffd17b;
  outline-offset: 2px;
}
.number.correct {
  background: #1d6049;
  border-color: #6cdfa3;
}
.number.wrong {
  background: #693e49;
  border-color: #f29a93;
}
.number.first-round-wrong::after {
  content: '!';
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #172a43;
  border-radius: 50%;
  background: #f0a33a;
  color: #281805;
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
}
.option.review-first-wrong {
  border-color: #f0a33a;
  background: #5a4024;
  color: #ffe2ad;
}
.feedback.review-history {
  border-color: #e5a54b;
  background: #4d3b25;
  color: #ffe3ad;
}
.feedback.review-history strong {
  display: block;
  margin-bottom: 6px;
  color: #ffc96e;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.round-history-toggle {
  margin: 0 0 14px;
}
.round-history-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid #587491;
  border-radius: 14px;
  background: #14263d;
}
.round-history-card {
  padding: 12px;
  border: 1px solid #425d7b;
  border-radius: 12px;
  background: #192f49;
}
.round-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.round-history-head strong {
  color: #ffe0a4;
}
.round-history-head span {
  color: #bcd0e7;
  font-size: 0.86rem;
}
.round-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
}
.round-answer {
  padding: 7px 6px;
  border: 1px solid #6cdfa3;
  border-radius: 8px;
  background: #1d6049;
  color: #f1fff7;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}
.round-answer.corrected {
  border-color: #f0a33a;
  background: #5a4024;
  color: #ffe2ad;
}
.round-answer.wrong {
  border-color: #f29a93;
  background: #693e49;
  color: #ffe4e1;
}
.round-answer.unanswered {
  border-color: #526b87;
  background: #203550;
  color: #9fb3cc;
}
.round-history-legend {
  margin: 0;
  color: #bcd0e7;
  font-size: 0.84rem;
  line-height: 1.7;
}
.finish {
  background: #413945;
  border: 1px solid #c29a56;
  border-radius: 14px;
  padding: 17px;
  margin-top: 17px;
}
.finish strong {
  display: block;
  color: #ffe0a4;
  margin-bottom: 5px;
}
.finish .next {
  display: block;
}
.sheet-setup {
  margin-top: 21px;
}
.sheet-setup form {
  display: flex;
  gap: 8px;
}
.sheet-setup form input {
  flex: 1;
}
.sheet-setup a {
  color: #ffe0a2;
}
.quiz {
  scroll-margin-top: 16px;
}
.option:disabled {
  opacity: 0.85;
}
.profile {
  position: sticky;
  top: 16px;
}
.intro {
  margin: 10px 0 14px;
}
@media (max-width: 760px) {
  .profile {
    position: static;
  }
  .volume-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lessons {
    grid-template-columns: 1fr;
  }
  .lesson {
    min-height: 124px;
    column-gap: 14px;
  }
  .lesson-chooser {
    padding: 9px 10px 11px;
  }
  .publisher-nest {
    margin-left: 0;
    padding-left: 10px;
  }
  .lesson-info {
    min-width: 108px;
    font-size: 0.96rem;
  }
  .lesson-info strong {
    font-size: 1.35rem;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bank-grid {
    grid-template-columns: 1fr;
  }
  .category {
    padding: 13px;
  }
  .category-task {
    min-height: 70px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 11px 9px 9px;
  }
  .category-info {
    min-width: 88px;
    font-size: 0.8rem;
  }
  .sheet-setup form {
    flex-direction: column;
  }
}
@media (max-width: 370px) {
  .subject-tab {
    padding-inline: 4px;
  }
  .subject-tab strong {
    font-size: 1.13rem;
  }
  .volume {
    padding-inline: 8px;
  }
  .publisher-grid {
    gap: 6px;
  }
  .publisher-card {
    min-height: 104px;
    padding-inline: 6px;
  }
  .publisher-progress {
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }
}

.figure-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 18px;
  cursor: zoom-in;
}
.question-image {
  display: block;
  width: min(560px, 100%);
  height: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid #dde4e7;
  border-radius: 12px;
}
.highlight-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #4c6682;
  border-radius: 13px;
  background: #102238;
}
.highlight-toggle,
.highlight-clear {
  min-height: 42px;
  border: 1px solid #6c8198;
  border-radius: 10px;
  padding: 8px 13px;
  color: #eff4ff;
  background: #203651;
  font-weight: 800;
}
.highlight-toggle.active {
  color: #282207;
  border-color: #ffe178;
  background: #f3c93c;
  box-shadow: 0 0 0 3px #f3c93c26;
}
.highlight-clear {
  color: #dfe9f7;
  background: transparent;
}
.highlight-hint {
  flex: 1 1 230px;
  color: #aebfd4;
  font-size: .88rem;
  line-height: 1.45;
}
.highlight-surface {
  -webkit-tap-highlight-color: transparent;
}
.highlight-character {
  border-radius: 0;
  padding: 2px 0;
  transition: background-color .12s, color .12s;
}
.highlight-character.is-highlighted {
  color: #241f08;
  background: #f6d84a;
  box-shadow: 1px 0 #f6d84a, -1px 0 #f6d84a;
}
.highlight-character.is-space {
  white-space: pre;
}
.highlighter-active .highlight-surface {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: text;
}
.highlighter-active .highlight-character:not(.is-space):hover {
  box-shadow: inset 0 -3px #f6d84a66;
}
.highlight-character.is-arming {
  animation: highlighter-hold .3s linear forwards;
}
.highlight-surface.is-painting {
  touch-action: none;
}
@keyframes highlighter-hold {
  from { box-shadow: inset 0 -3px #f6d84a66; }
  to { box-shadow: inset 0 -7px #f6d84acc; }
}
@media (max-width: 520px) {
  .highlight-toolbar {
    align-items: stretch;
  }
  .highlight-toggle,
  .highlight-clear {
    flex: 1 1 calc(50% - 4px);
  }
  .highlight-hint {
    flex-basis: 100%;
  }
}
.exam-countdown {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 17px;
  padding: 16px;
  border: 1px solid #6284a9;
  border-left: 4px solid #ffcc66;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, #ffcf6a20, transparent 44%),
    linear-gradient(145deg, #203a58, #142941);
  box-shadow: inset 0 1px #ffffff12, 0 8px 20px #06101e2e;
}
.exam-countdown::after {
  content: "";
  position: absolute;
  right: -27px;
  bottom: -40px;
  width: 96px;
  height: 96px;
  border: 15px solid #ffffff08;
  border-radius: 50%;
}
.exam-countdown-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #172942;
  background: linear-gradient(145deg, #ffe59d, #efa942);
  box-shadow: 0 6px 16px #e4ad4f38;
}
.exam-countdown-icon svg {
  width: 27px;
  height: 27px;
}
.exam-countdown-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.exam-countdown-copy > span,
.exam-countdown-copy time {
  display: block;
}
.exam-countdown-copy > span {
  color: #d7e3f1;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.exam-countdown-copy strong {
  display: block;
  margin: 4px 0 3px;
  color: #fff3c8;
  font-size: 2rem;
  line-height: 1.05;
}
.exam-countdown-copy strong small {
  font-size: 1rem;
  color: #ffd77e;
}
.exam-countdown-copy time {
  color: #aebfd4;
  font-size: .76rem;
}
.daily-wisdom {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  padding: 16px;
  border: 1px solid #6284a9;
  border-left: 4px solid #68d3be;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, #71ddc51c, transparent 44%),
    linear-gradient(145deg, #203a58, #142941);
  box-shadow: inset 0 1px #ffffff12, 0 8px 20px #06101e2e;
}
.daily-wisdom-mark {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #173044;
  background: linear-gradient(145deg, #8de4d0, #51bda9);
  box-shadow: 0 5px 14px #55cbb438;
  font-size: 1.55rem;
}
.daily-wisdom > div:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.daily-wisdom span {
  display: block;
  color: #91dfcf;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.daily-wisdom p {
  margin: 6px 0 0;
  color: #edf7fb;
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.65;
}
.badge-entry {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
  padding: 16px;
  border: 1px solid #6284a9;
  border-left: 4px solid #ffcc66;
  background:
    radial-gradient(circle at 100% 0%, #ffcf6a20, transparent 44%),
    linear-gradient(145deg, #203a58, #142941);
  color: #eef5ff;
  border-radius: 16px;
  text-align: left;
  box-shadow: inset 0 1px #ffffff12, 0 8px 20px #06101e2e;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.ability-entry {
  width: 100%;
  display: block;
  margin-top: 17px;
  padding: 15px 16px 13px;
  border: 1px solid #5b75a3;
  border-left: 4px solid #8e9eff;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 48%, #796cff20, transparent 52%), linear-gradient(145deg, #203a58, #142941);
  color: #eef5ff;
  box-shadow: inset 0 1px #ffffff12, 0 8px 20px #06101e2e;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}
.ability-entry:hover { transform: translateY(-1px); border-color: #91a0e8; border-left-color: #b4bfff; }
.ability-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ability-entry-head strong, .ability-entry-head small { display: block; }
.ability-entry-head strong { color: #e8eaff; font-size: 1rem; font-weight: 900; }
.ability-entry-head small { margin-top: 3px; color: #aebfd4; font-size: .72rem; }
.ability-entry-arrow { color: #bac3ff; font-size: 1.55rem; line-height: 1; }
.ability-radar { display: block; color: #eef2ff; }
.ability-radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.ability-radar-mini { width: min(100%, 258px); margin: 0 auto; }
.radar-grid polygon, .radar-grid line { fill: #8391ff08; stroke: #8292b94a; stroke-width: 1; }
.radar-grid polygon:last-of-type { stroke: #91a0cf82; }
.radar-shape { fill: #7b75ff62; stroke: #b3baff; stroke-width: 2.3; stroke-linejoin: round; filter: drop-shadow(0 0 7px #746aff66); }
.radar-point { fill: #ffe08a; stroke: #26385b; stroke-width: 1.4; }
.radar-labels { fill: #dce6f6; font-size: 12px; font-weight: 850; }
.radar-labels .radar-score { fill: #ffe08a; font-size: 11px; font-weight: 900; }
.ability-entry-foot { display: block; margin-top: 0; padding-top: 8px; border-top: 1px solid #4b5f8459; color: #bdc6ff; font-size: .76rem; font-weight: 800; text-align: center; }
.ability-dialog {
  position: fixed; inset: 0; width: min(820px, calc(100% - 28px)); max-height: min(820px, calc(100dvh - 30px)); overflow: auto;
  margin: auto; padding: 24px; color: #eef5ff; border: 1px solid #7289a4; border-radius: 22px;
  background: radial-gradient(circle at 25% 25%, #6e64ff1f, transparent 35%), #111f32; box-shadow: 0 25px 90px #000a;
}
.ability-dialog::backdrop { background: #020711c9; backdrop-filter: blur(5px); }
.ability-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ability-dialog-head h2 { margin: 5px 0 3px; font-size: 1.55rem; }
.ability-dialog-head p { margin: 0; color: #aebfd4; font-size: .9rem; }
.ability-dialog-head > button { width: 42px; height: 42px; padding: 0; border: 1px solid #627b99; border-radius: 12px; background: #1e3551; color: #f3f7ff; }
.ability-dialog-layout { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr); gap: 24px; align-items: center; margin-top: 12px; }
.ability-radar-large { min-width: 0; }
.ability-radar-large .radar-labels { font-size: 13px; }
.ability-details { display: grid; gap: 9px; }
.ability-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid #354f70; border-radius: 13px; background: #172b45c9; }
.ability-detail-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #263e5d; font-size: 1.25rem; }
.ability-detail strong { display: flex; justify-content: space-between; gap: 12px; color: #f4f7ff; font-size: .95rem; }
.ability-detail strong b { color: #ffe08a; font-size: 1rem; }
.ability-detail small, .ability-detail em { display: block; font-style: normal; }
.ability-detail small { margin-top: 2px; color: #aebfd4; font-size: .75rem; }
.ability-detail em { margin-top: 4px; color: #cbd3ff; font-size: .78rem; }
.ability-note { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid #344b69; color: #93a8c2; font-size: .82rem; text-align: center; }
.badge-entry:hover {
  transform: translateY(-1px);
  border-color: #86a4c4;
  border-left-color: #ffdb88;
  background:
    radial-gradient(circle at 100% 0%, #ffd47935, transparent 44%),
    linear-gradient(145deg, #294765, #1a3049);
}
.badge-entry.live-entry {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-left-color: #62d6ad;
}
.badge-entry.live-entry .badge-entry-icon {
  background: linear-gradient(145deg, #a8f0d4, #49b58e);
}
.badge-entry.live-entry .badge-entry-arrow {
  color: #8ee0bb;
}
.badge-entry-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #192a40;
  background: linear-gradient(145deg, #ffe39d, #dba64d);
  box-shadow: 0 5px 14px #e4ad4f38;
}
.badge-entry-icon svg {
  width: 27px;
  height: 27px;
}
.badge-entry-copy {
  min-width: 0;
}
.badge-entry-copy strong,
.badge-entry-copy small {
  display: block;
  white-space: nowrap;
}
.badge-entry-copy strong {
  color: #fff3d3;
  font-size: 1rem;
  font-weight: 900;
}
.badge-entry-copy small {
  margin-top: 3px;
  color: #aebfd4;
  font-size: 0.72rem;
}
.badge-entry-count {
  color: #ffd984;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}
.badge-entry-arrow {
  width: 18px;
  height: 18px;
  color: #ffd984;
}
.badge-dialog {
  position: fixed;
  inset: 0;
  width: min(850px, calc(100% - 28px));
  max-height: min(850px, calc(100dvh - 30px));
  overflow: auto;
  margin: auto;
  padding: 24px;
  background: #111f32;
  color: #eef5ff;
  border: 1px solid #7289a4;
  border-radius: 22px;
  box-shadow: 0 25px 90px #000a;
}
.badge-dialog::backdrop {
  background: #020711c9;
  backdrop-filter: blur(5px);
}
.badge-dialog-top {
  position: sticky;
  top: -24px;
  z-index: 2;
  background: #111f32;
  border-bottom: 1px solid #30445e;
}
.badge-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
  background: #111f32;
}
.badge-dialog-head h2 {
  margin: 3px 0 4px;
  font-size: 1.75rem;
}
.badge-dialog-head p {
  color: #f3cf86;
  margin: 0;
  font-size: 0.92rem;
}
.badge-dialog-head button {
  align-self: start;
  width: 38px;
  height: 38px;
  background: #253952;
  color: #f5f6fb;
  border: 1px solid #58708b;
  border-radius: 10px;
}
.badge-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #58708b transparent;
  padding: 10px 0 13px;
}
.badge-nav button {
  flex: none;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #6b809b;
  border-radius: 999px;
  background: #21334d;
  color: #e5effe;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.badge-nav button:hover,
.badge-nav button:focus-visible {
  border-color: #f8d386;
  outline: none;
}
.badge-nav button[aria-current="location"] {
  border-color: #f8d386;
  background: #514631;
  color: #ffe6ae;
}
.badge-group {
  margin-top: 24px;
}
.badge-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.badge-group-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #f8d69d;
}
.badge-group-title p {
  margin: 0;
  color: #a9c0dc;
  font-size: 0.86rem;
}
.badge-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.badge-card {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 91px;
  padding: 12px;
  border: 1px solid #52617b;
  border-radius: 14px;
  background: #20314b;
}
.badge-card.unlocked {
  background: linear-gradient(120deg, #45422d, #33455a);
  border-color: #d0ab65;
}
.badge-card.locked {
  opacity: 0.73;
}
.badge-card.locked .badge-icon {
  filter: grayscale(1);
}
.badge-icon {
  flex: none;
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.7rem;
  background: #36526c;
  box-shadow: inset 0 0 0 2px #8ba2b1;
}
.badge-card.unlocked .badge-icon {
  background: #635137;
  box-shadow:
    inset 0 0 0 2px #f8d386,
    0 0 12px #ebbd5f77;
}
.badge-card strong,
.badge-card small,
.badge-progress {
  display: block;
}
.badge-card strong {
  font-size: 0.96rem;
}
.badge-card small {
  margin: 3px 0;
  color: #c9d6e5;
  line-height: 1.35;
}
.badge-progress {
  font-size: 0.77rem;
  color: #ffd68b;
}
.badge-note {
  margin: 24px 0 4px;
  color: #aabed8;
  line-height: 1.6;
  font-size: 0.85rem;
}
.badge-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 100;
  background: #ffe0a0;
  color: #213348;
  border: 2px solid #fff2cb;
  box-shadow: 0 8px 32px #0009;
  padding: 13px 19px;
  border-radius: 16px;
  font-weight: 900;
  max-width: min(620px, calc(100vw - 30px));
  text-align: center;
  animation: pop 0.6s ease;
}
.level-up[hidden] {
  display: none;
}
.level-up {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 42%, #31598599, #030914df 64%);
  backdrop-filter: blur(5px);
  animation: level-fade-in 220ms ease-out both;
}
.level-up-card {
  width: min(360px, 100%);
  padding: 32px 28px 26px;
  border: 1px solid #ffd277;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, #ffd77b2e, transparent 44%),
    linear-gradient(155deg, #263f5e, #111f33 72%);
  color: #f5f8ff;
  text-align: center;
  box-shadow: 0 24px 80px #000b, inset 0 1px #fff3c34d;
  animation: level-card-in 540ms cubic-bezier(.18,.89,.32,1.28) both;
}
.level-up-burst {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid #ffd982;
  border-radius: 50%;
  background: radial-gradient(circle, #ffeaa8 0 18%, #e6ad49 20% 33%, #243c59 35% 100%);
  box-shadow: 0 0 0 8px #ffd57012, 0 0 42px #ffc85b73;
  animation: level-pulse 1.4s ease-in-out infinite alternate;
}
.level-up-burst span {
  width: 22px;
  height: 22px;
  background: #172943;
  transform: rotate(45deg);
  box-shadow: 0 0 16px #fff2b5;
}
.level-up-kicker {
  color: #ffd479;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.24em;
}
.level-up-card h2 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
}
.level-up-card > strong {
  display: block;
  color: #ffe29a;
  font-size: 3rem;
  line-height: 1;
}
.level-up-card p {
  margin: 12px 0 22px;
  color: #c5d5e9;
  font-size: 1.12rem;
  font-weight: 800;
}
.level-up-card button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ffd47a;
  border-radius: 13px;
  background: linear-gradient(180deg, #f0bd61, #d99a39);
  color: #17263a;
  font-weight: 900;
}
@keyframes level-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes level-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes level-pulse {
  from { transform: scale(.96); box-shadow: 0 0 0 7px #ffd5700e, 0 0 30px #ffc85b55; }
  to { transform: scale(1.04); box-shadow: 0 0 0 11px #ffd57018, 0 0 54px #ffc85b8c; }
}
@media (prefers-reduced-motion: reduce) {
  .level-up,
  .level-up-card,
  .level-up-burst {
    animation: none;
  }
}
@media (max-width: 760px) {
  .profile .exam-countdown,
  .profile .daily-wisdom,
  .profile .badge-entry,
  .profile .ability-entry {
    grid-column: 1/-1;
  }
}
@media (min-width: 761px) {
  .grid {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .ability-dialog { padding: 17px; }
  .ability-dialog-layout { grid-template-columns: 1fr; gap: 8px; }
  .ability-radar-large { width: min(100%, 360px); margin: 0 auto; }
  .badge-dialog {
    padding: 16px;
  }
  .badge-dialog-top {
    top: -16px;
  }
  .badge-cards {
    grid-template-columns: 1fr;
  }
  .badge-card {
    min-height: 78px;
  }
}
.cloud-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #354d69;
  border-radius: 14px;
  background: #0f1e31aa;
  color: #dbe6f4;
  font-size: 0.86rem;
}
.cloud-account #student-label,
.cloud-account #syncstatus {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
}
.cloud-account #syncstatus {
  color: #f5cd84;
}
.cloud-account #signout {
  align-self: flex-start;
  border-color: #60758f;
  border-radius: 999px;
  padding: 7px 14px;
  color: #c6d3e3;
  background: #1b2d45;
}
.cloud-account #signout:hover {
  border-color: #8ea3bc;
  background: #263c56;
}
@media (max-width: 760px) {
  .profile .cloud-account {
    grid-column: 1/-1;
  }
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 80% 0%, #283e61, #091321 65%);
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-gate[hidden] {
  display: none;
}
.auth-card {
  width: min(450px, 100%);
  background: #162842;
  border: 1px solid #6984a3;
  box-shadow: 0 25px 70px #0009;
  border-radius: 22px;
  padding: clamp(22px, 5vw, 37px);
  color: #ecf4ff;
}
.auth-card .auth-icon {
  font-size: 2.5rem;
  color: #ffcf76;
}
.auth-card h1 {
  font-size: 1.8rem;
  margin: 10px 0;
}
.auth-card p {
  color: #c6d5e8;
  line-height: 1.65;
  margin: 0 0 22px;
}
.auth-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}
.auth-card input {
  width: 100%;
  padding: 13px;
  background: #0d1b30;
  color: #fff;
  border: 1px solid #8ba3c1;
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-card input:focus {
  outline: 3px solid rgba(245, 201, 111, 0.25);
  border-color: #f5c96f;
}
.auth-card .login-account {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #4c6788;
  border-radius: 10px;
  background: #142640;
  color: #ffdf9e;
  font-weight: 800;
}
.auth-card button {
  width: 100%;
  padding: 13px;
  background: #f5c96f;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  margin: 14px 0 9px;
  color: #1d2b40;
}
.auth-card button:disabled {
  opacity: 0.65;
}
.auth-card button.auth-secondary {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #617a99;
  background: transparent;
  color: #d5e2f2;
  font-weight: 700;
}
.auth-card a {
  display: inline-block;
  margin-top: 17px;
  color: #ffdf9e;
  font-size: 0.9rem;
}
.auth-card #login-status {
  min-height: 1.3rem;
  color: #ffc0b6;
  line-height: 1.45;
}

/* 年級教師檢討模式 */
.review-mode .profile > :not(.review-profile-card):not(.cloud-account) {
  display: none;
}
.review-profile-card {
  padding: 4px 0 20px;
}
.review-profile-card[hidden] {
  display: none;
}
.review-profile-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid #8ebbed;
  border-radius: 18px;
  background: #203b5e;
  color: #cce6ff;
  font-size: 2rem;
  font-weight: 900;
}
.review-profile-card h2 {
  margin: 8px 0 10px;
}
.review-profile-card p,
.review-summary,
.review-hint {
  color: #b8cbe3;
  line-height: 1.65;
}
.review-summary {
  margin: -2px 0 22px;
}
.review-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-category-group {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #3b5573;
  border-radius: 18px;
  background: linear-gradient(145deg, #142843cc, #112239cc);
}
.review-category-group.general {
  border-top: 3px solid #61b8df;
}
.review-category-group.advanced {
  border-top: 3px solid #aa91df;
}
.review-category-group.exam {
  border-top: 3px solid #db8a74;
}
.review-category-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.review-category-title > div {
  display: grid;
  gap: 2px;
}
.review-category-title strong {
  color: #f1f6ff;
  font-size: 1.05rem;
}
.review-category-title small {
  color: #91a8c5;
}
.review-category-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #203a59;
  color: #b9dfff;
  font-weight: 950;
}
.review-category-group.advanced .review-category-mark {
  background: #332d58;
  color: #d5c5ff;
}
.review-category-group.exam .review-category-mark {
  background: #4a2d30;
  color: #ffc6b7;
}
.review-publisher-group + .review-publisher-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #314965;
}
.review-publisher-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 10px;
}
.review-publisher-head small {
  color: #91a8c5;
  font-size: .8rem;
}
.review-paper {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid #405c7c;
  border-radius: 14px;
  background: linear-gradient(150deg, #1a304d, #152942);
  color: #edf5ff;
  text-align: left;
}
.review-paper:hover,
.review-paper.selected {
  border-color: #e3c17d;
  background: linear-gradient(150deg, #24415f, #1a324e);
  transform: translateY(-1px);
}
.review-paper.category-general {
  box-shadow: inset 4px 0 #61b8df;
}
.review-paper.category-advanced {
  box-shadow: inset 4px 0 #aa91df;
}
.review-paper.category-exam {
  box-shadow: inset 4px 0 #db8a74;
}
.review-paper strong {
  color: #ffe09d;
}
.review-paper .review-paper-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eef5ff;
  font-size: 1.04rem;
}
.review-paper .review-paper-name.section::before,
.review-paper .review-paper-name.sync::before {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #254865;
  color: #a9dcf7;
  content: "▦";
}
.review-paper .review-paper-name.sync::before {
  background: #3b345f;
  color: #d0c2ff;
  content: "↻";
}
.review-paper span,
.review-paper small {
  color: #c3d2e6;
}
.review-paper-tags,
.review-paper-version {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 2px;
}
.review-paper .paper-tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #eff6ff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.paper-tag.category.general {
  background: #285b7b;
}
.paper-tag.category.advanced {
  background: #56417e;
}
.paper-tag.category.exam {
  background: #774447;
}
.paper-tag.publisher.kangxuan {
  border-color: #4ba47b;
  background: #1d5646;
  color: #bdf4d9;
}
.paper-tag.publisher.hanlin {
  border-color: #b98b4d;
  background: #584124;
  color: #ffe0a5;
}
.paper-tag.publisher.nanyi {
  border-color: #a87395;
  background: #53384f;
  color: #f5c6e5;
}
.paper-tag.publisher.builtin {
  border-color: #71869f;
  background: #34465c;
  color: #d8e6f5;
}
.paper-tag.bank {
  border-color: #647c9b;
  background: #1a2d46;
  color: #c9d9ed;
}
.paper-tag.bank.section::before {
  content: "▦  ";
  color: #8fc9ee;
}
.paper-tag.bank.sync::before {
  content: "↻  ";
  color: #b9a6ee;
}
.review-paper .paper-completed {
  color: #eaf3ff;
  font-size: 1rem;
}
.review-paper .paper-completed b {
  color: #ffe08f;
  font-size: 1.18rem;
}
.review-paper .paper-incomplete {
  color: #ffbfba;
  line-height: 1.55;
  text-align: left;
}
.review-paper .paper-total {
  margin-top: auto;
}
.review-publisher-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.review-publisher-column {
  --publisher-accent: #9fb3cc;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px;
  border: 1px solid #425c79;
  border-top: 4px solid var(--publisher-accent);
  border-radius: 15px;
  background: #102138;
}
.review-publisher-column.kangxuan {
  --publisher-accent: #f08d82;
}
.review-publisher-column.hanlin {
  --publisher-accent: #79cbe2;
}
.review-publisher-column.nanyi {
  --publisher-accent: #d490c8;
}
.review-publisher-column h3 {
  margin: 0 0 2px;
  color: var(--publisher-accent);
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.review-publisher-column .review-paper,
.review-exam-row .review-paper {
  width: 100%;
  min-height: 184px;
}
.review-paper.general {
  border-left: 4px solid #58d39b;
  box-shadow: inset 0 3px #70dcb0;
}
.review-paper.advanced {
  border-left: 4px solid #8ea7ff;
  box-shadow: inset 0 3px #9fb3ff;
}
.review-paper.exam {
  border-left: 4px solid #f6c968;
  box-shadow: inset 0 3px #f6cb70;
}
.review-paper .paper-student-list {
  color: #c9d8ea;
  font-size: .78rem;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
}
.review-paper .paper-completed-list {
  color: #aee8ca;
}
.review-paper .paper-incomplete {
  color: #ffbfba;
}
.review-column-empty {
  margin: 10px 0;
  color: #8095af;
  text-align: center;
}
.review-exam-row {
  margin-top: 13px;
}
.review-exam-row .review-paper {
  max-width: calc((100% - 26px) / 3);
}
.review-detail-incomplete {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-left: 4px solid #ef7770;
  border-radius: 6px;
  background: #321d29;
  color: #ffd0cc;
  line-height: 1.6;
}
.review-detail-completed {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-left: 4px solid #58d39b;
  border-radius: 6px;
  background: #16352f;
  color: #bdeed6;
  line-height: 1.6;
}
.review-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.review-legend span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #102033;
  font-size: .8rem;
  font-weight: 900;
}
.review-legend .low,
.review-number.low {
  background: #55d494;
  border-color: #7be7ad;
  color: #0c3020;
}
.review-legend .medium,
.review-number.medium {
  background: #f1cb5e;
  border-color: #ffe18a;
  color: #392c00;
}
.review-legend .high,
.review-number.high {
  background: #ef7770;
  border-color: #ff9a94;
  color: #3b0d0b;
}
.review-legend .no-data,
.review-number.no-data {
  background: #7e8fa5;
  border-color: #9dacc0;
  color: #101a28;
}
.review-number {
  font-weight: 950;
}
.review-number.active {
  outline: 3px solid #f8faff;
  outline-offset: 3px;
}
.review-question-title {
  margin: 24px 0 12px;
  color: #ffe09a;
}
.review-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.review-option {
  padding: 14px 16px;
  border: 1px solid #496481;
  border-radius: 14px;
  background: #13243b;
}
.review-option.correct {
  border-color: #43c989;
  background: #153d34;
}
.review-option-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  line-height: 1.5;
}
.review-option-head span {
  flex: 0 0 auto;
  color: #cbd8e9;
  font-weight: 800;
}
.choice-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #091524;
}
.choice-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #79ade3;
}
.review-option.correct .choice-bar i {
  background: #51d397;
}
.review-explanation {
  margin-top: 18px;
}
@media (max-width: 700px) {
  .review-paper-grid {
    grid-template-columns: 1fr;
  }
  .review-category-group {
    padding: 13px;
  }
  .review-publisher-columns {
    grid-template-columns: 1fr;
  }
  .review-exam-row .review-paper {
    max-width: none;
  }
  .review-option-head {
    display: grid;
    gap: 5px;
  }
}
