/* ===== 写文工作室 主样式 ===== */
:root {
  /* Light 主题 */
  --bg-primary: #f5f4f0;
  --bg-secondary: #ffffff;
  --bg-sidebar: #f0ede8;
  --bg-card: #ffffff;
  --bg-hover: #e8e5e0;
  --bg-active: #ddd9d2;

  --text-primary: #1a1a18;
  --text-secondary: #4a4a45;
  --text-muted: #8a8880;
  --text-placeholder: #b8b5b0;

  --border-color: #ddd9d2;
  --border-focus: #5a7a9f;

  --accent: #4a7ba7;
  --accent-hover: #3d6a94;
  --accent-light: #e8f0f8;

  --danger: #c0392b;
  --danger-light: #fdf0ee;
  --success: #27ae60;
  --warning: #e67e22;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --sidebar-width: 260px;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-writing: 'Georgia', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
  --font-size-base: 15px;
  --line-height-writing: 2.0;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1e;
  --bg-secondary: #242428;
  --bg-sidebar: #1e1e22;
  --bg-card: #2a2a2e;
  --bg-hover: #2e2e34;
  --bg-active: #35353c;

  --text-primary: #e8e6e0;
  --text-secondary: #b0ada6;
  --text-muted: #706d66;
  --text-placeholder: #50504a;

  --border-color: #38383e;
  --border-focus: #6a9abf;

  --accent: #6a9abf;
  --accent-hover: #7aaacc;
  --accent-light: #1e2a35;

  --danger: #e05c50;
  --danger-light: #2a1e1e;
  --success: #4abf7a;
  --warning: #f0a030;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); }
body {
  font-family: var(--font-ui);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.9); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-icon { padding: 6px; border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--bg-hover); }

