:root {
  --ui-background: #f8fafc;
  --ui-foreground: #0f172a;
  --ui-card: #ffffff;
  --ui-card-foreground: #0f172a;
  --ui-muted: #f1f5f9;
  --ui-muted-foreground: #64748b;
  --ui-border: #e2e8f0;
  --ui-input: #cbd5e1;
  --ui-ring: #2563eb;
  --ui-primary: #0f172a;
  --ui-primary-foreground: #ffffff;
  --ui-destructive: #e11d48;
  --ui-destructive-soft: #fff1f2;
  --ui-radius: 0.5rem;
  --ui-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.04);
}

.night-mode {
  --ui-background: #020617;
  --ui-foreground: #f8fafc;
  --ui-card: #0f172a;
  --ui-card-foreground: #f8fafc;
  --ui-muted: #111827;
  --ui-muted-foreground: #cbd5e1;
  --ui-border: #334155;
  --ui-input: #334155;
  --ui-ring: #38bdf8;
  --ui-primary: #38bdf8;
  --ui-primary-foreground: #082f49;
  --ui-destructive: #fda4af;
  --ui-destructive-soft: rgb(127 29 29 / 0.42);
  --ui-shadow-sm: 0 10px 24px rgb(2 6 23 / 0.26);
}

.ui-page-title {
  margin-bottom: 1.25rem;
}

.ui-page-title a {
  font-size: 0.875rem;
  color: var(--ui-muted-foreground);
}

.ui-page-title h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ui-foreground);
}

.ui-page-title p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ui-muted-foreground);
}

.ui-panel {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-card);
  padding: 1rem;
  color: var(--ui-card-foreground);
  box-shadow: var(--ui-shadow-sm);
}

.ui-panel-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ui-foreground);
}

.ui-panel-description {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ui-muted-foreground);
}

.ui-btn {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--ui-radius);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ui-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.ui-btn-primary {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: var(--ui-primary-foreground);
}

.ui-btn-primary:hover {
  background: #1e293b;
}

.ui-btn-secondary {
  border-color: var(--ui-border);
  background: var(--ui-card);
  color: var(--ui-foreground);
}

.ui-btn-secondary:hover {
  background: var(--ui-muted);
}

.ui-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ui-muted-foreground);
}

.ui-btn-ghost:hover {
  background: var(--ui-muted);
  color: var(--ui-foreground);
}

.ui-btn-danger {
  border-color: transparent;
  background: transparent;
  color: var(--ui-destructive);
}

.ui-btn-danger:hover {
  background: var(--ui-destructive-soft);
}

.ui-field {
  display: grid;
  gap: 0.5rem;
}

.ui-label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ui-muted-foreground);
}

.ui-input {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid var(--ui-input);
  border-radius: var(--ui-radius);
  background: var(--ui-card);
  padding: 0.625rem 0.75rem;
  color: var(--ui-foreground);
  font-size: 0.9375rem;
}

.ui-input:focus {
  outline: none;
  border-color: var(--ui-ring);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.16);
}

.ui-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-card);
  padding: 2rem;
  color: var(--ui-muted-foreground);
  text-align: center;
  font-size: 0.875rem;
}

.ui-link {
  color: var(--ui-muted-foreground);
}

.ui-link:hover {
  color: var(--ui-foreground);
}

.account-menu[open] summary {
  border-color: #0f172a;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.contact-menu[open] summary {
  border-color: #0f172a;
}

.contact-menu summary::-webkit-details-marker {
  display: none;
}

.theme-menu[open] summary {
  border-color: #0f172a;
}

.theme-menu summary::-webkit-details-marker {
  display: none;
}

.theme-option {
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: #475569;
}

.theme-option.is-active,
.theme-option:hover {
  background: #0f172a;
  color: #ffffff;
}

.contact-qr {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgb(15 23 42 / 0.12);
}

