* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-page: #f5f4ed;
  --bg-surface: #faf9f5;
  --bg-surface-strong: #ffffff;
  --bg-muted: #e8e6dc;
  --bg-dark: #30302e;
  --text-primary: #141413;
  --text-secondary: #5e5d59;
  --text-tertiary: #87867f;
  --text-on-dark: #b0aea5;
  --accent-primary: #c96442;
  --accent-secondary: #d97757;
  --accent-danger: #b53333;
  --focus-ring: #3898ec;
  --border-subtle: #f0eee6;
  --border-strong: #e8e6dc;
  --ring-color: #d1cfc5;
  --ring-deep: #c2c0b6;
  --shadow-ring: 0 0 0 1px var(--ring-color);
  --shadow-ring-deep: 0 0 0 1px var(--ring-deep);
  --shadow-soft: 0 4px 24px rgba(20, 20, 19, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --sidebar-width: 300px;
  --content-width: 1080px;
  --prose-width: 980px;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-page);
  color: var(--text-primary);
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-page);
}

.sidebar {
  width: var(--sidebar-width);
  min-width: 220px;
  max-width: 500px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ring);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  height: 100%;
  transition: width 0.3s ease, min-width 0.3s ease, box-shadow 0.2s ease;
}

.sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right: none;
  box-shadow: none;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed nav {
  display: none;
}

.resizer {
  width: 6px;
  background: transparent;
  cursor: col-resize;
  flex-shrink: 0;
  position: relative;
}

.resizer::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 2px;
  width: 2px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.15s ease;
}

.resizer:hover::before,
.resizer.dragging::before {
  background: var(--accent-primary);
}

.sidebar-header {
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}


.sidebar-brand {
  min-width: 0;
}

.sidebar-brand h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-primary);
}

.sidebar-brand p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.menu-toggle {
  background: var(--bg-muted);
  border: none;
  box-shadow: var(--shadow-ring);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

.menu-toggle:hover {
  background: var(--bg-surface-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-ring-deep);
}

.sidebar-toggle {
  flex-shrink: 0;
}

.content-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: none;
  background: var(--bg-surface-strong);
  box-shadow: var(--shadow-ring), var(--shadow-soft);
}

.content-toggle.visible {
  display: flex !important;
}

nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 18px;
}

.nav-status {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.book-group + .book-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.book-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 12px);
  margin: 0 6px 6px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.book-group-title:hover {
  background: var(--bg-muted);
}

.book-group-caret {
  display: inline-block;
  width: 12px;
  flex: 0 0 12px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  transition: transform 0.15s ease;
}

.book-group.expanded .book-group-caret {
  transform: rotate(90deg);
}

.book-group-content {
  display: none;
}

.book-group.expanded .book-group-content {
  display: block;
}

.book-section + .book-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.book-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: calc(100% - 12px);
  margin: 4px 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.book-title:hover {
  background: var(--bg-muted);
}

.book-caret {
  display: inline-block;
  width: 12px;
  flex: 0 0 12px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  transition: transform 0.15s ease;
}

.book-section.expanded .book-caret {
  transform: rotate(90deg);
}

.book-name {
  flex: 1;
}

.book-author {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.book-files {
  display: none;
  padding: 2px 0 6px 14px;
}

.book-section.expanded .book-files {
  display: block;
}

.file-link {
  display: block;
  margin: 3px 6px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.file-link:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.file-link.active {
  background: var(--bg-muted);
  border-left-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-ring);
}

/* Headphone marker for items that have a pre-rendered MP3 available */
.file-link.has-audio {
  position: relative;
}

.file-link.has-audio::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c96442'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9v5.5A2.5 2.5 0 0 0 5.5 20H8v-7H5v-1a7 7 0 0 1 14 0v1h-3v7h2.5a2.5 2.5 0 0 0 2.5-2.5V12a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
}

.file-link.has-audio:hover::after,
.file-link.has-audio.active::after {
  opacity: 1;
}

.file-link.has-audio {
  padding-right: 32px;
}

.content {
  flex: 1;
  overflow-y: auto;
  min-width: 300px;
  padding: 16px 36px 56px 28px;
}

.welcome,
.content-message {
  max-width: min(760px, 100%);
  margin: 64px 0 0;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
  padding: 48px 32px;
}

.welcome h1,
.content-message-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 500;
  color: var(--text-primary);
}

