.stories-page{margin:0;display:block;background:#f8f4e9;color:#59423c;font-size:16px;--bg:#f8f4e9;--card:#fffcf5;--text:#59423c;--muted:#775c55;--line:#dfd4c9;--accent-soft:#d5eae3;--accent:#775c55;--button-text:#f8f4e9}.stories-page *{box-sizing:border-box}.stories-page button{cursor:pointer;min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);font:inherit}.stories-page .primary-button{background:var(--accent);color:var(--button-text)}.stories-page button:disabled{opacity:.6;cursor:wait}.shelf-top{max-width:1040px;margin:auto;display:flex;align-items:center;gap:24px;padding:22px 26px}.shelf-top a{color:var(--muted);text-decoration:none;font-size:14px}.shelf-top a:nth-child(2){margin-left:auto}.shelf-top button{font-size:20px;padding:6px 12px}.shelf-layout{max-width:940px;margin:auto;padding:24px 26px 90px}.shelf-heading{padding:24px 0 38px;position:relative}.shelf-label{font-size:11px;letter-spacing:.25em;color:var(--muted)}.shelf-heading h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:600;letter-spacing:.06em;font-size:44px;line-height:1.5;margin:14px 0 8px}.shelf-heading h1 span{font-family:serif;font-size:23px;margin-left:14px;color:#b98085}.shelf-heading p{font-size:15px;color:var(--muted);letter-spacing:.05em}.shelf-rule{height:7px;background:linear-gradient(90deg,#d5eae3 0 65%,#fdd3d5 65% 88%,#775c55 88%);margin-top:28px;border-radius:6px;max-width:250px}.shelf-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shelf-tools label{flex:1;min-width:180px}.stories-page input,.stories-page textarea{width:100%;font:inherit;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}.shelf-caption{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);margin:24px 0 14px}.shelf-caption>span:last-child{font-size:12px}#books{display:grid;gap:22px}.stories-page .archive-year{background:transparent;border:0;border-radius:0}.stories-page .archive-year>summary{background:transparent;border-bottom:2px solid var(--line);padding-left:4px;font-family:serif;font-size:25px}.stories-page .archive-month{margin:12px 0;border:0}.stories-page .archive-month>summary{padding:12px 4px}.stories-page .archive-rows{border-left:4px solid #d5eae3;padding:0 22px;background:var(--card);box-shadow:0 5px 0 #775c5508}.stories-page .archive-row:first-child{border-top:0}.stories-page .archive-row strong{font-family:"Songti SC",serif;font-size:20px;font-weight:600}.stories-page .archive-row>summary{padding:24px 0}.book-body{padding:10px 0 28px;max-width:680px;margin:auto}.book-note{font-family:system-ui,sans-serif;font-size:12px;line-height:1.8;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:20px}.book-prose{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:18px;line-height:2.1;overflow-wrap:anywhere}.book-prose h2{text-align:center;font-size:23px;margin:38px 0 22px}.book-prose p{margin:18px 0;white-space:pre-wrap}.book-prose hr{border:0;border-top:1px solid var(--line);max-width:70px;margin:32px auto}.book-actions{display:flex;justify-content:flex-end;margin-top:28px}.shelf-foot{font-size:12px;color:var(--muted);text-align:center;margin-top:48px;line-height:1.8}.stories-page dialog{background:var(--card);color:var(--text);width:min(640px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:26px}.stories-page dialog::backdrop{background:#59423c66}.stories-page form{display:grid;gap:18px}.stories-page form label{display:grid;gap:8px;font-size:14px}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-heading h2{font-size:23px;margin:0}.modal-heading button{font-size:22px}.form-note,#status,#write-status,#import-status{font-size:14px;color:var(--muted);line-height:1.8;margin:8px 0}.stories-page .hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[data-theme=dark] .stories-page{background:#292322;color:#eee3d8;--bg:#292322;--card:#322b29;--text:#eee3d8;--muted:#cebab2;--line:#574642;--accent-soft:#44514b;--accent:#d5eae3;--button-text:#292322}[data-theme=dark] .stories-page .archive-rows{border-left-color:#71877e}@media(max-width:600px){.shelf-top{padding:16px;gap:14px}.shelf-top a{font-size:13px}.shelf-layout{padding:12px 18px 64px}.shelf-heading{padding:18px 0 26px}.shelf-heading h1{font-size:34px}.shelf-tools label{flex-basis:100%}.shelf-tools button{flex:1}.shelf-caption{align-items:flex-start;flex-direction:column;gap:6px}.stories-page .archive-rows{padding:0 13px}.stories-page .archive-row strong{font-size:18px}.book-prose{font-size:17px;line-height:2}.stories-page dialog{padding:20px}.shelf-top button{margin-left:0}}

.stories-page .archive-row time{white-space:pre-line;line-height:1.65}