.usage-guide {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.usage-guide-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.usage-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.usage-guide-close {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.usage-guide-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.875rem;
}

.section-heading h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.section-heading p {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.section-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.mobile-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 42vw);
  gap: 0.75rem;
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
  padding: 0 0.125rem 0.25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-row::-webkit-scrollbar {
  display: none;
}

.mobile-row.is-expanded {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow-x: visible;
  padding-bottom: 0;
}

.category-row {
  grid-auto-columns: minmax(8.5rem, 42%);
}

.book-row {
  grid-auto-columns: minmax(6.75rem, 31%);
}

.category-pill,
.book-pill,
.empty-pill {
  min-height: 4.75rem;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem;
  color: #334155;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.category-pill.is-active,
.book-pill.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.empty-pill,
.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: #64748b;
  text-align: center;
}

.mode-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.mode-button-dark {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.card-display {
  display: grid;
  gap: 1rem;
}

.card-display-section {
  display: grid;
  gap: 0.625rem;
}

.card-display-section h3 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.card-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.card-group {
  display: grid;
  gap: 0.625rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem;
}

.card-group-title {
  display: block;
  border-radius: 0.5rem;
  background: #0f172a;
  padding: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
}

.card-group-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.card-group-children .memory-card {
  min-height: 4.25rem;
  width: 50%;
}

.card-group-children .memory-card-button {
  min-height: 3.25rem;
  padding: 0.5rem;
}

.card-group-children .memory-card-button .text-lg {
  font-size: 0.875rem;
  line-height: 1.35;
}

.card-group-children .memory-card-footer {
  padding: 0.45rem 0.5rem;
}

.child-card-link,
.child-card-empty {
  width: 50%;
  min-height: 3rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #334155;
}

.child-card-empty {
  display: flex;
  align-items: center;
  color: #94a3b8;
}

.study-list {
  display: grid;
  gap: 1rem;
}

.study-card,
.exam-panel,
.answer-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
}

.memory-card {
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.memory-card-button {
  display: flex;
  min-height: 7.5rem;
  width: 100%;
  flex: 1;
  flex-direction: column;
  padding: 0.75rem;
}

.memory-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding: 0.75rem 1rem;
}

.form-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem;
}

.new-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.compact-form-panel {
  padding: 0.875rem;
}

.compact-form-panel .field-input {
  min-height: 2.5rem;
}

