:root{color-scheme:light;--paper:#f4ebdd;--card:#fffdf8;--ink:#61472e;--accent:#8a6d4a;--muted:#786f63;--line:#d9cab5;--soft:#eee4d5;--serif:"Noto Serif CJK SC","Songti SC","STSong","SimSun",serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:98px}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 var(--sans);-webkit-font-smoothing:antialiased;background-image:radial-gradient(rgba(112,84,51,.038) .6px,transparent .6px);background-size:5px 5px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:inherit}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:fixed;z-index:20;top:-70px;left:16px;background:var(--card);padding:12px 20px;border:1px solid var(--line)}.skip-link:focus{top:8px}.site-header{border-bottom:1px solid var(--line);background:rgba(244,235,221,.96)}.header-inner{max-width:1120px;margin:auto;min-height:82px;display:flex;justify-content:space-between;align-items:center;padding:0 30px;gap:16px}.brand{display:flex;align-items:center;gap:10px;font:600 21px var(--serif);letter-spacing:2px;min-height:44px}.brand .brand-mark{width:26px;height:26px;color:var(--accent)}.header-right{display:flex;align-items:center;gap:28px}.edition{color:var(--muted);font-size:12px;letter-spacing:2px}.edition-dot{margin:0 8px}.directory-link{min-height:44px;display:flex;gap:8px;align-items:center;font-size:13px}.directory-link .icon{width:17px}.directory-link:hover{color:var(--accent)}main{min-height:50vh;outline:none}.hero{position:relative;max-width:1060px;margin:auto;padding:66px 50px 62px;border-bottom:1px solid var(--line);overflow:hidden;isolation:isolate}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,rgba(255,253,248,.48),transparent 65%);z-index:-1}.hero-branch{position:absolute;width:330px;right:-40px;bottom:-34px;opacity:.65;pointer-events:none;z-index:-1}.hero-topline{display:flex;align-items:center;gap:14px;font-size:11px;letter-spacing:4px;color:var(--accent)}.hero-topline:before{content:"";height:1px;width:28px;background:var(--accent)}.hero h1{font:500 66px/1.25 var(--serif);letter-spacing:10px;margin:24px 0 18px}.hero-subtitle{font:18px/1.7 var(--serif);letter-spacing:2px;margin:0}.hero-quote{margin:27px 0 0;font-size:14px;color:var(--muted);letter-spacing:1px}.hero-bottom{display:flex;align-items:center;gap:16px;margin-top:30px}.hero-tag{font-size:11px;letter-spacing:1.5px;color:var(--accent);border:1px solid #cbbb9f;padding:3px 10px}.hero-bottom>span:last-child{font-size:11px;color:var(--muted);letter-spacing:1px}.year-mark{position:absolute;right:72px;top:49px;border:1px solid #b49b77;border-radius:50%;height:66px;width:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#987c59;transform:rotate(8deg);font:11px/1.3 var(--serif);letter-spacing:1px}.year-mark strong{font:24px/1.2 Georgia,serif;letter-spacing:2px}.directory{max-width:1120px;margin:0 auto;padding:44px 30px 50px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px}.section-heading h2{font:500 28px/1.4 var(--serif);letter-spacing:3px;margin:0 0 8px}.section-heading p{margin:0;color:var(--muted);font-size:12px;letter-spacing:.5px}.chapter-count{font:14px/1.6 var(--serif);white-space:nowrap;color:var(--accent)}.chapter-count b{font:24px Georgia,serif;margin-right:4px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 25px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.search-wrap{position:relative;max-width:390px;width:100%;display:flex;align-items:center}.search-wrap>.icon{position:absolute;left:12px;width:17px;color:var(--muted)}.search-input{width:100%;height:44px;border:1px solid #ded1bf;border-radius:6px;background:rgba(255,253,248,.65);color:var(--ink);font-size:13px;padding:0 45px 0 38px;appearance:none}.search-input::placeholder{color:var(--muted)}.search-input::-webkit-search-cancel-button{appearance:none}.clear-search{position:absolute;right:0;top:0;border:0;background:none;width:42px;height:44px;font-size:22px;color:var(--muted)}[hidden]{display:none!important}.view-control{display:flex;padding:3px;border:1px solid #d5c6af;border-radius:6px;background:rgba(255,253,248,.35);gap:3px;flex-shrink:0}.view-control button{height:37px;display:flex;align-items:center;gap:7px;border:0;background:none;border-radius:3px;padding:0 11px;font-size:12px;color:var(--muted)}.view-control .icon{width:16px;height:16px}.view-control button[aria-pressed=true]{background:var(--accent);color:var(--card)}.search-status{font-size:12px;color:var(--muted);margin:-11px 0 17px}.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0;margin:0;list-style:none}.topic-grid>li{min-width:0;display:flex}.topic-card{width:100%;display:flex;flex-direction:column;background:var(--card);border:1px solid #e4d8c6;border-radius:9px;padding:24px 24px 20px;box-shadow:0 3px 9px rgba(97,71,46,.035);transition:border-color .15s,box-shadow .15s;position:relative;min-height:220px}.topic-card:hover{border-color:#baa17d;box-shadow:0 5px 14px rgba(97,71,46,.07)}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.card-symbol{width:35px;height:35px;background:#f4eedf;border:1px solid #e5d9c5;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--accent)}.card-symbol .icon{width:18px;height:18px}.card-order{font:italic 16px Georgia,serif;color:#a48c70}.topic-card h3{font:600 18px/1.65 var(--serif);letter-spacing:.4px;margin:0 0 9px;overflow-wrap:anywhere}.card-description{margin:0 0 23px;font-size:12px;line-height:1.75;color:var(--muted)}.card-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;color:var(--accent)}.card-bottom .icon{width:20px;height:20px}.card-open{font-size:11px;color:var(--muted)}.topic-grid.is-list{grid-template-columns:1fr;gap:10px}.is-list .topic-card{min-height:92px;display:grid;grid-template-columns:75px 1fr 110px;column-gap:20px;align-items:center;padding:17px 24px}.is-list .card-top{margin:0;gap:13px;grid-row:1/3;flex-direction:row-reverse}.is-list .card-description{margin:0;grid-column:2}.is-list .topic-card h3{margin:0;font-size:17px}.is-list .card-bottom{grid-column:3;grid-row:1/3;gap:12px;margin:0}.is-list .card-open{display:inline-flex}.empty-search{text-align:center;background:rgba(255,253,248,.6);border:1px dashed var(--line);padding:50px 24px;border-radius:8px}.empty-search h3{font-family:var(--serif);font-weight:500}.empty-search p{color:var(--muted);font-size:13px}.text-button{border:0;border-bottom:1px solid var(--accent);background:none;color:var(--accent);padding:9px 3px}.directory-end{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:36px;color:var(--muted);font-size:11px;letter-spacing:2px}.directory-end:before,.directory-end:after{content:"";height:1px;width:45px;background:var(--line)}.site-footer{border-top:1px solid var(--line);max-width:1060px;margin:10px auto 0;padding:33px 20px 35px;text-align:center;color:var(--muted);font-size:11px}.site-footer .footer-leaf{color:var(--accent);width:24px;height:24px}.site-footer p{margin:8px 0}.site-footer .footer-quote{font:15px/1.7 var(--serif);letter-spacing:2px;color:var(--ink);margin:9px 0 17px}.footer-sep{margin:0 6px}.version-note{font-size:10px;letter-spacing:.3px}.detail-wrap{max-width:920px;margin:auto;padding:30px 30px 60px}.detail-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px;font-size:12px;color:var(--muted)}.back-home{display:inline-flex;align-items:center;gap:9px;min-height:44px}.back-home .icon{width:18px;transform:rotate(180deg)}.detail-paper{background:var(--card);border:1px solid #e0d2bd;border-radius:9px;box-shadow:0 6px 24px rgba(97,71,46,.04);padding:45px 48px}.detail-heading{padding-bottom:26px;border-bottom:1px solid var(--line);margin-bottom:31px}.detail-kicker{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:11px;letter-spacing:2px;margin:0 0 18px}.detail-heading h1{font:600 29px/1.65 var(--serif);margin:0;overflow-wrap:anywhere}.placeholder{padding:37px 20px;text-align:center;border:1px dashed #d9cab5;border-radius:7px;background:rgba(244,235,221,.2)}.placeholder>.icon{width:29px;height:29px;color:#a48a68}.placeholder h2{font:500 21px/1.6 var(--serif);letter-spacing:2px;margin:15px 0 10px}.placeholder p{font-size:13px;color:var(--muted);margin:4px 0}.image-space{margin-top:31px}.minor-heading{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;font-weight:400;letter-spacing:1px}.minor-heading .icon{width:18px;height:18px}.photo-placeholder{min-height:118px;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:5px;border:1px dashed #ded3c3;color:var(--muted);font-size:12px;background:repeating-linear-gradient(-45deg,transparent,transparent 9px,rgba(201,181,148,.035) 9px,rgba(201,181,148,.035) 10px)}.detail-note{font-size:11px;color:var(--muted);margin:22px 0 0;text-align:center}.topic-navigation{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.topic-navigation>a,.topic-navigation>.nav-disabled{border:1px solid #dbcbb5;border-radius:7px;display:flex;flex-direction:column;gap:7px;padding:18px 20px;background:rgba(255,253,248,.45);min-width:0}.topic-navigation>a:hover{background:var(--card);border-color:#b49b77}.nav-caption{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:11px}.nav-caption .icon{width:16px;height:16px}.nav-previous .icon{transform:rotate(180deg)}.nav-title{font:14px/1.7 var(--serif);overflow-wrap:anywhere}.nav-next{text-align:right}.nav-next .nav-caption{justify-content:flex-end}.nav-disabled{color:#938677}.nav-disabled .nav-caption{color:inherit}.detail-directory-link{text-align:center;margin-top:28px}.detail-directory-link a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:12px;border-bottom:1px solid #b9a17f}.reading-content{font:17px/2 var(--sans);overflow-wrap:anywhere}.reading-content p{white-space:pre-wrap;margin:0 0 1.3em}.reading-content figure{margin:24px 0}.reading-content img{display:block;max-width:100%;height:auto;border-radius:4px}.reading-content figcaption{color:var(--muted);font-size:12px;text-align:center;margin-top:8px}.comment-thread{border-top:1px solid var(--line);margin-top:30px;padding-top:20px}.comment-marker{font-size:12px;color:var(--accent);white-space:pre-wrap}.reply-thread{margin-left:16px;border-left:2px solid var(--line);padding-left:16px}.reply-thread .comment-thread{margin-top:16px}.loading,.error-page,.noscript{max-width:700px;margin:70px auto;text-align:center;padding:35px 24px}.error-page h1{font-family:var(--serif)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){.hero{padding-top:76px;padding-bottom:72px}}
@media(max-width:850px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{margin:0 30px;padding:52px 25px}.hero h1{font-size:58px}.hero-branch{width:280px;right:-75px;opacity:.5}.year-mark{right:30px;top:35px}.detail-paper{padding:35px 30px}}
@media(max-width:540px){html{scroll-padding-top:20px}.header-inner{min-height:68px;padding:0 21px}.brand{font-size:19px;letter-spacing:1px;gap:8px}.brand .brand-mark{width:23px}.edition{display:none}.directory-link{font-size:12px;gap:6px}.hero{margin:0 21px;padding:39px 3px 38px}.hero-topline{font-size:10px;letter-spacing:2px;gap:10px}.hero-topline:before{width:19px}.hero h1{font-size:47px;letter-spacing:6px;margin:22px 0 12px}.hero-subtitle{font-size:15px;letter-spacing:1px}.hero-quote{font-size:12px;letter-spacing:.4px;margin-top:22px}.hero-bottom{margin-top:25px;gap:11px}.hero-tag{font-size:10px;padding:2px 8px}.hero-bottom>span:last-child{font-size:10px;letter-spacing:.3px}.hero-branch{width:210px;right:-75px;bottom:-28px;opacity:.43}.year-mark{right:2px;top:35px;width:46px;height:46px;font-size:8px}.year-mark strong{font-size:17px}.directory{padding:31px 20px 36px}.section-heading{margin-bottom:19px;gap:8px}.section-heading h2{font-size:25px;margin-bottom:6px;letter-spacing:2px}.section-heading p{font-size:11px;letter-spacing:0}.chapter-count{font-size:11px}.chapter-count b{font-size:21px}.toolbar{gap:11px;margin-bottom:19px;padding:11px 0}.view-control{gap:2px}.view-control button{padding:0 8px;height:38px;min-width:37px}.view-control button span{display:none}.search-input{font-size:12px;padding-left:33px}.search-wrap>.icon{left:10px;width:15px}.topic-grid{gap:12px}.topic-card{padding:16px 14px 14px;min-height:226px;border-radius:7px}.card-top{margin-bottom:14px}.card-symbol{width:31px;height:31px}.card-symbol .icon{width:16px}.card-order{font-size:14px}.topic-card h3{font-size:16px;line-height:1.65;letter-spacing:0;margin-bottom:8px}.card-description{font-size:11px;line-height:1.8;margin-bottom:16px}.card-bottom{font-size:9px;letter-spacing:0}.card-open{font-size:10px}.card-bottom .icon{width:17px}.is-list .topic-card{grid-template-columns:34px 1fr 18px;gap:3px 13px;padding:16px 14px;min-height:100px}.is-list .card-top{flex-direction:column;gap:4px}.is-list .card-symbol{width:28px;height:28px}.is-list .card-order{font-size:11px}.is-list .topic-card h3{font-size:15px;line-height:1.7}.is-list .card-bottom>span:first-child{display:none}.is-list .card-description{font-size:11px;margin-top:4px}.site-footer{margin:0 21px;padding:28px 0;font-size:10px}.site-footer .footer-quote{font-size:14px;letter-spacing:1px}.version-note{font-size:9px}.footer-sep{margin:0 3px}.detail-wrap{padding:17px 16px 38px}.detail-breadcrumb{margin-bottom:15px;font-size:11px}.detail-paper{padding:28px 21px;border-radius:7px}.detail-heading{margin-bottom:24px;padding-bottom:23px}.detail-heading h1{font-size:24px;line-height:1.65}.detail-kicker{font-size:10px;letter-spacing:1px;margin-bottom:13px}.placeholder{padding:31px 12px}.placeholder h2{font-size:19px;letter-spacing:1px}.placeholder p{font-size:12px}.photo-placeholder{min-height:109px;font-size:11px}.detail-note{font-size:10px;line-height:1.9}.topic-navigation{gap:10px;margin-top:15px}.topic-navigation>a,.topic-navigation>.nav-disabled{padding:14px 12px}.nav-title{font-size:12px;line-height:1.75}.nav-caption{font-size:10px}.reading-content{font-size:16px;line-height:1.95}.reply-thread{margin-left:8px;padding-left:11px}}
@media(max-width:350px){.topic-grid:not(.is-list){grid-template-columns:1fr}.topic-card{min-height:190px}.hero h1{font-size:40px}.year-mark{display:none}.hero-subtitle{font-size:14px}.section-heading p{max-width:180px}.hero-quote{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* V0.2 reading additions, preserving V0.1 colors, layout and artwork. */
[hidden]{display:none!important}.start-reading{display:inline-flex;align-items:center;gap:18px;background:var(--ink);color:var(--card);padding:11px 22px;border-radius:5px;margin-top:24px;font-size:13px}.start-reading:hover{background:var(--accent)}.hero-bottom{flex-wrap:wrap}.hero-quote{max-width:600px}.reading-menu{position:sticky;top:0;z-index:5;background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:10px 14px;margin-bottom:18px;display:flex;align-items:center;gap:12px;box-shadow:0 2px 8px #61472e0a}.chapter-menu{flex:1;min-width:0}.chapter-menu summary{cursor:pointer;overflow-wrap:anywhere;font-size:12px;min-height:34px;align-content:center;max-height:80px;overflow-y:auto}.chapter-menu-list{position:absolute;left:0;right:0;top:100%;background:var(--card);border:1px solid var(--line);max-height:60vh;overflow:auto;padding:12px;box-shadow:0 10px 20px #61472e18}.chapter-menu-list a{display:block;padding:9px 12px;font-size:13px;border-radius:4px}.chapter-menu-list a:hover,.chapter-menu-list a[aria-current]{background:var(--soft)}.chapter-menu-list a[aria-current]{font-weight:700}.outline-label{font-size:11px;white-space:nowrap}.reading-menu select{font:12px var(--sans);color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:4px;max-width:37%;min-width:0;min-height:36px;padding:4px}.source-paragraph{scroll-margin-top:125px}.reading-content .source-paragraph{white-space:pre-wrap;line-height:1.95;margin:0 0 .8em}.reading-content .source-blank{height:.65em;margin:0}.reading-content h2,.reading-content h3{font-family:var(--serif);font-size:22px}.source-cover{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:28px}.source-cover .source-paragraph:first-child{font-family:var(--serif);font-size:19px}.source-cover h3{font-size:16px}.source-emphasis{background:#eee4d554;border:1px solid #d9cab580;border-radius:2px}.source-highlight{background:#f4e3a7}.source-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;border:1px solid var(--line);border-radius:6px;margin:18px 0 26px;overflow:hidden}.source-table td{padding:18px;vertical-align:top;min-width:0;overflow-wrap:anywhere}.source-table td+td{border-left:1px solid var(--line)}.source-table.photo-table{border:0}.photo-table td{padding:5px}.photo-table td+td{border:0}.reading-content .photo{display:block;max-width:100%;margin:24px 0;white-space:normal}.photo-open{display:block;max-width:100%;width:100%;padding:0;border:0;background:#eee4d566;border-radius:5px;cursor:zoom-in}.reading-content .photo img{display:block;max-width:100%;width:auto;max-height:780px;object-fit:contain;margin:auto;height:auto}.photo-table .photo{margin:4px 0}.photo-failure{display:block;padding:30px 12px;font-size:13px;color:var(--muted)}.photo-active{overflow:hidden}.lightbox{padding:0;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);width:min(1200px,96vw);height:94vh;max-width:96vw;max-height:94vh;overflow:hidden}.lightbox::backdrop{background:#2a2219d9}.lightbox[open]{display:flex;flex-direction:column}.lightbox-toolbar,.lightbox-navigation{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 18px;flex-shrink:0;font-size:13px}.lightbox-toolbar button,.lightbox-navigation button,.lightbox-toolbar a{background:var(--soft);border:1px solid var(--line);border-radius:4px;padding:9px 12px;color:var(--ink);white-space:nowrap}.lightbox-toolbar #photo-count{margin-right:auto}.lightbox-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:10px;touch-action:pan-x pan-y pinch-zoom}.lightbox-stage img{max-width:100%;max-height:100%;object-fit:contain}.lightbox.is-zoomed .lightbox-stage{display:block}.lightbox.is-zoomed .lightbox-stage img{max-width:none;max-height:none;display:block;margin:auto}.lightbox-navigation span{font-size:11px;color:var(--muted)}
@media(max-width:540px){.reading-menu{flex-wrap:wrap;padding:8px 10px;gap:6px 9px}.chapter-menu{flex-basis:100%}.reading-menu select{flex:1;max-width:calc(100% - 65px)}.source-table td{padding:12px}.photo-table,.photo-table tbody,.photo-table tr,.photo-table td{display:block;width:100%}.photo-table td{padding:0}.reading-content .photo{margin:18px 0}.lightbox{max-width:100vw;width:100vw;height:96vh;max-height:96vh;border-radius:0}.lightbox-toolbar{gap:6px;padding:9px 8px;font-size:11px}.lightbox-toolbar button,.lightbox-toolbar a{padding:9px 7px;font-size:11px}.lightbox-navigation{padding:9px 8px;gap:6px}.lightbox-navigation span{font-size:9px}.lightbox-navigation button{font-size:11px}.source-paragraph{scroll-margin-top:155px}}

/* V0.3: contributions remain visually separate from the original source text. */
.signature-area { margin: .2rem 0 1.1rem; padding: .3rem 0 .3rem 1rem; border-left: 2px solid #d7c8ac; color: #6c5945; font-size: .88rem; }
.signature-list { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.signature-item { margin: 0; }
.signature-item time { margin-left: .55rem; color: #867a6c; font-size: .82em; }
.signature-toggle { border: 0; background: none; color: #78543d; text-decoration: underline; cursor: pointer; padding: .2rem 0; font: inherit; }
.signature-toggle:disabled { color: #948e84; cursor: not-allowed; }
.signature-form, .memory-submission form { display: grid; gap: .8rem; margin: .7rem 0; }
.signature-form[hidden], .memory-preview[hidden] { display: none; }
.signature-form label, .memory-submission label { display: grid; gap: .35rem; }
.signature-form input, .memory-submission input, .memory-submission textarea { box-sizing: border-box; width: 100%; max-width: 36rem; padding: .7rem; border: 1px solid #cdbda2; border-radius: .35rem; background: #fffdf8; color: #3b3028; font: inherit; }
.signature-form button, .memory-submission button { justify-self: start; padding: .55rem 1rem; border: 1px solid #99755c; border-radius: .35rem; background: #f4ead8; color: #493a2e; font: inherit; cursor: pointer; }
.signature-form button:disabled, .memory-submission button:disabled { opacity: .6; cursor: not-allowed; }
.contributed-memories, .memory-submission { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #d7c8ac; }
.contributed-memory { margin: 1.5rem 0; padding: 1rem; background: #faf3e6; border-radius: .5rem; }
.contributed-memory img { display: block; max-width: 100%; height: auto; margin: .8rem 0; }
.contributed-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.contributed-credit, .contribution-note, .contribution-status { color: #746657; font-size: .88rem; }
.memory-preview { max-width: 36rem; padding: 1rem; white-space: pre-wrap; background: #fff9ef; border: 1px solid #dfcfb4; border-radius: .35rem; }
@media (max-width: 600px) { .signature-area { padding-left: .65rem; } .contributed-memory { padding: .7rem; } }

/* V0.4 interactions: scoped to the added controls; original source rules stay intact. */
.memory-entry { min-width: 0; scroll-margin-top: 155px; }
.memory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; margin: -.1rem 0 .8rem; color: var(--muted); font: 13px/1.5 var(--sans); }
.memory-actions button, .comment-reply, .comments-more { color: var(--accent); background: transparent; border: 1px solid transparent; border-radius: 5px; padding: .5rem .65rem; min-height: 40px; font: inherit; cursor: pointer; }
.memory-actions button:hover, .comment-reply:hover, .comments-more:hover { border-color: var(--line); background: var(--soft); }
.memory-actions button:disabled { opacity: .55; cursor: wait; }
.memory-like[aria-pressed=true] { color: #984d3d; }
.memory-menu { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem; }
.memory-menu-toggle { font-size: 22px !important; line-height: 1 !important; min-width: 44px; }
.memory-menu-items { display: flex; flex-wrap: wrap; gap: .15rem; background: #f5ecdc; border: 1px solid var(--line); border-radius: 5px; padding: .1rem; }
.memory-entry > .signature-list { font: 12px/1.6 var(--sans); color: var(--muted); margin: .2rem 0 .5rem; }
.signature-list:empty { display: none; }
.memory-entry .signature-item time { font-size: 11px; }
.reading-content .interaction-status { font: 12px/1.6 var(--sans); color: var(--muted); margin: 0 0 .7rem; }
.interaction-status:empty { display: none; }
.memory-comments { margin: 0 0 1.25rem; padding: .6rem .8rem; border-left: 2px solid var(--line); background: #f4ead82b; }
.memory-comment { padding: .6rem 0; min-width: 0; scroll-margin-top: 155px; }
.memory-comment + .memory-comment { border-top: 1px solid #d7c8ac66; }
.comment-credit { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font: 12px/1.6 var(--sans); color: var(--muted); margin-bottom: .4rem; }
.reading-content .memory-comment .source-paragraph, .reading-content .comment-text { margin-bottom: .2rem; }
.comment-text { white-space: pre-wrap; }
.comment-reply, .comments-more { font: 12px/1.6 var(--sans); }
.nested-comments { padding-left: .8rem; border-left: 1px solid var(--line); margin-top: .3rem; }
.nested-comments summary { color: var(--accent); font: 12px/1.6 var(--sans); cursor: pointer; padding: .65rem .2rem; }
.nested-comments.deep-comments { padding-left: .35rem; }
.source-review-note { display: block; font: 11px/1.5 var(--sans); color: var(--muted); margin: -.6rem 0 .8rem; }
.dynamic-memory { margin-top: 1.2rem; }
.dynamic-memory > a { display: block; max-width: 100%; }
.dynamic-memory > a img { max-height: 780px; object-fit: contain; margin: 1rem auto; }
.contribution-dialog { width: min(520px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; padding: 1.4rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); }
.contribution-dialog::backdrop { background: #42322266; }
.contribution-dialog h2 { font: 500 23px/1.5 var(--serif); margin: .3rem 0 1rem; }
.dialog-close { display: block; margin-left: auto; background: none; color: var(--accent); border: 0; min-height: 40px; cursor: pointer; }
.contribution-form { display: grid; gap: .8rem; }
.contribution-form label { display: grid; gap: .4rem; font-size: 14px; }
.contribution-form input, .contribution-form textarea, .memory-submission select { width: 100%; max-width: 36rem; padding: .7rem; border: 1px solid #cdbda2; border-radius: .35rem; background: #fffdf8; color: var(--ink); font: inherit; box-sizing: border-box; }
.contribution-form button { justify-self: start; padding: .6rem 1rem; border: 1px solid #99755c; border-radius: .35rem; background: #f4ead8; color: var(--ink); font: inherit; cursor: pointer; }
.contribution-form button:disabled { opacity: .6; cursor: default; }
.memory-preview img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }
.memory-submission { font-size: 15px; }
.memory-submission select { min-width: 0; }
.memory-search-list { padding-left: 1.2rem; color: var(--accent); }
.memory-search-list li { margin: .5rem 0; overflow-wrap: anywhere; }
.memory-search-list a { text-decoration: underline; text-underline-offset: .2em; }
@media(max-width:540px) { .memory-comments { padding: .4rem .45rem; } .nested-comments { padding-left: .5rem; } .nested-comments.deep-comments { padding-left: .15rem; } .memory-menu-items button { min-height: 44px; } .contribution-dialog { padding: 1rem; } }
