:root{color-scheme:light;--paper:#f6f2ea;--ink:#303d36;--soft:#718077;--line:#dce0d5;--accent:#3e6656;--white:#fffefa;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer;border:0;min-height:44px;border-radius:24px;padding:11px 19px;line-height:1.35}button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9cab90;outline-offset:3px}[hidden]{display:none!important}.shell{max-width:800px;padding:28px 30px 35px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{letter-spacing:.12em;font-size:15px}.badge{font-size:12px;background:#e8ece0;color:#506447;padding:6px 10px;border-radius:20px;line-height:1.6}.intro{padding:54px 0 24px}.eyebrow{font-size:13px;color:var(--soft);letter-spacing:.1em}h1{font-size:clamp(30px,6vw,44px);font-weight:500;line-height:1.5;letter-spacing:.04em;margin:16px 0}h2{font-size:22px;font-weight:500}h3{font-size:20px;font-weight:500}p{line-height:1.95}.intro>p:last-child{color:var(--soft);font-size:15px}#notice{font-size:14px;color:#61705e;min-height:28px;line-height:1.7}.context-line{display:flex;justify-content:space-between;gap:10px;color:var(--soft);font-size:12px;border-top:1px solid var(--line);padding:18px 0 8px}.bubble{padding:20px 24px;margin:16px 0;max-width:94%;border-radius:20px;background:var(--white);border:1px solid #e8e9df;overflow-wrap:anywhere}.bubble.user{margin-left:auto;background:#e8ede4;border-color:transparent}.speaker{font-size:12px;color:var(--soft)}.bubble p{white-space:pre-wrap;line-height:1.95;margin:9px 0 0}.live{border-color:#a6b99f}.live:after{content:"";display:inline-block;width:5px;height:15px;background:#698464;margin-top:6px}#live-question:empty,#live-title:empty,#live-body:empty{display:none}.composer{margin:32px 0;border-top:1px solid var(--line);padding-top:24px}label{display:block;font-size:14px;margin:18px 0 10px}input,textarea{width:100%;border:1px solid #d8dfd2;border-radius:14px;background:var(--white);color:var(--ink);padding:14px 16px;line-height:1.8;font-size:16px}textarea{resize:vertical;min-height:100px}.composer-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--soft);margin:9px 0 16px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.primary{background:var(--accent);color:white}.quiet{background:#e9eade;color:#4d614c}.outline{background:transparent;border:1px solid #7c937c;color:#465f46}.compose-end{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.compose-end span{font-size:13px;color:var(--soft)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px}#diary{margin-top:32px;border-top:1px solid var(--line);padding-top:20px}#body{line-height:2;min-height:430px}.history{border-top:1px solid var(--line);padding:22px 0;margin-top:28px}summary{cursor:pointer;color:#5b6e57;font-size:14px;line-height:1.8}.version{border-bottom:1px solid var(--line);padding:18px 0}.version p{white-space:pre-wrap;overflow-wrap:anywhere}.warning{border-left:3px solid #ab9764;padding:0 16px;font-size:14px}footer{font-size:11px;color:#889182;line-height:1.9;margin-top:42px;text-align:center;padding-bottom:env(safe-area-inset-bottom)}#save-notice{font-size:14px;color:#526b4e}
@media(max-width:520px){.shell{padding:22px 18px}.intro{padding-top:34px}.bubble{padding:17px 18px;max-width:98%}.compose-end{align-items:stretch;flex-direction:column}.compose-end button{width:100%}.context-line{flex-direction:column;gap:5px}.section-head{align-items:flex-start}.section-head h2{font-size:20px}.actions button{flex:1 1 auto}.composer-meta{font-size:10px}#body{min-height:480px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.identity-locked #workspace,.identity-locked #copy-panel{visibility:hidden}.identity-locked #notice{color:#65705d}a{color:#365b46}a.outline{display:inline-flex;align-items:center;min-height:44px;border-radius:24px;padding:10px 18px;text-decoration:none}#source-change{border-left:3px solid #a99462;padding:10px 14px;background:#f0e9d9;font-size:14px}
/* Keep source comparisons readable within the existing paper layout. */
#writing-review{border-top:1px solid var(--line);margin-top:28px;padding-top:18px;min-width:0}
#writing-review>p{font-size:13px;color:var(--soft)}
#writing-review details{border:1px solid var(--line);border-radius:16px;padding:0 18px;background:var(--white)}
#writing-review summary{min-height:44px;padding:14px 0}
#writing-review h3{font-size:15px;margin:20px 0 8px;color:var(--accent)}
#writing-review details p{margin:8px 0 18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