.compact-form-panel .primary-button {
  min-height: 2.5rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.field-input {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}

.card-content-input {
  min-height: 18rem;
}

.primary-button {
  min-height: 2.75rem;
  border-radius: 0.5rem;
  background: #0f172a;
  padding: 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.show-body {
  min-height: 100vh;
  background: #020617;
}

.show-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 1rem;
}

.show-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.show-back,
.show-edit {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.show-card {
  margin: auto 2.25rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.25rem;
}

.show-nav {
  position: fixed;
  top: 50%;
  display: flex;
  width: 2.5rem;
  height: 4rem;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
}

.show-nav-left {
  left: 0.5rem;
}

.show-nav-right {
  right: 0.5rem;
}

.show-nav.is-disabled {
  opacity: 0.28;
}

.markdown-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.markdown-body > * + * {
  margin-top: 0.85rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.markdown-body h1 {
  font-size: 1.5rem;
}

.markdown-body h2 {
  font-size: 1.25rem;
}

.markdown-body h3 {
  font-size: 1.125rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.35rem;
}

.markdown-body ul {
  list-style: disc;
}

.markdown-body ol {
  list-style: decimal;
}

.markdown-body blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.9rem;
  color: #475569;
}

.markdown-body code {
  border-radius: 0.25rem;
  background: #f1f5f9;
  padding: 0.1rem 0.3rem;
  font-size: 0.92em;
}

.markdown-body pre {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #0f172a;
  padding: 0.9rem;
  color: #e2e8f0;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.markdown-body a {
  color: #2563eb;
  text-decoration: underline;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.55rem;
}

.markdown-body-dark h1,
.markdown-body-dark h2,
.markdown-body-dark h3 {
  color: #ffffff;
}

.markdown-body-dark blockquote {
  border-left-color: #64748b;
  color: #cbd5e1;
}

.markdown-body-dark code {
  background: rgb(255 255 255 / 0.12);
}

@media (min-width: 640px) {
  .new-top-grid {
    gap: 1rem;
  }

  .usage-guide-list {
    gap: 0.45rem;
  }

  .mobile-row {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-row.is-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-row {
    grid-auto-columns: calc((100% - 2.25rem) / 4);
  }

  .book-row {
    grid-auto-columns: calc((100% - 3.75rem) / 6);
  }

  .category-pill,
  .book-pill,
  .empty-pill {
    min-height: 5.5rem;
    padding: 0.9rem;
  }

  .card-grid {
    gap: 0.875rem;
  }

  .memory-card {
    min-height: 11.5rem;
  }

  .card-group-children .memory-card {
    min-height: 5.75rem;
  }

  .memory-card-button {
    min-height: 8.75rem;
    padding: 1rem;
  }

  .card-group-children .memory-card-button {
    min-height: 4.375rem;
    padding: 0.625rem;
  }

  .show-card {
    margin-left: auto;
    margin-right: auto;
    width: min(760px, calc(100vw - 8rem));
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .card-grid,
  .card-group-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .book-row.is-expanded {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.night-mode body {
  background: #020617;
  color: #e2e8f0;
}

.night-mode header {
  border-color: #1e293b;
  background: rgb(15 23 42 / 0.94);
}

.night-mode main {
  color: #e2e8f0;
}

.night-mode a,
.night-mode h1,
.night-mode h2,
.night-mode h3,
.night-mode .text-slate-950,
.night-mode .text-slate-900,
.night-mode .text-slate-800,
.night-mode .text-slate-700 {
  color: #f8fafc;
}

.night-mode .text-slate-600,
.night-mode .text-slate-500,
.night-mode .field-label,
.night-mode .section-heading p,
.night-mode .usage-guide-list,
.night-mode .markdown-body blockquote {
  color: #cbd5e1;
}

.night-mode .section-heading h2 {
  color: #f8fafc;
}

.night-mode .text-slate-400 {
  color: #94a3b8;
}

.night-mode .bg-white,
.night-mode .usage-guide,
.night-mode .category-pill,
.night-mode .book-pill,
.night-mode .empty-pill,
.night-mode .study-card,
.night-mode .exam-panel,
.night-mode .answer-panel,
.night-mode .form-panel,
.night-mode .memory-card,
.night-mode .card-group,
.night-mode .contact-menu div,
.night-mode .account-menu div,
.night-mode section.bg-white,
.night-mode div.bg-white,
.night-mode a.bg-white {
  background: #0f172a;
}

.night-mode .border-slate-200,
.night-mode .border-slate-300,
.night-mode .usage-guide,
.night-mode .category-pill,
.night-mode .book-pill,
.night-mode .empty-pill,
.night-mode .study-card,
.night-mode .exam-panel,
.night-mode .answer-panel,
.night-mode .form-panel,
.night-mode .memory-card,
.night-mode .card-group,
.night-mode .child-card-link,
.night-mode .child-card-empty,
.night-mode .field-input,
.night-mode .mode-button,
.night-mode .usage-guide-close,
.night-mode .theme-menu summary,
.night-mode .contact-menu summary,
.night-mode .account-menu summary {
  border-color: #334155;
}

.night-mode .category-pill.is-active,
.night-mode .book-pill.is-active,
.night-mode .mode-button-dark,
.night-mode .primary-button,
.night-mode a.bg-slate-950,
.night-mode button.bg-slate-950 {
  border-color: #38bdf8;
  background: #38bdf8;
  color: #082f49;
}

.night-mode .mode-button,
.night-mode .usage-guide-close,
.night-mode .theme-menu summary,
.night-mode .contact-menu summary,
.night-mode .account-menu summary,
.night-mode .theme-option,
.night-mode .field-input,
.night-mode input,
.night-mode textarea,
.night-mode select,
.night-mode button.border-slate-300,
.night-mode a.border-slate-300 {
  background: #111827;
  color: #f8fafc;
}

.night-mode .theme-option.is-active,
.night-mode .theme-option:hover {
  background: #38bdf8;
  color: #082f49;
}

.night-mode input::placeholder,
.night-mode textarea::placeholder {
  color: #94a3b8;
}

.night-mode .memory-card-footer {
  border-color: #1e293b;
}

.night-mode .memory-card.bg-white,
.night-mode a.memory-card {
  border-color: #475569;
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgb(2 6 23 / 0.34);
}

.night-mode .memory-card.bg-slate-950 {
  border-color: #0ea5e9;
  background: #020617;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgb(14 165 233 / 0.16);
}

.night-mode .memory-card-button {
  background: transparent;
}

.night-mode .card-display-section h3 {
  color: #f8fafc;
}

.night-mode .card-group-title {
  background: #38bdf8;
  color: #082f49;
}

.night-mode .child-card-link,
.night-mode .child-card-empty {
  background: #111827;
  color: #e2e8f0;
}

.night-mode .memory-card-footer {
  background: rgb(15 23 42 / 0.82);
}

.night-mode .markdown-body h1,
.night-mode .markdown-body h2,
.night-mode .markdown-body h3 {
  color: #f8fafc;
}

.night-mode .markdown-body code {
  background: rgb(255 255 255 / 0.1);
}

.night-mode .markdown-body pre {
  background: #020617;
}

.night-mode .markdown-body th,
.night-mode .markdown-body td {
  border-color: #475569;
}

.night-mode .markdown-body a {
  color: #7dd3fc;
}

.night-mode .bg-emerald-50 {
  background: rgb(6 78 59 / 0.72);
}

.night-mode .text-emerald-700 {
  color: #a7f3d0;
}

.night-mode .bg-amber-50 {
  background: rgb(120 53 15 / 0.72);
}

.night-mode .text-amber-800 {
  color: #fde68a;
}

.night-mode .text-rose-600 {
  color: #fda4af;
}

.depth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.depth-tabs a {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
}

.depth-tabs a.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.chapter-tree {
  display: grid;
  margin-top: 1.25rem;
}

.chapter-node {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.875rem;
}

.chapter-node-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.chapter-root-node {
  border-left-color: #0f172a;
}

.chapter-node h3,
.chapter-node h4 {
  margin-top: 0.35rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
}

.chapter-node h2 {
  margin-top: 0.45rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.chapter-node h3 {
  font-size: 1.125rem;
}

.chapter-node h4 {
  font-size: 1rem;
}

.chapter-node .markdown-body {
  margin-top: 0.5rem;
  font-size: 0.98rem;
}

.outline-lines {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.outline-line {
  border-radius: 0.375rem;
  background: #f8fafc;
  padding: 0.45rem 0.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #334155;
}

.chapter-children {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-left: 0.875rem;
}

.level-one-node {
  border-left-color: #94a3b8;
}

.level-two-node {
  border-left-color: #e2e8f0;
}

.night-mode .depth-tabs a {
  border-color: #334155;
  color: #cbd5e1;
}

.night-mode .depth-tabs a.is-active {
  border-color: #38bdf8;
  background: #38bdf8;
  color: #082f49;
}

.night-mode .chapter-node {
  border-left-color: #475569;
}

.night-mode .chapter-root-node {
  border-left-color: #38bdf8;
}

.night-mode .level-one-node {
  border-left-color: #64748b;
}

.night-mode .level-two-node {
  border-left-color: #334155;
}

.night-mode .chapter-node h2,
.night-mode .chapter-node h3,
.night-mode .chapter-node h4 {
  color: #f8fafc;
}

.night-mode .outline-line {
  background: #111827;
  color: #e2e8f0;
}
