:root {
  color-scheme: light;
  --ink: #20243b;
  --sub: #60677b;
  --quiet: #697185;
  --primary: #4845b7;
  --line: #e0e4ed;
  --paper: #fff;
  --bg: #f6f7fb;
  --navy: #172451;
  --mint: #8bd8c7;
  --radius: 16px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font:
    16px/1.62 "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
:focus-visible {
  outline: 3px solid #8474ee;
  outline-offset: 4px;
}
#main:focus {
  outline: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: white;
  padding: 8px 14px;
}
.skip:focus {
  top: 12px;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar-inner,
.frame,
.sitefoot {
  max-width: 1280px;
  margin: auto;
  padding-inline: clamp(22px, 4.3vw, 68px);
}
.bar-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 4.2vw, 68px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 23px;
  letter-spacing: -0.07em;
  font-weight: 820;
  color: #252642;
}
.brand-suffix {
  margin-left: 3px;
  font-size: 19px;
  letter-spacing: -0.06em;
}
#navigation {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.6vw, 43px);
  height: 100%;
}
#navigation a {
  position: relative;
  display: flex;
  align-items: center;
  color: #596070;
  font-size: 0.94rem;
  font-weight: 560;
  white-space: nowrap;
}
#navigation a.active {
  color: var(--primary);
  font-weight: 720;
}
#navigation a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}
.wrong-nav {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.91rem;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.wrong-nav.active {
  color: var(--primary);
}
.count {
  background: #eeedf9;
  color: #514d9d;
  font: 600 13px/21px var(--mono);
  min-width: 21px;
  padding-inline: 5px;
  text-align: center;
  border-radius: 6px;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.frame {
  padding-top: 30px;
  padding-bottom: 40px;
  min-height: 72vh;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 19px;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(#9daff00b 1px, transparent 1px),
    linear-gradient(90deg, #9daff00b 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 290px;
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 62%;
  padding: 32px clamp(25px, 3.3vw, 49px) 34px;
}
.hero-kicker,
.page-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.09em;
}
.hero-kicker {
  color: #c3d4ff;
}
.hero-kicker:before {
  content: "";
  width: 22px;
  height: 2px;
  background: #94decf;
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 65px);
  letter-spacing: -0.065em;
  font-weight: 760;
  line-height: 1.17;
  margin: 14px 0 13px;
}
.hero-copy p {
  max-width: 34em;
  color: #dbe2f4;
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
}
.hero-copy p span {
  white-space: nowrap;
}
.hero-art {
  position: absolute;
  inset: 0 -1px 0 auto;
  width: 48%;
  z-index: 0;
  background-image: url("computer.webp");
  background-repeat: no-repeat;
  background-position: 53% 51%;
  background-size: 100% auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
  pointer-events: none;
}
.hero-buttons,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 23px;
}
.btn {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 620;
  padding: 8px 18px;
  line-height: 1.5;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: #373494;
}
.btn-paper {
  background: #fff;
  border: 1px solid #fff;
  color: #242942;
}
.btn-ghost {
  background: #ffffff09;
  color: #f1f3ff;
  border: 1px solid #8a96b6;
}
.btn-ghost:hover {
  background: #ffffff18;
}
.btn-light {
  border: 1px solid #d9dce7;
  background: #fff;
  color: #44495d;
}
.lightlink {
  font-size: 0.93rem;
  color: var(--primary);
  font-weight: 650;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.27fr) minmax(255px, 1fr);
  align-items: start;
  gap: 25px;
  margin-top: 30px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-top h2,
.side h2,
.panel h2,
.lesson-card h2 {
  font-size: 1.37rem;
  line-height: 1.35;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 730;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-symbol {
  display: flex;
  color: var(--primary);
}
.section-symbol .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}
.filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eceef5;
  border: 1px solid #e3e5ee;
  border-radius: 8px;
  padding: 3px;
}
.filters button {
  color: #62697b;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.84rem;
  font-weight: 590;
}
.filters button[aria-pressed="true"] {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px #25305f1c;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.unit-card,
.side,
.panel,
.lesson-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.unit-card {
  display: flex;
  min-height: 177px;
  flex-direction: column;
  transition:
    border-color 0.17s,
    transform 0.17s,
    box-shadow 0.17s;
  overflow: hidden;
  padding: 19px 20px 15px;
}
.unit-card:hover {
  border-color: #aba9dc;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px #2938760b;
}
.unit-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tbg, #efefff);
  color: var(--tink, #5550bb);
  flex-shrink: 0;
}
.tile .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}
.unit-ch {
  color: #626a7f;
  font-size: 0.82rem;
  letter-spacing: 0.025em;
  font-weight: 580;
}
.weight {
  margin-left: auto;
  border: 1px solid #e1e4ec;
  border-radius: 6px;
  padding: 0px 8px;
  line-height: 23px;
  font-size: 0.8rem;
  color: #586077;
  white-space: nowrap;
}
.weight b {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 650;
}
.weight.heavy {
  background: #eaf5f0;
  color: #246657;
  border-color: #d3eadf;
}
.unit-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.035em;
  margin: 12px 0 4px;
  line-height: 1.45;
}
.unit-card p {
  font-size: 0.91rem;
  margin: 0 0 13px;
  color: var(--sub);
  line-height: 1.6;
}
.unit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #eff0f5;
  color: #687083;
  font-size: 0.81rem;
}
.unit-meta .icon {
  width: 14px;
  height: 14px;
}
.unit-meta .jump {
  margin-left: auto;
  color: #6866a5;
  width: 16px;
  height: 16px;
}
.dash-side {
  display: grid;
  gap: 15px;
}
.side {
  padding: 21px 22px;
}
.side-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.side-head > .icon {
  color: var(--primary);
  width: 19px;
  height: 19px;
}
.side h2 {
  font-size: 1.09rem;
}
.ring {
  margin: 20px auto 18px;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #4947b7 0deg 293deg,
    white 293deg 296deg,
    #8cd7c5 296deg 358deg,
    white 358deg 360deg
  );
  display: grid;
  place-items: center;
}
.ring-inner {
  width: 109px;
  height: 109px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring strong {
  font: 660 2.14rem/1.1 var(--mono);
  letter-spacing: -0.08em;
  padding-right: 0.07em;
}
.ring small {
  font-size: 0.8rem;
  color: var(--sub);
  margin-top: 4px;
}
.legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 0.91rem;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #4947b7;
}
.legend i.mint {
  background: #8bd6c4;
}
.legend b {
  font-family: var(--mono);
  font-size: 1rem;
}
.legend b small {
  font: 400 0.78rem/1.5 sans-serif;
  margin-left: 4px;
  color: var(--sub);
}
.progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 6px;
  color: var(--sub);
  font-size: 0.9rem;
}
.progress-label b {
  color: var(--primary);
  font: 650 1rem/1 var(--mono);
}
.progress-track {
  height: 7px;
  background: #eaeaf4;
  border-radius: 5px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}