.welcome p,
.content-message-detail,
.content-message-meta,
.loading {
  color: var(--text-secondary);
}

.welcome p,
.content-message-detail {
  margin-top: 14px;
  font-size: 1.05rem;
}

.content-message-meta {
  margin-top: 14px;
  font-size: 0.92rem;
}

.content-message-error .content-message-title {
  color: var(--accent-danger);
}

.loading {
  max-width: 260px;
  margin: 96px auto 0;
  text-align: center;
  padding: 18px 20px;
  border-radius: 999px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-ring);
}

.toolbar {
  max-width: var(--content-width);
  margin: 0 0 40px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(250, 249, 245, 0.84);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ring);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 20px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.toolbar-group,
.toolbar-actions,
.font-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-label {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.font-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 6px;
  background: var(--border-strong);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.font-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-surface-strong);
  box-shadow: var(--shadow-ring);
  border-radius: 50%;
  cursor: pointer;
}

.font-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-surface-strong);
  box-shadow: var(--shadow-ring);
  border-radius: 50%;
  cursor: pointer;
}

.font-size-display {
  min-width: 48px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.font-btn,
.toolbar-btn {
  background: var(--bg-muted);
  border: none;
  box-shadow: var(--shadow-ring);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
}

.font-btn:hover,
.toolbar-btn:hover {
  background: var(--bg-surface-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-ring-deep);
}

.markdown-body {
  max-width: var(--prose-width);
  margin: 0;
  font-size: 1.06em;
  color: var(--text-primary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-primary);
}

.markdown-body h1 {
  font-size: 2.85em;
  line-height: 1.1;
  margin: 0 0 26px;
}

.markdown-body > :first-child {
  margin-top: 10px;
}

.markdown-body h2 {
  font-size: 2em;
  line-height: 1.2;
  margin: 52px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.markdown-body h3 {
  font-size: 1.55em;
  line-height: 1.25;
  margin: 34px 0 14px;
  color: #3d3d3a;
}

.markdown-body h4 {
  font-size: 1.22em;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--text-secondary);
}

.markdown-body p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--text-primary);
}

.markdown-body a {
  color: var(--accent-primary);
  text-decoration: none;
}

.markdown-body a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.markdown-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-body em {
  font-style: italic;
  color: var(--text-secondary);
}

.markdown-body blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-ring);
}

.markdown-body blockquote p {
  margin: 0 0 10px;
  color: var(--text-secondary);
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-muted);
  color: #6f3d2d;
  padding: 2px 6px;
  border-radius: 6px;
}

.markdown-body pre {
  margin: 22px 0;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ring);
  overflow-x: auto;
  font-size: 0.92em;
}

.markdown-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.markdown-body .g6-graph {
  margin: 22px 0;
  padding: 12px 12px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ring);
  overflow: hidden;
}

.markdown-body .g6-graph-canvas {
  width: 100%;
  min-height: 420px;
}

.markdown-body .polyphony-graph .g6-graph-canvas {
  min-height: 440px;
}

.markdown-body .g6-graph-note {
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.markdown-body .g6-graph-error {
  margin: 22px 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid #e7c7bf;
  background: #fff6f4;
}

.markdown-body .g6-graph-error-title {
  font-weight: 600;
  color: #8a2f23;
  margin-bottom: 6px;
}

.markdown-body .g6-graph-error-detail {
  color: #7a433a;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .markdown-body .g6-graph {
    padding: 8px;
  }

  .markdown-body .g6-graph-canvas {
    min-height: 360px;
  }
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.markdown-body li {
  margin: 8px 0;
  line-height: 1.75;
}

.markdown-body li > ul,
.markdown-body li > ol {
  margin: 8px 0 0;
}

.markdown-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ring);
}

.markdown-body th,
.markdown-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.markdown-body th + th,
.markdown-body td + td {
  border-left: 1px solid var(--border-subtle);
}

.markdown-body th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-body tr:last-child td {
  border-bottom: none;
}

.markdown-body tr:nth-child(even) td {
  background: rgba(232, 230, 220, 0.28);
}

.markdown-body hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--border-strong);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: #d6d2c7;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c3bfb4;
}

.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 12px;
  z-index: 200;
  transform: translateY(calc(100% + 12px));
  transition: transform 0.3s ease;
  pointer-events: none;
}

.audio-player.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.audio-player-inner {
  max-width: 920px;
  margin: 0 auto;
}

