:root{font-family:'Songti TC','Songti SC','Noto Serif CJK TC',serif;color:#393638;background:#eeeae3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;height:100svh;display:grid;grid-template-rows:54px minmax(0,1fr) 54px;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));overflow:hidden}button,select{font:inherit;color:inherit}button{background:none;border:0;cursor:pointer;min-height:40px;padding:8px 12px}button:hover{color:#875769}button:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #875769;outline-offset:3px}button:disabled{opacity:.25;cursor:default}.reader-header,.reader-footer{width:100%;max-width:1320px;margin:auto;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#756c66;letter-spacing:1px}.brand{color:#a1948a}.reader-header>span{padding-right:12px}#stage{position:relative;height:100%;min-height:0;width:100%;max-width:1320px;margin:auto;background:white;box-shadow:0 1px 12px #37281908;overflow:hidden;touch-action:pan-y;outline:none}#page-host{height:100%}#page-host .sheet{position:relative;overflow:hidden;background:white;width:100%;height:100%}#page-host .sheet[hidden]{display:none!important}.reader-footer{font-size:12px}#progress{font-size:11px;color:#968980;letter-spacing:2px}dialog{border:1px solid #e5ded4;background:#fffcf7;color:#393638;padding:28px;width:min(380px,calc(100vw - 32px));max-height:calc(100svh - 48px);overflow:auto;box-shadow:0 20px 70px #35251f22}dialog::backdrop{background:#3028203b;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}h1{font-weight:400;font-size:26px;margin:0}.dialog-heading button{font-size:25px}.edition{font-size:12px;color:#938379;margin:8px 0 22px}.contents{display:flex;flex-direction:column;align-items:stretch;border-top:1px solid #e5ded4;border-bottom:1px solid #e5ded4;padding:12px 0}.contents button{text-align:right;padding:8px 0}.contents span{display:block;font-size:13px;color:#938379;line-height:1.8;margin-top:7px}fieldset{border:0;padding:0;margin:22px 0}legend{font-size:12px;color:#938379;margin-bottom:12px}label{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:14px}select{border:1px solid #dacec1;background:transparent;padding:6px 12px}input{accent-color:#875769;width:18px;height:18px}.help,details{font-size:12px;color:#938379;line-height:1.9}details{border-top:1px solid #e5ded4;padding-top:15px}a{color:#875769}summary{cursor:pointer}.turn-left{animation:turn-left .18s ease-out}.turn-right{animation:turn-right .18s ease-out}@keyframes turn-left{from{opacity:.35;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}@keyframes turn-right{from{opacity:.35;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}@media(max-width:600px){body{padding:0;grid-template-rows:46px minmax(0,1fr) 50px}.reader-header,.reader-footer{padding:0 12px}#stage{box-shadow:none}.brand{display:none}.reader-header{font-size:12px}}@media(prefers-reduced-motion:reduce){.turn-left,.turn-right{animation:none}}
/* Reading-only trial: keep the book page, with keyboard and touch page turns. */
body{display:block;padding:0;background:#fff}
.reader-header,.reader-footer{display:none}
#stage{max-width:none;width:100%;height:100svh;margin:0;box-shadow:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.library-link{font-size:13px;text-decoration:none}.contents select{width:100%;max-width:100%;font-size:13px;margin:6px 0 12px}.contents label{font-size:12px;color:#938379}#page-host[role=status]{padding:40px;color:#938379}#page-host>a{margin:20px;display:inline-block}
