:root{--paper:#fbf8f0;--ink:#293b35;--muted:#65746b;--green:#315a45;--line:#d9ded1;--surface:#fffdf8;--error:#8a392f;color-scheme:light;font-family:Georgia,'Songti SC',SimSun,serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,summary,.meta,.notice,.nav,.status,.label,footer,select{font-family:system-ui,-apple-system,'Segoe UI',sans-serif}button{font-size:15px;line-height:1.5;min-height:44px;padding:10px 16px;border:0;border-radius:4px;cursor:pointer;background:var(--green);color:var(--paper)}button:hover{filter:brightness(.94)}button:disabled{cursor:wait;opacity:.55}.text-button{background:transparent;color:var(--green);padding:9px 0;text-align:left}button:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #b17d31;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:600;line-height:1.45}h2{font-size:25px;line-height:1.55;font-weight:600}h3{font-size:20px;line-height:1.6;font-weight:600}p{line-height:1.95;margin-bottom:1em}main,.wrap{max-width:720px;margin:0 auto;padding:0 22px;overflow-wrap:anywhere}.shelf{min-height:100svh;display:flex;flex-direction:column;padding-top:58px;padding-bottom:max(34px,env(safe-area-inset-bottom))}.shelf-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.shelf-top h1{margin:0}.shelf-intro{font-size:14px;margin:14px 0 0;color:var(--muted)}.book-list{margin-top:49px}.list-label{font-size:13px;color:var(--muted);margin-bottom:14px}.book-row{padding:24px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.book-row+.book-row{border-top:0}.book-row h2{margin:0 0 6px}.book-row .scope{font-size:14px;color:var(--muted);margin:0 0 12px}.book-row .chapter-title{font-size:17px;line-height:1.75;margin:0 0 14px}.actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.status{font-size:13px;color:var(--muted);line-height:1.8;margin:14px 0 0}.shelf footer{margin-top:auto;padding-top:60px;font-size:12px;color:var(--muted);line-height:1.8}.empty{margin-top:50px;padding:35px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.empty h2{font-size:23px}.empty p{color:var(--muted);font-size:15px}.notice{padding:12px 0;font-size:14px;line-height:1.8;border-bottom:1px solid var(--line);color:var(--green)}.notice.error{color:var(--error)}.notice:empty{display:none}.readerbar{position:sticky;top:0;background:var(--paper);z-index:10;border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px}.nav-group{display:flex;gap:20px}.nav button{font-size:14px;white-space:nowrap}.nav button[aria-current=page]{border-bottom:2px solid var(--green);border-radius:0;font-weight:600}.reading-status{font-size:11px;margin:0;padding:0 0 7px;min-height:24px;color:var(--muted)}.book-view{padding-top:30px;padding-bottom:60px}.book-view h1{font-size:26px;line-height:1.6;margin-bottom:18px}.meta{font-size:13px;color:var(--muted);line-height:1.9}.scope-note{font-size:13px;border-bottom:1px solid var(--line);padding-bottom:20px}.scope-note p{margin:10px 0}.chapter-picker{display:block;width:100%;font-size:15px;color:var(--ink);background:var(--paper);padding:10px;border:1px solid var(--line);margin:22px 0}.reading-body{font-size:18px;line-height:1.95}.reading-body section>h2{font-size:22px;margin:34px 0 20px}.unit{margin:24px 0;scroll-margin-top:112px}.unit p{margin:0 0 1.2em}.unit.sidebar{border-left:2px solid #bdcbbd;padding-left:14px;color:#3c5145}.source-links{font:13px/1.8 system-ui,sans-serif;color:var(--muted)}summary{cursor:pointer;font-size:13px;line-height:1.8;padding:8px 0;color:var(--green)}.source-links button{font-size:13px;margin-right:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:22px;margin:24px 0;scroll-margin-top:104px}.card .label{font-size:12px;color:var(--muted)}.card h2{font-size:21px;margin:6px 0 22px}.card h3{font:600 13px/1.8 system-ui,sans-serif;color:var(--muted);margin:22px 0 6px}.card p{font-size:17px;line-height:1.95}.card details{border-top:1px solid var(--line);margin-top:14px;padding-top:7px}.card blockquote{margin:12px 0;border-left:2px solid var(--line);padding-left:14px}.card blockquote p{font-size:16px}.card .prompt{background:#edf1e8;font-size:15px;padding:14px}.original-block{padding:20px 0;border-bottom:1px solid var(--line)}.original-block p{white-space:pre-wrap;font-size:18px;line-height:1.95}.loading{padding:40px;color:var(--muted)}.passage-note{font:13px/1.9 system-ui,sans-serif;color:var(--muted)}.chapter-jump{margin-top:32px;border-top:1px solid var(--line);padding-top:16px}input[type=file]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:760px){.shelf{padding-top:60px}.shelf h1{font-size:32px}.book-row{padding:30px 0}.book-view{padding-top:42px}.reading-body{font-size:19px}.card{padding:30px}.card h2{font-size:24px}}
@media(max-width:360px){main,.wrap{padding-left:16px;padding-right:16px}.shelf-top h1{font-size:26px}.nav-group{gap:12px}.nav{gap:8px}.actions{gap:14px}}
a.text-button{display:inline-block;min-height:44px;padding:10px 0;font:15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif}
/* Continuous book typography follows the source EPUB's 2em indent, 1.84 line
   height and restrained round/solid sidebars. Content remains the reviewed text. */
.reading-page{max-width:720px;padding-top:34px}
.reading-page .chapter-heading{font-size:26px;line-height:1.55;text-align:center;margin:0 auto 24px;max-width:24em}
.reading-tools{margin:0 0 28px;display:flex;align-items:flex-start;gap:16px;justify-content:space-between;font-family:system-ui,sans-serif}
.reading-tools .scope-note{border:0;padding:0;flex:1;min-width:0}
.reading-tools summary{padding:10px 0;min-height:44px}
.reading-tools .scope-note[open]{padding-bottom:20px}
.reading-tools .scope-note p{font-size:13px;line-height:1.85;text-align:left;text-indent:0}
.reading-outline{display:flex;flex-direction:column;align-items:flex-start}
.reading-outline button{text-align:left;font-size:13px;padding:8px 0}
.source-toggle{display:flex;align-items:center;gap:7px;min-height:44px;font-size:13px;white-space:nowrap;color:var(--green);cursor:pointer}
.source-toggle input{accent-color:var(--green);width:16px;height:16px;margin:0}
.reading-status{min-height:0;font-size:12px}.reading-status.error{color:var(--error)}
.reading-body{font-family:'Songti SC','Noto Serif CJK SC',SimSun,serif;font-size:19px;line-height:1.84;color:#2e3830}
.reading-body .unit{margin:0;scroll-margin-top:112px}
.reading-body .unit>p{text-indent:2em;text-align:justify;line-height:1.84;margin:.55em 0}
.reading-body .unit.sidebar{border:1px solid #aeb9a8;border-radius:14px;padding:.65em .85em;margin:1.15em .25em;color:inherit}
.reading-body .unit.quote_paraphrase{margin:1.1em .8em;color:#4b594c}
.unit-sources{padding:4px 0 12px;text-indent:0;text-align:left}
.unit-sources[hidden]{display:none}
.reading-body section{margin:0;padding:0}
/* A single operable card sits in front of two decorative edges. */
.deck-view{height:calc(100svh - 63px);height:calc(100dvh - 63px);max-width:568px;padding:16px 24px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}
.deck-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin-bottom:12px}
.deck-heading h1{font-size:21px;margin:0;white-space:nowrap}.deck-heading p{font-size:12px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deck-stack{position:relative;flex:1;min-height:0;margin:4px 7px 23px;isolation:isolate}
.deck-edge,.deck-card{position:absolute;inset:0;background:var(--surface);border:1px solid #b7c2b0;border-radius:16px}
.deck-edge{pointer-events:none;background:#e9eddf}.deck-edge.edge-0{transform:translateY(7px) rotate(1.4deg)}.deck-edge.edge-1{transform:translateY(13px) rotate(-1.6deg)}
.deck-card{display:flex;flex-direction:column;padding:22px 24px 10px;touch-action:pan-y pinch-zoom;transition:transform 180ms ease-out;box-shadow:0 3px 8px #293b3509;will-change:transform}
.deck-card.dragging{transition:none;user-select:none;cursor:grabbing}
.deck-card:focus-visible{outline:2px solid #b17d31;outline-offset:4px}
.deck-corner{font:16px/1.2 Georgia,serif;letter-spacing:.08em;color:var(--muted);padding-bottom:12px;flex:none}
.deck-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;touch-action:pan-y pinch-zoom;padding:0 3px 12px;overflow-wrap:anywhere}
.deck-scroll.front{display:flex;flex-direction:column;justify-content:safe center;text-align:center}
.deck-scroll h2{font-size:26px;line-height:1.65;margin:0 0 30px;font-weight:600}
.deck-scroll .deck-idea{font-size:21px;line-height:1.85;margin:0}
.deck-scroll:not(.front) h2{font-size:21px;line-height:1.6;margin:0 0 24px}
.deck-scroll h3{font:600 13px/1.8 system-ui,sans-serif;color:var(--muted);margin:25px 0 8px}
.deck-scroll p{font-size:17px;line-height:1.85;margin:0 0 12px}
.deck-scroll blockquote{margin:12px 0 22px;border-left:2px solid #ccd5c6;padding-left:12px}
.deck-scroll blockquote p{font-size:16px}.deck-scroll blockquote button{font-size:12px;margin-right:10px}
.deck-scroll p.meta{font-size:12px;color:var(--muted)}
.deck-card-footer{flex:none;border-top:1px solid var(--line);display:flex;justify-content:center;padding-top:6px;margin-top:8px}
.deck-card-footer button{min-width:100px;text-align:center;font-size:14px}
.deck-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.deck-controls button{font-size:14px;min-width:80px;text-align:center;padding:8px 12px}
.deck-counter{font:14px/1.5 system-ui,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.deck-hint{font:12px/1.7 system-ui,sans-serif;text-align:center;color:var(--muted);margin:2px 0 0;flex:none}
.deck-empty{margin:auto;text-align:center;color:var(--muted)}
@media(min-width:760px){.reading-page{padding-top:48px}.reading-body{font-size:20px}.deck-view{max-width:524px;padding-top:22px;padding-bottom:18px}.deck-card{padding:26px 32px 12px}}
@media(max-height:600px){.deck-view{padding-top:8px;padding-bottom:5px}.deck-heading{margin-bottom:4px}.deck-stack{margin-bottom:16px}.deck-card{padding-top:10px}.deck-scroll h2{font-size:22px;margin-bottom:16px}.deck-scroll .deck-idea{font-size:18px}.deck-hint{display:none}}
@media(prefers-reduced-motion:reduce){.deck-card{transition:none;will-change:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
