:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d7dee8;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #d9f7f1;
  --accent: #b45309;
  --accent-soft: #fff3d4;
  --blue: #2458d3;
  --blue-soft: #e2eaff;
  --bad: #be123c;
  --bad-soft: #ffe4e9;
  --good: #047857;
  --good-soft: #dff7ea;
  --shadow: 0 18px 46px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --content: min(1180px, calc(100vw - 36px));
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--app-bg, linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 340px), var(--mist));
}

body.book-czsx {
  --ink: #243041;
  --muted: #64748b;
  --line: #d8e3ef;
  --paper: #ffffff;
  --mist: #f7fbff;
  --brand: #158f8b;
  --brand-strong: #0f6865;
  --brand-soft: #dff8f6;
  --accent: #d97706;
  --accent-soft: #fff0c7;
  --blue: #2f6fe4;
  --blue-soft: #e7efff;
  --shadow: 0 16px 38px rgba(31, 80, 122, 0.12);
  --app-bg:
    linear-gradient(90deg, rgba(47, 111, 228, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 143, 139, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fcfeff 0%, #f3fbfb 48%, #fff8e6 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

body.book-zjsx {
  --ink: #20261f;
  --muted: #6d756a;
  --line: #d8dbcf;
  --paper: #fffef8;
  --mist: #f3f3e8;
  --brand: #5b7f3a;
  --brand-strong: #344f26;
  --brand-soft: #e5efd9;
  --accent: #a75f2b;
  --accent-soft: #f8e4d3;
  --blue: #1d6f80;
  --blue-soft: #dff1ef;
  --shadow: 0 14px 32px rgba(64, 72, 53, 0.14);
  --app-bg:
    linear-gradient(135deg, rgba(52, 79, 38, 0.08), transparent 320px),
    repeating-linear-gradient(90deg, rgba(32, 38, 31, 0.045) 0 1px, transparent 1px 72px),
    #f3f3e8;
}

body.book-cet4 {
  --ink: #202b3d;
  --muted: #66738a;
  --line: #dbe3f1;
  --paper: #ffffff;
  --mist: #f7f9fe;
  --brand: #315fd6;
  --brand-strong: #2346a8;
  --brand-soft: #e6edff;
  --accent: #d84f6a;
  --accent-soft: #ffe7ec;
  --blue: #315fd6;
  --blue-soft: #e6edff;
  --shadow: 0 18px 42px rgba(49, 95, 214, 0.13);
  --app-bg:
    linear-gradient(180deg, rgba(49, 95, 214, 0.07), transparent 360px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(49, 95, 214, 0.06) 31px 32px),
    #f8fbff;
}

body.book-ncre {
  --ink: #172028;
  --muted: #61717c;
  --line: #d4e1e3;
  --paper: #fbfeff;
  --mist: #eef7f7;
  --brand: #087f8c;
  --brand-strong: #075b63;
  --brand-soft: #dff7f9;
  --accent: #6a5acd;
  --accent-soft: #ece8ff;
  --blue: #087f8c;
  --blue-soft: #dff7f9;
  --shadow: 0 16px 38px rgba(8, 127, 140, 0.12);
  --app-bg:
    radial-gradient(circle at 85% 0%, rgba(106, 90, 205, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(8, 127, 140, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 140, 0.05) 1px, transparent 1px),
    #f4fbfb;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

body.book-cpa {
  --ink: #202225;
  --muted: #666b73;
  --line: #d6d2ca;
  --paper: #ffffff;
  --mist: #f5f6f7;
  --brand: #8a2635;
  --brand-strong: #5d1825;
  --brand-soft: #f7e8eb;
  --accent: #b7892f;
  --accent-soft: #fff4d8;
  --blue: #176b78;
  --blue-soft: #e2f2f3;
  --shadow: 0 12px 30px rgba(32, 34, 37, 0.11);
  --radius: 4px;
  --app-bg:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(32, 34, 37, 0.045) 39px 40px),
    linear-gradient(90deg, #f8f9fa 0 72%, #f1f4f3 72% 100%);
}

body.book-jkgl {
  --ink: #17332d;
  --muted: #5e716b;
  --line: #d2e3de;
  --paper: #ffffff;
  --mist: #f1f8f6;
  --brand: #168067;
  --brand-strong: #0e5948;
  --brand-soft: #dff5ed;
  --accent: #d65d55;
  --accent-soft: #ffe9e5;
  --blue: #2477a6;
  --blue-soft: #e3f2fa;
  --shadow: 0 16px 36px rgba(22, 128, 103, 0.11);
  --app-bg:
    linear-gradient(90deg, rgba(36, 119, 166, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 128, 103, 0.045) 1px, transparent 1px),
    #f5faf8;
  background-size: 56px 56px, 56px 56px, auto;
}

body.book-flzg {
  --ink: #2b2320;
  --muted: #6f625b;
  --line: #d9cec0;
  --paper: #fffdf8;
  --mist: #f5f0e7;
  --brand: #8f2634;
  --brand-strong: #5a1721;
  --brand-soft: #f8e8e9;
  --accent: #a77a28;
  --accent-soft: #fff2d4;
  --blue: #3d6170;
  --blue-soft: #e8f0f2;
  --shadow: 0 10px 26px rgba(63, 39, 31, 0.1);
  --radius: 3px;
  --app-bg:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(75, 51, 38, 0.045) 35px 36px),
    #f8f4ec;
}

body.book-gai {
  --ink: #16262a;
  --muted: #5a6d70;
  --line: #cadcdd;
  --paper: #ffffff;
  --mist: #f1f7f6;
  --brand: #087f8c;
  --brand-strong: #075861;
  --brand-soft: #dff5f4;
  --accent: #8cab18;
  --accent-soft: #f0f8d6;
  --blue: #176f9b;
  --blue-soft: #e4f3fa;
  --shadow: 0 14px 32px rgba(8, 127, 140, 0.12);
  --radius: 6px;
  --app-bg:
    linear-gradient(90deg, rgba(8, 127, 140, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 140, 0.055) 1px, transparent 1px),
    #f4f9f8;
  background-size: 44px 44px, 44px 44px, auto;
}

body.book-rgznxls {
  --ink: #102b2e;
  --muted: #5d7474;
  --line: #c9ded8;
  --paper: #fcfffd;
  --mist: #edf7f4;
  --brand: #0b7285;
  --brand-strong: #075985;
  --brand-soft: #d8f2ec;
  --accent: #e4862d;
  --accent-soft: #fff0d8;
  --blue: #3d8ea3;
  --blue-soft: #dceff3;
  --shadow: 0 14px 34px rgba(10, 77, 83, 0.13);
  --radius: 5px;
  --app-bg:
    linear-gradient(90deg, rgba(11, 114, 133, 0.065) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 114, 133, 0.065) 1px, transparent 1px),
    #f2faf7;
  background-size: 32px 32px, 32px 32px, auto;
}

body.book-gwy {
  --ink: #292d35;
  --muted: #6d7078;
  --line: #d8d1c5;
  --paper: #fffdf8;
  --mist: #f4f0e8;
  --brand: #a33a34;
  --brand-strong: #762621;
  --brand-soft: #f5dedb;
  --accent: #bd873c;
  --accent-soft: #fff0d5;
  --blue: #365d80;
  --blue-soft: #e1ecf5;
  --shadow: 0 12px 28px rgba(54, 42, 32, 0.12);
  --radius: 2px;
  --app-bg:
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(74, 54, 36, 0.045) 37px 38px),
    linear-gradient(90deg, #fbf8f1 0 72%, #f0eee8 72% 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(49, 95, 214, 0.28);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #1d9c89);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  min-width: 168px;
}

.main {
  flex: 1;
  width: 100%;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 30px 0;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, #12312e 0%, #0f766e 56%, #1f4ba8 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 74px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-grid {
  width: var(--content);
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: 34px;
  align-items: center;
}

.hero-grid h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-grid p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 20px;
}

.hero-band .secondary-button,
.hero-band .ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
}

.hero-band .secondary-button:hover,
.hero-band .ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.book-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.book-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  background: #e5e7eb;
}

