:root{--ink:#193c3e;--muted:#65736d;--paper:#fffdf7;--gold:#ac8248;--size:19px}*{box-sizing:border-box}body{margin:0;background:#eaece5;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{min-height:44px;cursor:pointer;border:1px solid #cbd3c7;background:#f8faf4;border-radius:9px;padding:10px 14px;color:var(--ink)}button:hover{background:#e4ecdf}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c29651;outline-offset:3px}header{padding:23px max(24px,calc((100vw - 1320px)/2));display:flex;align-items:center;gap:24px;background:#173c3e;color:#f2ead8}.brand{font-family:"Songti SC",serif;font-size:25px;letter-spacing:3px;color:inherit;text-decoration:none}.brand small{display:block;font-family:system-ui;font-size:9px;letter-spacing:3px;margin-top:8px;color:#d8c395}.edition{font-size:13px;color:#bfd0c8;margin-left:auto}header button{background:transparent;color:#f5efdf;border-color:#55716d}.notice{text-align:center;background:#dbe3d8;padding:11px 16px;font-size:12px;color:#41594d;line-height:1.6}main{max-width:1320px;margin:30px auto 0;padding:0 24px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}.book{background:var(--paper);border:1px solid #d6d9cc;border-radius:4px;box-shadow:0 10px 36px #193c3e09;overflow:hidden}.chapter-heading{display:flex;justify-content:space-between;gap:10px;font-size:11px;letter-spacing:1px;padding:24px 34px 14px;color:var(--muted)}progress{display:block;width:calc(100% - 68px);height:3px;margin:0 34px;accent-color:var(--gold);border:0}article{padding:30px 42px 18px}.eyebrow{font-size:12px;letter-spacing:3px;color:#92713f}h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:35px;font-weight:600;line-height:1.4;letter-spacing:2px;margin:14px 0 24px}.scene-art{width:100%;display:block;aspect-ratio:16/9;object-fit:cover;border-radius:2px;background:#dce0d5}.caption{font-size:11px;color:var(--muted);margin:9px 0 28px;line-height:1.6}.prose p{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:var(--size);line-height:2.1;letter-spacing:.5px;margin:0 0 22px}.greeting{font-size:12px;color:#66766e;margin-bottom:20px}.english{background:#edf0e5;border-left:3px solid #b28e52;padding:16px 18px;margin:25px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.english strong{width:100%;font-family:Georgia,serif;font-size:20px;font-weight:400}.translation{font-size:14px}.english button{min-height:40px;padding:6px 11px;font-size:12px}.actions{display:flex;flex-direction:column;gap:10px;margin:25px 0}.actions button,.primary{background:#234a47;color:#fffdf3;border-color:#234a47;text-align:left;line-height:1.5}.actions button:hover,.primary:hover{background:#315e57}.actions .selected{background:#dfe9d8;color:#244b3b}.callout{padding:18px;background:#f3eedb;font-size:15px;line-height:1.9;border-radius:5px}.page-nav{display:flex;align-items:center;justify-content:space-between;padding:22px 30px;border-top:1px solid #e4e4d7;gap:8px}#saved{font-size:11px;color:var(--muted);text-align:center}.panel{padding:23px;background:#f8faf3;border:1px solid #d4dacd;border-radius:4px;margin-bottom:20px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px}h2{font-size:17px;margin:0;font-weight:600;letter-spacing:1px}.subtle{color:var(--muted);font-size:12px;line-height:1.8}.notebook #count,.status-dot{font-size:11px;color:#727f69}.status-dot{background:#e2ead9;border-radius:15px;padding:5px 10px}details{font-size:13px;line-height:1.8;margin-top:14px}summary{cursor:pointer;min-height:40px;padding:9px 0}.clue{padding:12px 0;border-top:1px solid #dce1d5}.clue p{font-size:13px;line-height:1.8;margin:5px 0}.clue strong{font-size:13px} .tabs{display:flex;background:#e5eadd;padding:4px;border-radius:9px;gap:4px}.tabs button{flex:1;border:0;background:transparent;font-size:13px;padding:8px}.tabs button[aria-pressed=true]{background:#fffdf7;box-shadow:0 2px 4px #0001}.mode-help{font-size:11px;color:#6c775f;line-height:1.8}#messages{max-height:270px;overflow:auto;overscroll-behavior:contain}.bubble{font-size:13px;line-height:1.9;background:#e9eee2;padding:13px;border-radius:0 12px 12px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:#f5efdf;border-radius:12px 0 12px 12px;margin-left:15px}label{display:block;font-size:12px;margin:16px 0 8px}textarea,input,select{width:100%;background:#fffdf7;border:1px solid #c5cdbd;border-radius:7px;padding:12px;color:#203e3c;resize:vertical}textarea{font-size:16px}.send-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}.send-row small{font-size:10px;color:var(--muted)}.send-row button{font-size:12px;background:#234a47;color:white}.quiet{background:transparent;border:0;font-size:12px;color:#67766a}.danger{color:#864734;margin-top:18px}footer{text-align:center;color:#69776d;font-size:11px;line-height:2.1;padding:30px}footer button{font-size:11px;background:transparent;border:0}dialog{border:1px solid #c5ccb9;border-radius:12px;background:var(--paper);color:var(--ink);padding:28px;max-width:480px;width:calc(100% - 32px);max-height:85dvh;overflow:auto}dialog::backdrop{background:#102e32a8}dialog p{font-size:13px;line-height:1.9}dialog button{margin-top:14px}.empty{font-size:13px;padding:15px 0;color:#7c8779}#drafts{padding-left:20px;overflow-wrap:anywhere}#drafts li{margin-bottom:10px}#choices{overflow-wrap:anywhere}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 290px;gap:18px;padding:0 18px}article{padding:26px}.panel{padding:18px}h1{font-size:29px}.edition{display:none}}@media(max-width:760px){header{padding:18px;justify-content:space-between}.brand{font-size:22px}header button{font-size:12px}main{display:block;margin-top:18px;padding:0 12px}aside{margin-top:20px}.chapter-heading{padding:20px 23px 12px}progress{width:calc(100% - 46px);margin:0 23px}article{padding:25px 23px 10px}.page-nav{padding:18px 16px}.prose p{line-height:2}h1{font-size:30px}.panel{padding:22px}#messages{max-height:320px}.notice{font-size:11px}.greeting{line-height:1.7}}
.family-panel button{font-size:12px;margin:5px 5px 5px 0}.family-panel input[type=checkbox]{width:auto;margin-right:8px}.family-layout{display:block;max-width:850px}.family-layout .panel{padding:32px}.family-layout button{margin:10px 10px 8px 0}.family-layout h3{margin-top:30px}.letter{border-top:1px solid #cfd6c7;padding:10px 0}.letter-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2}.header-link{color:#eee4c8;margin-left:auto}.family-layout input,.family-layout select{font-size:16px}.family-layout textarea{min-height:220px}