.audio-surface {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid #3a3a37;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(20, 20, 19, 0.16);
  padding: 14px 20px 14px;
}

.audio-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.audio-time {
  font-size: 0.78rem;
  color: var(--text-on-dark);
  opacity: 0.85;
  min-width: 45px;
  font-variant-numeric: tabular-nums;
}

.audio-time.current {
  text-align: right;
}

.audio-progress {
  flex: 1;
  height: 6px;
  background: rgba(176, 174, 165, 0.18);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-bar {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 999px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-progress:hover .audio-progress-bar {
  background: var(--accent-secondary);
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.audio-btn {
  background: rgba(250, 249, 245, 0.08);
  border: none;
  color: var(--text-on-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-btn:hover {
  background: rgba(250, 249, 245, 0.14);
  color: #faf9f5;
}

.audio-btn.play-pause {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: #faf9f5;
  box-shadow: 0 0 0 1px rgba(201, 100, 66, 0.45);
}

.audio-btn.play-pause:hover {
  background: var(--accent-secondary);
}

.audio-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.audio-btn.play-pause svg {
  width: 24px;
  height: 24px;
}

.audio-speed {
  font-size: 0.8rem;
  min-width: 52px;
  text-align: center;
  color: var(--text-on-dark);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: rgba(250, 249, 245, 0.08);
  border: none;
}

.audio-speed:hover {
  background: rgba(250, 249, 245, 0.14);
}

.audio-current-text {
  font-size: 0.84rem;
  color: var(--text-on-dark);
  opacity: 0.88;
  text-align: center;
  margin-top: 10px;
  padding: 0 8px;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.audio-versions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.audio-version-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-on-dark);
}

.audio-version-select {
  background: rgba(250, 249, 245, 0.08);
  border: 1px solid rgba(176, 174, 165, 0.2);
  color: #faf9f5;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 200px;
  max-width: 320px;
  color-scheme: dark;
}

.audio-version-select:hover {
  border-color: rgba(201, 100, 66, 0.4);
}

.audio-version-select:focus {
  outline: none;
  border-color: var(--focus-ring);
}

.audio-version-select option {
  background: var(--bg-dark);
  color: #faf9f5;
}

.audio-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-on-dark);
  opacity: 0.75;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  line-height: 1;
}

.audio-close:hover {
  opacity: 1;
}

.markdown-body .reading-current {
  background: rgba(201, 100, 66, 0.1);
  border-radius: 6px;
  box-shadow: inset -4px 0 0 rgba(201, 100, 66, 0.55);
}

.listen-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #faf9f5;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 100, 66, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 150;
}

.listen-fab:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px) scale(1.03);
}

.listen-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.listen-fab.hidden {
  display: none;
}

.content.player-active {
  padding-bottom: 170px;
}

.audio-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
}

.audio-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(176, 174, 165, 0.22);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: audio-spin 0.8s linear infinite;
}

@keyframes audio-spin {
  to {
    transform: rotate(360deg);
  }
}

.audio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .content {
    padding: 28px 24px 48px;
  }

  .toolbar {
    top: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 100;
    box-shadow: var(--shadow-soft), var(--shadow-ring);
  }

  .sidebar:not(.collapsed) {
    width: min(82vw, 320px) !important;
  }

  .content {
    padding: 78px 20px 36px;
  }

  .welcome,
  .content-message {
    margin-top: 24px;
    padding: 36px 24px;
  }

  .welcome h1,
  .content-message-title,
  .markdown-body h1 {
    font-size: 2.1rem;
  }

  .markdown-body h2 {
    font-size: 1.65rem;
  }

  .audio-player {
    padding: 0 12px 12px;
  }

  .audio-surface {
    padding: 16px 16px 18px;
    border-radius: 18px;
  }

  .audio-controls {
    gap: 14px;
  }

  .audio-versions {
    margin-top: 10px;
  }

  .audio-version-select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .listen-fab {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 560px) {
  .toolbar {
    align-items: stretch;
  }

  .toolbar-group,
  .toolbar-actions,
  .font-slider-container {
    width: 100%;
    justify-content: space-between;
  }

  .font-slider {
    flex: 1;
  }

  .markdown-body {
    font-size: 1em;
  }

  .markdown-body h1 {
    font-size: 1.85rem;
  }

  .markdown-body h2 {
    font-size: 1.45rem;
  }
}