body.book-czsx .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(21, 143, 139, 0.2);
}

body.book-czsx .brand-mark {
  background: #fff;
  color: var(--brand-strong);
  border: 2px solid var(--brand);
  box-shadow: inset 0 -5px 0 rgba(255, 240, 199, 0.9);
}

body.book-czsx .nav a.active,
body.book-czsx .nav a:hover {
  color: var(--brand-strong);
  background: linear-gradient(180deg, #efffff, var(--brand-soft));
}

body.book-czsx .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 111, 228, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 143, 139, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #eafcff 58%, #fff2c2 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom-color: rgba(21, 143, 139, 0.18);
}

body.book-czsx .hero-band::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #158f8b 0 42px, #2f6fe4 42px 84px, #d97706 84px 126px);
}

body.book-czsx .hero-grid p {
  color: #475569;
}

body.book-czsx .hero-band .secondary-button,
body.book-czsx .hero-band .ghost-button,
body.book-cet4 .hero-band .secondary-button,
body.book-cet4 .hero-band .ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(49, 95, 214, 0.18);
}

body.book-czsx .hero-band .eyebrow {
  color: var(--brand-strong);
}

body.book-czsx .book-preview {
  align-items: center;
  transform: rotate(-1.2deg);
}

body.book-czsx .book-preview img {
  border: 6px solid #fff;
  box-shadow: 0 16px 34px rgba(31, 80, 122, 0.18);
}

body.book-czsx .book-preview img:nth-child(2),
body.book-czsx .book-preview img:nth-child(3) {
  transform: translateY(18px) rotate(3deg);
}

body.book-czsx .stat,
body.book-czsx .panel,
body.book-czsx .course-item,
body.book-czsx .practice-item,
body.book-czsx .paper-card,
body.book-czsx .lesson-section,
body.book-czsx .question,
body.book-czsx .review-card,
body.book-czsx .history-row,
body.book-czsx .empty-state {
  border-color: rgba(47, 111, 228, 0.14);
}