/* 表单 */
.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--border-focus); }
.form-input::placeholder { color: var(--text-placeholder); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}
.tag-writing { background: var(--accent-light); color: var(--accent); }
.tag-completed { background: #e8f5ee; color: var(--success); }
.tag-paused { background: #fdf3e7; color: var(--warning); }
[data-theme="dark"] .tag-completed { background: #1a2e22; }
[data-theme="dark"] .tag-paused { background: #2a1e0e; }

/* 分隔线 */
.divider { border: none; border-top: 1px solid var(--border-color); margin: 12px 0; }

/* 加载状态 */
.loading-spin {
  width: 20px; height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast 提示 */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.2s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 480px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}
.empty-state svg { opacity: 0.4; }
.empty-state p { font-size: 15px; }
.empty-state small { font-size: 13px; }

/* ===== 应用布局 ===== */
#app { display: flex; height: 100vh; overflow: hidden; }

/* 左侧导航栏 */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sidebar-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sidebar-section-title {
  padding: 8px 16px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.1s;
  user-select: none;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-item.active { background: var(--bg-active); color: var(--text-primary); font-weight: 500; }
.sidebar-item svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-item.active svg { opacity: 1; }
.sidebar-item .item-count {
  margin-left: auto;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 4px;
  align-items: center;
}

/* 主内容区 */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page { display: none; flex: 1; overflow: hidden; }
.page.active { display: flex; flex-direction: column; }

/* 顶部栏 */
.topbar {
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.topbar-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ===== 书架页 ===== */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.book-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.book-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.book-cover {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
}
.book-cover-text {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-info {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
}
.book-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.book-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  min-height: 36px;
}

/* 颜色选择器 */
.color-picker-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--text-primary); }

/* ===== 书籍详情（章节列表）页 ===== */
.book-detail-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}
.chapter-list-panel {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
}
.chapter-list-header {
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chapter-list-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.chapter-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.chapter-item {
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.1s;
  border-left: 3px solid transparent;
}
.chapter-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.chapter-item.active {
  background: var(--accent-light);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}
.chapter-item .chapter-num {
  font-size: 11px;
  color: var(--text-muted);
  width: 24px;
  flex-shrink: 0;
}
.chapter-item .chapter-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item .chapter-words { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* 拖拽排序 */
.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: -2px;
  padding: 0 4px 0 0;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}
.drag-handle:active { cursor: grabbing; }
.chapter-item.dragging {
  opacity: 0.4;
}
.chapter-item.drag-over-top {
  border-top: 2px solid var(--accent);
}
.chapter-item.drag-over-bottom {
  border-bottom: 2px solid var(--accent);
}

/* ===== 编辑器 ===== */
.editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-secondary);
}
.editor-toolbar {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.editor-title-input {
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  padding: 2px 4px;
  border-radius: 3px;
}
.editor-title-input:focus { background: var(--bg-hover); }
.toolbar-wordcount {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.editor-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.editor-status.saving { color: var(--accent); }
.editor-status.saved { color: var(--success); }

/* 符号栏 */
.editor-symbols {
  padding: 6px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.symbol-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
  white-space: nowrap;
}
.symbol-btn {
  padding: 2px 5px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1.5;
  white-space: nowrap;
}
.symbol-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.symbol-btn:active { background: var(--bg-active); }
.symbol-sep {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  margin: 0 4px;
}
.symbol-btn-custom {
  color: var(--accent);
  font-weight: 500;
}
.symbol-btn-custom:hover { background: var(--accent-light); }
.symbol-btn-add {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  padding: 1px 6px;
}
.symbol-btn-add:hover { background: var(--accent-light); color: var(--accent-hover); }

.editor-writing-area {
  flex: 1;
  overflow-y: auto;
  padding: 40px 60px;
  display: flex;
  justify-content: center;
}
.editor-content {
  width: 100%;
  max-width: 720px;
}
#writing-textarea {
  width: 100%;
  min-height: calc(100vh - 200px);
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-writing);
  font-size: 17px;
  line-height: var(--line-height-writing);
  caret-color: var(--accent);
  padding: 0;
}
#writing-textarea::placeholder { color: var(--text-placeholder); }

/* 字数统计栏 */
.wordcount-bar {
  padding: 6px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.wordcount-bar span { display: flex; align-items: center; gap: 4px; }

/* ===== 大纲/设定页 ===== */
.outline-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}
.outline-list-panel {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
}
.outline-categories {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  flex: 1;
}
.outline-category-label {
  padding: 6px 10px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 4px;
}
.outline-item {
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.outline-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.outline-item.active { background: var(--accent-light); color: var(--accent); font-weight: 500; }
.outline-item .item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outline-editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.outline-editor-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.outline-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
#outline-content-textarea {
  width: 100%;
  min-height: 400px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== 统计页 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-sub { font-size: 12px; color: var(--text-muted); }

/* 书籍统计列表 */
.book-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.book-stats-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.book-stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.book-stats-table tr:hover td { background: var(--bg-hover); }
.book-stats-table .progress-bar {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.book-stats-table .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== 搜索 ===== */
.search-modal {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.search-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.search-input {
  padding-right: 60px !important;
  font-size: 15px !important;
}
.search-shortcut-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}
.search-results {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.search-empty-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
  font-size: 13.5px;
}
.search-loading {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.search-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}
.search-section-title:not(:first-child) {
  margin-top: 14px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}
.search-result-item:hover {
  background: var(--bg-hover);
}
.search-result-type {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.type-book { background: var(--accent-light); color: var(--accent); }
.type-chapter { background: #e8f5ee; color: var(--success); }
.type-outline { background: #fdf3e7; color: var(--warning); font-size: 13px; }
[data-theme="dark"] .type-chapter { background: #1a2e22; }
[data-theme="dark"] .type-outline { background: #2a1e0e; }
.search-result-body {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-snippet {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.search-highlight {
  background: #fde68a;
  color: #92400e;
  padding: 1px 2px;
  border-radius: 2px;
}
[data-theme="dark"] .search-highlight {
  background: #78350f;
  color: #fde68a;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sidebar { width: 200px; }
  .editor-writing-area { padding: 24px 20px; }
  #writing-textarea { font-size: 16px; }
  .bookshelf-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
