:root {
  --ink: #173832;
  --ink-2: #35534d;
  --muted: #77827e;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e7e6df;
  --green: #1d5a4e;
  --green-soft: #e6f0ec;
  --orange: #ef7552;
  --orange-soft: #fff0e9;
  --yellow: #f4c767;
  --shadow: 0 18px 50px rgba(38, 54, 48, 0.08);
  --radius-lg: 24px;
  --radius-md: 15px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 2%, rgba(239, 117, 82, 0.08), transparent 28rem),
    var(--paper);
}

button,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(239, 117, 82, 0.3);
  outline-offset: 2px;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(29, 90, 78, 0.2);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.top-stats {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.top-stats b {
  color: var(--ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64aa88;
  box-shadow: 0 0 0 4px rgba(100, 170, 136, 0.12);
}

.divider {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--line);
}

main {
  padding: 54px 0 44px;
}

.intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.eyebrow,
.small-heading {
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 47px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

h1 span {
  color: #65746f;
  font-weight: 500;
}

.intro-copy {
  max-width: 345px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.curriculum-switcher {
  display: flex;
  gap: 8px;
  margin: -12px 0 18px;
  overflow-x: auto;
  padding: 3px 2px 5px;
  scrollbar-width: thin;
}

.curriculum-switcher button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 750;
}

.curriculum-switcher button span {
  margin-right: 5px;
  color: var(--muted);
  font-size: 10px;
}

.curriculum-switcher button.active {
  border-color: var(--green);
  color: white;
  background: var(--green);
  box-shadow: 0 5px 15px rgba(29, 90, 78, 0.15);
}

.curriculum-switcher button.active span {
  color: rgba(255, 255, 255, 0.72);
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  gap: 5px;
  margin-bottom: 17px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.objective-practice-options {
  display: grid;
  gap: 10px;
  margin: 25px 0 4px;
}

.objective-practice-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: inherit;
  line-height: 1.55;
  cursor: pointer;
}

.objective-practice-option b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

.objective-practice-option:hover,
.objective-practice-option.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.objective-practice-option.selected b {
  color: #fff;
  background: var(--green);
}

.mode-button {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  column-gap: 8px;
  min-width: 150px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 750;
  transition: 150ms ease;
  text-decoration: none;
}

.mode-button svg {
  grid-row: 1 / 3;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-button span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.mode-button .mode-title {
  font: inherit;
}

.mode-button .mistake-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #9c452d;
  background: #ffe1d6;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.4;
  text-align: center;
}

.mode-button.active .mistake-badge {
  color: var(--green);
  background: white;
}

.mode-button:hover {
  color: var(--ink);
}

.mode-button.active {
  color: white;
  background: var(--green);
  box-shadow: 0 5px 15px rgba(29, 90, 78, 0.18);
}

.mock-mode-link {
  border: 1px dashed #c7d5cf;
  color: var(--green);
}

.cram-launch-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 17px;
  padding: 16px 18px;
  border: 1px solid #d7e6df;
  border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(230, 240, 236, 0.96), rgba(255, 248, 242, 0.96)),
    white;
  box-shadow: 0 10px 28px rgba(38, 54, 48, 0.055);
}

.cram-launch-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(29, 90, 78, 0.16);
}

.cram-launch-copy h2 {
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.cram-launch-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.cram-launch-button {
  min-height: 54px;
  padding: 10px 17px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(239, 117, 82, 0.2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cram-launch-button span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 550;
  opacity: 0.82;
}

.cram-launch-button:hover {
  background: #df6746;
}

.cram-launch-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 22px;
}

.workspace-grid.textbook-expanded {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-grid.textbook-expanded > .study-sidebar {
  display: none;
}

.quiz-panel,
.side-card {
  border: 1px solid rgba(221, 222, 214, 0.82);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-panel {
  min-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quiz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 17px;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-pill {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
}

.stage-label,
.question-counter {
  color: var(--muted);
  font-size: 12px;
}

.stage-label::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px 0;
  border-radius: 50%;
  background: #b7beb9;
}

.question-counter b {
  color: var(--ink);
  font-size: 14px;
}

.progress-track {
  height: 3px;
  background: #f0efe9;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #f3a46c);
  transition: width 300ms ease;
}

.question-view,
.feedback-view,
.complete-view,
.mistake-view {
  padding: 46px 50px 42px;
}

.question-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.question-view h2,
.complete-view h2 {
  max-width: 720px;
  min-height: 90px;
  margin: 0 0 42px;
  color: #1c3732;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.48;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.scenario-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -22px 0 33px;
}

.scenario-facts span {
  padding: 7px 10px;
  border: 1px solid #e5e2d8;
  border-radius: 8px;
  color: var(--ink-2);
  background: #faf9f5;
  font-size: 11px;
  font-weight: 700;
}

.scenario-facts.essay-stimulus {
  display: block;
  padding: 15px 17px;
  border: 1px solid #dde5e1;
  border-radius: 11px;
  color: #40514b;
  background: #f1f5f2;
}

.scenario-facts.essay-stimulus strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
}

.scenario-facts.essay-stimulus p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.answer-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 750;
}

textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  padding: 17px 18px;
  border: 1px solid #dedfd9;
  border-radius: 13px;
  color: var(--ink);
  background: #fcfcfa;
  font-size: 15px;
  line-height: 1.6;
  transition: 150ms ease;
}