body.book-czsx .stat {
  background: linear-gradient(180deg, #fff, #f1fbff);
  box-shadow: 0 10px 24px rgba(47, 111, 228, 0.08);
}

body.book-czsx .stat strong {
  color: var(--brand-strong);
}

body.book-czsx .course-item.active,
body.book-czsx .practice-item.active,
body.book-czsx .paper-card.active {
  background: linear-gradient(135deg, #e6fffb, #fff7dc);
}

body.book-zjsx .topbar {
  background: rgba(36, 43, 32, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.book-zjsx .brand strong,
body.book-zjsx .nav a {
  color: #f7f6ed;
}

body.book-zjsx .brand small {
  color: rgba(247, 246, 237, 0.66);
}

body.book-zjsx .brand-mark {
  background: linear-gradient(135deg, #a75f2b, #5b7f3a);
  color: #fffef8;
}

body.book-zjsx .nav a:hover,
body.book-zjsx .nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.book-zjsx .topbar .secondary-button {
  color: #fffef8;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

body.book-zjsx .hero-band {
  background:
    linear-gradient(135deg, #24301f 0%, #526c34 52%, #a75f2b 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 68px);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.book-zjsx .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.08) 58% 64%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.05) 38px 39px);
  pointer-events: none;
}

body.book-zjsx .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.48fr);
}

body.book-zjsx .book-preview {
  position: relative;
  display: block;
  min-height: 340px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.12);
  box-shadow: 0 22px 48px rgba(32, 38, 31, 0.24);
}

body.book-zjsx .book-preview img {
  display: none;
}

body.book-zjsx .book-preview img:first-child {
  display: block;
  width: 74%;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

body.book-zjsx .book-preview::before,
body.book-zjsx .book-preview::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 42%;
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.18);
}

body.book-zjsx .book-preview::before {
  top: 34px;
  height: 118px;
  box-shadow: 0 138px 0 rgba(255, 254, 248, 0.12);
}

body.book-zjsx .book-preview::after {
  top: 62px;
  height: 12px;
  background: #f3bd7a;
  box-shadow:
    0 28px 0 rgba(255, 254, 248, 0.5),
    0 56px 0 rgba(255, 254, 248, 0.32),
    0 138px 0 #9fbc6b,
    0 166px 0 rgba(255, 254, 248, 0.36);
}

body.book-zjsx .panel,
body.book-zjsx .stat,
body.book-zjsx .course-item,
body.book-zjsx .practice-item,
body.book-zjsx .paper-card,
body.book-zjsx .question,
body.book-zjsx .review-card,
body.book-zjsx .history-row,
body.book-zjsx .empty-state {
  border-color: var(--line);
  box-shadow: none;
}

body.book-zjsx .panel {
  border-top: 4px solid var(--brand);
}

body.book-zjsx .stat {
  position: relative;
  min-height: 104px;
  padding-left: 20px;
  background: #fffef8;
}

body.book-zjsx .stat::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  background: var(--accent);
}

body.book-zjsx .stat strong {
  color: #344f26;
  font-size: 28px;
}

body.book-zjsx .course-item,
body.book-zjsx .practice-item,
body.book-zjsx .paper-card {
  background: #fffef8;
}

body.book-zjsx .course-item.active,
body.book-zjsx .practice-item.active,
body.book-zjsx .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(90deg, #eef5e5, #fff9ef);
}

body.book-cet4 .topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(49, 95, 214, 0.16);
}

body.book-cet4 .brand-mark {
  background: linear-gradient(135deg, #315fd6, #d84f6a);
}

body.book-cet4 .nav a.active,
body.book-cet4 .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-cet4 .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(49, 95, 214, 0.08) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 58%, #fff2f5 100%);
  border-bottom-color: rgba(49, 95, 214, 0.18);
}

body.book-cet4 .hero-band::before {
  content: "A  B  C  D";
  position: absolute;
  right: 6vw;
  top: 24px;
  color: rgba(49, 95, 214, 0.08);
  font-size: clamp(74px, 12vw, 170px);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-cet4 .hero-band .eyebrow {
  color: var(--accent);
}

body.book-cet4 .hero-grid p {
  color: #40506a;
}

body.book-cet4 .book-preview {
  position: relative;
  transform: none;
}

body.book-cet4 .book-preview img {
  border: 1px solid rgba(49, 95, 214, 0.18);
  box-shadow: 0 16px 34px rgba(49, 95, 214, 0.16);
}

body.book-cet4 .book-preview img:nth-child(1) {
  transform: rotate(-2deg);
}

body.book-cet4 .book-preview img:nth-child(2) {
  transform: translateY(20px) rotate(1.5deg);
}

body.book-cet4 .book-preview img:nth-child(3) {
  transform: translateY(-10px) rotate(2deg);
}

body.book-cet4 .book-preview img:nth-child(4) {
  transform: translateY(16px) rotate(-1deg);
}

body.book-cet4 .panel {
  border-top: 3px solid var(--accent);
}

body.book-cet4 .stat {
  background: linear-gradient(180deg, #fff, #f4f7ff);
}

body.book-cet4 .stat strong {
  color: var(--brand-strong);
}

body.book-cet4 .course-item.active,
body.book-cet4 .practice-item.active,
body.book-cet4 .paper-card.active {
  border-color: rgba(216, 79, 106, 0.46);
  background: linear-gradient(135deg, #eef4ff, #fff0f4);
}

body.book-ncre .topbar {
  background: rgba(251, 254, 255, 0.92);
  border-bottom-color: rgba(8, 127, 140, 0.2);
}

body.book-ncre .brand-mark {
  background: #172028;
  color: #78f2ff;
  font-family: Consolas, "Courier New", monospace;
}

body.book-ncre .nav a.active,
body.book-ncre .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-ncre .hero-band {
  background:
    radial-gradient(circle at 74% 22%, rgba(120, 242, 255, 0.26), transparent 18rem),
    linear-gradient(135deg, #172028 0%, #075b63 56%, #2b266e 100%);
  border-bottom-color: rgba(120, 242, 255, 0.24);
}

body.book-ncre .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(120, 242, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

body.book-ncre .hero-grid {
  position: relative;
  z-index: 1;
}

body.book-ncre .book-preview {
  padding: 16px;
  border: 1px solid rgba(120, 242, 255, 0.24);
  border-radius: 8px;
  background: rgba(23, 32, 40, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

body.book-ncre .book-preview img {
  border: 1px solid rgba(120, 242, 255, 0.26);
  box-shadow: none;
  filter: saturate(0.95);
}

body.book-ncre .book-preview img:nth-child(2),
body.book-ncre .book-preview img:nth-child(4) {
  transform: translateY(18px);
}

body.book-ncre .panel,
body.book-ncre .stat,
body.book-ncre .course-item,
body.book-ncre .practice-item,
body.book-ncre .paper-card,
body.book-ncre .question,
body.book-ncre .review-card,
body.book-ncre .history-row,
body.book-ncre .empty-state {
  border-color: rgba(8, 127, 140, 0.18);
}

body.book-ncre .panel {
  box-shadow: 0 1px 0 rgba(8, 127, 140, 0.12), var(--shadow);
}

body.book-ncre .stat {
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.11), transparent 38%),
    #fff;
}

body.book-ncre .stat strong {
  color: var(--brand-strong);
  font-family: Consolas, "Courier New", monospace;
}

body.book-ncre .course-item.active,
body.book-ncre .practice-item.active,
body.book-ncre .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #e8fbfd, #f0edff);
}

body.book-cpa .topbar {
  border-top: 4px solid var(--brand);
  border-bottom: 3px double #b9b3aa;
  background: rgba(255, 255, 255, 0.96);
}

body.book-cpa .brand-mark {
  background: #202225;
  color: #f3d58f;
  font-family: Georgia, "Times New Roman", serif;
}

body.book-cpa .nav a.active,
body.book-cpa .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
}

body.book-cpa .hero-band {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(32, 34, 37, 0.065) 43px 44px),
    linear-gradient(100deg, #ffffff 0 62%, #eef5f4 62% 100%);
  border-bottom: 8px solid var(--brand);
}

body.book-cpa .hero-band::before {
  content: "CPA";
  position: absolute;
  right: 5vw;
  bottom: -36px;
  color: rgba(138, 38, 53, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 180px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-cpa .hero-grid,
body.book-jkgl .hero-grid {
  position: relative;
  z-index: 1;
}

body.book-cpa .hero-grid p {
  color: #565b63;
}

body.book-cpa .hero-band .eyebrow {
  color: var(--brand);
  letter-spacing: 0;
}

body.book-cpa .hero-band .secondary-button,
body.book-cpa .hero-band .ghost-button {
  color: var(--ink);
  background: #fff;
  border-color: #aaa49a;
}

body.book-cpa .book-preview {
  padding: 12px;
  border: 1px solid #b9b3aa;
  border-left: 7px solid var(--brand);
  background: #fff;
  box-shadow: 12px 12px 0 rgba(23, 107, 120, 0.1);
}

body.book-cpa .book-preview img {
  border: 1px solid #c8c2b9;
  border-radius: 2px;
  box-shadow: none;
}

body.book-cpa .panel,
body.book-cpa .stat,
body.book-cpa .course-item,
body.book-cpa .practice-item,
body.book-cpa .paper-card,
body.book-cpa .question,
body.book-cpa .review-card,
body.book-cpa .history-row,
body.book-cpa .empty-state {
  border-color: #d6d2ca;
}

body.book-cpa .stat {
  border-top: 4px solid var(--brand);
}

body.book-cpa .stat strong {
  color: var(--brand-strong);
  font-family: Georgia, "Times New Roman", serif;
}

body.book-cpa .course-item.active,
body.book-cpa .practice-item.active,
body.book-cpa .paper-card.active {
  border-color: var(--brand);
  border-left-width: 5px;
  background: linear-gradient(90deg, var(--brand-soft), #fff 72%);
}

body.book-jkgl .topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(22, 128, 103, 0.22);
}

body.book-jkgl .brand-mark {
  background: var(--brand);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

body.book-jkgl .nav a.active,
body.book-jkgl .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-jkgl .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 74%, rgba(36, 119, 166, 0.08) 74% 100%),
    linear-gradient(180deg, #ffffff 0%, #edf9f5 100%);
  border-bottom: 1px solid rgba(22, 128, 103, 0.2);
}

body.book-jkgl .hero-band::before {
  content: "+";
  position: absolute;
  right: 8vw;
  top: -76px;
  color: rgba(214, 93, 85, 0.1);
  font-size: 280px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-jkgl .hero-grid p {
  color: #4f6861;
}

body.book-jkgl .hero-band .eyebrow {
  color: var(--accent);
  letter-spacing: 0;
}

body.book-jkgl .hero-band .secondary-button,
body.book-jkgl .hero-band .ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 128, 103, 0.28);
}

body.book-jkgl .book-preview {
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(22, 128, 103, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(22, 128, 103, 0.13);
}

body.book-jkgl .book-preview img {
  border: 1px solid #d2e3de;
  box-shadow: none;
}

body.book-jkgl .book-preview img:nth-child(1),
body.book-jkgl .book-preview img:nth-child(4) {
  transform: translateY(10px);
}

body.book-jkgl .panel,
body.book-jkgl .stat,
body.book-jkgl .course-item,
body.book-jkgl .practice-item,
body.book-jkgl .paper-card,
body.book-jkgl .question,
body.book-jkgl .review-card,
body.book-jkgl .history-row,
body.book-jkgl .empty-state {
  border-color: rgba(22, 128, 103, 0.2);
}

body.book-jkgl .stat {
  background: linear-gradient(135deg, #ffffff, #edf9f5);
}

body.book-jkgl .stat strong {
  color: var(--brand-strong);
}

body.book-jkgl .course-item.active,
body.book-jkgl .practice-item.active,
body.book-jkgl .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(110deg, var(--brand-soft), var(--blue-soft));
}

body.book-flzg .topbar {
  border-top: 4px solid var(--brand);
  border-bottom: 3px double #b9aa98;
  background: rgba(255, 253, 248, 0.97);
}

body.book-flzg .brand-mark {
  border: 2px solid #f0d9b0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff8e8;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  font-family: "STKaiti", "KaiTi", serif;
}

body.book-flzg .nav a.active,
body.book-flzg .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
}

body.book-flzg .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0 67%, rgba(167, 122, 40, 0.09) 67% 100%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(75, 51, 38, 0.06) 41px 42px),
    #fffdf8;
  border-bottom: 7px solid var(--brand);
}

body.book-flzg .hero-band::before {
  content: "法";
  position: absolute;
  right: 7vw;
  top: -56px;
  color: rgba(143, 38, 52, 0.08);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 260px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-flzg .hero-grid,
body.book-gai .hero-grid {
  position: relative;
  z-index: 1;
}

body.book-flzg .hero-grid p {
  color: #66574f;
}

body.book-flzg .book-preview {
  padding: 12px;
  border: 3px double #b9aa98;
  border-left: 8px solid var(--brand);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 10px 10px 0 rgba(167, 122, 40, 0.12);
}

body.book-flzg .panel,
body.book-flzg .stat,
body.book-flzg .course-item,
body.book-flzg .practice-item,
body.book-flzg .paper-card,
body.book-flzg .question,
body.book-flzg .review-card,
body.book-flzg .history-row,
body.book-flzg .empty-state {
  border-color: #d9cec0;
}

body.book-flzg .course-item.active,
body.book-flzg .practice-item.active,
body.book-flzg .paper-card.active {
  border-color: var(--brand);
  border-left-width: 6px;
  background: linear-gradient(90deg, var(--brand-soft), #fffdf8 76%);
}

body.book-gai .topbar {
  border-top: 4px solid #b6d53b;
  border-bottom-color: rgba(8, 127, 140, 0.25);
  background: rgba(250, 253, 252, 0.96);
}

body.book-gai .brand-mark {
  border: 1px solid #0f2f34;
  border-radius: 6px;
  background: #16363b;
  color: #d7f35e;
  box-shadow: 4px 4px 0 rgba(8, 127, 140, 0.18);
}

body.book-gai .nav a.active,
body.book-gai .nav a:hover {
  color: #0d4e56;
  background: #e4f5f3;
  box-shadow: inset 0 -3px 0 #9dbb21;
}

body.book-gai .hero-band {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0 64%, rgba(215, 243, 94, 0.17) 64% 100%),
    linear-gradient(90deg, rgba(8, 127, 140, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 140, 0.07) 1px, transparent 1px),
    #f4faf8;
  background-size: auto, 36px 36px, 36px 36px, auto;
  border-bottom: 7px solid #16363b;
}

body.book-gai .hero-band::before {
  content: "</>";
  position: absolute;
  right: 4vw;
  bottom: -12px;
  color: rgba(8, 127, 140, 0.09);
  font-family: Consolas, "Courier New", monospace;
  font-size: 130px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-gai .hero-grid p {
  color: #4f6669;
}

body.book-gai .hero-band .eyebrow {
  color: #668313;
}

body.book-gai .book-preview {
  padding: 10px;
  border: 1px solid rgba(8, 127, 140, 0.28);
  border-top: 7px solid #b6d53b;
  border-radius: 6px;
  background: #fff;
  box-shadow: 12px 12px 0 rgba(8, 127, 140, 0.1);
}

body.book-gai .primary-button {
  border-color: #16363b;
  background: #16363b;
  color: #efffb2;
}

body.book-gai .panel,
body.book-gai .stat,
body.book-gai .course-item,
body.book-gai .practice-item,
body.book-gai .paper-card,
body.book-gai .question,
body.book-gai .review-card,
body.book-gai .history-row,
body.book-gai .empty-state {
  border-color: rgba(8, 127, 140, 0.22);
}

body.book-gai .stat {
  border-top: 4px solid #b6d53b;
  background: linear-gradient(135deg, #ffffff, #eef8f6);
}

body.book-gai .course-item.active,
body.book-gai .practice-item.active,
body.book-gai .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(105deg, var(--brand-soft), var(--accent-soft));
}

body.book-rgznxls .topbar {
  border-top: 4px solid var(--accent);
  border-bottom-color: rgba(11, 114, 133, 0.28);
  background: rgba(250, 255, 253, 0.96);
}

body.book-rgznxls .brand-mark {
  border: 1px solid #0b4650;
  border-radius: 4px;
  background: #0b4650;
  color: #ffd99b;
  box-shadow: 4px 4px 0 rgba(228, 134, 45, 0.2);
  font-family: Consolas, "Courier New", monospace;
}

body.book-rgznxls .nav a.active,
body.book-rgznxls .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

body.book-rgznxls .hero-band {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0 62%, rgba(255, 240, 216, 0.92) 62% 100%),
    linear-gradient(90deg, rgba(11, 114, 133, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 114, 133, 0.08) 1px, transparent 1px),
    #f2faf7;
  background-size: auto, 34px 34px, 34px 34px, auto;
  border-bottom: 7px solid #0b4650;
}

body.book-rgznxls .hero-band::before {
  content: "AI";
  position: absolute;
  right: 5vw;
  bottom: -26px;
  color: rgba(11, 114, 133, 0.09);
  font-family: Consolas, "Courier New", monospace;
  font-size: 170px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-rgznxls .hero-grid,
body.book-rgznxls .book-preview {
  position: relative;
  z-index: 1;
}

body.book-rgznxls .hero-grid p {
  color: #506a6c;
}

body.book-rgznxls .hero-band .secondary-button,
body.book-rgznxls .hero-band .ghost-button,
body.book-gwy .hero-band .secondary-button,
body.book-gwy .hero-band .ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(11, 114, 133, 0.26);
}

body.book-gwy .hero-band .secondary-button,
body.book-gwy .hero-band .ghost-button {
  border-color: rgba(163, 58, 52, 0.28);
}

body.book-rgznxls .book-preview {
  padding: 12px;
  border: 1px solid rgba(11, 114, 133, 0.3);
  border-top: 7px solid var(--accent);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 12px 12px 0 rgba(11, 114, 133, 0.11);
}

body.book-rgznxls .panel,
body.book-rgznxls .stat,
body.book-rgznxls .course-item,
body.book-rgznxls .practice-item,
body.book-rgznxls .paper-card,
body.book-rgznxls .question,
body.book-rgznxls .review-card,
body.book-rgznxls .history-row,
body.book-rgznxls .empty-state {
  border-color: rgba(11, 114, 133, 0.23);
}

body.book-rgznxls .stat {
  border-top: 4px solid var(--accent);
  background: linear-gradient(135deg, #ffffff, #eef8f5);
}

body.book-rgznxls .course-item.active,
body.book-rgznxls .practice-item.active,
body.book-rgznxls .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(105deg, var(--brand-soft), var(--accent-soft));
}

body.book-gwy .topbar {
  border-top: 4px solid var(--brand);
  border-bottom: 3px double #c9bcae;
  background: rgba(255, 253, 248, 0.97);
}

body.book-gwy .brand-mark {
  border: 2px solid #e2c487;
  border-radius: 50%;
  background: var(--brand);
  color: #fff8e8;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.17);
  font-family: "STKaiti", "KaiTi", serif;
}

body.book-gwy .nav a.active,
body.book-gwy .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
}

body.book-gwy .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0 68%, rgba(189, 135, 60, 0.12) 68% 100%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(74, 54, 36, 0.06) 41px 42px),
    #fffdf8;
  border-bottom: 7px solid var(--brand);
}

body.book-gwy .hero-band::before {
  content: "面";
  position: absolute;
  right: 7vw;
  top: -52px;
  color: rgba(163, 58, 52, 0.08);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 260px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-gwy .hero-grid,
body.book-gwy .book-preview {
  position: relative;
  z-index: 1;
}

body.book-gwy .hero-grid p {
  color: #6a625a;
}

body.book-gwy .book-preview {
  padding: 12px;
  border: 3px double #c9bcae;
  border-right: 8px solid var(--brand);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: -10px 10px 0 rgba(189, 135, 60, 0.13);
}

body.book-gwy .panel,
body.book-gwy .stat,
body.book-gwy .course-item,
body.book-gwy .practice-item,
body.book-gwy .paper-card,
body.book-gwy .question,
body.book-gwy .review-card,
body.book-gwy .history-row,
body.book-gwy .empty-state {
  border-color: #d8d1c5;
}

body.book-gwy .course-item.active,
body.book-gwy .practice-item.active,
body.book-gwy .paper-card.active {
  border-color: var(--brand);
  border-left-width: 6px;
  background: linear-gradient(90deg, var(--brand-soft), #fffdf8 76%);
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-pad {
  padding: 22px;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.38fr);
  align-items: start;
}

.quiz-layout {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.95fr);
}

.quiz-layout > aside,
.quiz-layout > .paper-grid {
  min-width: 0;
}

.quiz-layout > .paper-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 921px) {
  .quiz-layout > aside,
  .quiz-layout > .paper-grid {
    position: sticky;
    top: 88px;
  }
}

.lesson-grid {
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

.paper-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 16px;
}

.focus-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand);
}

