* {
  box-sizing: border-box;
}
html {
  background: #f6f7f3;
  color: #202e32;
  font-family:
    "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 3px solid #269c88;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.dashboard,
.reader {
  max-width: 670px;
  margin: auto;
  padding: calc(env(safe-area-inset-top) + 20px) 22px 120px;
}
.top,
.brand,
.today,
.sectionTitle,
.row,
.qtop,
.qcounter,
.qmeta,
.metrics,
.typeStats,
.qactions,
.qtools,
.segments,
.modalActions {
  display: flex;
  align-items: center;
}
.top,
.qtop,
.qcounter,
.sectionTitle,
.qtools {
  justify-content: space-between;
}
.brand {
  gap: 9px;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: 1px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.today {
  gap: 5px;
  font-size: 12px;
  color: #596665;
}
.today svg {
  color: #b67443;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 32px 0 21px;
}
h2,
h3,
p {
  margin: 0;
}
.subjects,
.segments {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.subjects button,
.segments button {
  border-radius: 24px;
  padding: 8px 15px;
  color: #596361;
  font-size: 13px;
  font-weight: 650;
  background: #eaece5;
  min-height: 37px;
}
.subjects .active,
.segments .on {
  background: #243b39;
  color: #fff;
}
.hero,
.examHero {
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: #184c43;
  color: #f5f4db;
  isolation: isolate;
}
.hero {
  padding: 22px 22px 17px;
}
.heroText {
  position: relative;
  z-index: 1;
  max-width: 65%;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #d5e2a3;
  letter-spacing: 2px;
}
.heroText h2 {
  font-size: clamp(25px, 6vw, 37px);
  margin: 7px 0 4px;
  letter-spacing: -1px;
}
.heroText > p:not(.eyebrow) {
  font-size: 12px;
  color: #d2dfd7;
}
.heroBtn,
.primary,
.secondary,
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}
.heroBtn {
  border-radius: 22px;
  margin-top: 17px;
  padding: 8px 14px;
  background: #e1efad;
  color: #203e36;
  font-size: 13px;
  min-height: 35px;
}
.heroProgress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #e3ecdf;
  margin-top: 21px;
}
.heroProgress b {
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 5px;
  border-radius: 4px;
  background: #dce2da;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  background: #317a65;
  border-radius: 4px;
}
.heroProgress .track {
  grid-column: 1/-1;
  background: #477067;
}
.heroProgress i {
  background: #dceda9;
}
.paperart {
  position: absolute;
  right: 8%;
  top: 17%;
  width: 85px;
  height: 104px;
  transform: rotate(12deg);
  pointer-events: none;
}
.paperart i {
  display: block;
  position: absolute;
  inset: 0;
  border: 2px solid #203e36;
  border-radius: 8px;
  box-shadow: 2px 3px 0 #102f2b;
}
.paperart i:nth-child(1) {
  background: #e2af6d;
  transform: translate(11px, 4px) rotate(19deg);
}
.paperart i:nth-child(2) {
  background: #acc892;
  transform: translate(5px, 3px) rotate(7deg);
}
.paperart i:last-child {
  background: #fff5d8;
  transform: rotate(-6deg);
  padding: 11px 9px;
}
.paperart em {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #d6e7aa;
  color: #295041;
  font: 700 17px/25px sans-serif;
  text-align: center;
  margin-bottom: 8px;
}
.paperart u {
  display: block;
  width: 80%;
  height: 4px;
  background: #759283;
  margin: 6px 0;
  border-radius: 3px;
}
.paperart u:last-child {
  width: 54%;
}
.sectionTitle {
  margin: 26px 0 12px;
}
.sectionTitle h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.sectionTitle small,
.rowText small,
.quick small,
.typeStats small,
.note,
.empty p {
  font-size: 12px;
  color: #66716d;
}
.quickGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.quick {
  border: 1px solid #dde2da;
  border-radius: 15px;
  background: #fff;
  padding: 13px 6px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.quick b {
  font-size: 14px;
}
.quick small {
  font-size: 11px;
}
.square {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mint {
  background: #e0eee4;
  color: #276550;
}
.peach {
  background: #f9e7da;
  color: #984c2f;
}
.sand,
.gold {
  background: #f5edcf;
  color: #85691e;
}
.panel,
.summary,
.typeStats,
.resume,
.explain,
.empty {
  background: #fff;
  border: 1px solid #dce2db;
  border-radius: 16px;
}
.row {
  width: 100%;
  gap: 13px;
  text-align: left;
  padding: 13px 14px;
  min-height: 61px;
}
.panel .row + .row {
  border-top: 1px solid #edf0eb;
}
.rowText {
  flex: 1;
  min-width: 0;
}
.rowText b,
.rowText small {
  display: block;
}
.rowText b {
  font-size: 14px;
  line-height: 1.5;
}
.rowText small {
  margin-top: 3px;
  line-height: 1.4;
}
.row > svg:last-child {
  color: #87948a;
}
.num {
  border-radius: 10px;
  background: #f0f3ea;
  color: #536c59;
  min-width: 39px;
  line-height: 34px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.resume,
.spaced {
  margin-top: 15px;
}
.tabs {
  position: fixed;
  z-index: 3;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 670px;
  display: flex;
  background: #fffffff5;
  border-top: 1px solid #dce2da;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
}
.tab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  flex: 1;
  font-size: 11px;
  color: #707a75;
  min-height: 45px;
}
.tab.selected {
  color: #145e49;
  font-weight: 750;
}
.tab.selected svg {
  background: #e2efdf;
  box-shadow: 0 0 0 4px #e2efdf;
  border-radius: 4px;
}
.tab.selected {
  gap: 6px;
}
.examHero,
.summary,
.resultHero {
  padding: 23px;
}
.examHero h2,
.summary h2 {
  margin: 13px 0 6px;
  font-size: 25px;
}
.examHero > p {
  color: #d2e2d6;
  font-size: 13px;
}
.metrics,
.typeStats {
  justify-content: space-between;
  margin: 20px 0;
}
.metrics div,
.typeStats div {
  display: grid;
  gap: 4px;
  min-width: 24%;
}
.metrics b,
.typeStats b {
  font-size: 23px;
}
.metrics small {
  font-size: 12px;
}
.primary,
.secondary {
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 45px;
  font-size: 14px;
}
.primary {
  color: white;
  background: #205f4f;
}
.secondary {
  color: #35544a;
  background: #e8eee6;
}
.examHero .primary {
  width: 100%;
  background: #dceca6;
  color: #234336;
}
.note,
.empty p {
  line-height: 1.7;
  margin: 14px 3px;
}
.empty {
  text-align: center;
  padding: 34px 15px;
}
.empty h3 {
  margin: 12px 0 0;
}
.summary h2 {
  font-size: 34px;
  color: #215944;
}
.summary small,
.resultHero small {
  font-weight: 500;
  font-size: 15px;
}
.summary .track {
  margin-top: 16px;
}
.reader {
  padding-bottom: 65px;
}
.qtop {
  min-height: 43px;
  gap: 12px;
}
.qtop strong {
  font-size: 16px;
}
.iconbutton {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e9ede6;
  display: inline-grid;
  place-items: center;
}
.starred .iconbutton {
  color: #936f12;
  background: #f7edc4;
}
.starred svg {
  fill: #f6d75c;
}
.qcounter {
  font-size: 12px;
  color: #53675f;
  margin: 24px 0 8px;
}
.qmeta {
  margin: 27px 0 15px;
  gap: 10px;
  color: #6b7771;
}
.qmeta small {
  font-size: 11px;
}
.tag {
  background: #dfeee1;
  color: #25614e;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.clock {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  color: #815b35;
}
.stem {
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 23px;
  overflow-wrap: anywhere;
}
.options {
  display: grid;
  gap: 10px;
}
.option {
  background: white;
  border: 1.3px solid #d6ded6;
  border-radius: 13px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-height: 53px;
}
.option span {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #edf1eb;
  display: grid;
  place-items: center;
  flex: none;
  font: 650 14px system-ui;
}
.option b {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.option.picked,
.option.good {
  border-color: #397d61;
  background: #e8f4e9;
}
.option.picked span,
.option.good span {
  background: #386f58;
  color: white;
}
.option.bad {
  background: #fae9e3;
  border-color: #b26e56;
}
.option.bad span {
  background: #a15e47;
  color: white;
}
.qactions,
.modalActions {
  gap: 9px;
  margin-top: 22px;
}
.qactions button,
.modalActions button {
  flex: 1;
}
.disabled {
  opacity: 0.45;
  cursor: default;
}
.qtools {
  margin-top: 13px;
}
.link {
  padding: 8px;
  font-size: 13px;
  color: #4b675c;
}
.explain {
  padding: 16px;
  margin-top: 16px;
  border-left: 3px solid #3e7c60;
}
.explain p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 5px;
}
.resultHero {
  margin: 22px 0;
  background: #1c5145;
  color: #f2f5e4;
  border-radius: 18px;
}
.resultHero h1 {
  font-size: 49px;
  margin: 13px 0;
}
.resultHero p {
  font-size: 13px;
}
.typeStats {
  padding: 16px;
  gap: 6px;
}
.typeStats b {
  font-size: 18px;
}
.wide {
  width: 100%;
  margin-top: 20px;
}
.shade {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: #10251c66;
  display: grid;
  align-content: end;
  justify-items: center;
}
.sheet {
  width: min(100%, 600px);
  background: #fbfcf8;
  border-radius: 24px 24px 0 0;
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  max-height: 84vh;
  overflow: auto;
}
.sheet .handle {
  display: block;
  width: 35px;
  height: 4px;
  border-radius: 9px;
  background: #d2d8cf;
  margin: 0 auto 16px;
}
.sheet h2 {
  font-size: 22px;
}
.sheet p {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
  color: #4a5e53;
}
.numbergrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 16px 0;
}
.numbergrid button {
  background: #ecefe8;
  border-radius: 6px;
  min-height: 34px;
  font-size: 12px;
}
.numbergrid .filled {
  background: #33705a;
  color: white;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 20;
  bottom: calc(85px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #263e35;
  color: white;
  border-radius: 10px;
  padding: 10px 15px;
  max-width: 85vw;
  font-size: 13px;
  white-space: normal;
}
.resume + .examHero {
  margin-top: 15px;
}
@media (min-width: 700px) {
  .dashboard,
  .reader {
    padding-left: 35px;
    padding-right: 35px;
  }
  .paperart {
    right: 12%;
    transform: scale(1.15) rotate(12deg);
  }
  .dashboard h1 {
    margin-top: 36px;
  }
  .hero {
    padding: 25px 27px 20px;
  }
  .tabs {
    border: 1px solid #dde3da;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
  }
  .shade {
    align-content: center;
  }
  .sheet {
    border-radius: 20px;
  }
}
@media (max-width: 360px) {
  .dashboard,
  .reader {
    padding-left: 14px;
    padding-right: 14px;
  }
  .subjects button {
    padding: 7px 12px;
  }
  .paperart {
    right: 8%;
    transform: scale(0.8) rotate(12deg);
  }
  .heroText h2 {
    font-size: 24px;
  }
  .quick small {
    font-size: 10px;
  }
}

@media (min-width: 820px) {
  .dashboard {
    max-width: 1200px;
    padding: 18px clamp(30px, 5vw, 70px) 64px;
  }
  .top {
    min-height: 64px;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce2da;
  }
  .tabs {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    gap: 6px;
  }
  .tab, .tab.selected {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 8px;
    border-radius: 12px;
    padding: 0 16px;
    min-height: 42px;
    font-size: 15px;
  }
  .tab.selected { background: #e2efdf; }
  .tab.selected svg { background: none; box-shadow: none; }
  .tab:hover, .row:hover, .quick:hover { background-color: #edf3e9; }
  .practice-layout, .exam-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    column-gap: clamp(24px, 3vw, 44px);
    align-items: start;
    align-content: start;
  }
  .practice-layout { grid-template-rows: auto 1fr; }
  .chapter-list { grid-column: 2; grid-row: 1 / 3; }
  .extra-practice { grid-column: 1; grid-row: 2; }
  .chapter-list > .sectionTitle:first-child,
  .exam-layout > div > .sectionTitle:first-child { margin-top: 0; }
  .chapter-list .panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter-list .panel .row { border: 0; border-bottom: 1px solid #edf0e9; }
  .chapter-list .rowText { min-width: 0; }
  .reader { max-width: 800px; padding-top: 38px; }
  .dashboard > .panel.spaced { max-width: 920px; }
}