textarea.essay-answer-input {
  min-height: 210px;
}

textarea::placeholder {
  color: #a7adaa;
}

textarea:hover,
textarea:focus {
  border-color: #a8bdb6;
  background: white;
}

textarea:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(29, 90, 78, 0.08);
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.quiz-help-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 11px;
  font-weight: 750;
}

.text-button {
  padding: 8px 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--green);
}

.text-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  padding: 11px 18px;
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
  box-shadow: 0 7px 15px rgba(29, 90, 78, 0.17);
}

.secondary-button {
  padding: 11px 18px;
  border: 1px solid #cfd7d3;
  color: var(--green);
  background: white;
}

.secondary-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.primary-button:hover {
  background: #174b42;
  transform: translateY(-1px);
}

.keycap {
  padding: 3px 6px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
}

.hint-text {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #7c6741;
  background: #fff8e7;
  font-size: 12px;
}

.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin-bottom: 18px;
}

.answer-comparison > div {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafaf7;
}

.answer-comparison .correct-answer {
  border-color: #cdded7;
  background: #f1f7f4;
}

.answer-comparison span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.scenario-facts .cram-context {
  flex: 1 0 100%;
  margin: 4px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-2);
  background: #fafaf7;
  font-size: 12px;
  line-height: 1.65;
}

.answer-comparison p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.correct-answer p {
  color: var(--green);
  font-weight: 750;
}

.reason-box {
  display: flex;
  gap: 13px;
  padding: 17px 18px;
  border-radius: 13px;
  background: var(--orange-soft);
}

.reason-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.reason-box strong {
  color: #72412f;
  font-size: 12px;
}

.reason-box p {
  margin: 4px 0 0;
  color: #7a5c4f;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.concept-read-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 11px 14px;
  border: 1px solid #d6e1dc;
  border-radius: 10px;
  color: var(--green);
  background: #f7faf8;
  font-size: 11px;
  font-weight: 800;
}

.concept-read-button:hover {
  border-color: #a9c6ba;
  background: var(--green-soft);
}

.contrast-box {
  margin-top: 21px;
}

.contrast-box .small-heading {
  margin-bottom: 9px;
  color: var(--muted);
  letter-spacing: 0;
}

.contrast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contrast-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: white;
  font-size: 11px;
  font-weight: 700;
}

.rating-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.rating-section .small-heading {
  color: var(--ink);
  letter-spacing: 0;
}

.rating-section p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.rating-buttons {
  display: flex;
  gap: 7px;
}

.rating-buttons button {
  min-width: 68px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.rating-buttons button:hover {
  border-color: #a8bdb6;
  color: var(--green);
  background: var(--green-soft);
}

.rating-buttons b {
  display: block;
  margin-bottom: 2px;
  color: #a5aba8;
  font-size: 9px;
}

.complete-view {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.complete-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 24px;
  box-shadow: 0 11px 26px rgba(29, 90, 78, 0.2);
}

.complete-view h2 {
  min-height: auto;
  margin: 10px 0 8px;
}

.complete-view > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.complete-actions {
  display: flex;
  gap: 9px;
}

.mistake-view {
  min-height: 600px;
}

.mistake-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}

.mistake-header h2 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.mistake-header > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.note-filter {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f2f2ed;
}

.note-filter button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.note-filter button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 7px rgba(38, 54, 48, 0.08);
}

.mistake-list {
  display: grid;
  gap: 14px;
}

.mistake-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fdfdfa;
}

.mistake-card.resolved {
  opacity: 0.67;
}