.focus-card.primary-focus {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, var(--brand-soft), transparent);
}

.focus-card h2 {
  margin-bottom: 10px;
  line-height: 1.22;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 720;
}

.stat,
.course-item,
.practice-item,
.paper-card,
.user-row,
.answer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.stat {
  min-height: 118px;
  padding: 18px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.stat span,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.course-list,
.practice-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.course-item,
.practice-item,
.user-row {
  padding: 14px;
}

.course-item {
  text-align: left;
}

.course-item.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.course-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.tag.good {
  color: var(--good);
  background: var(--good-soft);
}

.tag.warn {
  color: var(--accent);
  background: var(--accent-soft);
}

.tag.bad {
  color: var(--bad);
  background: var(--bad-soft);
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(102, 112, 133, 0.12);
}

.sync-indicator[data-sync-state="synced"] {
  color: var(--good);
  border-color: rgba(4, 120, 87, 0.2);
  background: var(--good-soft);
}

.sync-indicator[data-sync-state="synced"] .sync-dot {
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.13);
}

.sync-indicator[data-sync-state="saving"],
.sync-indicator[data-sync-state="checking"] {
  color: var(--accent);
  border-color: rgba(180, 83, 9, 0.2);
  background: var(--accent-soft);
}

.sync-indicator[data-sync-state="saving"] .sync-dot,
.sync-indicator[data-sync-state="checking"] .sync-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.13);
  animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-indicator[data-sync-state="local"] {
  color: var(--muted);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.segment:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button {
  color: var(--brand-strong);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.ghost-button {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.full-width {
  width: 100%;
}

.lesson-body {
  display: grid;
  gap: 16px;
}

.lesson-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.formula-list,
.tip-list,
.objective-list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.75;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #34d399);
}

.question {
  scroll-margin-top: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quiz-panel {
  min-width: 0;
}

.quiz-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.quiz-toolbar h2 {
  margin-bottom: 0;
  line-height: 1.2;
}

.quiz-toolbar-meta {
  display: grid;
  gap: 8px;
  width: min(250px, 40%);
  flex: 0 0 auto;
}

.quiz-count {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.quiz-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.quiz-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}

.quiz-form {
  min-width: 0;
}

.quiz-result {
  scroll-margin-top: 104px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option {
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.option:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.option:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 4px 0 0 var(--brand);
}

.option input {
  margin-top: 3px;
}

.answer-card {
  padding: 14px;
}

.answer-card.correct {
  border-color: rgba(4, 120, 87, 0.35);
  background: var(--good-soft);
}

.answer-card.wrong {
  border-color: rgba(190, 18, 60, 0.35);
  background: var(--bad-soft);
}

.question-source {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.review-list,
.history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review-card,
.history-row,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.review-card h3 {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.55;
}

.review-card p {
  margin: 7px 0;
}

.review-card-head,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-row strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  background: #f8fafc;
}

.modal {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  position: relative;
  padding: 24px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
}

.modal-head h2 {
  margin: 0 0 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 18px 0;
  padding: 5px;
  border-radius: 8px;
  background: #eef2f7;
}

.segment {
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.hidden {
  display: none !important;
}

.form-error {
  min-height: 20px;
  margin: 12px 0;
  color: var(--bad);
  font-weight: 720;
}

.status-page {
  max-width: 760px;
  margin: 58px auto;
  text-align: center;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.footer {
  width: var(--content);
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .top-actions {
    min-width: 0;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    scroll-snap-align: center;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .two-grid,
  .lesson-grid,
  .paper-grid,
  .stats-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .quiz-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .quiz-toolbar-meta {
    width: 100%;
  }

  .quiz-count {
    text-align: left;
  }

  .hero-grid {
    padding: 34px 0;
  }

  .book-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.book-zjsx .hero-grid {
    grid-template-columns: 1fr;
  }

  body.book-zjsx .book-preview {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 20px 0;
  }

  .hero-grid h1 {
    font-size: 34px;
  }

  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .focus-card {
    min-height: 0;
    padding: 18px;
  }

  .quiz-panel {
    padding: 16px;
  }

  .question {
    padding: 14px;
  }

  .quiz-toolbar h2 {
    font-size: 23px;
  }

  .book-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.book-zjsx .book-preview {
    min-height: 260px;
  }

  body.book-zjsx .book-preview img:first-child {
    width: 68%;
  }

  .footer {
    display: grid;
  }

  .review-card-head,
  .history-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Shared visual system: a dark editorial stage, paper-like study surfaces, and quiet motion. */
:root {
  --content: min(1280px, calc(100vw - 48px));
  --display-face: "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
  --stage: #0b1116;
  --stage-ink: #f8f4ea;
  --stage-line: rgba(248, 244, 234, 0.22);
}

body[class*="book-"] {
  --stage-accent: var(--accent, #d78454);
  --stage-secondary: var(--brand-strong, #234d6d);
  background: #edece7;
  letter-spacing: 0;
}

body[class*="book-"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(18, 28, 35, 0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(18, 28, 35, 0.025) 0 1px, transparent 1px 48px);
  opacity: 0.5;
}

body[class*="book-"] .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 74px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 28, 35, 0.17);
  background: rgba(245, 244, 239, 0.86);
  backdrop-filter: blur(24px) saturate(130%);
}

body[class*="book-"] .brand {
  gap: 12px;
  min-width: 224px;
}

body[class*="book-"] .brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stage-secondary);
  border-radius: 2px;
  background: var(--stage-secondary);
  color: var(--stage-ink);
  box-shadow: 5px 5px 0 var(--stage-accent);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

body[class*="book-"] .brand strong {
  color: var(--ink);
  font-family: var(--display-face);
  font-size: 16px;
  letter-spacing: 0;
}

body[class*="book-"] .brand small {
  margin-top: 3px;
  color: var(--muted);
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[class*="book-"] .nav {
  justify-content: flex-end;
  gap: 2px;
}

body[class*="book-"] .nav a {
  position: relative;
  min-height: 42px;
  border-radius: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: color 0.2s ease, background 0.2s ease;
}

body[class*="book-"] .nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--stage-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

body[class*="book-"] .nav a:hover,
body[class*="book-"] .nav a.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

body[class*="book-"] .nav a:hover::after,
body[class*="book-"] .nav a.active::after {
  transform: scaleX(1);
}

body[class*="book-"] .top-actions {
  min-width: 190px;
}

body[class*="book-"] .hero-band {
  min-height: 610px;
  isolation: isolate;
  color: var(--stage-ink);
  background-color: var(--stage);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 118px, var(--stage-line) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(248, 244, 234, 0.1) 119px 120px);
  border-top: 0;
  border-bottom: 1px solid var(--stage-line);
}

body[class*="book-"] .hero-band::before {
  content: "FIELD / 01";
  position: absolute;
  top: 28px;
  right: max(24px, calc((100vw - 1280px) / 2));
  z-index: -1;
  color: rgba(248, 244, 234, 0.14);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

body[class*="book-"] .hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(var(--pointer-x, 50%) - 1px), rgba(248, 244, 234, 0.28) var(--pointer-x, 50%), transparent calc(var(--pointer-x, 50%) + 1px)),
    linear-gradient(0deg, transparent calc(var(--pointer-y, 50%) - 1px), rgba(248, 244, 234, 0.2) var(--pointer-y, 50%), transparent calc(var(--pointer-y, 50%) + 1px));
  opacity: 0.7;
}

body[class*="book-"] .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 610px;
  padding: 88px 0 74px;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.62fr);
  gap: 64px;
  align-items: end;
}

body[class*="book-"] .hero-grid > div:first-child {
  animation: hero-copy-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body[class*="book-"] .hero-grid h1 {
  max-width: 11ch;
  margin: 16px 0 24px;
  color: var(--stage-ink);
  font-family: var(--display-face);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

body[class*="book-"] .hero-grid p {
  max-width: 680px;
  color: rgba(248, 244, 234, 0.74);
  font-size: 16px;
  line-height: 1.8;
}

body[class*="book-"] .hero-grid .eyebrow {
  color: var(--stage-accent);
  letter-spacing: 0;
}

body[class*="book-"] .hero-actions {
  gap: 8px;
  margin-top: 34px;
}

body[class*="book-"] .book-preview {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 18px 24px;
  border: 1px solid rgba(248, 244, 234, 0.32);
  border-radius: 0;
  background: rgba(248, 244, 234, 0.08);
  box-shadow: 12px 12px 0 var(--stage-accent);
  transform: rotate(2deg);
  animation: preview-in 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body[class*="book-"] .book-preview::before {
  content: "PREVIEW / 04";
  position: absolute;
  top: -28px;
  left: 0;
  color: rgba(248, 244, 234, 0.64);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

body[class*="book-"] .book-preview img {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(248, 244, 234, 0.35);
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

body[class*="book-"] .book-preview img:nth-child(1) {
  transform: translateY(18px) rotate(-3deg);
}

body[class*="book-"] .book-preview img:nth-child(2) {
  transform: translateY(-10px) rotate(2deg);
}

body[class*="book-"] .book-preview img:nth-child(3) {
  transform: translateY(14px) rotate(1deg);
}

body[class*="book-"] .book-preview img:nth-child(4) {
  transform: translateY(-16px) rotate(-2deg);
}

body[class*="book-"] .book-preview:hover img:nth-child(1) {
  transform: translate(-8px, 12px) rotate(-6deg);
}

body[class*="book-"] .book-preview:hover img:nth-child(2) {
  transform: translate(8px, -16px) rotate(5deg);
}

body[class*="book-"] .book-preview:hover img:nth-child(3) {
  transform: translate(-6px, 18px) rotate(4deg);
}

body[class*="book-"] .book-preview:hover img:nth-child(4) {
  transform: translate(6px, -20px) rotate(-5deg);
}

body[class*="book-"] .section {
  padding-top: 72px;
  padding-bottom: 72px;
}

body[class*="book-"] .section > .eyebrow,
body[class*="book-"] .panel .eyebrow {
  color: var(--stage-secondary);
  letter-spacing: 0;
}

body[class*="book-"] .panel {
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(16, 26, 34, 0.08);
}

body[class*="book-"] .panel-pad {
  padding: 28px;
}

body[class*="book-"] .stats-grid {
  gap: 0;
  border-top: 1px solid rgba(18, 28, 35, 0.18);
  border-bottom: 1px solid rgba(18, 28, 35, 0.18);
}

body[class*="book-"] .stat {
  min-height: 148px;
  padding: 24px 22px;
  border: 0;
  border-right: 1px solid rgba(18, 28, 35, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[class*="book-"] .stat:last-child {
  border-right: 0;
}

body[class*="book-"] .stat strong {
  color: var(--stage-secondary);
  font-family: var(--display-face);
  font-size: 34px;
}

body[class*="book-"] .stat span {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[class*="book-"] .focus-grid {
  gap: 22px;
  margin-top: 22px;
}

body[class*="book-"] .focus-card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid rgba(18, 28, 35, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

body[class*="book-"] .focus-card::before {
  width: 8px;
  background: var(--stage-accent);
}

body[class*="book-"] .focus-card.primary-focus {
  color: var(--stage-ink);
  background: var(--stage);
}

body[class*="book-"] .focus-card.primary-focus .eyebrow,
body[class*="book-"] .focus-card.primary-focus .muted {
  color: rgba(248, 244, 234, 0.66);
}

body[class*="book-"] .focus-card.primary-focus h2 {
  color: var(--stage-ink);
}

body[class*="book-"] .mini-metrics span {
  border-radius: 0;
  background: transparent;
}

body[class*="book-"] .primary-focus .mini-metrics span {
  border-color: rgba(248, 244, 234, 0.28);
  color: rgba(248, 244, 234, 0.76);
  background: transparent;
}

body[class*="book-"] .course-item,
body[class*="book-"] .practice-item,
body[class*="book-"] .paper-card,
body[class*="book-"] .question,
body[class*="book-"] .review-card,
body[class*="book-"] .history-row,
body[class*="book-"] .empty-state,
body[class*="book-"] .user-row,
body[class*="book-"] .answer-card {
  border-radius: 0;
  box-shadow: none;
}

body[class*="book-"] .course-item,
body[class*="book-"] .practice-item,
body[class*="book-"] .paper-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

body[class*="book-"] .course-item::after,
body[class*="book-"] .practice-item::after,
body[class*="book-"] .paper-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 24px;
  height: 2px;
  color: var(--stage-accent);
  background: var(--stage-accent);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body[class*="book-"] .course-item:hover,
body[class*="book-"] .practice-item:hover,
body[class*="book-"] .paper-card:hover {
  border-color: var(--stage-accent);
  transform: translateY(-4px);
}

body[class*="book-"] .course-item:hover::after,
body[class*="book-"] .practice-item:hover::after,
body[class*="book-"] .paper-card:hover::after,
body[class*="book-"] .course-item.active::after,
body[class*="book-"] .practice-item.active::after,
body[class*="book-"] .paper-card.active::after {
  opacity: 1;
  transform: translate(0, 0);
}

body[class*="book-"] .course-item.active,
body[class*="book-"] .practice-item.active,
body[class*="book-"] .paper-card.active {
  border-color: var(--stage-accent);
  border-left-width: 7px;
  background: var(--accent-soft, #f5ebdc);
}

body[class*="book-"] .tag,
body[class*="book-"] .sync-indicator {
  border-radius: 0;
}

body[class*="book-"] .primary-button,
body[class*="book-"] .secondary-button,
body[class*="book-"] .ghost-button,
body[class*="book-"] .icon-button,
body[class*="book-"] .segment {
  min-height: 44px;
  border-radius: 2px;
  letter-spacing: 0;
}

body[class*="book-"] .primary-button {
  color: var(--stage-ink);
  background: var(--stage-secondary);
  box-shadow: 5px 5px 0 var(--stage-accent);
}

body[class*="book-"] .primary-button:hover {
  background: var(--stage);
  box-shadow: 2px 2px 0 var(--stage-accent);
  transform: translate(3px, 3px);
}

body[class*="book-"] .secondary-button,
body[class*="book-"] .ghost-button {
  color: var(--stage-secondary);
  border-color: rgba(18, 28, 35, 0.25);
  background: transparent;
}

body[class*="book-"] .secondary-button:hover,
body[class*="book-"] .ghost-button:hover {
  color: var(--stage-secondary);
  border-color: var(--stage-accent);
  background: rgba(255, 255, 255, 0.62);
}

body[class*="book-"] .hero-band .primary-button {
  color: var(--stage);
  background: var(--stage-ink);
  box-shadow: 5px 5px 0 var(--stage-accent);
}

body[class*="book-"] .hero-band .primary-button:hover {
  color: var(--stage);
  background: var(--stage-accent);
}

body[class*="book-"] .hero-band .secondary-button,
body[class*="book-"] .hero-band .ghost-button {
  color: var(--stage-ink);
  border-color: rgba(248, 244, 234, 0.38);
  background: transparent;
}

body[class*="book-"] .hero-band .secondary-button:hover,
body[class*="book-"] .hero-band .ghost-button:hover {
  color: var(--stage-ink);
  border-color: var(--stage-accent);
  background: rgba(248, 244, 234, 0.1);
}

body[class*="book-"] button > .lucide,
body[class*="book-"] a > .lucide,
body[class*="book-"] button > [data-lucide],
body[class*="book-"] a > [data-lucide] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

body[class*="book-"] .icon-button > .lucide,
body[class*="book-"] .icon-button > [data-lucide] {
  margin-right: 0;
}

body[class*="book-"] .brand-mark > .lucide,
body[class*="book-"] .brand-mark > [data-lucide] {
  width: 20px;
  height: 20px;
  margin-right: 0;
}

body[class*="book-"] .eyebrow,
body[class*="book-"] h1,
body[class*="book-"] h2,
body[class*="book-"] h3 {
  letter-spacing: 0;
}

body[class*="book-"] .quiz-panel,
body[class*="book-"] .lesson-section {
  border-radius: 0;
  box-shadow: none;
}

body[class*="book-"] .quiz-toolbar {
  padding-bottom: 22px;
  border-bottom-color: rgba(18, 28, 35, 0.16);
}

body[class*="book-"] .quiz-meter span,
body[class*="book-"] .progress-bar span {
  background: var(--stage-accent);
}

body[class*="book-"] .option {
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[class*="book-"] .option:hover {
  transform: translateX(4px);
}

body[class*="book-"] .modal {
  border-radius: 0;
}

body[class*="book-"] .modal-panel {
  border-top: 8px solid var(--stage-accent);
}

body[class*="book-"] .modal-close {
  border-radius: 0;
}

body[class*="book-"] .footer {
  border-top: 1px solid rgba(18, 28, 35, 0.14);
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preview-in {
  from { opacity: 0; transform: translate(26px, 18px) rotate(8deg); }
  to { opacity: 1; transform: rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="book-"] .hero-grid > div:first-child,
  body[class*="book-"] .book-preview {
    animation: none;
  }

  body[class*="book-"] *,
  body[class*="book-"] *::before,
  body[class*="book-"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  body[class*="book-"] .topbar {
    grid-template-columns: 1fr;
  }

  body[class*="book-"] .nav {
    justify-content: flex-start;
  }

  body[class*="book-"] .hero-grid {
    min-height: auto;
    padding: 78px 0 62px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  body[class*="book-"] .book-preview {
    width: min(520px, 100%);
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --content: min(100% - 32px, 1280px);
  }

  body[class*="book-"] {
    overflow-x: hidden;
  }

  body[class*="book-"] .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[class*="book-"] .brand {
    min-width: 0;
  }

  body[class*="book-"] .top-actions {
    min-width: 0;
    gap: 4px;
  }

  body[class*="book-"] .top-actions .button-small {
    padding-right: 8px;
    padding-left: 8px;
  }

  body[class*="book-"] .top-actions .button-small > .lucide {
    margin-right: 4px;
  }

  body[class*="book-"] .hero-grid {
    padding-top: 60px;
  }

  body[class*="book-"] .hero-grid h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1;
  }

  body[class*="book-"] .hero-grid p {
    font-size: 15px;
  }

  body[class*="book-"] .book-preview {
    padding: 14px 14px 18px;
    box-shadow: 8px 8px 0 var(--stage-accent);
  }

  body[class*="book-"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="book-"] .stat {
    min-height: 112px;
    padding: 18px 14px;
  }

  body[class*="book-"] .stat:nth-child(2) {
    border-right: 0;
  }

  body[class*="book-"] .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(18, 28, 35, 0.14);
  }

  body[class*="book-"] .stat strong {
    font-size: 26px;
  }

  body[class*="book-"] .panel-pad,
  body[class*="book-"] .focus-card {
    padding: 20px;
  }

  body[class*="book-"] .hero-actions > * {
    flex: 1 1 100%;
  }
}