.side-note {
  font-size: 0.84rem;
  color: var(--sub);
  margin: 10px 0 0;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #45416f;
  background: #eeeeff;
  border-color: #dedef6;
}
.side-link .tile {
  background: #deddfc;
}
.side-link b {
  font-size: 1rem;
  display: block;
}
.side-link small {
  font-size: 0.82rem;
  color: #5d6081;
}
.side-link > .icon {
  margin-left: auto;
  width: 17px;
}
.sitefoot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-block: 21px 33px;
  color: #6d7283;
  font-size: 0.82rem;
}
.sitefoot div {
  display: flex;
  gap: 12px;
}
.foot-brand {
  font-weight: 700;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 0.87rem;
  margin: 0 0 19px;
}
.crumb .icon {
  width: 13px;
  height: 13px;
}
.page-intro {
  margin: 0 0 22px;
}
.page-kicker {
  color: var(--primary);
  font-size: 0.83rem;
  letter-spacing: 0.045em;
}
.page-intro h1,
.empty h1 {
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.28;
  margin: 8px 0;
}
.page-intro p,
.muted {
  color: var(--sub);
  margin: 0;
}
.chapter-page {
  max-width: 1000px;
}
.chapter-page .unit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.layout-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(235px, 1fr);
  align-items: start;
  gap: 22px;
}
.study-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.lesson-card,
.panel {
  padding: clamp(18px, 2vw, 29px);
}
.lesson-card {
  scroll-margin-top: 22px;
}
.lesson-card h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lesson-n {
  font: 650 0.9rem/1 var(--mono);
  color: #6964b4;
}
.lesson-card p {
  margin: 10px 0 0;
}
.example,
.tip {
  padding: 11px 14px;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.example {
  background: #f3f4fa;
}
.tip {
  background: #f0f7f4;
}
.example strong,
.tip strong {
  font-size: 0.83rem;
  color: #4a4b76;
  margin-right: 9px;
}
.tip strong {
  color: #346653;
}
.lesson-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.toc {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.toc button {
  text-align: left;
  color: var(--sub);
  font-size: 0.89rem;
}
.toc button:hover {
  color: var(--primary);
}
.stick {
  position: sticky;
  top: 16px;
}
.test-wrap {
  max-width: 930px;
  margin: auto;
}
.quiz-progress {
  margin: 0 0 16px;
  font-size: 0.91rem;
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.q-head {
  font-size: 1.22rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 12px 0 17px;
  letter-spacing: -0.025em;
}
.choices {
  display: grid;
  gap: 9px;
}
.option {
  display: flex;
  text-align: left;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #dfe2ec;
  border-radius: 9px;
  line-height: 1.6;
  background: white;
}
.option:hover:not(:disabled),
.option.chosen {
  border-color: #8d87d4;
  background: #f4f3ff;
}
.option.chosen {
  box-shadow: inset 0 0 0 1px #8d87d4;
}
.option strong {
  display: grid;
  place-items: center;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #eff0f6;
  color: #50536f;
  font: 600 0.84rem/1 var(--mono);
}
.option.chosen strong {
  color: white;
  background: #5d58b6;
}
.option:disabled {
  opacity: 1;
  cursor: default;
}
.option.good {
  border-color: #60aa8e;
  background: #f0f8f4;
}
.option.bad {
  border-color: #d39989;
  background: #fff5f1;
}
.feedback {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f2f2fa;
  border-radius: 9px;
  font-size: 0.94rem;
}
.feedback b {
  display: block;
  margin-bottom: 3px;
}
.feedback.good {
  background: #eaf5ee;
  color: #235a46;
}
.feedback.bad {
  background: #fff0e9;
  color: #804428;
}
.wrong-row,
.exam-row {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.wrong-row:first-child,
.exam-row:first-child {
  border: 0;
}
.wrong-row b {
  display: block;
  line-height: 1.6;
  white-space: pre-line;
}
.wrong-row small {
  color: var(--sub);
}
.empty {
  text-align: center;
  padding: 42px 20px;
}
.empty .tile {
  margin-bottom: 10px;
}
.empty h2 {
  margin: 0 0 8px;
}
.empty .btn {
  margin-top: 16px;
}
.exam-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(27px, 1fr));
  gap: 5px;
  margin: 12px 0;
}
.exam-grid button {
  border: 1px solid #dfe2ea;
  min-height: 32px;
  font: 500 0.84rem/1 var(--mono);
  border-radius: 6px;
}
.exam-grid button.answered {
  color: #24624c;
  background: #e0f0e8;
  border-color: #b4d5c3;
}
.exam-grid button.current {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.exam-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 13px;
  font-size: 0.94rem;
}
.exam-table td,
.exam-table th {
  border-bottom: 1px solid var(--line);
  padding: 9px 5px;
  text-align: left;
}
.exam-table td:last-child,
.exam-table th:last-child {
  text-align: right;
}
.score {
  font: 700 3.2rem/1.25 var(--mono);
  color: var(--primary);
  letter-spacing: -0.08em;
  margin: 7px 0;
}
.score small {
  font: 500 1.12rem/1.5 var(--mono);
  letter-spacing: 0;
  color: var(--sub);
}
.section-gap {
  margin-top: 20px;
}
.result-points {
  font: 650 1rem/1.4 var(--mono);
  color: var(--primary);
}
.result-summary {
  display: flex;
  gap: 15px 25px;
  flex-wrap: wrap;
  margin: 5px 0 16px;
  color: var(--sub);
}
.feedback p {
  margin: 5px 0 0;
}
details.review {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
details.review summary {
  cursor: pointer;
  line-height: 1.6;
}
details.review p {
  margin: 8px 0;
  color: var(--sub);
  white-space: pre-line;
}
.about p {
  color: var(--sub);
}
.about h2 {
  font-size: 1.15rem;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 18px;
  background: #262744;
  color: #fff;
  box-shadow: 0 3px 20px #0002;
  border-radius: 8px;
  font-size: 0.92rem;
}
@media (min-width: 1600px) {
  .bar-inner,
  .frame,
  .sitefoot {
    max-width: 1370px;
  }
}
@media (max-width: 980px) {
  .bar-inner,
  .frame,
  .sitefoot {
    padding-inline: 26px;
  }
  .bar-inner {
    gap: 25px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 2fr) minmax(225px, 1fr);
    gap: 16px;
  }
  .unit-card {
    padding: 15px;
  }
  .side {
    padding: 17px;
  }
  .unit-grid {
    gap: 10px;
  }
  .hero-copy {
    width: 62%;
  }
  .chapter-page .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .bar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    gap: 5px 12px;
    padding-top: 10px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand-suffix {
    font-size: 17px;
  }
  #navigation {
    grid-column: 1/-1;
    grid-row: 2;
    gap: 0;
    justify-content: space-between;
    height: 42px;
  }
  #navigation a {
    font-size: 0.89rem;
  }
  .wrong-nav {
    grid-row: 1;
    grid-column: 2;
    font-size: 0.84rem;
  }
  .frame {
    padding-top: 18px;
  }
  .hero {
    min-height: 242px;
  }
  .hero-copy {
    width: 67%;
    padding: 24px;
  }
  .hero-copy p {
    font-size: 0.9rem;
  }
  .hero-art {
    width: 44%;
    background-size: cover;
  }
  .hero-buttons {
    gap: 8px;
    margin-top: 16px;
  }
  .hero-buttons .btn {
    font-size: 0.87rem;
    padding: 8px 13px;
    min-height: 38px;
  }
  .dashboard,
  .layout-inner {
    grid-template-columns: 1fr;
  }
  .dashboard {
    margin-top: 24px;
  }
  .dash-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-link {
    grid-column: 1/-1;
  }
  .stick {
    position: static;
  }
  .lesson-aside {
    order: -1;
  }
  .lesson-aside .toc {
    display: none;
  }
  .lesson-aside .side-note {
    margin-top: 5px;
  }
  .lesson-aside .actions {
    margin-top: 12px;
  }
}
@media (max-width: 520px) {
  .bar-inner,
  .frame,
  .sitefoot {
    padding-inline: 16px;
  }
  .hero {
    min-height: 236px;
  }
  .hero-copy {
    padding: 21px 17px;
    width: 100%;
  }
  .hero-kicker {
    font-size: 0.77rem;
    max-width: 64%;
    gap: 7px;
  }
  .hero h1 {
    font-size: clamp(29px, 7.7vw, 38px);
    margin: 10px 0;
    max-width: 73%;
  }
  .hero-copy p {
    width: 64%;
    font-size: 0.88rem;
    line-height: 1.7;
  }
  .hero-art {
    width: 44%;
    height: 80%;
    top: 2%;
    opacity: 0.85;
    background-size: 115% auto;
    background-position: center right;
    mask-image: linear-gradient(90deg, transparent 0%, #000 25%);
  }
  .hero-buttons .btn {
    min-height: 37px;
  }
  .section-top {
    gap: 8px;
  }
  .section-top h2 {
    font-size: 1.19rem;
  }
  .section-title {
    gap: 7px;
  }
  .filters button {
    padding: 4px 7px;
    font-size: 0.78rem;
  }
  .unit-grid,
  .chapter-page .unit-grid {
    grid-template-columns: 1fr;
  }
  .unit-card {
    min-height: auto;
    padding: 15px 16px;
  }
  .unit-card h3 {
    margin-top: 9px;
  }
  .unit-card p {
    margin-bottom: 8px;
  }
  .unit-card .tile {
    width: 34px;
    height: 34px;
  }
  .dash-side {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    position: relative;
  }
  .page-intro h1 {
    font-size: 1.85rem;
  }
  .sitefoot {
    font-size: 0.77rem;
  }
  .sitefoot div {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.code-review {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f3f8;
  padding: 12px;
  border-radius: 8px;
  font: 0.9rem/1.6 var(--mono);
}
.panel h2.q-head {
  font-size: 1.21rem;
  line-height: 1.65;
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
}

@media (min-width: 761px) {
  .hero-art {
    width: 46%;
    background-size: auto 100%;
    background-position: 72% center;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 19%,
      #000 92%,
      transparent 100%
    );
  }
}
@media (max-width: 520px) {
  .hero-art {
    top: 0;
    height: 100%;
    width: 43%;
    background-size: auto 76%;
    background-position: 50% 32%;
    mask-image: linear-gradient(90deg, transparent, #000 18%);
  }
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bank-card {
  min-height: 156px;
}
.drill-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 21px;
  padding: 17px 20px;
  border: 1px solid #c8dfd7;
  border-radius: var(--radius);
  background: #f0f8f4;
}
.study-column .drill-callout {
  margin: 0;
}
.drill-callout b {
  font-size: 1.03rem;
}
.drill-callout p {
  margin: 3px 0 0;
  font-size: 0.91rem;
  color: var(--sub);
}
.drill-callout > .icon {
  margin-left: auto;
  width: 17px;
}
.bank-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin: 15px 0;
}
.bank-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sub);
  font-size: 0.9rem;
}
.bank-toolbar select {
  min-height: 37px;
  max-width: 100%;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 30px 5px 10px;
  background-color: white;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #626487 50%),
    linear-gradient(135deg, #626487 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 53%,
    calc(100% - 10px) 53%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.answer-method {
  background: #f2f1fc;
  color: #34336b;
  border-left: 3px solid #7771cc;
  border-radius: 0 7px 7px 0;
  padding: 11px 13px;
  display: flex;
  gap: 6px 14px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 12px 0 7px;
}
.answer-method strong {
  font-size: 0.84rem;
  white-space: nowrap;
}
.answer-method span {
  flex: 1 1 225px;
}
.feedback .worked-answer,
.worked-answer {
  margin: 8px 0 2px;
  color: var(--ink);
  line-height: 1.7;
}
.worked-answer strong {
  font-size: 0.84rem;
}
.drill-example ol {
  padding-left: 1.4em;
  line-height: 1.85;
}
.wrong-method {
  margin-top: 9px;
}
.wrong-method summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
}
.option span {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .bank-grid {
    grid-template-columns: 1fr;
  }
  .bank-toolbar {
    gap: 8px 12px;
  }
  .drill-callout {
    padding: 14px;
  }
  .bank-toolbar label {
    max-width: 100%;
  }
  .bank-toolbar select {
    max-width: 226px;
  }
}
@media (min-width: 761px) and (max-width: 928px) {
  #navigation {
    gap: 15px;
  }
  .bar-inner {
    gap: 18px;
  }
  .brand-suffix {
    font-size: 16px;
  }
}
.radix-reference {
  margin: 14px 0 0;
}
.radix-reference summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.91rem;
}
.radix-reference p {
  font-size: 0.91rem;
}
.radix-reference > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.radix-reference span {
  font: 0.86rem/1.5 var(--mono);
  padding: 5px;
  background: #f1f2f8;
  border-radius: 5px;
  text-align: center;
}
.q-head,
.option span,
.review summary {
  white-space: pre-wrap;
}
@media (max-width: 430px) {
  .radix-reference > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.answer-disclosure {
  margin: 14px 0 4px;
  border: 1px solid #d9dced;
  border-radius: 9px;
  background: #fbfbff;
}
.answer-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 630;
}
.answer-disclosure > summary::-webkit-details-marker {
  display: none;
}
.answer-disclosure > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.answer-disclosure[open] > summary::before {
  transform: rotate(45deg);
}
.answer-disclosure > summary .answer-toggle-open,
.answer-disclosure[open] > summary .answer-toggle-closed {
  display: none;
}
.answer-disclosure[open] > summary .answer-toggle-open {
  display: inline;
}
.answer-content {
  border-top: 1px solid #e3e4f0;
  padding: 13px 15px;
  overflow-wrap: anywhere;
}
.answer-content > :first-child {
  margin-top: 0;
}
.answer-content > :last-child {
  margin-bottom: 0;
}
.answer-content .answer-key {
  display: block;
  white-space: pre-wrap;
  color: #303454;
}
.answer-disclosure.review {
  margin: 8px 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.answer-disclosure.review > summary {
  line-height: 1.55;
}
.answer-disclosure.review .review-heading {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-weight: 550;
  white-space: pre-wrap;
}
.answer-disclosure.review summary .answer-toggle-closed,
.answer-disclosure.review summary .answer-toggle-open {
  flex-shrink: 0;
  font-size: 0.81rem;
}
@media (max-width: 650px) {
  .answer-disclosure.review > summary {
    flex-wrap: wrap;
  }
  .answer-disclosure.review .review-heading {
    flex-basis: calc(100% - 30px);
  }
  .answer-disclosure.review summary .answer-toggle-closed,
  .answer-disclosure.review summary .answer-toggle-open {
    margin-left: 17px;
  }
}
