:root {
  color-scheme: light;
  --ink: #4a3b43;
  --muted: #87767f;
  --accent: #c27895;
  --accent-dark: #ab627f;
  --line: #f2e5ea;
  --paper: #ffffff;
  --back: #fffbfc;
  --tint: #fdf1f6;
  font-family:
    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Hiragino Kaku Gothic ProN', 'Microsoft YaHei',
    sans-serif;
  font-synthesis: none;
  line-height: 1.66;
  font-weight: 450;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--back);
  min-height: 100vh;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid #467c85;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.36;
  text-wrap: pretty;
}
h1 {
  font-size: clamp(32px, 4.3vw, 53px);
  letter-spacing: -0.045em;
  font-weight: 750;
}
h2 {
  font-size: clamp(21px, 2.5vw, 30px);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
}
p {
  overflow-wrap: break-word;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
summary {
  touch-action: manipulation;
}
.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -6rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #fff;
}
.skip:focus {
  top: 0.5rem;
}
.topbar {
  background: #fffdfe;
  border-bottom: 1px solid var(--line);
}
.top-inner,
.wrap,
.app-footer {
  width: min(1096px, 100% - 64px);
  margin-inline: auto;
}
.top-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.055em;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-book {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.brand-book i {
  position: relative;
  width: 18px;
  height: 13px;
  display: block;
}
.brand-book i:before,
.brand-book i:after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 0;
  width: 8px;
  background: #fff1e5;
}
.brand-book i:before {
  left: 0;
  border-radius: 1px 4px 1px 2px;
  transform: skewY(8deg);
}
.brand-book i:after {
  right: 0;
  border-radius: 4px 1px 2px 1px;
  transform: skewY(-8deg);
}
.main-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 25px;
}
.main-nav a,
.explorer-link {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  color: var(--muted);
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 3px;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
.main-nav a[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
}
.main-nav a:hover,
.explorer-link:hover {
  color: var(--accent);
}
.main-nav [data-due] {
  border-radius: 99px;
  background: var(--tint);
  padding: 0 0.45em;
  font-size: 11px;
}
.explorer-link {
  margin-left: auto;
  white-space: nowrap;
}
.wrap {
  padding: 32px 0 10px;
  min-height: calc(100vh - 187px);
}
.app-footer {
  margin-top: 40px;
  padding: 19px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.eyeline {
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 680;
  line-height: 1.6;
}
.home-intro {
  margin: 3px 0 20px;
}
.home-intro h1,
.page-heading h1 {
  margin-top: 3px;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 275px;
  overflow: hidden;
  background: #fdf2f6;
  border: 1px solid #f0dce5;
  border-radius: 20px;
}
.hero-copy {
  padding: clamp(24px, 3.8vw, 46px);
  align-self: center;
  position: relative;
  z-index: 1;
}
.hero-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 3vw, 39px);
}
.hero-question {
  max-width: 35em;
  color: #7d6670;
}
.hero-copy .button {
  margin-top: 24px;
}
.button,
.quiet-button,
.study-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 680;
  font-size: 15px;
  padding: 10px 19px;
  text-decoration: none;
}
.button:not(:disabled):hover,
.study-action:hover {
  background: var(--accent-dark);
}
.button:disabled {
  background: #e8dee1;
  color: #75666d;
}
.quiet-button {
  background: #fffafb;
  color: var(--accent);
  border: 1px solid #d5b9c5;
}
.quiet-button:hover {
  background: #fdf2f6;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 8px 2px;
  font-weight: 650;
}
.cover-side {
  display: grid;
  place-items: center;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #fae9e3;
  isolation: isolate;
}
.cover-art {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 74%;
}
.cover-books {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, #f8e6dd, #f8e6dd 28px, #e7d3ca 29px);
}
.cover-books .booklet {
  transform: rotate(-7deg) scale(1.08);
}
.resume-sheet {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 9px;
  padding: 20px;
  width: min(80%, 340px);
  min-height: 72%;
  border: 1px solid #e1c9cb;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 6px 7px 0 #e8cdd1;
  transform: rotate(-2deg);
}
.resume-sheet > strong {
  font-size: clamp(17px, 2vw, 24px);
}
.resume-sheet > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 31px 0 13px;
}
.section-title span {
  font-size: 13px;
  color: var(--muted);
}
.subject-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.theme-a {
  --book: #cc87a1;
  --bookedge: #b36b86;
  --leaf: #fdf1f6;
}
.theme-b {
  --book: #3f8076;
  --bookedge: #28645a;
  --leaf: #deeee6;
}
.theme-d {
  --book: #bd7045;
  --bookedge: #8e4e2e;
  --leaf: #f9e8d8;
}
.theme-math {
  --book: #6a69a3;
  --bookedge: #53517f;
  --leaf: #edebf8;
}
.theme-mot {
  --book: #647e9b;
  --bookedge: #496784;
  --leaf: #e5eef4;
}
.booklet {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 42px;
  height: 52px;
  padding-left: 3px;
  border-radius: 3px 7px 7px 3px;
  border: 1px solid var(--bookedge);
  background: linear-gradient(90deg, var(--bookedge) 0 4px, var(--book) 5px);
  color: #fff8eb;
  box-shadow: 1px 3px 0 #e4d9cc;
}
.booklet:after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 1px;
  height: 3px;
  background: #f0dfcd;
  border-radius: 2px;
}
.booklet b {
  font:
    600 22px/1.1 Georgia,
    serif;
  letter-spacing: -0.05em;
}
.theme-mot .booklet b,
.booklet.theme-mot b {
  font-size: 14px;
}
.subject-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  padding: 20px 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.subject-tile:hover {
  border-color: var(--bookedge);
  background: #fff;
}
.subject-tile h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.subject-tile p,
.subject-tile small {
  color: var(--muted);
  line-height: 1.4;
}
.subject-tile p {
  font-size: 13px;
  margin-top: 3px;
}
.subject-tile small {
  font-size: 11px;
}
.arrow {
  color: var(--accent);
  margin-left: auto;
  font-size: 18px;
}
.tile-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--leaf);
}
.tile-progress span,
.meter span {
  display: block;
  height: 100%;
  background: var(--book, var(--accent));
}
.shared-home,
.resource-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 21px;
  text-decoration: none;
  color: var(--ink);
  background: #f1eae5;
  border: 1px solid #e2d4cc;
  border-radius: 12px;
}
.shared-home {
  margin-top: 18px;
}
.shared-home:hover,
.resource-link:hover {
  border-color: #b6919f;
}
.shared-home p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.join-icon {
  color: var(--accent);
  font:
    30px Georgia,
    serif;
}
.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 13px;
}
.crumbs i {
  color: #a88f9c;
  font-style: normal;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.course-banner {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 25px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, var(--leaf), #fffbf7 94%);
  margin-bottom: 19px;
}
.course-banner h1 {
  font-size: clamp(29px, 4vw, 44px);
  margin: 3px 0;
}
.course-banner .booklet {
  width: 55px;
  height: 70px;
}
.course-banner .booklet b {
  font-size: 29px;
}
.course-banner.theme-mot .booklet b {
  font-size: 19px;
}
.course-banner p:last-child {
  color: var(--muted);
  font-size: 15px;
  max-width: 52em;
}
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 18px;
  align-items: start;
}
.panel-paper,
.study-card,
.study-call {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 23px 26px;
  min-width: 0;
}
.panel-paper h2 {
  font-size: 22px;
}
.panel-paper > p,
.study-card p,
.study-call p {
  margin: 10px 0;
  color: #5c4c54;
}
.course-layout aside {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}
.continue-panel h2 {
  font:
    650 32px/1.3 Georgia,
    serif;
  color: var(--accent);
  margin-top: 6px;
}
.continue-panel .eyeline {
  margin: 0;
}
.meter {
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
  background: #efe2e5;
  margin: 10px 0 17px;
}
.unit-path {
  margin: 15px 0 0;
  list-style: none;
  padding: 0;
}
.outline-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.path-group + .path-group {
  margin-top: 25px;
}
.unit-path li {
  position: relative;
}
.unit-path li:not(:last-child):before {
  content: '';
  position: absolute;
  left: 12px;
  width: 2px;
  top: 50%;
  height: 100%;
  background: #dbc9cd;
}
.unit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  border-bottom: 1px solid #efe4e3;
}
.unit-row:hover strong {
  color: var(--accent);
  text-decoration: underline;
}
.unit-row > div {
  min-width: 0;
}
.path-node {
  position: relative;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border: 2px solid #cdb2bd;
  border-radius: 100%;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.in-progress .path-node {
  border-color: var(--accent);
}
.in-progress .path-node:after {
  content: '';
  border-radius: 100%;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.is-done .path-node {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.is-done .path-node:after {
  content: '✓';
  font-size: 13px;
}
.unit-row strong {
  font-size: 17px;
  display: block;
  line-height: 1.45;
}
.unit-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.row-state {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: var(--accent);
}
.unit-row .arrow {
  margin-left: 0;
  font-size: 15px;
}
.anchor {
  scroll-margin: 20px;
  margin-top: 18px;
}
.bridge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bridge-list > div {
  padding: 14px 16px;
  border-left: 3px solid #c8a4ae;
  background: #fbf4f1;
}
.bridge-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.bridge-list a {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 3px;
}
.bridge-list p {
  font-size: 14px;
}
.reference,
details,
.model-answer {
  font-size: 15px;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
}
.reference p,
.model-answer p,
details > p {
  margin: 12px 0 5px;
}
details details {
  padding: 8px 0;
}
.field {
  display: block;
  font-weight: 650;
  color: var(--ink);
  margin: 13px 0;
}
.field textarea,
.field input {
  display: block;
  margin-top: 6px;
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdbac3;
  border-radius: 8px;
  padding: 11px 13px;
  font-weight: 450;
  resize: vertical;
}
.field input {
  max-width: 18em;
}
.writing details {
  margin-top: 14px;
}
.source-links,
.study-cites,
.topic-chips {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 12px 0 2px;
}
.source-links a,
.study-cites a {
  font-size: 13px;
}
body[data-page='lesson'] .wrap {
  max-width: 852px;
}
.lesson-mast .eyeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  align-items: baseline;
}
.lesson-mast .eyeline [lang='ja'] {
  color: var(--muted);
  letter-spacing: 0.02em;
}
.lesson-mast h1 {
  margin: 7px 0 21px;
  font-size: clamp(28px, 4.1vw, 43px);
}
.step-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 15px;
  scroll-margin-top: 12px;
}
.step-nav button {
  border: 0;
  border-top: 4px solid #e2cfd6;
  background: transparent;
  text-align: left;
  padding: 7px 0 2px;
  font-size: 13px;
  font-weight: 650;
  color: #7b6871;
}
.step-nav button[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
}
.step-nav button:disabled {
  color: #897880;
}
.lesson-stage {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: clamp(20px, 4vw, 38px);
  outline: 0;
  box-shadow: 0 5px 18px #49223705;
  scroll-margin: 10px;
}
.lesson-stage h2,
.question legend {
  font-size: clamp(22px, 2.8vw, 29px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.035em;
}
.lesson-stage .eyeline {
  margin-bottom: 6px;
}
.lesson-stage p {
  line-height: 1.85;
}
.scene-copy > p:last-child,
.worked p,
.lesson-stage [data-stage='5'] > p {
  font-size: 16px;
  color: #51424b;
  margin-top: 12px;
}
.case-figure {
  padding: 18px;
  margin: 19px 0 5px;
  background: #f5efea;
  border: 1px solid #e4d7ce;
  border-radius: 13px;
}
.case-figure figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #563f42;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}
.fig-mark {
  color: var(--accent);
  font-size: 21px;
}
.figure-note {
  font-size: 13px;
  color: #64525b;
  margin: 12px 0 0;
}
.case-art {
  display: block;
  width: 100%;
  height: clamp(155px, 23vw, 235px);
  object-fit: cover;
  object-position: center 86%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.switches {
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
  padding: 3px;
  background: #e9dcd9;
  border-radius: 9px;
  margin: 0 0 10px;
}
.switches button {
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  min-height: 36px;
  color: #634c57;
}
.switches [aria-pressed='true'] {
  background: white;
  border-color: #dfcdd1;
  color: var(--accent);
  font-weight: 700;
}
.figure-nodes,
.compare-nodes,
.plot-key,
.prob-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 10px;
}
.concept-node {
  min-width: 0;
  border: 1px solid #ddd0c8;
  border-radius: 9px;
  padding: 12px;
  background: #fffbf5;
  overflow-wrap: anywhere;
  position: relative;
}
.concept-node small,
.concept-node strong,
.concept-node span {
  display: block;
  line-height: 1.5;
}
.concept-node small {
  color: var(--accent);
  font-weight: 650;
  font-size: 12px;
}
.concept-node strong {
  margin: 3px 0 5px;
  font-size: 17px;
}
.concept-node span {
  font-size: 13px;
  color: #65555a;
}
.figure-nodes.flow {
  gap: 22px;
}
.flow .concept-node:not(:last-child):after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 40%;
  font-weight: 700;
  color: #967180;
}
.figure-nodes.matrix {
  grid-template-columns: 1fr 1fr;
}
.matrix .concept-node:nth-child(odd),
.compare-nodes .concept-node:first-child {
  background: #fdf2f6;
}
.matrix .concept-node:nth-child(even),
.compare-nodes .concept-node:last-child,
.prob-branches .concept-node:last-child {
  background: #e5efea;
}
.prob-branches {
  position: relative;
  padding-top: 17px;
  grid-template-columns: 1fr 1fr;
}
.prob-branches:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 25%;
  right: 25%;
  height: 12px;
  border: 2px solid #b4919d;
  border-bottom: 0;
}
.prob-total {
  margin-top: 10px;
  background: #66374c;
  color: #fff6ed;
  text-align: center;
  border-radius: 9px;
  padding: 10px;
  font-size: 14px;
}
.org {
  display: grid;
  justify-items: center;
}
.org > strong,
.org b {
  padding: 7px 14px;
  border: 1px solid #c9afb9;
  border-radius: 7px;
  background: white;
  text-align: center;
}
.org > strong {
  background: var(--accent);
  color: white;
}
.org > div {
  display: flex;
  justify-content: space-around;
  gap: 5px;
  position: relative;
  width: 100%;
  margin-top: 22px;
}
.org > div:before {
  content: '';
  position: absolute;
  top: -12px;
  left: 17%;
  right: 17%;
  height: 9px;
  border: 2px solid #b4919d;
  border-bottom: 0;
}
.org > div:after {
  content: '';
  position: absolute;
  top: -23px;
  left: 50%;
  height: 12px;
  border-left: 2px solid #b4919d;
}
.org p {
  margin: 12px 0 1px;
  color: var(--muted);
  font-size: 13px;
}
.bar-chart {
  display: grid;
  gap: 9px;
  background: #fffaf5;
  border: 1px solid #e6dcd5;
  border-radius: 9px;
  padding: 12px 14px;
}
.bar-row > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
}
.bar-row b {
  font-size: 15px;
  color: #71344f;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  background: #f0e6e2;
  overflow: hidden;
  border-radius: 3px;
  height: 10px;
  margin: 3px 0;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #a95574;
}
.bar-row:nth-child(even) i {
  background: #4e8478;
}
.bar-row:nth-child(3) i {
  background: #ac7655;
}
.bar-row small {
  color: #6c5b60;
  font-size: 12px;
}
.plot {
  padding: 10px 9px;
  border-radius: 8px;
  background: #fffaf6;
  border: 1px solid #e6dcd5;
}
.plot canvas {
  display: block;
  width: 100%;
  height: 215px;
}
.plot-legend {
  display: flex;
  justify-content: center;
  gap: 9px 15px;
  flex-wrap: wrap;
  font-size: 12px;
}
.plot-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.series-key {
  display: inline-block;
  width: 12px;
  height: 3px;
  background: #9b3864;
}
.series-key.s1 {
  background: #237467;
}
.series-key.s1.line {
  background: repeating-linear-gradient(to right, #237467 0 5px, transparent 5px 7px);
}
.series-key.s2 {
  background: #6545a0;
}
.series-key.dots {
  width: 8px;
  height: 8px;
  border-radius: 100%;
}
.plot-key {
  margin-top: 9px;
}
.plot-key .concept-node {
  padding: 8px 10px;
}
.plot-key .concept-node strong {
  font-size: 14px;
}
.figure-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fffcf8;
  font-size: clamp(12px, 1.7vw, 15px);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.figure-table th,
.figure-table td {
  padding: clamp(4px, 1.1vw, 10px);
  border: 1px solid #d7c7c3;
  text-align: start;
  overflow-wrap: anywhere;
}
.figure-table thead {
  background: #e4efea;
  color: #274f49;
}
.figure-table th[scope='row'] {
  background: #fdf2f6;
  color: #68334b;
}
.graph-readings {
  margin-top: 10px;
  font-size: 13px;
}
.graph-readings summary {
  cursor: pointer;
  color: var(--accent);
}
.graph-readings[open] table {
  margin-top: 8px;
}
.stock-control,
.interval-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  font-weight: 650;
}
.stock-control output,
.interval-stats span {
  color: #68404d;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.contract-lab input[type='range'] {
  width: 100%;
  margin: 5px 0;
  min-height: 32px;
  accent-color: var(--accent);
  cursor: pointer;
}
.stock-strip {
  display: flex;
  gap: 4px;
}
.stock-strip i {
  flex: 1;
  height: 22px;
  border: 1px dashed #a48d87;
  border-radius: 3px;
  background: #fffaf5;
}
.stock-strip i.sold {
  background: #587c72;
  border: 1px solid #42695f;
  box-shadow: inset 0 -4px #466c62;
}
.contract-lab p,
.scale-context,
.interval-scale p {
  font-size: 13px;
  color: #5a4950;
}
.contract-lab #stock-contract,
.scale-context {
  margin-bottom: 10px;
}
.contract-lab #stock-contract,
.contract-lab [data-stock-result] {
  margin-top: 8px;
}
.contract-lab [data-stock-result] {
  font-weight: 650;
}
.interval-scale {
  padding: 14px;
  line-height: 1.5;
  border: 1px solid #ddd0c8;
  border-radius: 9px;
  background: #fffbf5;
}
.interval-ruler {
  position: relative;
  height: 24px;
  margin: 10px 5px 0;
  background: linear-gradient(#b5a7a3, #b5a7a3) left center / 100% 1px no-repeat;
}
.interval-ruler i {
  position: absolute;
  top: 7px;
  height: 10px;
  background: #91bbb1;
  border-inline: 2px solid #2d665a;
}
.interval-ruler b {
  position: absolute;
  inset: 2px auto 2px 50%;
  border-left: 2px solid #713b55;
}
.interval-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.interval-scale p {
  margin-top: 8px;
}
.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 18px;
}
.step-actions > a:not(.button) {
  text-decoration: none;
  font-size: 14px;
}
.worked {
  margin: 19px 0;
}
.worked section {
  border-left: 3px solid #c795a8;
  padding-left: 15px;
}
.worked section + section {
  margin-top: 19px;
  border-color: #71968c;
}
.worked p {
  margin-top: 4px;
}
.lesson-stage details.reference,
.model-answer,
.writing {
  background: #f8f2ef;
  padding: 12px 15px;
  border-radius: 9px;
  margin: 11px 0;
}
.question {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.question legend {
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 12px 15px;
  min-height: 50px;
  border: 1.5px solid #dacce0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: 12px;
}
.choice:has(input:focus-visible) {
  outline: 3px solid #467c85;
  outline-offset: 2px;
}
.choice-letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  font:
    600 14px Georgia,
    serif;
  border: 1px solid #dccdd1;
  border-radius: 6px;
  color: #745667;
  background: #fbf5f5;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: #fdf3f7;
}
.choice:has(input:checked) .choice-letter {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.choice:has(input:disabled) {
  cursor: default;
}
.choice b {
  margin-left: auto;
}
.choice.correct {
  border-color: #448574;
  background: #edf5ef;
}
.choice.incorrect {
  border-color: #ac594b;
  background: #fdf0e9;
}
.feedback {
  padding: 14px 16px;
  margin-top: 15px;
  border-radius: 9px;
  outline: 0;
}
.feedback p {
  font-size: 15px;
  margin-top: 3px;
}
.positive {
  background: #e6f2eb;
  color: #24594c;
}
.negative {
  background: #fbece5;
  color: #753f32;
}
.option-whys p {
  font-size: 14px;
}
.recap-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.completion-mark {
  display: grid;
  place-items: center;
  background: #e0eee5;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #326558;
  font-size: 24px;
  flex: none;
}
.writing {
  background: white;
  font-size: 15px;
  margin-top: 18px;
  border: 1px solid var(--line);
}
.writing h2 {
  font-size: 21px;
}
.writing p {
  margin: 9px 0;
}
.done-setting {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.done-setting input {
  accent-color: var(--accent);
}
.lesson-tail {
  margin: 14px 0;
  color: var(--muted);
  display: grid;
  gap: 9px;
}
.lesson-tail > details {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.lesson-tail summary {
  font-size: 14px;
}
.page-heading {
  margin: 6px 0 18px;
}
.resource-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.resource-link {
  justify-content: space-between;
  font-weight: 650;
}
.year-list {
  margin-top: 13px;
}
.year-list > details,
.exam-guide details,
.review-items > li {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.year-list h3 {
  font-size: 15px;
  margin-top: 13px;
}
.year-list p {
  margin: 3px 0;
}
.topic-link {
  padding: 4px 9px;
  background: #fcf1f5;
  color: #73384e;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
}
.review-layout {
  max-width: 810px;
}
.empty-msg {
  margin: 13px 0 19px;
  color: var(--muted);
}
#review-list > .button {
  margin: 14px 0;
}
.review-items,
.study-timeline {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.review-items a {
  display: grid;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
}
.review-items a span,
.review-items small {
  color: var(--accent);
  font-size: 12px;
}
.exam-guide .study-call {
  background: #fdf2f6;
  margin-bottom: 14px;
}
.study-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: start;
}
.study-stack {
  display: grid;
  gap: 14px;
}
.study-card h3,
.study-call h3 {
  font-size: 20px;
}
.study-call .study-action {
  margin-top: 8px;
}
.study-subject small,
.study-letter {
  display: inline-block;
  margin-right: 8px;
}
.study-subject small {
  color: var(--muted);
  margin-left: 8px;
}
.study-timeline li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.study-timeline li > span {
  font-size: 12px;
  color: var(--accent);
}
.study-timeline p {
  margin: 3px 0;
}
.study-papers > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.study-papers a {
  font-size: 13px;
}
@media (max-width: 780px) {
  .top-inner,
  .wrap,
  .app-footer {
    width: min(100% - 30px, 680px);
  }
  .top-inner {
    gap: 22px;
  }
  .subject-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-layout {
    grid-template-columns: minmax(0, 1fr) minmax(205px, 0.65fr);
    gap: 12px;
  }
  .panel-paper,
  .study-card,
  .study-call {
    padding: 18px;
  }
  .home-hero {
    min-height: 240px;
  }
  .hero-copy {
    padding: 23px;
  }
}
@media (max-width: 610px) {
  .top-inner {
    min-height: 55px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 16px;
    gap: 6px;
  }
  .brand-book {
    width: 24px;
    height: 24px;
  }
  .main-nav {
    gap: 13px;
    margin-left: auto;
  }
  .main-nav a,
  .explorer-link {
    font-size: 12px;
  }
  .explorer-link {
    width: auto;
    margin-left: 0;
  }
  .explorer-link span {
    display: none;
  }
  .wrap {
    padding-top: 18px;
  }
  .home-intro {
    margin-bottom: 14px;
  }
  .home-intro h1 {
    font-size: 33px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cover-side {
    order: -1;
    height: 145px;
  }
  .hero-copy {
    padding: 18px 20px 21px;
  }
  .hero-copy h2 {
    margin: 4px 0;
  }
  .hero-question {
    font-size: 14px;
  }
  .hero-copy .button {
    margin-top: 13px;
  }
  .cover-art {
    object-position: center 74%;
  }
  .resume-sheet {
    min-height: 0;
    padding: 9px 16px;
    gap: 3px;
  }
  .resume-sheet .booklet {
    display: none;
  }
  .section-title {
    margin: 22px 0 10px;
  }
  .subject-shelf {
    gap: 9px;
  }
  .subject-tile {
    padding: 13px 11px 15px;
    gap: 8px;
    align-items: flex-start;
  }
  .subject-tile .arrow {
    display: none;
  }
  .booklet {
    width: 29px;
    height: 38px;
  }
  .booklet b {
    font-size: 17px;
  }
  .theme-mot .booklet b {
    font-size: 10px;
  }
  .subject-tile h3 {
    font-size: 16px;
  }
  .subject-tile p {
    font-size: 12px;
  }
  .shared-home {
    padding: 13px;
    gap: 10px;
  }
  .shared-home p {
    font-size: 12px;
  }
  .course-banner {
    padding: 17px;
    gap: 14px;
  }
  .course-banner p:last-child {
    font-size: 14px;
  }
  .course-layout,
  .bridge-list,
  .study-grid,
  .resource-links {
    grid-template-columns: 1fr;
  }
  .course-layout {
    display: flex;
    flex-direction: column;
  }
  .course-layout > *,
  .course-layout aside {
    width: 100%;
  }
  .crumbs {
    margin-bottom: 12px;
  }
  .lesson-mast h1 {
    margin-bottom: 13px;
  }
  .step-nav {
    gap: 4px;
    margin-bottom: 11px;
  }
  .step-nav button {
    font-size: 12px;
  }
  .lesson-stage {
    padding: 18px 15px;
    border-radius: 13px;
  }
  .scene-copy > p:last-child,
  .worked p,
  .lesson-stage [data-stage='5'] > p {
    font-size: 15px;
  }
  .case-figure {
    padding: 12px;
    margin-top: 14px;
  }
  .figure-nodes,
  .plot-key {
    grid-template-columns: 1fr;
  }
  .figure-nodes.flow {
    gap: 16px;
  }
  .flow .concept-node:not(:last-child):after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -18px;
    font-size: 13px;
  }
  .concept-node {
    padding: 8px 10px;
  }
  .concept-node strong {
    font-size: 15px;
    margin: 2px 0;
  }
  .concept-node span {
    font-size: 12px;
  }
  .compare-nodes,
  .prob-branches {
    grid-template-columns: 1fr 1fr;
  }
  .figure-nodes.matrix {
    grid-template-columns: 1fr 1fr;
  }
  .choice {
    padding: 10px;
    gap: 9px;
  }
  .choice > span:not(.choice-letter) {
    font-size: 15px;
  }
  .step-actions {
    margin-top: 16px;
    padding-top: 13px;
  }
  .step-actions .button {
    max-width: 100%;
    text-align: center;
  }
  .app-footer {
    margin-top: 22px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .plot-key {
    gap: 5px;
  }
  .plot-key .concept-node span {
    display: block;
  }
}
@media (max-width: 360px) {
  .main-nav {
    gap: 8px;
  }
  .top-inner {
    gap: 8px;
  }
  .brand-book {
    display: none;
  }
  .subject-tile .booklet {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .subject-tile,
  .unit-row,
  .choice {
    transition:
      background-color 0.13s,
      border-color 0.13s;
  }
  .subject-tile:hover .booklet {
    transform: translateY(-2px);
  }
}

.review-nudge a {
  display: block;
  border: 1px solid #cfb6c1;
  background: #fffaf6;
  color: var(--accent);
  border-radius: 10px;
  margin-top: 13px;
  padding: 12px 16px;
  font-weight: 650;
  text-decoration: none;
}
.review-layout {
  display: grid;
  gap: 14px;
}
#recall-list {
  color: var(--muted);
  margin-top: 8px;
}
#recap-date {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.weekly {
  margin-bottom: 15px;
}

.reading-entry {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; margin-bottom: 1rem; background: var(--tint);
}
.reading-entry span, .reading footer span, .overview-program { color: #705b66; }
.reading-entry:hover { border-color: var(--accent); }
.reading .overview-program { margin-top: .2rem; }
.overview-facts { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 1.1rem; margin: .9rem 0 0; }
.overview-facts dt { font-weight: 650; color: #7c4058; padding: .75rem 0; border-top: 1px solid var(--line); line-height: 1.85; }
.overview-facts dd { margin: 0; padding: .75rem 0; border-top: 1px solid var(--line); line-height: 1.85; }
.overview-facts dd > .book-note { margin: 0 0 .5rem; }
.reading .overview-more { margin-top: .9rem; font-weight: 600; }
.reading { max-width: 49rem; margin: 0 auto; overflow-wrap: anywhere; }
.reading header, .reading section { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.reading h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.reading h2 { font-size: clamp(1.3rem, 2.8vw, 1.6rem); }
.reading p, .reading li { line-height: 1.85; margin-top: .65rem; }
.reading ul, .reading ol { padding-left: 1.5rem; }
.reading .book-note { padding: .85rem 1.15rem; background: var(--tint); border-radius: .7rem; }
.reading a { color: #88435e; }
.reading .refs, .reading footer { display: flex; gap: .4rem 1.15rem; flex-wrap: wrap; align-items: baseline; margin-top: .8rem; }
.reading footer { margin-block: 1.6rem; justify-content: space-between; }

.reading-lead { max-width: 42rem; line-height: 1.85; }
.reading header { padding-bottom: .7rem; }
.reading header .eyeline { margin: 0; }
.reading-lead { font-size: 1.1rem; }
.reading-jumps { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; margin: 1rem 0; }
.reading-jumps a { text-underline-offset: .24em; }
.reading h3 { font-size: 1.12rem; margin: 1.4rem 0 .55rem; }
.reading [id] { scroll-margin-top: 6rem; }
.reading .refs { font-size: .9rem; }
.reading-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.reading-table caption { text-align: left; padding-bottom: .6rem; color: #695760; }
.reading-table :is(th, td) {
  text-align: left; vertical-align: top; border-bottom: 1px solid #e6d6dc;
  padding: .65rem .75rem; line-height: 1.7;
}
.reading-table thead { background: #f7edf1; }
.reading-table tbody th { width: 5.5rem; font-variant-numeric: tabular-nums; }
.reading-timeline { list-style: none; padding-left: 0 !important; margin: 1.1rem 0; }
.reading .reading-timeline li {
  display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .75rem;
  border-bottom: 1px solid var(--line); padding: .45rem 0; margin: 0;
}
.reading-timeline strong { color: #7c4058; font-variant-numeric: tabular-nums; }
.reading-practice, .reading-detail { border: 1px solid #dfcdd5; border-radius: .7rem; background: var(--paper); margin-top: 1rem; padding: .75rem 1rem; }
.reading-practice > summary, .reading-detail > summary { cursor: pointer; color: #774257; font-weight: 650; }
.reading-practice > summary > span { display: inline-block; padding-right: .6rem; font-weight: 500; font-size: .88rem; }
.reading-practice fieldset { min-width: 0; margin: 1rem 0 0; border: 0; padding: 0; }
.reading-practice legend { font-weight: 600; padding: 0; margin-bottom: .6rem; line-height: 1.75; }
.reading-practice label { display: flex; align-items: baseline; gap: .55rem; margin: .42rem 0; border: 1px solid var(--line); border-radius: .55rem; padding: .6rem .7rem; cursor: pointer; }
.reading-practice label:has(input:checked) { background: var(--tint); border-color: #a77187; }
.reading-practice input { accent-color: #8a4462; }
.reading-letter { padding-right: .45rem; color: #754e60; }
.reading .reading-feedback { margin: .7rem 0 .25rem; border-left: 3px solid #ac8053; padding: .4rem .8rem; background: #fff6e9; }
.reading .reading-feedback:empty { border: 0; margin: 0; padding: 0; }
.reading .reading-feedback[data-result="right"] { border-color: #397464; background: #eff6f2; }
.reading-reset { appearance: none; font: inherit; color: #78405a; background: none; border: 0; padding: .3rem 0; text-decoration: underline; cursor: pointer; }
.reading-practice .reading-detail { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .65rem 0 0; }
.reading-practice .case-figure { margin: .9rem 0; }
@media (max-width: 610px) {
  .top-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 .8rem; align-items: center; padding-top: .35rem; }
  .overview-facts { grid-template-columns: 1fr; }
  .overview-facts dd { border-top: 0; padding-top: 0; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; width: 100%; justify-content: space-between; gap: .4rem; }
  .main-nav a { min-height: 2.6rem; font-size: .9rem; }
  .explorer-link { grid-column: 2; grid-row: 1; font-size: .88rem; }
  .reading-table :is(th, td) { padding: .45rem .35rem; font-size: .9rem; }
  .reading-table tbody th { width: 3.9rem; }
  .reading .reading-timeline li { grid-template-columns: 1fr; gap: 0; }
  .reading-practice { padding: .75rem; }
  .reading-jumps { gap: .45rem .85rem; }
}