.mistake-card-top,
.mistake-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.mistake-card-top > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mistake-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: #a24f36;
  background: var(--orange-soft);
  font-size: 9px;
  font-weight: 800;
}

.mistake-status.resolved {
  color: var(--green);
  background: var(--green-soft);
}

.mistake-domain,
.mistake-count,
.mistake-date {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.mistake-question {
  margin: 14px 0 15px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.mistake-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 9px;
}

.mistake-answer-grid > div {
  padding: 12px 13px;
  border-radius: 10px;
  background: #f3f3ef;
}

.mistake-answer-grid .mistake-correct {
  background: var(--green-soft);
}

.mistake-answer-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.mistake-answer-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.mistake-correct p {
  color: var(--green);
  font-weight: 750;
}

.mistake-explanation {
  margin: 10px 0 15px;
  padding: 13px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 9px 9px 0;
  color: #675e58;
  background: #fff7f1;
  font-size: 11px;
  line-height: 1.65;
}

.mistake-explanation b {
  color: #794d3d;
}

.mistake-card-footer .secondary-button {
  min-height: 35px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 10px;
}

.mistake-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.axon-button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #b7d5c9;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.axon-button:hover {
  border-color: var(--green);
}

.axon-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.axon-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #c9ddd5;
  border-radius: 12px;
  background: #f6faf8;
}

.axon-panel-head,
.axon-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.axon-panel-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.axon-panel-head strong {
  color: var(--ink);
  font-size: 12px;
}

.axon-panel-head span,
.axon-data-note {
  color: var(--muted);
  font-size: 9px;
}

.axon-panel-head .axon-connection {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}

.axon-thread {
  max-height: 370px;
  min-height: 92px;
  margin: 13px 0;
  padding: 13px;
  overflow-y: auto;
  border: 1px solid #dce7e2;
  border-radius: 10px;
  background: white;
}

.axon-message {
  max-width: 88%;
  margin-bottom: 10px;
}

.axon-message.user {
  margin-left: auto;
}

.axon-message > span {
  display: block;
  margin: 0 4px 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.axon-message.user > span {
  text-align: right;
}

.axon-message p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px 10px 10px 3px;
  color: var(--ink-2);
  background: #eef3f0;
  font-size: 11px;
  line-height: 1.65;
}

.axon-message.user p {
  border-radius: 10px 10px 3px 10px;
  color: white;
  background: var(--green);
}

.axon-message.loading p {
  color: var(--muted);
}

.typing-dots {
  letter-spacing: 2px;
  animation: soft-pulse 1.2s infinite;
}

@keyframes soft-pulse {
  50% { opacity: 0.35; }
}

.axon-welcome {
  display: grid;
  min-height: 65px;
  place-content: center;
  text-align: center;
}

.axon-welcome strong {
  color: var(--ink-2);
  font-size: 11px;
}

