:root {
  --canvas: #f4f1ea;
  --surface: #fffdf8;
  --surface-muted: #eee9df;
  --ink: #252621;
  --muted: #706f68;
  --faint: #77746c;
  --border: #d8d2c7;
  --border-strong: #aaa296;
  --accent: #7a3e35;
  --accent-hover: #633129;
  --accent-soft: #efe2dd;
  --success: #3d6b56;
  --warning: #9a6a23;
  --danger: #a33f35;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 36px rgba(48, 40, 31, 0.12);
  --sidebar-width: 248px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-reading: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[hidden] { display: none !important; }

html { background: var(--canvas); color: var(--ink); font-family: var(--font-ui); }

body { margin: 0; min-width: 320px; }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

:focus-visible { outline: 3px solid rgba(122, 62, 53, 0.32); outline-offset: 2px; }

.skip-link {
  background: var(--ink); color: white; left: 12px; padding: 9px 12px; position: fixed; top: -60px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: #ebe6dc;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 16px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.brand { align-items: center; display: flex; gap: 12px; padding: 0 8px 24px; }
.brand-mark { align-items: center; background: var(--ink); border-radius: 9px; display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.brand-mark svg { fill: #f4efe4; height: 22px; width: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--font-reading); font-size: 17px; letter-spacing: 0.08em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: 0.15em; margin-top: 2px; text-transform: uppercase; }
.icon-button.sidebar-close { display: none; margin-left: auto; }

.side-nav { display: grid; gap: 4px; }
.nav-item, .box-item {
  align-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; display: flex; text-align: left; width: 100%;
}
.nav-item { gap: 11px; padding: 10px 11px; }
.nav-item span:first-child { color: var(--muted); font-size: 18px; width: 18px; }
.nav-item:hover, .nav-item.is-active { background: rgba(255,255,255,.65); }
.nav-item.is-active { color: var(--accent); font-weight: 650; }

.sidebar-section { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.sidebar-heading { align-items: center; color: var(--muted); display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; letter-spacing: .12em; padding: 0 7px 8px; text-transform: uppercase; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 7px; cursor: pointer; display: inline-flex; font-size: 20px; height: 32px; justify-content: center; width: 32px; }
.icon-button:hover { background: rgba(90, 79, 68, .09); }
.box-list { display: grid; gap: 3px; max-height: calc(100vh - 400px); overflow: auto; }
.box-item { gap: 9px; justify-content: space-between; padding: 9px 10px; }
.box-item:hover, .box-item.is-active { background: rgba(255,255,255,.68); }
.box-item.is-active { box-shadow: inset 3px 0 var(--accent); }
.box-item-main { min-width: 0; }
.box-item strong, .box-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-item strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.box-item small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.box-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.source-card { align-items: center; background: rgba(255,255,255,.48); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 10px; margin-top: auto; padding: 11px; }
.source-card strong, .source-card small { display: block; }
.source-card strong { font-size: 11px; }
.source-card small { color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; margin-top: 3px; overflow-wrap: anywhere; }
.status-dot { background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(61,107,86,.12); height: 7px; width: 7px; }

.workspace { min-width: 0; }
.topbar { align-items: center; backdrop-filter: blur(12px); background: rgba(244,241,234,.88); border-bottom: 1px solid var(--border); display: flex; gap: 16px; height: 72px; padding: 0 32px; position: sticky; top: 0; z-index: 15; }
.mobile-menu { display: none; }
.search-field { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex: 1; gap: 9px; max-width: 660px; padding: 0 10px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field svg { fill: none; height: 18px; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.7; width: 18px; }
.search-field input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: 0; padding: 11px 0; width: 100%; }
.search-field kbd { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 5px; color: var(--faint); font-size: 10px; padding: 3px 6px; white-space: nowrap; }

.primary-button, .secondary-button, .upload-cover-button {
  align-items: center; border: 1px solid transparent; border-radius: 9px; cursor: pointer; display: inline-flex; font-weight: 650; gap: 6px; justify-content: center; min-height: 39px; padding: 8px 14px; text-decoration: none;
}
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-hover); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button, .upload-cover-button { background: var(--surface); border-color: var(--border); }
.secondary-button:hover, .upload-cover-button:hover { border-color: var(--border-strong); }

main { margin: 0 auto; max-width: 1500px; padding: 34px 36px 64px; }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; margin: 0 0 7px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--font-reading); font-size: clamp(27px, 3vw, 39px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 7px; }
.page-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.heading-actions { align-items: center; display: flex; gap: 10px; }
.filter-summary { color: var(--muted); font-size: 12px; }

.metrics { border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 34px; }
.metric { padding: 18px 20px 17px 0; }
.metric + .metric { border-left: 1px solid var(--border); padding-left: 24px; }
.metric span, .metric small { color: var(--muted); display: block; font-size: 11px; }
.metric strong { display: block; font-family: var(--font-reading); font-size: 29px; font-weight: 500; margin: 5px 0 3px; }
.metric-review strong { color: var(--warning); }

.shelves { display: grid; gap: 38px; }
.shelf { min-width: 0; }
.shelf-header { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 14px; }
.shelf-title-row { align-items: baseline; display: flex; gap: 10px; }
.shelf h2 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: .02em; margin: 0; }
.shelf-label { color: var(--muted); font-size: 13px; }
.shelf-meta { color: var(--muted); font-size: 11px; }
.book-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); position: relative; }
.book-grid::after { background: #c9bda8; border-bottom: 2px solid #b1a38e; border-radius: 3px; bottom: 83px; content: ""; height: 5px; left: 0; position: absolute; right: 0; z-index: -1; }

.book-card { background: transparent; border: 0; cursor: pointer; min-width: 0; padding: 0; text-align: left; }
.book-cover { aspect-ratio: 2 / 3; background: #ded8ce; border-radius: 3px 7px 7px 3px; box-shadow: 0 8px 16px rgba(45,38,30,.13), inset 2px 0 rgba(255,255,255,.28); display: flex; overflow: hidden; position: relative; transform-origin: bottom center; transition: transform 150ms ease, box-shadow 150ms ease; }
.book-card:hover .book-cover { box-shadow: 0 12px 23px rgba(45,38,30,.2); transform: translateY(-3px); }
.book-cover img { height: 100%; object-fit: cover; width: 100%; }
.fallback-cover { align-items: center; background: var(--cover-bg, #4d5962); color: white; display: flex; flex-direction: column; height: 100%; justify-content: space-between; padding: 17% 12% 11%; text-align: center; width: 100%; }
.fallback-cover::before { border-top: 1px solid rgba(255,255,255,.45); content: ""; position: absolute; top: 12%; width: 55%; }
.fallback-cover .fallback-title { font-family: var(--font-reading); font-size: clamp(14px, 1.4vw, 19px); font-weight: 600; line-height: 1.35; }
.fallback-cover .fallback-author { border-top: 1px solid rgba(255,255,255,.32); font-size: 9px; line-height: 1.35; padding-top: 9px; width: 100%; }
.cover-source-badge { background: rgba(28,28,25,.82); border-radius: 4px; bottom: 6px; color: white; font-size: 8px; left: 6px; padding: 3px 5px; position: absolute; }
.review-badge { background: var(--warning); border-radius: 50%; color: white; font-size: 10px; height: 20px; line-height: 20px; position: absolute; right: 6px; text-align: center; top: 6px; width: 20px; }
.book-info { min-height: 68px; padding-top: 10px; }
.book-title { display: -webkit-box; font-family: var(--font-reading); font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.book-author { color: var(--muted); display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volume-pill { color: var(--accent); font-size: 9px; margin-left: 4px; }

.inventory-shelf { max-width: 980px; }
.inventory-list { background: rgba(255, 253, 248, .72); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.inventory-row { align-items: center; border-bottom: 1px solid var(--border); display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 58px; padding: 10px 14px; }
.inventory-row:last-child { border-bottom: 0; }
.inventory-position { color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-variant-numeric: tabular-nums; }
.inventory-copy { min-width: 0; }
.inventory-copy strong, .inventory-copy small { display: block; }
.inventory-copy strong { font-family: var(--font-reading); font-size: 15px; font-weight: 600; }
.inventory-copy small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.inventory-quantity { background: var(--surface-muted); border-radius: 999px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; padding: 5px 9px; white-space: nowrap; }

.empty-state { align-items: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; padding: 60px 24px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state p { color: var(--muted); }
.empty-illustration { align-items: end; display: flex; gap: 5px; height: 74px; margin-bottom: 20px; }
.empty-illustration span { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 2px 5px 3px 2px; height: 62px; width: 31px; }
.empty-illustration span:nth-child(2) { background: var(--accent-soft); height: 72px; }
.empty-illustration span:nth-child(3) { height: 55px; transform: rotate(-7deg); }

.dialog { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); max-height: min(92vh, 900px); padding: 0; width: calc(100% - 32px); }
.dialog::backdrop { backdrop-filter: blur(3px); background: rgba(35,32,28,.38); }
.dialog-small { max-width: 520px; }
.dialog-medium { max-width: 820px; }
.dialog-large { max-width: 1120px; }
.dialog-header { align-items: flex-start; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 20px 24px 17px; }
.dialog-header h2 { font-family: var(--font-reading); font-size: 23px; font-weight: 600; margin: 0; }
.dialog-footer { align-items: center; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; padding: 15px 24px; }
.split-footer { justify-content: space-between; }
.split-footer > div { display: flex; gap: 8px; }

.book-editor-layout { display: grid; gap: 24px; grid-template-columns: 150px 1fr; padding: 24px; }
.editor-cover-stack { min-width: 0; }
.editor-cover { aspect-ratio: 2 / 3; background: var(--surface-muted); border: 1px dashed var(--border-strong); border-radius: 4px 8px 8px 4px; color: var(--muted); cursor: pointer; display: block; overflow: hidden; padding: 0; width: 100%; }
.editor-cover:hover { border-color: var(--accent); color: var(--accent); }
.editor-cover:disabled { border-style: solid; color: var(--muted); cursor: default; }
.editor-cover:disabled:hover { border-color: var(--border-strong); }
.editor-cover img { height: 100%; object-fit: cover; width: 100%; }
.editor-cover-source { color: var(--accent); display: block; font-size: 10px; line-height: 1.35; margin-top: 8px; text-align: center; text-underline-offset: 2px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { color: var(--muted); display: grid; font-size: 11px; font-weight: 650; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .cover-search-bar input {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); min-width: 0; padding: 10px 11px; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus, .cover-search-bar input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.is-read-only .field input:disabled,
.is-read-only .field select:disabled,
.is-read-only .field textarea:disabled {
  background: var(--surface-muted); color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink);
}
.danger-link, .text-button { background: transparent; border: 0; cursor: pointer; font-weight: 650; padding: 8px; }
.danger-link { color: var(--danger); }
.text-button { color: var(--accent); }

.import-step { overflow: auto; }
.import-copy { display: flex; gap: 13px; padding: 22px 24px 0; }
.import-copy h3 { font-family: var(--font-reading); font-size: 18px; margin-bottom: 5px; }
.import-copy p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.step-number { align-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--accent); display: flex; flex: 0 0 auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; height: 28px; justify-content: center; width: 28px; }
.upload-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); padding: 22px 24px 26px; }
.dropzone { align-items: center; background: #f0ece4; border: 1px dashed var(--border-strong); border-radius: var(--radius); cursor: pointer; display: flex; height: clamp(240px, 42vh, 360px); justify-content: center; min-height: 240px; overflow: hidden; position: relative; }
.dropzone.is-dragging { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.dropzone:focus-within, .upload-cover-button:focus-within { outline: 3px solid rgba(122, 62, 53, 0.32); outline-offset: 2px; }
.dropzone img { height: 100%; object-fit: contain; width: 100%; }
#upload-prompt { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 7px; text-align: center; }
#upload-prompt svg { fill: none; height: 48px; stroke: var(--accent); stroke-width: 1.5; width: 48px; }
#upload-prompt strong { color: var(--ink); }
#upload-prompt small { font-size: 10px; }
.upload-fields { display: flex; flex-direction: column; gap: 16px; }
.privacy-note { background: rgba(61,107,86,.08); border-radius: var(--radius-sm); color: var(--success); font-size: 11px; line-height: 1.5; margin-top: auto; padding: 11px; }
.privacy-note span { font-weight: 800; margin-right: 4px; }
.review-layout { display: grid; gap: 18px; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); padding: 20px 24px 24px; }
.review-photo-wrap { align-items: center; background: #e9e4db; border-radius: var(--radius); display: flex; min-height: 420px; overflow: hidden; }
.review-photo-wrap img { max-height: 560px; object-fit: contain; width: 100%; }
.candidate-panel { border: 1px solid var(--border); border-radius: var(--radius); max-height: 560px; overflow: auto; }
.candidate-heading { align-items: center; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 10px 12px; position: sticky; top: 0; z-index: 2; }
.candidate-list { display: grid; }
.candidate-row { align-items: start; border-bottom: 1px solid var(--border); display: grid; gap: 8px; grid-template-columns: 24px 30px minmax(0, 1fr) minmax(0, .72fr) 28px; padding: 10px; }
.candidate-row:last-child { border-bottom: 0; }
.candidate-position { color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; padding-top: 10px; }
.candidate-row input[type="text"] { border: 1px solid var(--border); border-radius: 7px; min-width: 0; padding: 8px; width: 100%; }
.candidate-row small { color: var(--faint); display: block; font-size: 9px; grid-column: 3 / 5; overflow-wrap: anywhere; }
.remove-candidate { background: transparent; border: 0; color: var(--faint); cursor: pointer; font-size: 18px; padding-top: 4px; }

.cover-search-bar { display: flex; gap: 8px; padding: 20px 24px 10px; }
.cover-search-bar input { flex: 1; }
.provider-note { color: var(--muted); font-size: 11px; margin: 0; padding: 0 24px 14px; }
.cover-results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); max-height: 540px; min-height: 180px; overflow: auto; padding: 6px 24px 24px; }
.cover-candidate-card { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 7px; }
.cover-candidate { background: transparent; border: 0; cursor: pointer; padding: 0; text-align: left; width: 100%; }
.cover-candidate:hover { background: var(--surface-muted); border-color: var(--border); }
.cover-candidate img { aspect-ratio: 2 / 3; background: var(--surface-muted); border-radius: 3px; object-fit: cover; width: 100%; }
.cover-candidate strong, .cover-candidate small { display: block; }
.cover-candidate strong { font-family: var(--font-reading); font-size: 12px; line-height: 1.35; margin-top: 7px; }
.cover-candidate small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.cover-result-source { color: var(--accent); display: inline-block; font-size: 9px; margin-top: 7px; text-underline-offset: 2px; }
.cover-empty { align-items: center; color: var(--muted); display: flex; grid-column: 1 / -1; justify-content: center; text-align: center; }

.data-options { display: grid; gap: 10px; padding: 22px 24px 12px; }
.export-option { align-items: center; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; display: grid; gap: 4px 12px; grid-template-columns: 1fr auto; padding: 14px; text-decoration: none; }
.export-option:hover { border-color: var(--accent); }
.export-option span { color: var(--muted); font-size: 11px; }
.export-option b { color: var(--accent); font-size: 11px; grid-column: 2; grid-row: 1 / 3; }
.data-path { color: var(--muted); font-size: 11px; padding: 0 24px 22px; }
.data-path code { background: var(--surface-muted); border-radius: 4px; padding: 3px 5px; }

.toast-region { bottom: 20px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); position: fixed; right: 20px; z-index: 100; }
.toast { background: var(--ink); border-radius: 9px; box-shadow: var(--shadow); color: white; font-size: 12px; line-height: 1.45; padding: 11px 14px; }
.toast.is-error { background: var(--danger); }

.visually-hidden-file {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skeleton { animation: pulse 1.3s ease-in-out infinite; background: var(--surface-muted); border-radius: 7px; min-height: 280px; }
@keyframes pulse { 50% { opacity: .55; } }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { box-shadow: var(--shadow); height: 100vh; left: 0; position: fixed; transform: translateX(-105%); transition: transform 180ms ease; width: var(--sidebar-width); }
  .sidebar.is-open { transform: translateX(0); }
  .icon-button.sidebar-close { display: inline-flex; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 18px; }
  main { padding: 28px 22px 52px; }
  .upload-layout { grid-template-columns: 1fr; }
  .review-layout { grid-template-columns: 1fr; }
  .review-photo-wrap { min-height: 260px; }
}

@media (max-width: 680px) {
  .topbar { gap: 9px; }
  .topbar > .primary-button { font-size: 0; min-width: 40px; padding: 8px; }
  .topbar > .primary-button span { font-size: 20px; }
  .search-field kbd { display: none; }
  main { padding-left: 16px; padding-right: 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .heading-actions { width: 100%; }
  .heading-actions .secondary-button { margin-left: auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--border); }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .book-grid { gap: 18px 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-grid::after { display: none; }
  .book-editor-layout { grid-template-columns: 95px 1fr; padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .upload-layout { padding: 18px; }
  .dropzone { height: 240px; min-height: 200px; }
  .review-layout { padding: 16px; }
  .candidate-row { grid-template-columns: 22px 26px minmax(0, 1fr) 26px; }
  .candidate-row .candidate-author { grid-column: 3; }
  .candidate-row small { grid-column: 3; }
  .cover-search-bar { flex-wrap: wrap; }
  .cover-search-bar input { flex-basis: 100%; }
  .inventory-shelf .shelf-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .inventory-shelf .shelf-title-row { flex-wrap: wrap; }
  .inventory-row { grid-template-columns: 30px minmax(0, 1fr) auto; padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 420px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-editor-layout { grid-template-columns: 1fr; }
  .editor-cover { max-width: 125px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
