:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --panel: #fffefa;
  --ink: #263b33;
  --muted: #6c7266;
  --line: #dedfd4;
  --green: #244e40;
  --soft: #eeeee4;
  --accent: #a86c48;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --reader-paper: #fffefa;
  --reader-ink: #343c34;
  --reader-muted: #7d8075;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, .button, input, select, textarea { max-width: 100%; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 10px 17px; background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
button:hover, .button:hover { background: var(--soft); border-color: #b5bdb0; }
button.primary, .button.primary { background: var(--green); border-color: var(--green); color: #fffdf5; }
button.primary:hover, .button.primary:hover { background: #193e30; border-color: #193e30; }
button:disabled { opacity: .48; cursor: not-allowed; }
button.danger { color: #a3473b; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #bb8c42; outline-offset: 4px; }
#main:focus { outline: none; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.45; letter-spacing: .035em; }
h2 { margin: 30px 0 18px; font-size: 25px; line-height: 1.5; }
h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
p { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: #d7e2cf; color: #23382c; }
.site-header, .site-nav, #main, .site-footer { width: min(100% - 96px, 1184px); margin-inline: auto; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 118px; }
.header-forum-return { position: absolute; top: 36px; left: 5vw; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
@media (max-width: 1500px) { .header-forum-return { position: static; margin: 8px 20px -6px; min-height: 36px; } }
.header-brand { flex-shrink: 0; }
.title { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.title img { display: block; flex: none; object-fit: contain; }
.title > span { display: flex; flex-direction: column; gap: 4px; }
.brand-caption { color: var(--muted); font-size: 10px; letter-spacing: .17em; }
.brand-name { font-family: var(--serif); font-size: 29px; font-weight: 700; line-height: 1.2; letter-spacing: .12em; }
.header-motto { margin: 6px 0 0 26px; color: #8b8d7f; font-family: var(--serif); font-size: 14px; letter-spacing: .11em; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 23px; min-width: 0; }
#identity { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.header-write { white-space: nowrap; }
.nav-wrap { border-block: 1px solid var(--line); }
.site-nav { display: flex; align-items: stretch; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; padding: 18px 0 17px; color: #777c70; font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 650; }
.site-nav a[aria-current="page"]::after { position: absolute; content: ""; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--green); }
.site-nav .back-to-forum { margin-left: auto; font-size: 12px; color: #888a7e; }
.site-nav .back-to-forum span { margin-left: 7px; }
#main { padding-block: 44px 64px; min-height: 60vh; }
#main > section { min-width: 0; }
#notice:empty { display: none; }
#notice { position: sticky; top: 0; z-index: 20; width: 100%; padding: 14px max(24px, calc((100vw - 1184px) / 2)); border-bottom: 1px solid #d2dbc9; background: #e7ecdd; color: #354a34; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-block: 28px 36px; color: #929488; font-size: 12px; }
.site-footer > div { display: flex; align-items: baseline; gap: 20px; }
.site-footer .footer-brand { color: var(--green); font-family: var(--serif); font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: .08em; }
.site-footer p { margin: 0; }
.site-footer p span { margin-inline: 7px; }
.site-footer a { color: #6f796b; }
.eyebrow { display: block; margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 650; line-height: 1.6; letter-spacing: .18em; }
.page-heading { margin-bottom: 32px; }
.page-heading > p { max-width: 680px; margin: 0; font-size: 14px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 35px 0 22px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading > p, .section-heading > a, .section-heading > span { margin: 0; color: var(--muted); font-size: 12px; }
.discovery-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; min-height: 296px; padding: 28px 40px; border: 1px solid #e0e0d2; background: #efefe3; overflow: hidden; }
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-copy h1 { text-wrap: balance; max-width: 560px; margin-bottom: 10px; font-size: 40px; line-height: 1.35; letter-spacing: .04em; }
.hero-copy > p:not(.eyebrow) { max-width: 465px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-copy > .eyebrow { margin: 0 0 10px; }
.hero-copy .toolbar { margin: 0; }
.hero-aside > div:not(.book-cover) { min-width: 0; max-width: 220px; padding-left: 15px; }
.hero-aside h2 { margin: 0 0 13px; font-size: 25px; line-height: 1.55; }
.hero-aside p:not(.eyebrow) { margin: 0 0 18px; font-size: 12px; line-height: 1.8; }
.hero-aside .eyebrow { font-size: 10px; letter-spacing: .08em; }
.text-link { font-size: 12px; text-decoration-thickness: 1px; }
.hero-aside { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; align-self: stretch; min-width: 0; min-height: 210px; }
.hero-aside::before { content: ""; position: absolute; width: 240px; aspect-ratio: 1; border: 1px solid #d7d9c6; border-radius: 50%; }
.hero-aside::after { content: ""; position: absolute; bottom: 3px; height: 10px; width: 290px; max-width: 90%; border-radius: 50%; background: #d1d5bd; filter: blur(12px); }
.hero-aside > * { position: relative; z-index: 1; }
.hero-aside .book-cover { flex: none; width: 126px; min-height: 180px; box-shadow: 8px 12px 14px #3c49351c; }
.hero-aside .book-cover:nth-child(1) { transform: rotate(-8deg); }
.hero-aside .book-cover:nth-child(2) { transform: rotate(7deg) translateY(-10px); }
.hero-books { display: flex; align-items: center; gap: 12px; }
.hero-note { color: #7b7f6f; font-family: var(--serif); font-size: 14px; line-height: 1.9; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.toolbar > * { min-width: 0; }
.toolbar p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card, fieldset { margin: 16px 0; padding: 23px 25px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; min-width: 0; }
.card h2, .card h3 { margin-top: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--green); text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card img.cover { width: 76px; height: 108px; object-fit: cover; float: right; margin-left: 18px; border-radius: 2px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.catalog-grid > .paged-list { display: contents; }
.catalog-grid > button, .catalog-grid > .empty-state { grid-column: 1 / -1; }
.book-card { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 19px; padding: 26px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; min-width: 0; }
.book-card > a, .collection-feature > a { display: block; text-decoration: none; }
.book-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 106px; min-height: 150px; aspect-ratio: 0.7; padding: 20px 14px 15px 17px; overflow: hidden; border-radius: 1px 3px 3px 1px; background: #244d41; color: #eee9d6; text-decoration: none; box-shadow: inset 4px 0 4px #0a1e2529, inset -2px 0 1px #ffffff1a, 3px 5px 8px #29392b14; }
.book-cover::before { content: ""; position: absolute; inset: 8px 8px 8px 10px; border: 1px solid #d7d6bb47; pointer-events: none; }
.book-cover::after { content: ""; position: absolute; width: 125px; height: 125px; border: 1px solid #d7d6bb47; border-radius: 50%; right: -58px; bottom: -20px; pointer-events: none; }
.book-cover[data-kind="short"] { background: #ad6d55; color: #fff0db; }
.book-cover[data-kind="poem"] { background: #7b8063; color: #fff6db; }
.book-cover[data-kind="collection"] { background: #344a4c; color: #efdfb7; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-kicker { position: relative; z-index: 1; flex: none; font-size: 9px; letter-spacing: .16em; line-height: 1.5; opacity: .75; }
.cover-title { position: relative; z-index: 1; flex-shrink: 0; font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card .cover-title { font-size: 18px; }
.cover-author { position: relative; z-index: 1; flex: none; margin-top: 8px; font-size: 10px; line-height: 1.6; letter-spacing: .1em; opacity: .8; overflow-wrap: anywhere; }
.book-info { min-width: 0; padding-top: 2px; }
.book-info h2, .book-info h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.book-info h2 a, .book-info h3 a { text-decoration: none; color: var(--ink); }
.book-info > a { color: var(--muted); font-size: 12px; text-decoration: none; }
.book-info > p { margin: 10px 0; font-size: 12px; line-height: 1.8; }
.book-info .book-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.book-info > .book-meta:first-child { margin: 0 0 9px; gap: 5px; }
.book-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.book-actions .button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.book-actions p { margin: 0; font-size: 10px; }
.book-info .toolbar { gap: 6px; margin: 10px 0; }
.badge { display: inline-block; max-width: 100%; padding: 3px 7px; border: 1px solid #d9dfcf; border-radius: 3px; color: #6c795f; background: #eff2e9; font-size: 11px; font-weight: 400; line-height: 1.4; vertical-align: middle; }
.collection-feature { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 36px; padding: 32px 38px; border: 1px solid var(--line); background: #f0eee3; }
.collection-feature + .collection-feature { margin-top: 20px; }
.collection-feature > a > .book-cover { width: 144px; min-height: 200px; padding: 29px 24px; }
.collection-feature > a > .book-cover .cover-title { font-size: 33px; letter-spacing: .18em; }
.collection-feature h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 31px; }
.collection-feature h3 a { color: var(--ink); text-decoration: none; }
.collection-feature .collection-quote { font-family: var(--serif); color: #666e5d; font-size: 18px; }
.collection-feature h2 { margin: 0 0 10px; font-size: 31px; }
.collection-feature h2 a { text-decoration: none; }
.collection-feature p { max-width: 590px; color: var(--muted); font-size: 14px; }
.collection-feature .toolbar { margin-bottom: 0; }
.empty-state { grid-column: 1 / -1; width: 100%; padding: 45px 24px 48px; margin: 14px 0; border-block: 1px solid var(--line); text-align: center; }
.empty-state::before { content: ""; display: block; width: 37px; height: 47px; margin: 0 auto 23px; border: 1px solid #a5ad98; border-radius: 2px 5px 5px 2px; background: linear-gradient(90deg, transparent 6px, #a5ad9880 6px, #a5ad9880 7px, transparent 7px), repeating-linear-gradient(0deg, transparent 0 7px, #cdd3c260 7px 8px); box-shadow: 5px 4px 0 -1px var(--bg), 5px 4px 0 0 #b9c0ad; transform: rotate(-6deg); }
.empty-state h2, .empty-state h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.empty-state p { margin: 8px auto 20px; max-width: 440px; color: var(--muted); font-size: 13px; }
.empty-state .toolbar { justify-content: center; }
input, textarea, select { min-width: 0; padding: 12px 14px; border: 1px solid #d7dbce; border-radius: 4px; background: var(--panel); color: var(--ink); line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #999e8f; }
input:not([type="checkbox"]):not([type="file"]), textarea { width: 100%; }
input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
input[type="file"] { width: 100%; font-size: 13px; }
input[type="file"]::file-selector-button { padding: 6px 11px; margin-right: 12px; color: var(--green); background: var(--soft); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
label { display: block; margin: 20px 0; font-size: 13px; }
label > span { display: block; margin-bottom: 9px; color: #69745f; }
label.inline { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
form.search { display: flex; align-items: stretch; gap: 9px; padding: 20px 0; margin: 12px 0 0; border-bottom: 1px solid var(--line); }
form.search input { flex: 1; min-width: 0; background: transparent; }
form.search select { max-width: 170px; color: #6b7564; background: transparent; }
form.search button { padding-inline: 25px; }
.studio-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 28px 32px; margin: 24px 0 32px; border: 1px solid var(--line); background: #f0eee3; }
.studio-overview h2 { margin: 0 0 10px; font-size: 28px; }
.studio-overview p { margin-block: 0 10px; font-size: 13px; }
.studio-overview .toolbar { justify-content: flex-end; }
.studio-stat { padding: 23px 28px; border-right: 1px solid var(--line); }
.studio-stat:first-child { padding-left: 0; }
.studio-stat:last-child { border-right: 0; }
.studio-stat strong { display: block; margin-bottom: 5px; font-family: Georgia, var(--serif); font-size: 31px; font-weight: 400; }
.studio-stat span, .studio-stat p { margin: 0; color: var(--muted); font-size: 12px; }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.draft-card { padding: 24px; margin: 0; border-left: 3px solid #a8b79b; }
.draft-card h3 { font-family: var(--serif); font-size: 22px; }
.draft-card p { font-size: 13px; }
.draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.work-detail .page-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 34px; align-items: start; padding: 32px; border: 1px solid var(--line); background: #f0eee3; }
.work-detail .page-heading > .book-cover { grid-row: 1 / 4; width: 150px; min-height: 214px; padding: 26px 22px; }
.work-detail .page-heading > .book-cover .cover-title { font-size: 26px; }
.work-detail .page-heading > .eyebrow { align-self: end; margin-bottom: 14px; }
.work-detail .page-heading > h1 { margin: 0 0 14px; font-size: 35px; }
.work-detail > .button + .button { margin-left: 10px; }
.work-detail .paged-list > p { padding: 17px 5px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.work-detail .paged-list > p > a { color: var(--ink); text-decoration: none; font-size: 15px; margin-right: 14px; }
body[data-view="create"] #main > section, body[data-view="profile"] #main > section { max-width: 740px; margin-inline: auto; }
body[data-view="create"] #main > section > .primary, body[data-view="profile"] #main > section > .primary { margin-top: 8px; }
.reader-layout { max-width: 920px; margin: 0 auto; }
.reader-title { max-width: 760px; margin: 20px auto 30px; text-align: center; }
.reader-title h1 { font-size: clamp(28px, 3vw, 38px); }
.reader-title p { color: var(--reader-muted); font-size: 13px; }
.reader-surface { padding: 55px 64px; border: 1px solid var(--line); background: var(--reader-paper); color: var(--reader-ink); }
.reader { max-width: 38em; margin-inline: auto; font-family: var(--serif); color: var(--reader-ink); font-size: var(--reader-font-size, var(--reader-size, 20px)); line-height: var(--reader-line, 1.95); letter-spacing: .025em; }
.reader p, .reader li, .reader blockquote { white-space: pre-wrap; overflow-wrap: anywhere; line-height: inherit; }
.reader p { margin: 1.25em 0; }
.reader p:first-child { margin-top: 0; }
.reader h1, .reader h2, .reader h3 { color: var(--reader-ink); line-height: 1.65; }
.reader h2 { margin-top: 2em; font-size: 1.35em; }
.reader img, .evidence img { display: block; max-width: 100%; height: auto; margin: 18px auto; }
.reader blockquote { margin-inline: 0; border-left: 2px solid #9baf8e; padding-left: 23px; color: var(--reader-muted); }
.reader figure { margin: 30px 0; }
.reader figcaption { font-family: var(--sans); font-size: 12px; color: var(--reader-muted); text-align: center; }
.reader .reading-block { scroll-margin-top: 30px; }
.reader-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; margin: 22px 0; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.reader-tools label { margin: 0; flex: 1; min-width: 105px; }
.reader-tools label > span { color: var(--reader-muted); font-size: 11px; }
.reader-tools select, .reader-tools input { width: 100%; }
.reader-tools > summary { width: 100%; color: var(--muted); font-size: 13px; }
.reader-settings { flex: 1; margin: 0; }
.reader-settings[open] { display: block; }
.reader-settings label { display: inline-block; vertical-align: top; width: calc((100% - 24px) / 3); }
.reader-settings label + label { margin-left: 12px; }
.reader-settings summary { padding: 8px 0 12px; }
.reader-tools > button { align-self: flex-start; }
.reader-progress { display: block; width: 100%; height: 3px; margin: 0 0 28px; border: 0; appearance: none; }
.reader-progress::-webkit-progress-bar { background: var(--line); }
.reader-progress::-webkit-progress-value { background: var(--green); }
.reader-progress::-moz-progress-bar { background: var(--green); }
.reader-save-status { color: var(--reader-muted); text-align: center; font-size: 12px; }
body[data-view="read"] .site-header { min-height: 94px; }
body[data-view="read"] .header-motto { display: none; }
body[data-view="read"] #main { padding-top: 28px; }
body.reader-focus .platform-header, body.reader-focus .nav-wrap, body.reader-focus .site-footer, body.writing-focus .platform-header, body.writing-focus .nav-wrap, body.writing-focus .site-footer { display: none; }
body.reader-focus #main, body.writing-focus #main { padding-top: 24px; }
body[data-reader-theme="sepia"] { --reader-paper: #eee2c8; --reader-ink: #594d38; --reader-muted: #8a785b; }
body[data-reader-theme="dark"] { --reader-paper: #242b26; --reader-ink: #d3d5c9; --reader-muted: #a3ab9c; }
body[data-view="read"][data-reader-theme="dark"] { --bg: #1b221e; --panel: #29312a; --ink: #d3d5c9; --muted: #a2ab9b; --line: #424c40; --green: #bbd0a9; --soft: #333c31; --accent: #c8aa79; color-scheme: dark; background: var(--bg); color: var(--ink); }
body[data-view="read"][data-reader-theme="dark"] .primary { color: #233525; }
body[data-view="read"][data-reader-theme="dark"] .primary:hover { color: #fff; }
.editor-workspace { max-width: 940px; margin: 0 auto; padding-bottom: 130px; }
body.writing-focus .block-editor > .toolbar:first-child { display: none; }
body.writing-focus .run > label:first-child > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.editor-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 17px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.editor-status p { margin: 0; }
.editor-actions { position: sticky; bottom: 16px; z-index: 5; padding: 14px 18px; border: 1px solid #cbd2c1; background: var(--panel); box-shadow: 0 7px 25px #263b3310; border-radius: 5px; }
.block-editor { margin: 22px 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.block-editor > .toolbar:first-child { padding-bottom: 16px; margin-top: 0; border-bottom: 1px solid var(--line); }
.block-editor > .toolbar:first-child > strong { margin-right: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.block-editor button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.block-editor .run textarea { min-height: 210px; padding: 21px 22px; border-color: #e1e3d9; font-family: var(--serif); font-size: 18px; line-height: 1.95; background: #fffefa; }
.run { padding-bottom: 20px; margin: 16px 0; border-bottom: 1px dashed var(--line); }
.run:last-child { border-bottom: 0; }
.run .toolbar { margin: 10px 0; gap: 9px 16px; }
.run .toolbar label { font-size: 12px; }
.run label { margin-block: 14px; }
.run input[type="text"] { font-size: 12px; }
details { margin: 18px 0; }
details summary { cursor: pointer; padding: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sticky { position: sticky; bottom: 16px; z-index: 4; padding: 14px 18px; background: var(--panel); border: 1px solid #cbd2c1; border-radius: 5px; box-shadow: 0 7px 25px #263b3310; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare > * { min-width: 0; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.error { color: #a3473b; }
.evidence figure { margin: 20px 0; }
.evidence figcaption { color: var(--muted); font-size: 12px; line-height: 1.7; }
.evidence > textarea { margin-top: 20px; }
@media (max-width: 1050px) {
  .site-header, .site-nav, #main, .site-footer { width: calc(100% - 64px); }
  .header-motto { display: none; }
  .site-nav { gap: 26px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-hero { padding: 34px; gap: 18px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-aside .book-cover { width: 112px; min-height: 162px; }
  .site-footer { align-items: flex-start; }
  .site-footer > div { display: block; }
  .site-footer > div > span { display: block; margin-top: 8px; }
}
@media (max-width: 700px) {
  .site-header, .site-nav, #main, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 95px; gap: 15px; }
  .title { gap: 6px; }
  .title img { width: 41px; height: 41px; }
  .brand-caption { font-size: 8px; letter-spacing: .08em; }
  .brand-name { font-size: 24px; letter-spacing: .07em; }
  .header-actions { gap: 10px; }
  #identity { max-width: 80px; font-size: 11px; }
  .header-write { min-height: 36px; padding: 8px 10px; font-size: 12px; }
  .header-write span { display: none; }
  .site-nav { gap: 25px; overflow: auto; }
  .site-nav a { padding-block: 16px 15px; font-size: 13px; }
  .site-nav .back-to-forum { padding-right: 2px; }
  #main { padding-block: 28px 44px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading > p { font-size: 13px; }
  h1 { font-size: 31px; }
  h2 { font-size: 23px; }
  .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .discovery-hero { grid-template-columns: 1fr; min-height: auto; padding: 30px 25px 20px; gap: 20px; }
  .hero-copy h1 { font-size: 35px; line-height: 1.5; }
  .hero-copy > p:not(.eyebrow) { font-size: 13px; margin-block: 13px 20px; }
  .hero-aside { min-height: 192px; padding-bottom: 14px; }
  .hero-aside::before { width: 175px; }
  .hero-aside .book-cover { width: 95px; min-height: 139px; padding: 17px 13px; }
  .hero-aside .cover-title { font-size: 22px; }
  .hero-aside h2 { font-size: 22px; text-wrap: balance; }
  .hero-aside .cover-author { font-size: 9px; }
  .catalog-grid { gap: 0 24px; }
  .book-card { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding-block: 23px; }
  .book-cover { width: 88px; min-height: 145px; padding: 15px 11px 12px 13px; }
  .book-card .cover-title { font-size: 16px; }
  .book-card .cover-kicker { font-size: 8px; }
  .book-card .cover-author { font-size: 8px; margin-top: 6px; }
  .cover-title { font-size: 22px; }
  .book-info h2, .book-info h3 { font-size: 20px; }
  .book-info > p { margin-block: 8px; }
  .book-meta { margin-top: 9px; }
  .collection-feature { grid-template-columns: 106px minmax(0, 1fr); gap: 24px; padding: 26px; }
  .collection-feature > a > .book-cover { width: 106px; min-height: 151px; padding: 23px 17px; }
  .collection-feature > a > .book-cover .cover-title { font-size: 28px; }
  .collection-feature h2 { font-size: 28px; }
  .collection-feature p { font-size: 12px; }
  .collection-feature .toolbar { gap: 8px; }
  .collection-feature .button { min-height: 37px; padding: 8px 11px; font-size: 12px; }
  .section-heading { gap: 12px; margin-top: 30px; }
  .section-heading > p, .section-heading > a, .section-heading > span { font-size: 11px; }
  .studio-overview { grid-template-columns: 1fr; gap: 8px; padding: 25px; }
  .studio-overview .toolbar { justify-content: flex-start; margin-bottom: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .work-detail .page-heading { grid-template-columns: 110px minmax(0, 1fr); column-gap: 24px; padding: 25px; }
  .work-detail .page-heading > .book-cover { width: 110px; min-height: 180px; padding: 22px 16px; }
  .work-detail .page-heading > .book-cover .cover-title { font-size: 20px; }
  .work-detail .page-heading > h1 { font-size: 28px; }
  .work-detail .page-heading > p:last-child { grid-column: 1 / -1; margin-top: 20px; }
  .studio-stat { padding: 20px 15px; }
  .studio-stat strong { font-size: 27px; }
  .card, fieldset { padding: 20px; }
  .reader-surface { padding: 32px 26px; }
  .reader-title { margin-block: 13px 24px; }
  .reader { font-size: var(--reader-font-size, var(--reader-size, 19px)); }
  .reader-tools { gap: 12px; padding: 15px; }
  .reader-tools label { min-width: 0; }
  .reader-tools:has(.reader-settings[open]) { align-items: flex-start; }
  .reader-tools:has(.reader-settings[open]) > button { width: 100%; }
  .reader-tools input, .reader-tools select { padding: 9px; }
  .block-editor { padding: 18px; }
  .block-editor > .toolbar:first-child { gap: 6px; }
  .block-editor .run textarea { padding: 17px; }
  .editor-actions, .sticky { bottom: 8px; padding: 12px; gap: 8px; }
  .editor-actions button, .sticky button { padding: 9px 11px; font-size: 12px; }
  .compare { grid-template-columns: 1fr; }
  .site-footer { display: block; padding-block: 24px; }
  .site-footer > div { display: flex; align-items: baseline; gap: 16px; }
  .site-footer > div > span { margin: 0; }
  .site-footer p { margin-top: 15px; font-size: 10px; }
}
@media (max-width: 520px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .header-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
  #identity { max-width: 105px; }
  .header-write { min-height: 30px; padding: 6px 10px; font-size: 11px; }
  .collection-feature { padding: 24px 20px; gap: 21px; grid-template-columns: 94px minmax(0, 1fr); }
  .collection-feature > a > .book-cover { width: 94px; min-height: 140px; padding-inline: 15px; }
  .collection-feature > a > .book-cover .cover-title { font-size: 26px; letter-spacing: .1em; white-space: nowrap; }
  .collection-feature .eyebrow { font-size: 9px; letter-spacing: .11em; }
  .collection-feature h2 { font-size: 27px; }
  .collection-feature p { line-height: 1.8; }
  form.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  form.search input { grid-column: 1 / -1; }
  form.search select { max-width: none; width: 100%; }
  form.search button { padding-inline: 28px; }
  .reader-layout { width: calc(100% + 40px); margin-inline: -20px; }
  .reader-layout > :not(.reader-surface) { margin-inline: 20px; }
  .reader-layout > .reader-progress { width: calc(100% - 40px); }
  .reader-surface { padding: 30px 23px; border-inline: 0; }
  .reader-title { padding-inline: 3px; }
  .reader-title h1 { font-size: 29px; }
  .reader-layout > .page-heading { margin-inline: 23px; }
  .empty-state { padding-inline: 15px; }
  .studio-stat { padding-inline: 12px; }
  .studio-stat span, .studio-stat p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.collection-zhanshen > a > .book-cover .cover-title { font-size: 21px; letter-spacing: .04em; white-space: normal; -webkit-line-clamp: 4; }
@media (max-width: 600px) {
  .collection-zhanshen > a > .book-cover .cover-title { font-size: 17px; line-height: 1.45; }
  .collection-zhanshen h2, .collection-zhanshen h3 { font-size: 21px; overflow-wrap: anywhere; }
}