.axon-welcome p,
.axon-error,
.axon-ready {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.axon-error {
  padding: 8px 10px;
  border-radius: 7px;
  color: #9c3f2f;
  background: #fff0ea;
}

.axon-ready {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

.axon-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.axon-prompts button {
  padding: 6px 8px;
  border: 1px solid #d5e2dd;
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.axon-prompts button:hover {
  color: var(--green);
  border-color: #a8cdbf;
}

.axon-compose label {
  flex: 1;
}

.axon-compose textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #cddbd5;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}

.axon-compose textarea:focus {
  outline: 2px solid rgba(39, 111, 85, 0.16);
  border-color: var(--green);
}

.axon-compose button {
  min-width: 62px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--green);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.axon-compose button:disabled,
.axon-compose textarea:disabled {
  cursor: wait;
  opacity: 0.6;
}

.axon-data-note {
  margin: 8px 1px 0;
  line-height: 1.45;
}

.textbook-axon-dock {
  position: fixed;
  right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  bottom: 18px;
  z-index: 50;
  display: grid;
  justify-items: end;
}

.textbook-axon-launch {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid #a8cdbf;
  border-radius: 999px;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(29, 90, 78, 0.24);
  font-size: 11px;
  font-weight: 850;
}

.textbook-axon-launch:hover {
  background: #174b42;
  transform: translateY(-1px);
}

.textbook-axon-launch svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.textbook-axon-panel {
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  margin: 0;
  overflow-y: auto;
  border-color: #b9d5cb;
  background: #f7fbf9;
  box-shadow: 0 20px 55px rgba(26, 52, 45, 0.22);
}

.textbook-axon-panel .axon-thread {
  max-height: min(330px, 42vh);
}

.textbook-axon-head {
  align-items: flex-start;
}

.textbook-axon-head > button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d3dfda;
  border-radius: 50%;
  color: var(--muted);
  background: white;
  font-size: 22px;
  line-height: 1;
}

.textbook-axon-head > button:hover {
  border-color: var(--green);
  color: var(--green);
}

.mistake-empty {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mistake-empty > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.mistake-empty h3 {
  margin: 15px 0 7px;
  font-size: 18px;
}

.mistake-empty p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.textbook-view {
  min-height: 700px;
}

.textbook-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 40px 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 5%, rgba(244, 199, 103, 0.2), transparent 18rem),
    #f9faf6;
}

.textbook-header h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.textbook-header > div > p:last-child {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.textbook-search {
  flex: 0 0 245px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dfe1da;
  border-radius: 11px;
  background: white;
}

.textbook-search:focus-within {
  border-color: #9bb9ae;
  box-shadow: 0 0 0 4px rgba(29, 90, 78, 0.07);
}

.textbook-search svg {
  flex: 0 0 17px;
  width: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.textbook-search input {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.textbook-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
}

.textbook-chapter-list {
  position: sticky;
  top: 0;
  display: grid;
  gap: 4px;
  padding: 22px 13px;
}

.textbook-chapter-list button {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 11px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.textbook-chapter-list button:hover {
  color: var(--ink);
  background: #f5f6f1;
}

.textbook-chapter-list button.active {
  color: var(--green);
  background: var(--green-soft);
}

.chapter-number {
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.textbook-chapter-list b,
.textbook-chapter-list small {
  display: block;
}

.textbook-chapter-list b {
  font-size: 11px;
  line-height: 1.45;
}

.textbook-chapter-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.chapter-state {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid #d9ded9;
  border-radius: 50%;
  color: #8da89e;
  font-size: 9px;
  font-style: normal;
}

.chapter-state.complete {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.chapter-state.opened {
  border-color: #a8c3b8;
  background: white;
}

.textbook-article {
  min-width: 0;
  padding: 44px 46px 55px;
  border-left: 1px solid var(--line);
}

.chapter-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.textbook-overline {
  margin: 0;
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-hero h2 {
  margin: 9px 0 6px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.chapter-subtitle {
  margin: 0;
  color: #64766f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.chapter-lead {
  margin: 22px 0 0;
  color: var(--ink-2);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 16px;
  line-height: 1.95;
  word-break: keep-all;
}

.chapter-objectives {
  margin-top: 25px;
  padding: 17px 19px;
  border-radius: 12px;
  background: #f4f6f1;
}

.chapter-objectives b {
  color: var(--ink);
  font-size: 11px;
}

.chapter-objectives ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.textbook-section {
  position: relative;
  padding: 38px 0 34px 40px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  position: absolute;
  top: 42px;
  left: 0;
  color: #b0b9b5;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.textbook-section h3,
.confusion-section h3,
.glossary-heading h3,
.textbook-search-results h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.textbook-section > p {
  margin: 0 0 14px;
  color: #3f5650;
  font-size: 13px;
  line-height: 1.95;
  word-break: keep-all;
}

.textbook-reference-section {
  margin: 46px 0 40px;
  padding-top: 38px;
  border-top: 2px solid var(--ink);
}

.textbook-reference-section > h2 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.textbook-reference-section > p:not(.textbook-overline) {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.textbook-reference-table {
  margin-top: 24px;
}

.textbook-table-heading {
  margin-bottom: 11px;
}

.textbook-table-heading h3 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.textbook-table-heading > p:last-child:not(.textbook-overline) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.textbook-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d9e3df;
  border-radius: 12px;
  background: white;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.textbook-table-scroll:focus-visible {
  outline: 3px solid rgba(24, 98, 81, 0.2);
  outline-offset: 2px;
}

.textbook-table-scroll table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  color: #334c45;
  font-size: 11px;
  line-height: 1.6;
}

.textbook-table-scroll th,
.textbook-table-scroll td {
  padding: 11px 12px;
  border-right: 1px solid #e5ece9;
  border-bottom: 1px solid #e5ece9;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.textbook-table-scroll thead th {
  color: white;
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.textbook-table-scroll tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 112px;
  color: var(--ink);
  background: #f4f7f4;
  font-weight: 850;
}

.textbook-table-scroll tr:last-child > * {
  border-bottom: 0;
}

.textbook-table-scroll tr > *:last-child {
  border-right: 0;
}

.textbook-table-swipe {
  display: none;
  margin: 7px 2px 0;
  color: #71847d;
  font-size: 9px;
}

.textbook-table-results {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.section-concepts button {
  padding: 6px 9px;
  border: 1px solid #d9e3df;
  border-radius: 999px;
  color: var(--green);
  background: #f8faf9;
  font-size: 9px;
  font-weight: 750;
}

.section-concepts button:hover {
  border-color: #9bbcaf;
  background: var(--green-soft);
}

.decision-rule-box {
  margin: 38px 0;
  padding: 23px 24px;
  border-radius: 14px;
  color: #704d38;
  background: #fff4e9;
}

.decision-rule-box ol {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.65;
}

.confusion-section,
.glossary-section {
  margin-top: 43px;
}

.confusion-section .textbook-overline,
.glossary-section .textbook-overline {
  margin-bottom: 7px;
}

.textbook-confusion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.textbook-confusion {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fcfcfa;
}

.textbook-confusion > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 10px;
}

.textbook-confusion span {
  color: var(--orange);
  font-size: 8px;
  font-weight: 900;
}

.textbook-confusion p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.glossary-heading,
.concept-card-head,
.concept-card-actions,
.chapter-complete-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.glossary-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.textbook-concept-list {
  display: grid;
  gap: 10px;
}

.textbook-concept-card {
  scroll-margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: 180ms ease;
}

.textbook-concept-card:target,
.textbook-concept-card:hover {
  border-color: #bcd0c8;
  box-shadow: 0 8px 24px rgba(38, 54, 48, 0.06);
}

.concept-card-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.concept-card-head h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.concept-card-head .concept-strength {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
}

.textbook-concept-card > p {
  margin: 13px 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
}

.concept-card-actions {
  padding-top: 11px;
  border-top: 1px dashed #e0e3dd;
}

.concept-card-actions span {
  color: var(--muted);
  font-size: 9px;
}

.concept-card-actions button {
  padding: 5px 0;
  border: 0;
  color: var(--orange);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.chapter-complete-box {
  margin-top: 35px;
  padding: 21px;
  border: 1px solid #c8dbd3;
  border-radius: 13px;
  background: #f3f8f5;
}

.chapter-complete-box b {
  color: var(--green);
  font-size: 12px;
}

.chapter-complete-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.chapter-complete-box button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--green);
  border-radius: 9px;
  color: white;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.chapter-complete-box button:disabled {
  border-color: #a8bdb5;
  color: var(--green);
  background: white;
  cursor: default;
}

.textbook-search-results h3 {
  margin-top: 8px;
}

.textbook-result-list {
  display: grid;
  gap: 9px;
}

.textbook-result-list button {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.textbook-result-list button:hover {
  border-color: #aac4b9;
  background: #fafcfb;
}

.textbook-result-list span,
.textbook-result-list b {
  display: block;
}

.textbook-result-list span {
  color: var(--orange);
  font-size: 8px;
  font-weight: 800;
}

.textbook-result-list b {
  margin-top: 5px;
  font-size: 14px;
}

.textbook-result-list p,
.textbook-empty {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.study-sidebar {
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 21px;
  border-radius: var(--radius-md);
  box-shadow: 0 9px 28px rgba(38, 54, 48, 0.055);
}

.side-card-heading,
.side-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-card .small-heading {
  color: var(--muted);
  letter-spacing: 0;
}

.side-card-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.progress-ring {
  --progress: 0deg;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--progress), #eeeee8 0);
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: white;
}

.progress-ring span {
  position: relative;
  font-size: 10px;
  font-weight: 800;
}

.goal-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 11px;
  background: #f6f7f3;
}

.goal-note > span {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--orange);
  background: var(--orange-soft);
  font-family: Georgia, serif;
  font-weight: 800;
}

.goal-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.goal-note b {
  color: var(--ink-2);
  font-size: 11px;
}

.side-card-title span {
  color: var(--muted);
  font-size: 10px;
}

.mastery-list {
  display: grid;
  gap: 1px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.mastery-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  padding: 8px 0;
  color: #98a09c;
}

.mastery-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 35px;
  width: 1px;
  height: 11px;
  background: #e2e4df;
}

.mastery-list li > span {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e2dd;
  border-radius: 50%;
  background: #fafaf7;
  font-size: 9px;
  font-weight: 800;
}

.mastery-list b,
.mastery-list small {
  display: block;
}

.mastery-list b {
  font-size: 11px;
}

.mastery-list small {
  margin-top: 2px;
  font-size: 9px;
}

.mastery-list li.active {
  color: var(--ink);
}

.mastery-list li.active > span {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.filter-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.filter-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  background: #fafaf7;
  font-size: 11px;
}

.filter-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  color: #9aa19e;
  font-size: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  background: #203f39;
  box-shadow: 0 10px 25px rgba(23, 56, 50, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .mode-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-button {
    min-width: 0;
  }
}

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

  .study-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-card {
    grid-column: 1 / -1;
  }

  .textbook-layout {
    grid-template-columns: 1fr;
  }

  .textbook-chapter-list {
    position: static;
    display: flex;
    padding: 13px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .textbook-chapter-list button {
    flex: 0 0 210px;
  }

  .textbook-article {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 73px;
  }

  .top-stats .divider,
  .top-stats span:last-child {
    display: none;
  }

  main {
    padding-top: 24px;
  }

  .intro-row {
    display: block;
    margin-bottom: 18px;
  }

  .curriculum-switcher {
    margin-top: 0;
  }

  .intro-copy {
    display: none;
  }

  h1 {
    margin-top: 7px;
    font-size: 30px;
    line-height: 1.14;
  }

  .mode-switcher {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-button {
    flex: 1;
    min-width: 0;
  }

  .cram-launch-panel {
    display: block;
    margin-bottom: 12px;
    padding: 7px;
    border-radius: 13px;
  }

  .cram-launch-icon,
  .cram-launch-copy {
    display: none;
  }

  .cram-launch-button {
    width: 100%;
    min-height: 50px;
  }

  .question-view,
  .feedback-view,
  .complete-view,
  .mistake-view {
    padding: 34px 23px;
  }

  .quiz-help-actions {
    gap: 7px;
  }

  .quiz-toolbar {
    padding: 20px 20px 15px;
  }

  .question-view h2 {
    min-height: 70px;
    margin-bottom: 31px;
  }

  textarea,
  .filter-card select {
    font-size: 16px;
  }

  .answer-comparison {
    grid-template-columns: 1fr;
  }

  .rating-section {
    display: block;
  }

  .mistake-header {
    display: block;
  }

  .note-filter {
    width: max-content;
    margin-top: 17px;
  }

  .note-filter button,
  .axon-prompts button {
    min-height: 44px;
  }

  .mistake-answer-grid {
    grid-template-columns: 1fr;
  }

  .mistake-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mistake-actions {
    width: 100%;
  }

  .mistake-actions button {
    min-height: 44px;
  }

  .axon-button,
  .mistake-actions .secondary-button {
    flex: 1 1 120px;
  }

  .textbook-header {
    display: block;
    padding: 29px 22px 24px;
  }

  .textbook-axon-dock {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
  }

  .textbook-axon-launch {
    min-height: 50px;
    padding-right: 17px;
    padding-left: 17px;
  }

  .textbook-axon-panel {
    width: 100%;
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
  }

  .textbook-axon-head > button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .textbook-header h2 {
    font-size: 25px;
  }

  .textbook-search {
    width: 100%;
    margin-top: 20px;
  }

  .textbook-chapter-list button {
    flex-basis: 190px;
  }

  .textbook-article {
    padding: 32px 21px 42px;
  }

  .chapter-lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .textbook-section {
    padding-left: 29px;
  }

  .textbook-section > p {
    font-size: 12px;
    line-height: 1.85;
  }

  .textbook-reference-section {
    margin-top: 38px;
  }

  .textbook-reference-section > h2 {
    font-size: 22px;
  }

  .textbook-table-scroll {
    margin-right: -21px;
    border-radius: 11px 0 0 11px;
    border-right: 0;
  }

  .textbook-table-scroll table {
    min-width: 720px;
    font-size: 11px;
  }

  .textbook-table-scroll th,
  .textbook-table-scroll td {
    padding: 10px;
  }

  .textbook-table-swipe {
    display: block;
  }

  .textbook-confusion-grid {
    grid-template-columns: 1fr;
  }

  .chapter-complete-box {
    align-items: stretch;
    flex-direction: column;
  }

  .chapter-complete-box button {
    min-height: 44px;
  }

  .axon-panel {
    padding: 13px;
  }

  .axon-panel-head > div {
    display: grid;
    gap: 2px;
  }

  .axon-message {
    max-width: 94%;
  }

  .axon-compose textarea {
    font-size: 16px;
  }

  .rating-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
  }

  .study-sidebar {
    grid-template-columns: 1fr;
  }

  .filter-card {
    grid-column: auto;
  }
}
