/* Shared page hierarchy, controls and responsive reading surfaces. */
:root{--ui-ink:#263e42;--ui-secondary:#657772;--ui-muted:#7a8982;--ui-line:#dce3dd;--ui-soft:#eaf0ea;--ui-focus:#a36a4d}
[hidden]{display:none!important}
.ui-icon{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle}
.ui-inline-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.ui-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ui-secondary);line-height:1;box-shadow:none}
.ui-icon-button:not(:disabled):hover{background:#e6ede6;color:#2f594c;transform:none}
.ui-icon-button:disabled{opacity:.3;cursor:default}
.ui-quiet-button,.ui-primary-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:6px 10px;border-radius:6px;background:transparent;color:#5b7468;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
.ui-quiet-button:not(:disabled):hover{background:#e5ece5;color:#2d5547;transform:none}
.ui-quiet-button .ui-icon{width:16px;height:16px}
.ui-primary-link{min-height:38px;padding:9px 15px;background:#294e43;color:#fffefa;font-weight:600}
.ui-primary-link:hover{background:#386457;color:white}
.ui-back-link{display:inline-flex;align-items:center;gap:7px;min-height:32px;font-size:12px;color:var(--ui-secondary);line-height:1.4}
.ui-back-link .ui-icon{width:16px;height:16px}
.ui-back-link:hover{color:#375e4e}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;min-height:34px}
.workspace-heading-main,.workspace-heading-actions{display:flex;align-items:center;gap:10px;min-width:0}
.workspace-heading h1{font:600 23px/1.35 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.01em;color:var(--ui-ink);margin:0}
.workspace-count{font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.workspace-heading>p{flex-basis:100%;font-size:12px;line-height:1.7;color:var(--ui-secondary);margin:-4px 0 0}
body:not([data-page="graph"]):not([data-page="episode"]):not([data-page="assistant"]) #view{padding-top:18px}
body>aside nav a{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.5;padding:11px 12px}
body>aside{display:flex;flex-direction:column}
body>aside>.brand,body>aside>.edition,body>aside>nav{flex:none}
body>aside footer{position:static;flex:none;margin-top:auto;padding-top:23px}
body>aside nav a .ui-icon{width:17px;height:17px;opacity:.9}
body>aside .space-actions button{display:flex;align-items:center;gap:10px;font-size:12px}
body>aside .space-actions .ui-icon{width:16px;height:16px}

.catalogue-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:8px}
.catalogue-search{display:flex;align-items:center;gap:9px;flex:1;max-width:510px;min-width:220px;padding:0 12px;border:1px solid #cfdad3;border-radius:7px;background:var(--paper);height:39px;color:#8a9b8d}
.catalogue-search:focus-within{outline:2px solid #a1b8a14d;border-color:#95b09b}
.catalogue-search input{width:100%;min-width:0;min-height:36px;height:36px;padding:5px 0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;font-size:13px}
.catalogue-search input:focus{outline:0}
.catalogue-search .ui-icon{width:17px;height:17px}
.catalogue-select select{height:39px;min-height:39px;max-width:155px;padding:5px 27px 5px 11px;border:1px solid #d4ddd5;border-radius:7px;background:#fbfcf7;color:#627464;font-size:12px;line-height:1.5}
.catalogue-resultbar,.catalogue-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:36px;margin-bottom:10px;color:#80917e;font-size:11px;font-variant-numeric:tabular-nums}
.catalogue-bottom{margin:16px 0 0;border-top:1px solid #dbe4d7;padding-top:13px}
.catalogue-pager{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.5;white-space:nowrap}
.catalogue-pager button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:5px;border:1px solid #d7e1d2;border-radius:5px;background:#fcfdf8;color:#6a8360;box-shadow:none}
.catalogue-pager button:not(:disabled):hover{background:#e4eedf;transform:none}
.catalogue-pager button:disabled{opacity:.3;cursor:default}
.catalogue-pager .ui-icon{width:16px;height:16px}
.catalogue-empty{padding:35px 22px;border:1px dashed #d7e1d2;border-radius:9px;color:#8c9d80;font-size:13px;text-align:center;grid-column:1/-1}
body[data-page="episodes"] .episode-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:transparent;border:0;border-radius:0;overflow:visible}
body[data-page="episodes"] .episode-row{display:grid;grid-template-columns:51px minmax(0,1fr) 16px;align-items:start;gap:14px;margin:0;padding:19px 17px;border:1px solid #dbe2d7;border-radius:9px;background:var(--paper);box-shadow:none;min-height:112px;transition:border-color .15s,box-shadow .15s}
body[data-page="episodes"] .episode-row:hover{border-color:#a9c0ab;background:#fffefa;box-shadow:0 4px 15px #2b4f3608;transform:none}
body[data-page="episodes"] .episode-row-number{display:grid;gap:4px;padding:4px 0 0;border:0;text-align:left}
body[data-page="episodes"] .episode-row-number small{font-size:7px;letter-spacing:1px;color:#8c9d83}
body[data-page="episodes"] .episode-row-number strong{font:400 29px/1.1 Georgia,serif;color:#718b6b;letter-spacing:-.04em}
body[data-page="episodes"] .episode-row-body{min-width:0}
body[data-page="episodes"] .episode-row-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;line-height:1.5}
body[data-page="episodes"] .episode-row-top .badge{font-size:9px;margin:0;padding:1px 5px;border:0;background:#eaf0e4;color:#718a61}
body[data-page="episodes"] .episode-row-top .badge+.badge{background:transparent;color:#9c8367;padding-left:0}
body[data-page="episodes"] .episode-row-top>span:not(.badge){display:inline-flex;align-items:center;gap:4px;color:#9ba991;font-size:9px}
.episode-row-top .ui-icon{width:12px;height:12px}
body[data-page="episodes"] .episode-row h3{font:600 16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;margin:8px 0 0;overflow-wrap:anywhere}
body[data-page="episodes"] .episode-row p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:1.85;margin:8px 0 0;color:#8a9b7d}
.episode-row-arrow{color:#8da083;padding:0}.episode-row-arrow .ui-icon{width:13px;height:13px}
body[data-page="books"] .library-list{gap:10px}
body[data-page="books"] .library-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:start;gap:16px;padding:17px 18px;box-shadow:none;border-color:#dce4d6}
body[data-page="books"] .library-item-mark{display:grid;place-content:center;width:33px;height:43px;padding:0;border:0;border-left:3px solid #91a67c;border-radius:3px 6px 6px 3px;background:#edf1e5;color:#889e72}
.library-item-mark .ui-icon{width:20px;height:20px}
body[data-page="books"] .library-item-kicker{display:flex;gap:10px;flex-wrap:wrap;font-size:10px;line-height:1.5;color:#91a080}
body[data-page="books"] .library-item h3{font:600 16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:5px 0 9px;letter-spacing:0;overflow-wrap:anywhere}
.library-episode-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.6;font-size:10px;color:#98a58a}
.library-episode-links>a,.library-more-episodes a{font-size:10px;padding:1px 5px;border:1px solid #dee7d3;border-radius:3px;color:#7b9463}
.library-more-episodes{position:relative;margin:0}.library-more-episodes summary{font-size:10px;cursor:pointer;color:#8c9f75}
.library-more-episodes>div{display:flex;gap:5px;flex-wrap:wrap;padding:8px 0 0}
body[data-page="books"] .library-item-action{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:210px;padding-top:5px}
body[data-page="books"] .library-item-action .external{font-size:11px;min-height:32px;padding:5px 9px;border-color:#d8e2cf;background:#f7faf2;color:#6b8752;border-radius:5px}
.workspace-book-empty{max-width:700px;margin:45px auto;padding:32px;text-align:center}
.workspace-book-icon{display:grid;place-content:center;width:64px;height:72px;margin:0 auto 19px;border:1px solid #d6e0ca;border-radius:5px 12px 12px 5px;background:#e7eddd;color:#819b64;box-shadow:inset 5px 0 #d9e3cb}
.workspace-book-icon .ui-icon{width:31px;height:31px}
.workspace-book-empty h2{font:500 23px/1.5 'Songti SC',serif;margin:0 0 12px;color:#3e5940}
.workspace-book-empty p{font-size:13px;line-height:1.9;color:#8b9d7a;max-width:430px;margin:0 auto 23px}
.workspace-book-empty>div:last-child{display:flex;justify-content:center;gap:13px;flex-wrap:wrap}
.workspace-book-empty .ui-quiet-button{min-width:0;max-width:100%;white-space:normal;text-align:left}
.workspace-book-empty .ui-quiet-button span{min-width:0;overflow-wrap:anywhere}
.workspace-book-empty .ui-quiet-button svg{flex:none}

body[data-page="episode"] #view{padding-top:13px}
.episode-reader .reader-topline{gap:9px;margin:0 0 8px;min-height:32px}
.episode-reader .reader-directory-link{font-size:12px;min-height:32px;gap:7px;color:#71877b}
.episode-reader .reader-directory-link .ui-icon{width:16px;height:16px}
.episode-reader .reader-edition{border:0;padding:0 0 0 9px;margin:0;border-left:1px solid #d9e1d4;line-height:1.4;font-size:11px;letter-spacing:.04em;color:#95a18b}
.reader-top-actions{display:flex;align-items:center;gap:13px;margin-left:auto}
.reader-adjacent{display:flex;align-items:center;gap:2px}
.reader-adjacent .ui-icon-button{width:29px;height:29px;min-height:29px;color:#7b9072}
.reader-adjacent .ui-icon{width:16px;height:16px}
.episode-reader .reader-podcast-link{display:inline-flex;align-items:center;gap:6px;margin:0;color:#8a9b7c;font-size:11px}
.reader-podcast-link .ui-icon{width:13px;height:13px}
.episode-reader .reader-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 14px;margin:0}
.reader-title-block{min-width:0}
.episode-reader .reader-heading h1{font:500 clamp(25px,2.2vw,29px)/1.4 'Songti SC',Georgia,serif;margin:0 0 5px;letter-spacing:0;color:#28433a;overflow-wrap:anywhere}
.episode-reader .reader-meta{font-size:11px;gap:10px;color:#91a184}
.episode-reader .reader-meta .badge{font-size:10px;color:#7b9467;background:#e7efdf}
.episode-reader .reader-meta .badge+.badge{margin:0;padding-left:0;background:transparent;color:#a28b6d}
.reader-heading-tools{display:flex;align-items:center;gap:8px;flex:none}
.reader-heading-tools .ui-quiet-button{font-size:11px;padding:5px 8px}
.episode-reader .reader-summary{margin:0;font-size:11px}
.reader-summary summary{padding:8px;color:#a08765}
.reader-summary>div{width:min(580px,calc(100vw - 38px));right:0;font-size:13px;line-height:1.9}
.episode-reader .reader-layout{grid-template-columns:minmax(0,1fr) 260px;gap:22px}
.reader-aside-slot{align-self:stretch;min-width:0}
.episode-reader .reader-aside{display:flex;flex-direction:column;position:sticky;top:12px;max-height:var(--knowledge-available,calc(100dvh - var(--reader-dock-height,90px) - 145px));padding:16px;background:#f0f4ea;border:1px solid #dce5d4;border-radius:10px;overflow:hidden}
.reader-aside-heading{display:flex;align-items:center;gap:10px;flex:none;margin:0 0 13px}
.episode-reader .reader-aside-heading h2{font-size:14px;font-weight:600}
.reader-aside-heading>[data-entity-count]{margin-left:auto;font-size:11px;color:#8c9f7e}
.reader-knowledge-close{display:none}
.reader-entity-search{display:flex;align-items:center;gap:7px;flex:none;border:1px solid #d6e1cb;border-radius:6px;background:#fafcf7;padding:0 9px;color:#95a783;height:35px}
.reader-entity-search .ui-icon{width:15px;height:15px}
.reader-entity-search input{min-width:0;width:100%;min-height:32px;height:32px;padding:4px 0;background:transparent;border:0;outline:0;box-shadow:none;font-size:12px}
.reader-entity-search:focus-within{border-color:#a7bf92;outline:2px solid #a9bf9326}
.reader-entity-types{display:flex;gap:3px;flex:none;overflow-x:auto;scrollbar-width:thin;margin:10px 0 6px;padding:0 0 4px}
.reader-entity-types>button{flex:none;min-height:26px;line-height:1.5;padding:3px 6px;border-radius:4px;background:transparent;color:#8a9f77;font-size:10px;font-weight:500}
.reader-entity-types>button[aria-pressed="true"]{background:#dfead2;color:#5d7e3d}
.reader-entity-types>button:not(:disabled):hover{background:#e4eddc;transform:none}
.reader-entity-list{min-height:70px;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;padding-right:3px}
.reader-entity-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto 11px;align-items:center;gap:7px;border-bottom:1px solid #dde6d5;padding:9px 2px;font-size:12px;line-height:1.6;color:#5e7c48}
.reader-entity-list>a:last-child{border-bottom:0}
.reader-entity-list>a>span{overflow-wrap:anywhere}
.reader-entity-list>a>small{font-size:9px;color:#99ac84;white-space:nowrap}
.reader-entity-list>a>.ui-icon{width:12px;height:12px;color:#a5b792}
.reader-entity-list>a:hover{color:#365f26;background:#e7efdf}
.reader-entity-empty{padding:17px 3px;font-size:12px;line-height:1.8;color:#8fa37b}
.episode-reader .reader-next{margin:12px 0 0;padding-top:12px;font-size:11px;flex:none;color:#78965b;border-color:#d8e4cc}
.reader-next .ui-icon{width:14px;height:14px}
.reader-knowledge-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 28px);border:1px solid #c8d6bc;border-radius:13px;padding:0;background:var(--paper);box-shadow:0 25px 80px #12291450;color:var(--ink)}
.reader-knowledge-dialog::backdrop{background:#142d2f70;backdrop-filter:blur(3px)}
.reader-knowledge-dialog .reader-aside{position:static;max-height:calc(100dvh - 32px);border:0;background:#fafcf6;border-radius:0;padding:19px}
.reader-knowledge-dialog .reader-knowledge-close{display:inline-flex;margin-left:0;color:#8aa46e}
.reader-knowledge-dialog .reader-aside-heading{margin-bottom:15px}
.reader-findbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;padding:7px 10px;margin:0 0 13px;border:1px solid #cfdcc3;border-radius:7px;background:#f5f8efed;backdrop-filter:blur(12px);box-shadow:0 3px 14px #274c2410;color:#879e72}
.reader-findbar>.ui-icon{width:16px;height:16px}
.reader-findbar input{flex:1;min-width:60px;min-height:31px;height:31px;font-size:13px;border:0;background:transparent;padding:5px 0;outline:0;box-shadow:none}
.reader-findbar output{font-size:11px;color:#8a9f74;white-space:nowrap;min-width:60px;text-align:right}
.reader-findbar .ui-icon-button{width:28px;height:28px;min-height:28px;padding:5px;color:#7f9b62}
.episode-reader .segment{scroll-margin-top:18px}
.episode-reader .segment.is-find-result p{background:#f5edcd;box-shadow:0 0 0 7px #f5edcd;border-radius:3px}
.episode-reader .segment mark{background:#ecd49a;color:#745a2d;border-radius:2px}
.episode-player .player-reading-line .player-knowledge{display:none}

.cosmos-header h1{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0}
.cosmos-header .cosmos-total{display:none}
.cosmos-panel-head .cosmos-eyebrow{display:none}
.cosmos-panel-head h2{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:15px;letter-spacing:0}
.cosmos-detail-top button{display:inline-flex;align-items:center;gap:5px;min-height:30px;font-size:11px}
.cosmos-detail-top .ui-icon{width:14px;height:14px}
.cosmos-detail-top .cosmos-catalogue-return{margin-left:auto;color:#88a7b8}
.cosmos-detail-top .cosmos-catalogue-return .ui-icon{width:17px;height:17px}
.cosmos-attributes{margin:10px 0;padding:10px;border:1px solid #42616f;border-radius:7px;background:#142b3e}
.cosmos-attributes h4{margin:0 0 8px;color:#daefef;font-size:11px;font-weight:650}
.cosmos-attributes dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,95px),1fr));gap:6px;margin:0}
.cosmos-attributes dl>div{min-width:0;padding:7px 8px;border-radius:5px;background:#20394b}
.cosmos-attributes dt{color:#acc9d3;font-size:10px}
.cosmos-attributes dd{margin:4px 0 0;color:#e6f5f5;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.cosmos-attributes dd span{font-size:10px;font-weight:400}
.cosmos-attributes summary{margin-top:9px;color:#b0d9e1;font-size:11px;cursor:pointer}
.cosmos-attribute-source{padding-top:8px;font-size:11px}
.cosmos-attribute-source .cosmos-event-source{margin-top:4px}
.cosmos-library-link{display:inline-flex;align-items:center;gap:5px;color:#94b5c9;font-size:11px;white-space:nowrap}
.cosmos-library-link .ui-icon{width:15px;height:15px}
.cosmos-header-actions{display:flex;align-items:center;gap:13px;flex:none}
.cosmos-header-actions #relation-mode{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 8px;border:1px solid #657f933d;border-radius:5px;background:#22364a;color:#9cbacc;font-size:10px;line-height:1.5;font-weight:500;white-space:nowrap}
.cosmos-header-actions #relation-mode b{font-size:9px;font-weight:400;color:#7d9aaf}
.cosmos-header-actions #relation-mode:not(:disabled):hover{background:#2a4256;transform:none}
.cosmos-context-return{display:inline-flex;align-items:center;gap:5px;min-height:30px;color:#9bb8cb;font-size:11px}
.cosmos-list-count{font-size:10px;line-height:1.5}
.cosmos-detail-explore{margin:0}
.cosmos-detail-explore>summary{display:none}
.cosmos-entity-metrics .cosmos-metric-empty{font-size:10px;color:#7b9aad;line-height:1.7}

body[data-page="assistant"] main{height:calc(100dvh - var(--workspace-top,0px))}
body[data-page="assistant"] #view{height:100%;padding-top:18px;padding-bottom:18px;display:flex;flex-direction:column;overflow:hidden}
body[data-page="assistant"] .workspace-heading{flex:none;margin-bottom:13px}
.assistant-about{position:relative;margin:0;font-size:11px;color:#8ba17b}
.assistant-about summary{cursor:pointer;list-style:none;padding:7px 0}
.assistant-about>p{position:absolute;z-index:30;right:0;top:25px;width:280px;margin:0;padding:15px;border:1px solid #d3dfc5;border-radius:8px;background:#fffefa;color:#819869;font-size:11px;line-height:1.9;box-shadow:0 8px 25px #2c4d2412}
body[data-page="assistant"] .persona-choices{flex:none;margin:0 0 13px;gap:10px}
body[data-page="assistant"] .persona-choice{min-width:0;display:flex;align-items:center;gap:12px;padding:11px 14px;min-height:64px;border-radius:8px}
body[data-page="assistant"] .portrait{width:37px;height:40px;margin:0;flex:none;border-radius:6px;overflow:hidden}
body[data-page="assistant"] .portrait img{width:100%;height:100%;object-fit:cover}
body[data-page="assistant"] .portrait i,body[data-page="assistant"] .persona-choice p{display:none}
body[data-page="assistant"] .persona-choice small{font-size:9px;letter-spacing:.06em;color:#9ca988}
body[data-page="assistant"] .persona-choice h2{font:600 16px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;margin:1px 0 0}
body[data-page="assistant"] .conversation-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 250px;gap:18px}
body[data-page="assistant"] .conversation{border-radius:10px}
body[data-page="assistant"] .conversation-top{min-height:43px;padding:9px 14px;font-size:11px;gap:10px;line-height:1.5}
body[data-page="assistant"] .conversation-top>span{min-width:0;display:flex;align-items:center;gap:6px}
.conversation-top .textbutton{min-height:28px;font-size:10px;white-space:nowrap}
.online-dot.is-offline{background:#adb8a1;box-shadow:none}
body[data-page="assistant"] .conversation-welcome{padding:22px 20px}
body[data-page="assistant"] .welcome-avatar{width:56px;height:56px;margin-bottom:10px}
body[data-page="assistant"] .conversation-welcome h3{font-size:20px}
body[data-page="assistant"] .conversation-welcome p{font-size:12px}
body[data-page="assistant"] .conversation-welcome small{font-size:10px;color:#9dac8e}
body[data-page="assistant"] .prompt-chips{gap:7px;margin-top:18px}
body[data-page="assistant"] .prompt-chips button{font-size:11px;line-height:1.7;padding:7px 10px;white-space:normal;text-align:left;border-radius:6px}
body[data-page="assistant"] #persona-form{margin:9px 14px 12px}
body[data-page="assistant"] #persona-question{min-height:68px;height:68px;max-height:150px;font-size:13px;padding:10px 12px;border-radius:7px;resize:vertical}
body[data-page="assistant"] .composer-foot{font-size:10px;margin-top:6px}
body[data-page="assistant"] #persona-send{min-height:33px;font-size:12px;padding:6px 14px}
body[data-page="assistant"] .persona-dossier{margin:0;padding:15px;border-radius:9px;font-size:12px;overflow-y:auto}
.persona-dossier>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;font-size:13px;font-weight:600;color:#597745;cursor:pointer}
.persona-dossier>summary:after{content:"−";color:#9eb083;font-size:16px}
.persona-dossier:not([open])>summary:after{content:"+"}
.persona-dossier h3{font:600 14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:15px 0 8px;letter-spacing:0}
.persona-dossier>.eyebrow{display:none}
body[data-page="assistant"] .persona-stats{display:flex;gap:22px;padding:12px 0;margin:12px 0;border-top:1px solid #d9e3ce;border-bottom:1px solid #d9e3ce}
.persona-stats>b{font:500 19px/1.4 Georgia,serif}
.persona-stats small{font:10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin-top:3px}
.persona-dossier details{font-size:11px;margin:13px 0}
.persona-dossier details summary{line-height:1.7;cursor:pointer}
.persona-dossier>p{font-size:12px;line-height:1.9}

/* The same controls extend to the public entrance and account pages. */
.spaces-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.spaces-wordmark{font:600 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.05em;color:#526e54}
.spaces-page .spaces-intro{padding:0;margin:0 0 24px;max-width:none;min-height:0}
.spaces-page .spaces-intro{background:none;border:0;border-radius:0;box-shadow:none;color:var(--ui-ink)}
.spaces-page .spaces-intro:before,.spaces-page .spaces-intro:after{display:none}
.spaces-page .spaces-intro h1{font:600 27px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;margin:0 0 7px;color:var(--ui-ink)}
.spaces-page .spaces-intro p{font-size:13px;line-height:1.8;color:#8b9f7b;margin:0}
.spaces-page .sectionhead{margin:0 0 12px;min-height:28px;align-items:center}
.spaces-page .sectionhead h2{font:600 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:0;letter-spacing:0}
.spaces-page .sectionhead .muted{font-size:10px;color:#a0af91}
.spaces-page .space-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:13px;margin:0}
.spaces-page .space{min-height:210px;border-radius:10px;padding:20px 21px;background:#fffefa;border-color:#d9e3cf;box-shadow:none}
.spaces-page .space h2{font:500 32px/1.4 'Songti SC',serif;margin:13px 0 6px;color:#3d5d39}
.spaces-page .space p{font-size:12px;line-height:1.8;margin:0;color:#90a279}
.spaces-page .space-number{font-size:9px;letter-spacing:.08em;color:#a2b38b}
.spaces-page .space-bottom{font-size:11px;padding-top:13px;margin-top:22px;color:#86a16b}
.spaces-page .spaces-footer{margin:40px 0 0;padding-top:16px;font-size:10px;color:#a7b995}
.login-page .login-shell{width:min(880px,calc(100% - 40px));grid-template-columns:.85fr 1.15fr;min-height:480px;border-radius:14px;overflow:hidden}
.login-page .login-aside{padding:35px 29px}
.login-page .login-emblem{font-size:34px;width:90px;height:108px;margin:27px 0}
.login-page .login-aside h2{font-size:23px;line-height:1.6}
.login-page .login-aside p{font-size:12px;line-height:1.9}
.login-page .login{padding:31px 35px}
.login .ui-back-link{font-size:11px;margin-bottom:25px}
.login-page .login h1{font:600 24px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;margin:0 0 8px}
.login-page .login>.muted{font-size:12px;line-height:1.8;margin-bottom:24px;color:#8b9f78}
.login-page .login form>label{font-size:12px;color:#8b9e78}
.login-page .login input{height:44px;min-height:44px;font-size:14px;border-radius:7px}
.login-page .login form>button{height:42px;min-height:42px;border-radius:7px;font-size:13px}
.login-account-link{display:block;text-align:center;font-size:12px;line-height:1.7;margin-top:18px;color:#8ca274}
.account-page .account-shell{max-width:1040px;padding:28px 24px 40px}
.account-page .account-shell>.ui-back-link{margin-bottom:18px}
.account-page .account-shell>h1{font:600 25px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;margin:0 0 7px}
.account-page .account-shell>.account-muted{font-size:12px;line-height:1.8;margin:0 0 24px;color:#8fa37c}
.account-page #auth{display:block;max-width:460px;margin:26px auto 0}
.account-auth-tabs{display:flex;gap:20px;margin-bottom:12px;border-bottom:1px solid #d9e3ce}
.account-auth-tabs button{flex:1;padding:10px 8px;border:0;border-radius:0;background:transparent;color:#93a67d;font-size:13px}
.account-auth-tabs button[aria-selected="true"]{border-bottom:2px solid #698a4f;color:#597b40}
.account-auth-tabs button:not(:disabled):hover{background:#e9f0df;transform:none}
.account-page .account-card{padding:22px;border-radius:10px;border-color:#d5e0c7;background:#fffefa}
.account-page .account-card h2{font:600 16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0}
.account-page #auth .account-card>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.account-page #auth .account-card label:first-of-type{margin-top:0}
.account-page .account-card label{font-size:12px;letter-spacing:0;color:#8aa16d;margin:16px 0 6px}
.account-page .account-card input{height:42px;min-height:42px;border-color:#ccdabe;font-size:14px;background:#fdfefb}
.account-page .account-card button{font-size:13px;min-height:38px;padding:7px 14px;border-radius:6px;background:#4a6f35}
.account-page .account-card button:not(:disabled):hover{background:#5c8245;transform:none}
.account-page #auth form>button{width:100%;margin-top:22px}
.account-page .account-error{font-size:12px;line-height:1.7;margin:9px 0}
.account-page #panel{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);grid-template-areas:"library settings" "history settings";gap:18px;align-items:start;margin-top:23px}
.account-page #panel:has(>#verify-banner:not([hidden])){grid-template-areas:"verify verify" "library settings" "history settings"}
.account-page #panel #verify-banner{grid-area:verify}
.account-page #panel .account-card:has(#entitlements){grid-area:library}
.account-page #panel #access-history{grid-area:history}
.account-page #panel .account-card:has(#me){grid-area:settings}
.account-page #panel #me{font-size:13px;line-height:1.8;overflow-wrap:anywhere}

@media(max-width:1150px){body[data-page="episodes"] .episode-list{grid-template-columns:1fr}.episode-reader .reader-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.reader-heading-tools{gap:3px}.reader-heading-tools .ui-quiet-button{font-size:10px}.episode-reader .reader-aside{padding:13px}body[data-page="assistant"] .conversation-layout{grid-template-columns:minmax(0,1fr) 220px;gap:12px}}
@media(max-width:930px){.episode-reader .reader-layout{grid-template-columns:1fr}.reader-aside-slot{display:none}.episode-player .player-reading-line .player-knowledge{display:inline-flex;align-items:center;gap:5px;max-width:42%;font-size:10px;color:#7d9a5e}.episode-player .player-knowledge .ui-icon{width:13px;height:13px}.episode-player .player-knowledge b{font-size:9px;font-weight:500;background:#e2ecd4;border-radius:3px;padding:2px 4px}.player-reading-hint{display:none}body[data-page="assistant"] #view{overflow-y:auto}body[data-page="assistant"] .conversation-layout{display:flex;flex-direction:column;overflow:visible;gap:13px;flex:1;min-height:0}body[data-page="assistant"] .conversation{flex:1;min-height:350px}body[data-page="assistant"] .persona-dossier{flex:none;max-height:400px;height:auto;overflow:auto}.spaces-page .space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cosmos-library-link{font-size:0}.cosmos-library-link .ui-icon{width:17px;height:17px}}
@media(max-width:700px){body>aside nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;overflow:visible;margin-top:7px}body>aside nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:43px;padding:5px 1px;margin:0;font-size:10px;line-height:1.5;white-space:nowrap;border-radius:6px}body>aside nav a .ui-icon{width:16px;height:16px}body>aside .space-actions button{font-size:10px;gap:5px;padding:4px 0}body>aside .space-actions .ui-icon{width:13px;height:13px}.workspace-heading{min-height:31px;margin-bottom:13px;gap:8px}.workspace-heading h1{font-size:21px}.workspace-heading-main{gap:8px}.workspace-count{font-size:10px}.workspace-heading-actions{gap:3px}.workspace-heading-actions .ui-quiet-button{font-size:10px;gap:5px;padding:5px 4px}.workspace-heading-actions .ui-icon{width:14px;height:14px}.workspace-back{width:26px;min-height:28px;height:28px;padding:3px}.catalogue-toolbar{gap:7px}.catalogue-search{max-width:none;min-width:100%;height:38px}.catalogue-search input{font-size:13px}.catalogue-select{flex:1}.catalogue-select select{width:100%;max-width:none;height:35px;min-height:35px;font-size:11px}.catalogue-resultbar{margin-top:5px;margin-bottom:8px;min-height:33px;font-size:10px}.catalogue-pager{gap:8px;font-size:10px}.catalogue-pager button{width:29px;height:29px;min-height:29px}.catalogue-bottom{font-size:10px}body[data-page="episodes"] .episode-row{grid-template-columns:41px minmax(0,1fr) 16px;gap:11px;min-height:102px;padding:16px 13px}body[data-page="episodes"] .episode-row-number strong{font-size:26px}body[data-page="episodes"] .episode-row h3{font-size:15px;margin-top:7px}body[data-page="episodes"] .episode-row-top{gap:5px}body[data-page="episodes"] .episode-row p{font-size:11px}body[data-page="books"] .library-item{grid-template-columns:28px minmax(0,1fr);gap:10px;padding:15px 13px}body[data-page="books"] .library-item-mark{width:27px;height:37px}.library-item-mark .ui-icon{width:17px;height:17px}body[data-page="books"] .library-item h3{font-size:15px}body[data-page="books"] .library-item-action{grid-column:2;max-width:none;padding:0;justify-content:flex-start}body[data-page="books"] .library-item-action .external{font-size:10px;padding:4px 8px;min-height:30px}.workspace-book-empty{margin:25px auto;padding:24px 4px}.workspace-book-empty h2{font-size:21px}.workspace-book-empty p{font-size:12px}.workspace-book-empty>div:last-child{gap:7px}.episode-reader .reader-topline{gap:7px;min-height:30px;margin-bottom:7px}.episode-reader .reader-directory-link{font-size:11px;gap:5px;min-height:30px}.episode-reader .reader-edition{font-size:10px;padding-left:7px}.reader-top-actions{gap:5px}.reader-adjacent .ui-icon-button{width:24px;height:28px;min-height:28px;padding:4px}.episode-reader .reader-podcast-link{font-size:9px;gap:4px}.episode-reader .reader-podcast-link .ui-icon{width:12px;height:12px}.episode-reader .reader-heading{align-items:flex-start;padding-bottom:12px;gap:6px}.episode-reader .reader-heading h1{font-size:25px;margin-bottom:6px}.episode-reader .reader-meta{font-size:10px;gap:6px}.episode-reader .reader-meta .badge{font-size:9px}.reader-heading-tools{flex-direction:column;gap:0;align-items:flex-end;padding-top:1px}.reader-heading-tools .ui-quiet-button{font-size:10px;gap:4px;padding:4px 5px;min-height:28px}.reader-heading-tools .ui-icon{width:14px;height:14px}.reader-summary summary{font-size:10px;padding:5px}.episode-reader .reader-summary>div{right:0;width:calc(100vw - 35px);font-size:12px}.reader-findbar{gap:3px;padding:5px 7px;margin-bottom:10px}.reader-findbar>svg{display:none}.reader-findbar input{font-size:12px;min-width:60px}.reader-findbar output{font-size:10px;min-width:53px}.reader-findbar .ui-icon-button{width:25px;height:27px;min-height:27px;padding:4px}.episode-reader .segment{scroll-margin-top:12px}.cosmos-detail-top button{font-size:10px}.cosmos-library-link{grid-column:2;grid-row:1}.cosmos-header{grid-template-columns:minmax(0,1fr) auto auto;column-gap:12px}.cosmos-search{grid-column:1/-1}.cosmos-help{grid-column:3;grid-row:1}body[data-page="assistant"] #view{padding:13px 15px 14px}body[data-page="assistant"] .workspace-heading{margin-bottom:10px}body[data-page="assistant"] .persona-choices{margin-bottom:10px;gap:8px}body[data-page="assistant"] .persona-choice{gap:8px;padding:9px;min-height:58px}body[data-page="assistant"] .portrait{width:29px;height:35px}body[data-page="assistant"] .persona-choice h2{font-size:14px}body[data-page="assistant"] .persona-choice small{font-size:8px;letter-spacing:0}body[data-page="assistant"] .conversation-top{font-size:10px;min-height:39px;padding:8px 10px}.conversation-top .textbutton{font-size:9px}body[data-page="assistant"] .chat-avatar{width:20px;height:20px}body[data-page="assistant"] .conversation-welcome{padding:16px 12px}body[data-page="assistant"] .welcome-avatar{width:43px;height:43px;margin-bottom:9px}body[data-page="assistant"] .conversation-welcome h3{font-size:18px}body[data-page="assistant"] .conversation-welcome p{font-size:11px}body[data-page="assistant"] .prompt-chips{margin-top:13px;gap:5px}body[data-page="assistant"] .prompt-chips button{font-size:10px;padding:5px 8px}body[data-page="assistant"] #persona-form{margin:8px 10px 10px}body[data-page="assistant"] #persona-question{min-height:57px;height:57px;font-size:12px}body[data-page="assistant"] .composer-foot>span{font-size:9px;max-width:70%}body[data-page="assistant"] #persona-send{font-size:11px;padding:6px 11px;min-height:31px}.spaces-topline{margin-bottom:22px;gap:10px}.spaces-wordmark{font-size:12px}.spaces-topline .ui-quiet-button{font-size:11px;padding:5px 7px}.spaces-page .spaces-intro{margin-bottom:20px}.spaces-page .spaces-intro h1{font-size:24px}.spaces-page .spaces-intro p{font-size:12px}.spaces-page .space-grid{grid-template-columns:1fr}.spaces-page .space{min-height:188px;padding:18px 20px}.spaces-page .spaces-footer{margin-top:28px}.login-page .login-shell{display:block;min-height:0;width:min(440px,calc(100% - 28px));margin:20px auto;border-radius:11px}.login-page .login-aside{display:none}.login-page .login{padding:27px 23px}.login .ui-back-link{margin-bottom:20px}.login-page .login h1{font-size:22px}.login-page .login>.muted{font-size:12px;margin-bottom:22px}.account-page .account-shell{padding:19px 17px 35px}.account-page .account-shell>h1{font-size:23px}.account-page .account-shell>.account-muted{font-size:11px}.account-page .account-shell>.ui-back-link{font-size:11px;margin-bottom:15px}.account-page .account-card{padding:19px}.account-page #auth{margin-top:20px}.account-auth-tabs button{font-size:12px}.account-page .account-grid{gap:13px}}
@media(prefers-reduced-motion:reduce){.ui-icon-button,.episode-row,.ui-quiet-button{transition:none}}
@media(max-width:760px){.account-page #panel{display:flex;flex-direction:column;gap:13px;margin-top:19px}.account-page #panel .account-card{width:100%}.reader-entity-types>button{min-height:32px;font-size:11px}.reader-findbar .ui-icon-button{width:31px;height:32px;min-height:32px;padding:6px}}
@media(max-width:760px){.cosmos.is-focused .cosmos-header{display:flex;flex-wrap:nowrap;gap:9px;padding:9px 11px}.cosmos.is-focused .cosmos-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cosmos.is-focused .cosmos-search{flex:1;min-width:95px;max-width:none;margin:0;width:auto}.cosmos.is-focused .cosmos-header-actions{gap:7px}.cosmos.is-focused .cosmos-header-actions .cosmos-library-link{display:none}.cosmos.is-focused .cosmos-filters{display:none}.cosmos.is-focused .cosmos-detail-top{min-height:39px;padding:5px 13px}.cosmos.is-focused .cosmos-entity-metrics{gap:11px;margin-top:11px}.cosmos.is-focused .cosmos-knowledge-title h3{font-size:12px}}
@media(max-width:760px){.cosmos.is-focused .cosmos-panel{order:-1;max-height:none;min-height:0;border-top:0;border-bottom:1px solid #43607755;border-radius:0}.cosmos.is-focused .cosmos-map{height:340px}.cosmos.is-focused .cosmos-detail-scroll{max-height:60dvh;padding-top:14px;padding-bottom:15px}.cosmos.is-focused .cosmos-entity-heading h2{font-size:24px;margin-bottom:12px}.cosmos-detail-explore>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding:10px 0 2px;border-top:1px solid #65869d35;color:#a6c6d7;font-size:11px;list-style:none;cursor:pointer}.cosmos-detail-explore>summary>span{font-size:9px;color:#7596ac}.cosmos-detail-explore[open]>summary>span{font-size:0}.cosmos-detail-explore[open]>summary>span:after{content:"收起";font-size:9px}.cosmos.is-focused .cosmos-mobile-detail{bottom:65px}.cosmos.is-focused .cosmos-map-heading{top:12px}}
@media(max-width:700px){body>aside{display:block}body>aside footer{position:absolute;top:7px;right:15px;bottom:auto;width:auto;margin:0;padding:0;font-size:0;line-height:0}body>aside .space-actions button span{display:inline}.cosmos-header{grid-template-columns:minmax(0,1fr) auto}.cosmos-header-actions{grid-column:2;grid-row:1;gap:8px}.cosmos-header-actions #relation-mode{font-size:9px;padding:4px 6px;gap:4px}.cosmos-header-actions .cosmos-help summary{font-size:9px}.cosmos-header-actions .cosmos-library-link{font-size:0}.cosmos-search{grid-row:2;grid-column:1/-1}}

/* Episode material opens above the reader without moving the transcript. */
.reader-guide-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(720px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 68px #22375438;
}
.reader-guide-dialog[open] { display: flex; flex-direction: column; }
.reader-guide-dialog::backdrop { background: #16284177; }
.reader-guide-dialog > header {
  padding: 12px 22px;
  flex: none;
}
.reader-guide-dialog h2 { margin: 0; font: 600 18px/1.4 system-ui, sans-serif; }
.reader-guide-nav {
  display: flex;
  flex: none;
  gap: 5px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.reader-guide-nav button {
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.reader-guide-nav button[aria-pressed="true"],
.reader-guide-nav button:not(:disabled):hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}
.reader-guide-body {
  min-height: 0;
  padding: 18px 22px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.reader-guide-body p { margin: 0; white-space: pre-wrap; }
.reader-guide-highlights { margin: 0; padding-inline-start: 1.4em; }
.reader-guide-highlights li + li { margin-top: 14px; }
.reader-guide-highlights p { margin-top: 3px; color: var(--muted); }
@media(max-width:700px) {
  .reader-guide-dialog > header { display: flex; padding: 10px 15px; }
  .reader-guide-body { padding: 14px 15px 20px; }
  .reader-guide-nav { padding-inline: 7px; gap: 2px; }
  .reader-guide-nav button { padding-inline: 8px; }
}

/* A short trail stays in the layout; its expanded steps never cover the map. */
.cosmos-journey{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:6px 14px;background:#111e32;border-bottom:1px solid var(--cosmos-line);font-size:12px;color:#b9c9df}
.cosmos-journey-library{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none;min-height:34px}
.cosmos-journey-library [data-journey-library]{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;background:#263b59;color:#e9f3ff;border-color:#456083;font-weight:650}
.cosmos-journey-library [data-journey-library] small{color:#b4c9e5;font-size:10px;font-weight:400}
.cosmos-journey-library .cosmos-journey-status:empty{display:none}
.cosmos-journey-library .ui-icon,.cosmos-journey-controls .ui-icon,.cosmos-journey-actions .ui-icon{width:15px;height:15px;flex:none}
.cosmos .cosmos-journey button,.cosmos button.cosmos-follow{font-size:11px;min-height:31px;padding:4px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#d1e2f6;box-shadow:none}
.cosmos .cosmos-journey button:not(:disabled):hover,.cosmos button.cosmos-follow:not(:disabled):hover{background:#2d476a;color:#fff;transform:none}
.cosmos .cosmos-journey [data-journey-library]{background:#263b59;border-color:#456083}
.cosmos .cosmos-journey [data-journey-save]{background:#b5d7ff;color:#11223a;font-weight:650}
.cosmos-journey-path{flex:1;min-width:0;border-left:1px solid var(--cosmos-line);padding-left:12px}
.cosmos-journey-current{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;min-width:0}
.cosmos-journey-location{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;min-width:0}
.cosmos-journey-location strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e8f2ff;font-size:12px}
.cosmos-journey-location>span{color:#aac1df;font-size:10px;white-space:nowrap}
.cosmos-journey-location progress{grid-column:1/-1;width:100%;height:3px;border:0;border-radius:2px;background:#2d4566;accent-color:#8fbcfa}
.cosmos-journey-location progress::-webkit-progress-bar{background:#2d4566;border-radius:2px}
.cosmos-journey-location progress::-webkit-progress-value{background:#8fbcfa;border-radius:2px}
.cosmos-journey-controls,.cosmos-journey-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}
.cosmos-journey-controls button{display:grid;place-items:center}
.cosmos-journey-progress,.cosmos-journey-actions [data-journey-saved]{font-size:10px;color:#b9cfe9;font-variant-numeric:tabular-nums}
.cosmos-journey-path details{min-width:0}
.cosmos-journey-path summary{cursor:pointer;padding:4px 0;color:#a9c9ef;font-size:10px}
.cosmos-journey-path ol{display:flex;gap:7px;margin:0;padding:3px 0 7px;overflow-x:auto;list-style:none;scrollbar-width:thin}
.cosmos-journey-path li{display:grid;align-content:start;gap:2px;flex:none;max-width:185px;border-left:1px solid #54729a;padding-left:6px}
.cosmos-journey-path li.is-current{border-color:#b5d7ff}
.cosmos-journey-path li>small{padding:2px 8px;color:#a6bcdc}
.cosmos .cosmos-journey .cosmos-journey-edge{color:#afc8e6;font-size:10px}
.cosmos .cosmos-journey button[aria-current="step"]{border-color:#789dcc;background:#263e5d;color:#eaf5ff}
#relation-mode:disabled{opacity:1;cursor:default}
.cosmos-journey-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 48px));max-width:none;max-height:min(82dvh,740px);padding:0;border:1px solid #49658a;border-radius:15px;background:#101e32;color:#e8f1ff;box-shadow:0 25px 90px #050a14ad;overflow:hidden}
.cosmos-journey-dialog[open]{display:flex;flex-direction:column}
.cosmos-journey-dialog::backdrop{background:#060f1dcc;backdrop-filter:blur(3px)}
.cosmos-journey-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 22px 9px}
.cosmos-journey-dialog-head h2{margin:0;color:#f2f7ff;font:650 20px/1.4 system-ui,sans-serif}
.cosmos-journey-dialog-head p{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:5px 0 0;color:#aec5e4;font-size:12px}
.cosmos-journey-dialog-head form{margin:0}
.cosmos-journey-dialog-head button,.cosmos-journey-tabs button,.cosmos-topic-journeys button{border:0;background:none;color:inherit;box-shadow:none}
.cosmos-journey-dialog-head .ui-icon-button{color:#c5dcf8}
.cosmos-journey-dialog-head [data-journey-all]{padding:3px 5px;color:#b9d8ff;text-decoration:underline;text-underline-offset:3px}
.cosmos-journey-dialog-tools{display:grid;gap:12px;padding:0 22px 12px;border-bottom:1px solid #3e5678}
.cosmos-journey-tabs{display:flex;gap:6px;width:fit-content;padding:3px;background:#0c1627;border:1px solid #354b69;border-radius:8px}
.cosmos-journey-tabs button{display:flex;gap:6px;align-items:center;padding:6px 10px;border-radius:5px;font-size:12px;color:#bad0ec}
.cosmos-journey-tabs button[aria-pressed="true"]{background:#2a4367;color:#f2f7ff}
.cosmos-journey-tabs button span{font-size:10px;color:#bad0ec;font-variant-numeric:tabular-nums}
.cosmos-journey-filters{display:flex;gap:8px;min-width:0}
.cosmos-journey-filters label{display:flex;align-items:center;flex:1;gap:8px;min-width:0;padding:0 11px;background:#0c1728;border:1px solid #436082;border-radius:7px;color:#b6cdee}
.cosmos-journey-filters label:focus-within{border-color:#a8cef8}
.cosmos-journey-filters .ui-icon{width:16px;height:16px;flex:none}
.cosmos-journey-filters input,.cosmos-journey-filters select{min-width:0;padding:7px 4px;min-height:34px;color:#eaf3ff;font:inherit;font-size:13px}
.cosmos-journey-filters input{width:100%;background:transparent;border:0;outline:none}
.cosmos-journey-filters input::placeholder{color:#aac1df}
.cosmos-journey-filters select{background:#172842;border:1px solid #436082;border-radius:7px;padding-inline:7px}
.cosmos-journey-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 22px 20px}
.cosmos-journey-result-count{color:#afc5e4;font-size:11px;margin-bottom:9px}
.cosmos-journey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.cosmos-journey-grid .cosmos-journey-card{display:grid;gap:5px;min-width:0;align-content:start;padding:12px 13px;border:1px solid #3a5378;border-radius:8px;background:#182a44;box-shadow:none;color:#e8f2ff;text-align:left;white-space:normal}
.cosmos-journey-grid .cosmos-journey-card:is(:hover,:focus-visible){border-color:#9abfed;background:#223b5d;transform:none}
.cosmos-journey-card-meta,.cosmos-journey-card-route{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#b5ceee;font-size:11px}
.cosmos-journey-card-meta{justify-content:space-between}
.cosmos-journey-card strong{font-size:14px;line-height:1.4}
.cosmos-journey-card-question{font-size:12px;line-height:1.5;color:#c5d7ed}
.cosmos-journey-card-route{padding-top:5px;border-top:1px solid #385373}
.cosmos-journey-card-route span{color:#c0dafa}
.cosmos-journey-empty{grid-column:1/-1;text-align:center;padding:16px;color:#b7cce6}
.cosmos-topic-journeys{padding:12px 14px;display:grid;gap:6px;border-bottom:1px solid var(--cosmos-line);background:#182943}
.cosmos-topic-journeys header,.cosmos-topic-journeys [data-topic-guide]{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cosmos-topic-journeys h3{margin:0;color:#dcecff;font-size:12px}
.cosmos-topic-journeys [data-topic-journeys]{display:inline-flex;align-items:center;gap:4px;padding:3px 0;color:#b8d7ff;font-size:11px}
.cosmos-topic-journeys [data-topic-guide]{padding:6px 8px;border:1px solid #445f84;border-radius:6px;text-align:left;white-space:normal;color:#e5f0ff}
.cosmos-topic-journeys [data-topic-guide]:hover{background:#284362;transform:none}
.cosmos-topic-journeys [data-topic-guide] span{display:grid;gap:3px}
.cosmos-topic-journeys strong{font-size:12px}
.cosmos-topic-journeys small{font-size:10px;color:#bfd2ed}
.cosmos-topic-journeys .ui-icon{width:14px;height:14px;flex:none}
@media(max-width:960px){
 .cosmos-journey:has(.cosmos-journey-current){display:block}
 .cosmos-journey-path{border-left:0;padding-left:0}
}
@media(max-width:760px){
 .cosmos-journey:has(.cosmos-journey-current){position:sticky;top:0;z-index:8}
 .cosmos:has(.cosmos-journey-current) .cosmos-evidence{scroll-margin-top:156px}
}
@media(max-width:580px){
 .cosmos-journey{padding:4px 8px}
 .cosmos-journey-current{grid-template-columns:minmax(0,1fr) auto;gap:4px 7px;padding-top:2px}
 .cosmos-journey-location{grid-column:1;grid-template-columns:1fr}
 .cosmos-journey-location>span{overflow:hidden;text-overflow:ellipsis}
 .cosmos-journey-actions{grid-column:1/-1;justify-content:flex-end}
 .cosmos-journey-dialog{margin:auto 0 0;width:100%;max-height:min(82dvh,740px);border-radius:14px 14px 0 0}
 .cosmos-journey-dialog-head{padding:15px 14px 9px}
 .cosmos-journey-dialog-tools{padding:0 14px 10px}
 .cosmos-journey-dialog-body{padding:9px 12px calc(14px + env(safe-area-inset-bottom))}
 .cosmos-journey-grid{grid-template-columns:1fr}
}

/* Constellation atlas, object index and edge evidence share the map. */
.cosmos-map-heading{top:16px}
.cosmos-map-heading>div{flex-direction:column-reverse;gap:4px}
.cosmos-map-heading #cosmos-map-count{max-width:100%;padding:0;border:0;background:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cosmos .cosmos-map-browse,.cosmos .cosmos-network-button{pointer-events:auto;min-height:32px;padding:5px 10px;border:1px solid #6486a260;border-radius:7px;background:#152c45;color:#d6eaff;font-size:11px;line-height:1.4;text-align:left;white-space:nowrap}
.cosmos .cosmos-network-button{display:block;margin:12px 0}
.cosmos :is(.cosmos-map-browse,.cosmos-network-button):hover{transform:none;background:#243e59}
.cosmos-atlas-head{align-items:start;gap:10px;padding:14px 15px 9px}
.cosmos-atlas-head h2{margin:0;color:#e7f1ff;font-size:15px;line-height:1.4}
.cosmos-atlas-head p{margin:4px 0 1px;color:#a3b9d2;font-size:11px;line-height:1.55}
.cosmos-atlas-head>span{flex:none;color:#a3b9d2;font-size:11px}
.cosmos-atlas-list{display:grid;align-content:start;gap:6px;padding:3px 12px 14px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.cosmos-atlas-list button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:8px;padding:8px 9px;width:100%;min-height:37px;border:1px solid #506d943e;background:#152945;text-align:left;color:#dceafb;line-height:1.4;font-size:12px}
.cosmos-atlas-list button small{display:block;margin-top:3px;color:#aac1da;font-size:10px;font-weight:400}
.cosmos-atlas-list button .cosmos-atlas-count{color:#97bdde;font-variant-numeric:tabular-nums}
.cosmos-atlas-list button:is(:hover,:focus-visible){background:#213b59;border-color:#719cc282;transform:none}
.cosmos-atlas-symbol{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#bfe8ff;background:radial-gradient(circle,#6199c94d,transparent 73%);font-size:17px}
.cosmos-atlas-members button[data-member]{grid-template-columns:9px minmax(0,1fr) auto 10px;align-items:center}
.cosmos-atlas-members button[data-member] small{margin:0}
.cosmos-atlas-members button i{width:6px;height:6px;border-radius:50%;background:var(--star-color);box-shadow:0 0 9px var(--star-color)}
.cosmos-atlas-links{display:grid;gap:5px;margin-top:7px;padding-top:9px;border-top:1px solid var(--cosmos-line)}
.cosmos-atlas-links h3{margin:0 0 2px;color:#c5dbf2;font:600 12px/1.4 system-ui,sans-serif}
.cosmos-atlas-links button{display:block}
.cosmos-map-tools [data-map-tool="fullscreen"]{color:#d6edff}
.cosmos-map-tools [data-map-tool="fullscreen"][aria-pressed="true"]{background:#355573;border-color:#8abfe8}
body.cosmos-expanded{overflow:hidden}
body[data-page="graph"] .cosmos:is(:fullscreen,.is-expanded){width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;overflow:hidden}
.cosmos.is-expanded{position:fixed;inset:0;z-index:200}
.cosmos:is(:fullscreen,.is-expanded) .workspace-account-controls{display:none}
@media(max-width:760px){
 .cosmos-atlas-list{max-height:430px}
 .cosmos.is-constellation .cosmos-panel{order:0;min-height:0}
 .cosmos.is-constellation .cosmos-map{height:clamp(300px,51dvh,480px)}
 .cosmos.is-constellation .cosmos-mobile-detail{display:block;position:absolute;left:12px;bottom:56px;padding:5px 8px;border:1px solid #7bacc359;background:#19334bd6;color:#c6e4f6;font-size:10px;pointer-events:auto}
 .cosmos:is(:fullscreen,.is-expanded) .cosmos-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(170px,1.35fr) minmax(115px,1fr)}
 .cosmos:is(:fullscreen,.is-expanded) .cosmos-map{height:auto}
 .cosmos:is(:fullscreen,.is-expanded) .cosmos-panel{order:0;min-height:0;max-height:none}
 .cosmos:is(:fullscreen,.is-expanded) .cosmos-detail-scroll{max-height:none}
 .cosmos:is(:fullscreen,.is-expanded) .cosmos-mobile-detail{display:none}
}

/* 播客书：目录与阅读页 */
.book-intro{max-width:760px;margin:0 0 30px;color:var(--ui-secondary);font-size:14px;line-height:1.9}
.book-volume{margin:0 0 34px}
.book-volume-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ui-line);padding-bottom:9px;margin-bottom:14px}
.book-volume-head h2{margin:0;font-size:17px;font-weight:600;color:var(--ui-ink)}
.book-volume-head span{font-size:11px;color:var(--ui-muted)}
.book-note-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.book-note-card{display:flex;flex-direction:column;min-height:154px;padding:15px 16px;border:1px solid #dbe4d8;border-radius:9px;background:#fcfdf8;color:var(--ui-ink);text-decoration:none;box-shadow:0 1px 0 #dbe4d81f}
.book-note-card:hover{border-color:#a9bfa5;background:#f7faf3;transform:none}
.book-note-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.book-note-no{font-size:11px;color:#9a6b4f;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.book-note-status{font-size:10px;color:var(--ui-muted)}
.book-note-card h3{margin:8px 0 5px;font-size:14px;line-height:1.55;font-weight:600}
.book-note-card p{margin:0;color:var(--ui-secondary);font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.book-note-eps{display:flex;gap:5px;flex-wrap:wrap;margin-top:auto;padding-top:12px}
.book-note-eps span{font-size:10px;color:#7b8c80;background:#edf2e9;border-radius:4px;padding:2px 5px}
.book-reader{max-width:780px;margin:0 auto}
.book-reader-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px;color:var(--ui-muted);font-size:11px}
.book-reader h1{font:600 29px/1.45 "Songti SC","STSong",serif;color:var(--ui-ink);margin:0 0 12px;letter-spacing:.01em}
.book-reader-summary{color:var(--ui-secondary);font-size:14px;line-height:1.85;margin:0 0 12px}
.book-reader-meta{color:var(--ui-muted);font-size:11px;padding-bottom:14px;border-bottom:1px solid var(--ui-line);margin-bottom:22px}
.book-article-body{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:17px;line-height:1.95;color:#29382f}
.book-article-body h1,.book-article-body h2,.book-article-body h3{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--ui-ink);line-height:1.5}
.book-article-body h2{font-size:20px;margin:30px 0 12px}
.book-article-body h3{font-size:16px;margin:24px 0 10px}
.book-article-body p{margin:0 0 1.1em;text-align:justify}
.book-article-body blockquote{margin:18px 0;padding:12px 16px;border-left:3px solid #b9c9b1;background:#f6f9f1;color:#52665a;font-size:14px;line-height:1.8}
.book-article-body ul,.book-article-body ol{padding-left:1.6em;margin:0 0 1.2em}
.book-article-body li{margin:.3em 0}
.book-reader-sources{margin-top:34px;padding-top:18px;border-top:1px solid var(--ui-line)}
.book-reader-sources h3{margin:0 0 10px;font-size:13px;color:var(--ui-ink)}
.book-reader-sources>div{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:700px){
 .book-note-grid{grid-template-columns:1fr}
 .book-reader h1{font-size:25px}
 .book-article-body{font-size:16px;line-height:1.9}
}

/* 路书之书：封面、目录、书页 */
.book-home{max-width:1040px;margin:0 auto}
.book-cover{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);min-height:430px;color:#f8f0de;background:linear-gradient(135deg,#314b3f,#20362f);border:1px solid #1e312a;border-radius:3px 10px 10px 3px;box-shadow:0 18px 42px #1d2b231f,inset 0 0 0 1px #ffffff12;overflow:hidden}
.book-cover-spine{background:linear-gradient(90deg,#17251f,#2a3f34 45%,#17251f);border-right:1px solid #ffffff19;box-shadow:2px 0 8px #00000040}
.book-cover-body{padding:50px 56px 42px;display:flex;flex-direction:column;justify-content:center;max-width:760px}
.book-cover-kicker{font:600 11px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.28em;color:#d4c39d;margin-bottom:18px}
.book-cover h1{margin:0 0 14px;color:#fff9e9;font:600 clamp(36px,5vw,54px)/1.25 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.08em}
.book-cover-subtitle{max-width:520px;margin:0 0 26px;color:#d9d0bd;font:400 15px/1.9 "Songti SC","STSong",serif}
.book-cover-meta{display:flex;gap:18px;margin-bottom:30px;color:#c8b995;font:500 11px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
.book-cover-open{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid #c9b88e80;border-radius:4px;color:#fff8e6;background:#ffffff08;font:500 12px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-decoration:none}
.book-cover-open:hover{background:#ffffff14;color:#fff;transform:none}
.book-cover-open .ui-icon{width:15px;height:15px}
.book-cover-foot{position:absolute;right:24px;bottom:18px;color:#b9a982;font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.14em}
.book-toc{margin:20px 0 40px;padding:38px 42px 44px;background:#fbf8ee;border:1px solid #ded3bd;border-radius:2px 8px 8px 2px;box-shadow:0 10px 28px #3b34261a}
.book-toc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:20px;border-bottom:2px solid #314b3f}
.book-toc-kicker{font:600 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.3em;color:#8d6d45;margin-bottom:5px}
.book-toc-head h2{margin:0;color:#26382f;font:600 27px/1.3 "Songti SC","STSong",serif;letter-spacing:.08em}
.book-toc-head p{max-width:360px;margin:0;color:#7a7768;font:400 12px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-align:right}
.book-toc-volume{padding-top:22px}
.book-toc-volume h2{margin:0 0 8px;color:#8b5b3d;font:600 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
.book-toc-lines{display:grid;grid-template-columns:1fr 1fr;column-gap:34px}
.book-toc-line{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:baseline;gap:8px;min-height:36px;padding:7px 0;border-bottom:1px dotted #cec3ad;color:#2e4037;text-decoration:none}
.book-toc-line:hover{color:#8b3f2f;background:#f4eee0;transform:none}
.book-toc-no{font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#a17e59;font-variant-numeric:tabular-nums}
.book-toc-title{font:400 14px/1.55 "Songti SC","STSong",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-toc-ep{font:400 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#9a9586;white-space:nowrap}
.book-reader{max-width:780px;margin:0 auto}
.book-reader-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;color:#7b8175;font:400 11px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-page{position:relative;padding:42px 58px 38px;background:#fffdf6;border:1px solid #ded5c3;box-shadow:0 18px 44px #302a1d1a;border-radius:2px}
.book-running-head{display:flex;justify-content:space-between;padding-bottom:13px;margin-bottom:30px;border-bottom:1px solid #ddd3c0;color:#8d8777;font:500 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.18em;text-transform:uppercase}
.book-page-title h1{margin:0 0 11px;color:#26362e;font:600 29px/1.5 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.02em}
.book-page-summary{margin:0 0 10px;color:#6e756a;font:400 13px/1.85 "Songti SC","STSong",serif}
.book-page-meta{padding-bottom:16px;margin-bottom:24px;border-bottom:1px solid #e5ddcf;color:#9b9282;font:400 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-article-body{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:17px;line-height:1.98;color:#2c3b32}
.book-article-body h1{display:none}
.book-article-body h2{font:600 19px/1.5 "Songti SC","STSong",serif;margin:30px 0 11px;color:#31483b}
.book-article-body h3{font:600 15px/1.5 "Songti SC","STSong",serif;margin:24px 0 9px;color:#44584a}
.book-article-body p{margin:0 0 1.12em;text-align:justify;text-justify:inter-ideograph}
.book-article-body p:first-of-type::first-letter{float:left;padding:.08em .12em 0 0;color:#8b3f2f;font:600 3.3em/.82 "Songti SC","STSong",serif}
.book-article-body blockquote{margin:18px 0;padding:12px 16px;border-left:3px solid #b8c7ad;background:#f7f4e9;color:#59685b;font-size:14px;line-height:1.85}
.book-article-body ul,.book-article-body ol{padding-left:1.5em;margin:0 0 1.2em}
.book-folio{margin-top:30px;padding-top:12px;border-top:1px solid #e5ddcf;text-align:center;color:#9c9483;font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.2em}
.book-reader-sources{max-width:780px;margin:20px auto 0;padding:0 2px}
.book-reader-sources h3{margin:0 0 9px;color:#59685b;font:600 12px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-reader-sources>div{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:760px){
 .book-cover{min-height:380px}
 .book-cover-body{padding:34px 26px}
 .book-cover h1{font-size:34px}
 .book-cover-subtitle{font-size:14px}
 .book-toc{padding:26px 20px 30px}
 .book-toc-head{display:block}
 .book-toc-head p{margin-top:10px;text-align:left}
 .book-toc-lines{grid-template-columns:1fr}
 .book-toc-title{font-size:13px;white-space:normal}
 .book-page{padding:28px 22px 26px}
 .book-page-title h1{font-size:24px}
 .book-article-body{font-size:16px;line-height:1.9}
 .book-reader-top{flex-wrap:wrap}
 .book-cover-foot{right:16px;bottom:12px}
}

/* 路书之书：正式书籍版式 */
.book-home{max-width:1000px;margin:0 auto;padding-top:4px}
.book-cover{display:grid;grid-template-columns:24px minmax(0,1fr) 10px;min-height:560px;background:#1d2a23;border:1px solid #101a15;border-radius:1px 3px 3px 1px;box-shadow:0 26px 55px #1d251f2e,0 2px 0 #ffffff0d inset;overflow:hidden;position:relative}
.book-cover-spine{background:linear-gradient(90deg,#111b16 0%,#26382d 38%,#18241d 100%);border-right:1px solid #ffffff14;box-shadow:4px 0 12px #00000038}
.book-cover-edge{background:linear-gradient(90deg,#ffffff00,#ffffff18,#00000020);border-left:1px solid #00000030}
.book-cover-face{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:44px 52px 38px;color:#f0e7d2;background:radial-gradient(ellipse at 20% 0%,#3a5142 0%,#24362b 48%,#1a2821 100%)}
.book-cover-face::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:repeating-linear-gradient(92deg,#fff 0 1px,transparent 1px 4px),repeating-linear-gradient(2deg,#000 0 1px,transparent 1px 5px);mix-blend-mode:soft-light}
.book-cover-top{display:flex;justify-content:space-between;align-items:baseline;font:600 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.26em;color:#c7b98f;text-transform:uppercase;position:relative;z-index:1}
.book-cover-top span:last-child{font-size:8px;letter-spacing:.3em;color:#a99c7e}
.book-cover-rule{height:1px;background:#c8b68a73;margin:15px 0 26px;position:relative;z-index:1}
.book-cover-rule.short{width:90px;margin:24px 0 18px;background:#c8b68a99}
.book-cover h1{margin:0;color:#fff8e6;font:600 clamp(40px,5.5vw,58px)/1.28 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.12em;text-shadow:0 1px 0 #00000055;position:relative;z-index:1}
.book-cover-subtitle{margin:14px 0 0;color:#d8cfba;font:400 14px/1.95 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.05em;position:relative;z-index:1}
.book-cover-author{margin:0;color:#c9b98d;font:400 13px/1.6 "Songti SC","STSong",serif;letter-spacing:.18em;position:relative;z-index:1}
.book-cover-bottom{display:flex;gap:18px;align-items:baseline;color:#b7aa8a;font:500 9px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.18em;position:relative;z-index:1}
.book-cover-open{position:absolute;right:44px;bottom:36px;color:#d9c99e;font:500 11px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em;text-decoration:none;z-index:2}
.book-cover-open .ui-icon{width:13px;height:13px}
.book-cover-open:hover{color:#fff4d6;transform:none}
.book-toc-sheet{margin:22px 0 44px;padding:36px 44px 44px;background:#fbf8ef;border:1px solid #ded3bd;border-radius:1px 2px 2px 1px;box-shadow:0 12px 30px #342c1f1a}
.book-toc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:26px;padding-bottom:18px;border-bottom:2px solid #253b2e}
.book-toc-kicker{font:600 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.32em;color:#8d6d45;margin-bottom:4px}
.book-toc-head h2{margin:0;color:#23352a;font:600 26px/1.3 "Songti SC","STSong",serif;letter-spacing:.14em}
.book-toc-head p{max-width:360px;margin:0;color:#7a7668;font:400 12px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-align:right}
.book-toc-part{padding-top:26px}
.book-toc-part-head{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid #d9ceb8;padding-bottom:7px;margin-bottom:5px}
.book-toc-part-no{font:600 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#9f774d;letter-spacing:.12em}
.book-toc-part-head h2{margin:0;color:#2c4032;font:600 16px/1.5 "Songti SC","STSong",serif;letter-spacing:.1em}
.book-toc-part-count{margin-left:auto;color:#9b9382;font:400 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-toc-list{display:grid;grid-template-columns:1fr 1fr;column-gap:34px}
.book-toc-line{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:baseline;gap:8px;min-height:35px;padding:7px 0;border-bottom:1px dotted #cfc4ad;color:#2f4035;text-decoration:none}
.book-toc-line:hover{color:#8b3f2f;background:#f5efe1;transform:none}
.book-toc-no{font:500 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#a17e59;font-variant-numeric:tabular-nums;letter-spacing:.05em}
.book-toc-title{font:400 14px/1.55 "Songti SC","STSong",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-toc-ep{font:400 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#9a9586;white-space:nowrap}
.book-reader{max-width:780px;margin:0 auto}
.book-reader-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;color:#747d72;font:400 11px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-page{position:relative;padding:40px 60px 34px;background:#fffdf6;border:1px solid #ddd3c0;box-shadow:0 20px 46px #2f281b1c;border-radius:1px}
.book-running-head{display:flex;justify-content:space-between;padding-bottom:12px;margin-bottom:34px;border-bottom:1px solid #ded4c1;color:#8b8475;font:500 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.2em}
.book-chapter-mark{margin-bottom:14px;color:#9a714a;font:600 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.18em}
.book-page-title{margin:0 0 13px;color:#26382c;font:600 30px/1.48 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.03em}
.book-page-summary{margin:0 0 10px;color:#6d7569;font:400 13px/1.85 "Songti SC","STSong",serif}
.book-page-meta{padding-bottom:15px;margin-bottom:24px;border-bottom:1px solid #e4dbcb;color:#9c9383;font:400 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-article-body{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:17px;line-height:1.98;color:#2d3b32}
.book-article-body h1{display:none}
.book-article-body h2{font:600 19px/1.5 "Songti SC","STSong",serif;margin:30px 0 11px;color:#31483b}
.book-article-body h3{font:600 15px/1.5 "Songti SC","STSong",serif;margin:24px 0 9px;color:#44584a}
.book-article-body p{margin:0 0 1.12em;text-align:justify;text-justify:inter-ideograph}
.book-article-body p:first-of-type::first-letter{float:left;padding:.08em .12em 0 0;color:#8b3f2f;font:600 3.25em/.82 "Songti SC","STSong",serif}
.book-article-body blockquote{margin:18px 0;padding:12px 16px;border-left:3px solid #b8c7ad;background:#f7f4e9;color:#59685b;font-size:14px;line-height:1.85}
.book-article-body ul,.book-article-body ol{padding-left:1.5em;margin:0 0 1.2em}
.book-folio{margin-top:30px;padding-top:12px;border-top:1px solid #e4dbcb;text-align:center;color:#9c9483;font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.24em}
.book-reader-sources{max-width:780px;margin:20px auto 0;padding:0 2px}
.book-reader-sources h3{margin:0 0 9px;color:#59685b;font:600 12px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-reader-sources>div{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:760px){
 .book-cover{min-height:440px;grid-template-columns:14px minmax(0,1fr) 6px}
 .book-cover-face{padding:30px 26px 28px}
 .book-cover h1{font-size:36px}
 .book-cover-subtitle{font-size:13px}
 .book-cover-open{right:24px;bottom:22px}
 .book-cover-bottom{gap:10px;font-size:8px}
 .book-toc-sheet{padding:26px 20px 30px}
 .book-toc-head{display:block}
 .book-toc-head p{margin-top:10px;text-align:left}
 .book-toc-list{grid-template-columns:1fr}
 .book-toc-title{font-size:13px;white-space:normal}
 .book-page{padding:28px 22px 26px}
 .book-page-title{font-size:24px}
 .book-article-body{font-size:16px;line-height:1.9}
 .book-reader-top{flex-wrap:wrap}
}

/* 书籍封面比例与阅读时浮动目录 */
.book-home>.book-cover{width:min(520px,100%);min-height:760px;margin:0 auto;grid-template-columns:22px minmax(0,1fr) 8px}
.book-home>.book-cover .book-cover-face{padding:38px 42px 34px}
.book-home>.book-cover .book-cover h1{font-size:42px;letter-spacing:.1em}
.book-home>.book-cover .book-cover-subtitle{font-size:13px;line-height:1.9}
.book-home>.book-cover .book-cover-open{right:36px;bottom:30px;font-size:10px}
.book-home>.book-cover .book-cover-bottom{font-size:8px;gap:12px}
.book-reader{max-width:1100px}
.book-reader-grid{display:grid;grid-template-columns:minmax(0,760px) 230px;gap:28px;align-items:start}
.book-reader-grid .book-page{width:100%}
.book-reader-top{max-width:1018px;margin-left:auto;margin-right:auto}
.book-float-toc{position:sticky;top:18px;max-height:calc(100vh - 48px);padding:16px 14px 12px;background:#f7f3e8;border:1px solid #ded4c1;box-shadow:0 8px 20px #342c1f12;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;display:flex;flex-direction:column}
.book-float-title{font:600 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.2em;color:#8d6d45;padding-bottom:9px;border-bottom:1px solid #d8cdb9;margin-bottom:6px}
.book-float-scroll{overflow:auto;scrollbar-width:thin;min-height:0}
.book-float-volume{margin:9px 0 2px}
.book-float-volume-head{font:600 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#8b5b3d;letter-spacing:.1em;padding:4px 0 3px}
.book-float-line{display:grid;grid-template-columns:25px minmax(0,1fr);gap:4px;align-items:baseline;padding:3px 4px;border-radius:3px;color:#5b665c;text-decoration:none;font-size:10px;line-height:1.5}
.book-float-line span{font-size:8px;color:#a17e59;font-variant-numeric:tabular-nums}
.book-float-line b{font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-float-line:hover{background:#ede6d6;color:#7f3b2c;transform:none}
.book-float-line.is-current{background:#e4ddca;color:#6f3125}
.book-float-shelf{margin-top:10px;padding-top:9px;border-top:1px solid #d8cdb9;color:#8b8172;font-size:9px;letter-spacing:.12em;text-decoration:none}
.book-float-shelf:hover{color:#7f3b2c}
@media(max-width:980px){
 .book-reader-grid{grid-template-columns:1fr}
 .book-float-toc{position:static;max-height:none;order:2;margin-top:18px}
 .book-float-scroll{max-height:260px}
 .book-reader-top{max-width:none}
}
@media(max-width:760px){
 .book-home>.book-cover{min-height:560px;width:100%;grid-template-columns:14px minmax(0,1fr) 5px}
 .book-home>.book-cover .book-cover-face{padding:28px 24px 26px}
 .book-home>.book-cover .book-cover h1{font-size:34px}
 .book-home>.book-cover .book-cover-subtitle{font-size:13px}
 .book-home>.book-cover .book-cover-open{right:20px;bottom:20px}
}

/* 封面与目录同页：左书封，右目录 */
.book-home{max-width:1000px}
.book-spread{display:grid;grid-template-columns:520px minmax(340px,1fr);gap:28px;align-items:stretch}
.book-spread>.book-cover{width:100%;min-height:760px;margin:0}
.book-spread>.book-toc-sheet{margin:0;height:760px;overflow:auto;padding:26px 28px 28px;display:block;scrollbar-width:thin}
.book-spread .book-toc-head{padding-bottom:14px;margin-bottom:4px}
.book-spread .book-toc-head h2{font-size:23px}
.book-spread .book-toc-head p{font-size:11px;line-height:1.65;max-width:230px}
.book-spread .book-toc-part{padding-top:17px}
.book-spread .book-toc-list{grid-template-columns:1fr;column-gap:0}
.book-spread .book-toc-line{min-height:32px;padding:6px 0}
.book-spread .book-toc-title{font-size:13px;white-space:normal;line-height:1.45}
.book-spread .book-toc-ep{font-size:8px}
.book-toc-sheet::-webkit-scrollbar{width:5px}
.book-toc-sheet::-webkit-scrollbar-thumb{background:#cfc3aa;border-radius:3px}
.book-page-nav{max-width:780px;margin:24px auto 0;display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #e4dbcb}
.book-page-nav a{display:flex;flex-direction:column;gap:2px;max-width:46%;color:#59685b;text-decoration:none}
.book-page-nav a.next{text-align:right;align-items:flex-end;margin-left:auto}
.book-page-nav small{font:500 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em;color:#a17e59}
.book-page-nav span{font:400 12px/1.5 "Songti SC","STSong",serif;color:#4e5e52}
.book-page-nav a:hover span{color:#8b3f2f}
.book-page-nav-empty{width:46%}
@media(max-width:980px){
 .book-spread{grid-template-columns:1fr}
 .book-spread>.book-cover{width:min(520px,100%);min-height:620px;margin:0 auto}
 .book-spread>.book-toc-sheet{height:auto;max-height:none;margin:0 auto;width:100%}
 .book-reader-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .book-spread>.book-cover{min-height:560px;width:100%}
 .book-page-nav{max-width:none}
}

/* 封面也是书里的一页 */
.book-cover-page{padding:30px 28px 26px;background:#fffdf6}
.book-cover-page .book-cover{width:520px;max-width:100%;min-height:700px;margin:0 auto;grid-template-columns:18px minmax(0,1fr) 7px}
.book-cover-page .book-cover-face{padding:34px 38px 30px}
.book-cover-page .book-cover h1{font-size:40px}
.book-cover-page .book-cover-subtitle{font-size:13px}
.book-cover-page .book-cover-open{display:none}
.book-cover-note{max-width:520px;margin:18px auto 0;color:#8b8172;font:400 11px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-align:center}
@media(max-width:760px){
 .book-cover-page{padding:16px}
 .book-cover-page .book-cover{min-height:540px;grid-template-columns:12px minmax(0,1fr) 5px}
 .book-cover-page .book-cover-face{padding:24px 22px 22px}
 .book-cover-page .book-cover h1{font-size:32px}
}

/* 卷首页与目录封面入口 */
.book-float-cover{display:block;margin:0 0 8px;padding:5px 6px;border-bottom:1px solid #d8cdb9;color:#7a4c37;font:600 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.14em;text-decoration:none}
.book-float-cover:hover{color:#a33f2c;background:#efe7d6}
.book-float-volume-head a{color:#8b5b3d;text-decoration:none}
.book-float-volume-head a:hover{color:#a33f2c}
.book-part-page{display:flex;flex-direction:column;justify-content:center;min-height:620px;padding:56px 64px;background:#fffdf6}
.book-part-kicker{font:600 11px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.28em;color:#9a714a;margin-bottom:22px}
.book-part-title{margin:0;color:#26382c;font:600 44px/1.4 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.12em}
.book-part-epigraph{max-width:420px;margin:26px 0 0;color:#6f786c;font:400 16px/1.95 "Songti SC","STSong",serif}
.book-part-rule{width:80px;height:1px;background:#b9a77f;margin:30px 0 12px}
.book-part-count{margin:0;color:#9b9382;font:400 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
@media(max-width:760px){
 .book-part-page{min-height:420px;padding:34px 24px}
 .book-part-title{font-size:34px}
 .book-part-epigraph{font-size:15px}
}

/* 书内目录页 */
.book-float-nav{display:flex;gap:12px;padding:3px 4px 9px;border-bottom:1px solid #d8cdb9;margin-bottom:5px}
.book-float-nav a{color:#7a4c37;font:600 9px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em;text-decoration:none}
.book-float-nav a:hover{color:#a33f2c}
.book-contents-page{padding:38px 42px 30px}
.book-contents-title{margin:0 0 5px;color:#26382c;font:600 38px/1.3 "Songti SC","STSong",serif;letter-spacing:.2em}
.book-contents-subtitle{margin:0 0 24px;padding-bottom:14px;border-bottom:2px solid #2b4032;color:#938975;font:400 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
.book-contents-volume{margin:0 0 21px}
.book-contents-head{display:flex;align-items:baseline;gap:8px;border-bottom:1px solid #d9ceb8;padding-bottom:5px;margin-bottom:2px}
.book-contents-head a{display:flex;align-items:baseline;gap:8px;color:#2c4032;text-decoration:none}
.book-contents-head a span{color:#9f774d;font:600 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.1em}
.book-contents-head a b{font:600 15px/1.5 "Songti SC","STSong",serif;letter-spacing:.1em}
.book-contents-head a:hover b{color:#8b3f2f}
.book-contents-head>small{margin-left:auto;color:#9b9382;font:400 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-contents-lines{display:grid;grid-template-columns:1fr 1fr;column-gap:27px}
.book-contents-line{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:5px;align-items:baseline;padding:4px 0;border-bottom:1px dotted #d5c9b2;color:#34453a;text-decoration:none;font:400 11px/1.5 "Songti SC","STSong",serif}
.book-contents-line:hover{color:#8b3f2f;background:#f5efe1;transform:none}
.book-contents-no{font:500 8px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#a17e59;font-variant-numeric:tabular-nums}
.book-contents-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-contents-ep{font:400 8px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#9b9382;white-space:nowrap}
@media(max-width:760px){
 .book-contents-page{padding:26px 20px}
 .book-contents-title{font-size:31px}
 .book-contents-lines{grid-template-columns:1fr}
}

/* 固定一屏书页与横向翻页 */
.book-reading-page{height:clamp(420px,calc(100dvh - 190px),760px);min-height:0;padding:28px 40px 34px;display:flex;flex-direction:column;overflow:hidden}
.book-reading-page .book-running-head{margin-bottom:18px}
.book-flow-viewport{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.book-flow-viewport::-webkit-scrollbar{display:none}
.book-flow{height:100%;column-fill:auto;column-gap:48px}
.book-flow h1,.book-flow h2,.book-flow h3{break-after:avoid}
.book-flow p,.book-flow blockquote{break-inside:auto;widows:2;orphans:2}
.book-flow .book-page-title{margin-bottom:9px}
.book-flow .book-page-summary{margin-bottom:8px}
.book-flow .book-page-meta{margin-bottom:18px}
.book-pager{display:flex;align-items:center;justify-content:center;gap:18px;padding-top:8px;margin-top:4px;border-top:1px solid #e4dbcb;color:#9c9383;font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
.book-pager button{width:28px;height:28px;min-height:28px;padding:0;border:1px solid #d8cdb9;border-radius:50%;background:#fbf7ea;color:#7d6c55;font:400 14px/1 sans-serif;box-shadow:none}
.book-pager button:not(:disabled):hover{background:#efe6d4;color:#8b3f2f;transform:none}
.book-pager button:disabled{opacity:.3}
@media(max-width:760px){
 .book-reading-page{height:clamp(400px,calc(100dvh - 128px),680px);min-height:0;padding:20px 18px 10px}
 .book-flow{column-gap:28px}
}

/* 顶部工具栏：章节切换和页内翻页 */
.book-toolbar{max-width:1018px;margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.book-toolbar-nav{display:flex;align-items:center;gap:15px;min-width:0;flex:1}
.book-toolbar .book-page-nav{display:flex;align-items:center;gap:15px;max-width:none;margin:0;padding:0;border:0;width:auto}
.book-toolbar .book-page-nav a{max-width:240px;gap:1px;color:#6d776c}
.book-toolbar .book-page-nav a span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-toolbar .book-page-nav a.next{margin-left:0}
.book-toolbar .book-page-nav-empty{display:none}
.book-toolbar .book-pager{margin:0;padding:0;border:0;flex:none;gap:9px}
.book-toolbar .book-pager button{width:25px;height:25px;min-height:25px}
@media(max-width:760px){
 .book-toolbar{align-items:flex-start;flex-wrap:wrap;gap:7px}
 .book-toolbar-nav{width:100%}
 .book-toolbar .book-page-nav{width:100%;justify-content:space-between}
 .book-toolbar .book-page-nav a{max-width:45%}
 .book-toolbar .book-pager{margin-left:auto}
}

/* 阅读工具条：把翻页做成清楚的控件 */
.book-toolbar{max-width:1018px;margin:0 auto 12px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f7f3e8;border:1px solid #ded4c1;border-radius:4px;box-shadow:0 3px 10px #342c1f0d}
.book-toolbar-nav{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.book-toolbar .book-page-nav{display:flex;align-items:center;gap:6px;max-width:none;margin:0;padding:0;border:0;width:auto}
.book-toolbar .book-page-nav a{display:inline-flex;flex-direction:row;align-items:center;gap:7px;max-width:218px;padding:5px 8px;border:1px solid transparent;border-radius:3px;color:#526156;text-decoration:none}
.book-toolbar .book-page-nav a:hover{background:#ebe4d4;border-color:#d7cbb6;color:#7f3b2c;transform:none}
.book-toolbar .book-page-nav small{font:600 8px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em;color:#9b7c58;white-space:nowrap}
.book-toolbar .book-page-nav span{font:400 11px/1.5 "Songti SC","STSong",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-toolbar .book-page-nav a.next{flex-direction:row-reverse;margin-left:0;text-align:right}
.book-toolbar .book-page-nav-empty{display:none}
.book-toolbar .book-pager{display:flex;align-items:center;gap:7px;flex:none;margin:0;padding:3px 5px;border:1px solid #d8cdb9;border-radius:18px;background:#fffdf6;color:#7f7565;font:500 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.12em}
.book-toolbar .book-pager button{width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:#eee5d3;color:#71533b;font-size:13px}
.book-toolbar .book-pager button:not(:disabled):hover{background:#ddcdb2;color:#7f3b2c;transform:none}
@media(max-width:760px){
 .book-toolbar{padding:6px;flex-wrap:wrap;gap:5px}
 .book-toolbar-nav{width:100%}
 .book-toolbar .book-page-nav{width:100%;justify-content:space-between}
 .book-toolbar .book-page-nav a{max-width:46%;padding:4px 5px}
 .book-toolbar .book-pager{margin-left:auto}
}

.book-reader-grid:has(> .book-contents-page){grid-template-columns:minmax(0,760px);justify-content:center}

/* 工具栏只显示动作，不显示篇名，避免挤成一团 */
.book-toolbar .book-page-nav span{display:none}
.book-toolbar .book-page-nav a{max-width:none;padding:6px 10px;border:1px solid #d8cdb9;background:#fffdf6;font:500 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.08em;color:#5b6a5e}
.book-toolbar .book-page-nav a:first-child::before{content:"← "}
.book-toolbar .book-page-nav a.next{flex-direction:row;margin-left:0}
.book-toolbar .book-page-nav a.next::after{content:" →"}
.book-toolbar .book-page-nav a:hover{background:#efe6d4;border-color:#c8b99f;color:#7f3b2c}

/* 先保证全文可达：阅读页不再做分栏裁切 */
.book-toolbar{justify-content:center}
.book-toolbar-nav{justify-content:center;flex:0 1 auto}
.book-toolbar .book-page-nav{justify-content:center;gap:18px}
.book-toolbar .book-page-nav a{min-width:92px;justify-content:center}
.book-reading-page{height:auto;min-height:calc(100dvh - 215px);padding:34px 46px 40px;display:block;overflow:visible}
.book-flow-viewport{flex:none;height:auto;overflow:visible}
.book-flow{height:auto;column-count:1;column-width:auto;column-gap:0;overflow:visible}
.book-reading-page .book-running-head{margin-bottom:26px}
.book-article-body{max-width:none}
.book-article-body p{margin-bottom:1.18em}
@media(max-width:760px){
 .book-reading-page{min-height:0;padding:22px 18px 28px}
 .book-toolbar .book-page-nav a{min-width:78px}
}

/* 边注回归正文：小字页边条，不与正文抢行 */
.book-note-ref{font-size:.68em;vertical-align:.5em;color:#8b3f2f;margin-left:.1em}
.book-note{float:right;clear:right;width:188px;margin:0 0 14px 20px;padding:8px 10px;border-left:2px solid #b9a77f;background:#f7f3e8;color:#6f6a5e;font:400 11px/1.65 "Songti SC","STSong",serif;text-align:left}
.book-note b{display:block;color:#8b3f2f;font:600 11px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin-bottom:3px}
.book-running-head{border-bottom:0}
.book-page-meta{border-bottom:0}
.book-folio{border-top:0}
.book-toolbar{border-color:transparent;box-shadow:none;background:transparent;padding-left:0;padding-right:0}
@media(max-width:760px){
 .book-note{float:none;width:auto;margin:12px 0 16px}
}

/* 左右翻页箭头：贴在书页两侧，不用顶部按钮 */
.book-reader{position:relative}
.book-side-nav{position:absolute;top:0;bottom:0;left:-42px;right:-42px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:6}
.book-side-nav a{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:34px;height:74px;border:1px solid #d8cdb9;border-radius:4px;background:#fbf7ea;color:#8b6a4b;text-decoration:none;font:400 22px/1 sans-serif;box-shadow:0 4px 12px #342c1f14}
.book-side-nav a:hover{background:#efe6d4;color:#7f3b2c;transform:none}
.book-side-nav span{width:34px}
.book-float-summary{display:block;cursor:pointer;color:#7f5b3d;font:600 9px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.18em;padding:2px 4px 8px;border-bottom:1px solid #d8cdb9;margin-bottom:5px;list-style:none}
.book-float-summary::-webkit-details-marker{display:none}
.book-float-summary::after{content:"收起";float:right;color:#a89a82;font-weight:400}
.book-float-toc:not([open]) .book-float-summary::after{content:"展开"}
.book-float-toc:not([open]) .book-float-nav,.book-float-toc:not([open]) .book-float-scroll{display:none}
.book-float-toc:not([open]){width:96px;min-height:0;padding-bottom:8px}
@media(max-width:980px){
 .book-side-nav{left:-4px;right:-4px}
 .book-side-nav a{width:28px;height:58px;font-size:18px}
}

@media print{
 .book-side-nav,.book-float-toc,.book-toolbar,.book-reader-sources{display:none!important}
 .book-page{height:auto!important;box-shadow:none!important;border:0!important;padding:0!important}
 .book-note{float:none;width:auto;margin:8px 0;background:#fff;border-left:2px solid #999;page-break-inside:avoid}
 .book-article-body{font-size:10.5pt;line-height:1.8}
}

/* 顶部固定左右翻页，不随文章长度移动 */
.book-side-nav{position:sticky;top:8px;bottom:auto;left:auto;right:auto;display:flex;justify-content:space-between;align-items:center;margin:0 0 5px;height:36px;pointer-events:none;z-index:20}
.book-side-nav a{pointer-events:auto;width:34px;height:34px;border-radius:50%;border:1px solid #d8cdb9;background:#fffdf6;color:#7f5b3d;display:flex;align-items:center;justify-content:center;font:400 17px/1 sans-serif;box-shadow:0 2px 8px #342c1f12;text-decoration:none}
.book-side-nav a:hover{background:#efe6d4;color:#7f3b2c;transform:none}
.book-side-nav span{width:34px}
/* 不再给正文第一段做首字下沉：001 以“2004”开头会吃掉数字 */
.book-article-body p:first-of-type::first-letter{float:none;padding:0;color:inherit;font:inherit;line-height:inherit}
/* 正文区不再出现装饰横线 */
.book-running-head,.book-page-meta,.book-folio{border:0!important;box-shadow:none!important}
.book-float-toc{display:none!important}
@media(max-width:760px){.book-side-nav{top:4px}.book-side-nav a{width:30px;height:30px}}

.book-note-ref a{color:inherit;text-decoration:none}

/* 边注独立栏：不包裹正文 */
.book-reader-grid.has-notes{grid-template-columns:minmax(0,620px) 190px 220px;gap:24px}
.book-note-rail{position:sticky;top:56px;max-height:calc(100dvh - 90px);overflow:auto;padding:12px 12px 8px;background:#f7f3e8;border:1px solid #ded4c1;scrollbar-width:thin;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.book-note-item{padding:9px 0 10px;border-bottom:1px dotted #d5c9b2;color:#6f6a5e;font:400 10.5px/1.65 "Songti SC","STSong",serif}
.book-note-item:last-child{border-bottom:0}
.book-note-item b{display:block;color:#8b3f2f;font:600 10px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;margin:0 0 3px}
.book-note-item p{margin:0}
.book-note-no{display:inline-block;margin-right:4px;color:#a17e59;font:600 8px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
@media(max-width:1100px) and (min-width:981px){
 .book-reader-grid.has-notes{grid-template-columns:minmax(0,560px) 180px 210px;gap:18px}
}
@media(max-width:980px){
 .book-reader-grid.has-notes{grid-template-columns:1fr}
 .book-note-rail{position:static;max-height:none;margin-top:16px}
}

/* 修复：目录是 aside，不应再套用 details 的 :not([open]) 隐藏规则 */
.book-float-toc:not([open]) .book-float-nav{display:block!important}
.book-float-toc:not([open]) .book-float-scroll{display:block!important}
.book-float-toc:not([open]){width:220px;min-height:0;padding-bottom:12px}
.book-reader-grid.has-notes{grid-template-columns:minmax(0,660px) 180px 210px;gap:18px}
.book-float-toc{width:210px}
.book-note-rail{width:180px}
@media(max-width:1100px) and (min-width:981px){
 .book-reader-grid.has-notes{grid-template-columns:minmax(0,600px) 170px 200px;gap:14px}
}

/* 三栏比例：正文优先，边注和目录不抢正文 */
.book-reader-grid.has-notes{grid-template-columns:minmax(0,700px) 170px 190px;gap:14px}
.book-note-rail{width:170px}
.book-float-toc{width:190px}
@media(max-width:1100px) and (min-width:981px){
 .book-reader-grid.has-notes{grid-template-columns:minmax(0,620px) 165px 180px;gap:12px}
}

/* 正文与边注同页：正文缩进，边注在页内右栏锚定 */
.book-reader-grid{grid-template-columns:minmax(0,860px);justify-content:center}
.book-reading-page.with-notes{position:relative;width:860px;max-width:100%;padding-right:220px}
.book-reading-page.with-notes .book-note-rail{position:absolute;top:82px;right:18px;width:180px;max-height:none;overflow:visible;padding:0;background:transparent;border:0}
.book-reading-page.with-notes .book-note-item{position:absolute;left:0;width:180px;padding:8px 0 10px;background:#f7f3e8;border-left:2px solid #b9a77f;border-bottom:0;padding-left:9px;padding-right:8px}
.book-toc-close{position:absolute;top:6px;right:8px;border:0;background:transparent;color:#9b8a72;font-size:18px;line-height:1;cursor:pointer}
.book-controls{position:sticky;top:8px;z-index:25;display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;margin:0 auto 10px;padding:4px;background:#f7f3e8;border:1px solid #ded4c1;border-radius:22px;box-shadow:0 4px 14px #342c1f14}
.book-controls a,.book-controls button{display:flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 9px;border:0;border-radius:16px;background:transparent;color:#71533b;text-decoration:none;font:500 11px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.08em;cursor:pointer}
.book-controls a:hover,.book-controls button:hover{background:#e9dfcd;color:#7f3b2c;transform:none}
.book-controls a.prev::before{content:"← "}
.book-controls a.next::after{content:" →"}
.book-float-toc{display:none;position:fixed;top:96px;right:26px;width:320px;max-height:calc(100dvh - 120px);padding:22px 20px 18px;background:#f7f3e8;border:1px solid #ded4c1;box-shadow:0 18px 48px #2f281b26;z-index:40;overflow:hidden;flex-direction:column}
.book-float-toc.is-open{display:flex!important}
.book-float-toc .book-float-scroll{overflow:auto;min-height:0}
@media(max-width:980px){
 .book-reading-page.with-notes{width:100%;padding-right:28px}
 .book-reading-page.with-notes .book-flow{padding-right:0}
 .book-reading-page.with-notes .book-note-rail{position:static;width:auto;margin-top:18px}
 .book-reading-page.with-notes .book-note-item{position:static;width:auto;margin:0 0 10px}
 .book-float-toc{left:16px;right:16px;width:auto;top:78px}
}

@media print{
 .book-controls,.book-float-toc,.book-side-nav,.book-reader-sources{display:none!important}
 .book-reading-page.with-notes{width:auto;padding-right:0}
 .book-note-rail{position:static!important;width:auto!important;max-height:none!important;margin-top:14px}
 .book-note-item{position:static!important;width:auto!important;margin:8px 0!important;page-break-inside:avoid;background:#fff}
}

/* Episode catalogue: title-first cards and scannable access/highlight metadata. */
.catalogue-toolbar{align-items:stretch;gap:8px;padding:9px;border:1px solid #dce4d6;border-radius:10px;background:var(--paper);box-shadow:0 2px 10px #2b4f3605}
.catalogue-search{flex:1 1 280px;height:40px}
.catalogue-search input{height:38px;min-height:38px;font-size:14px}
.catalogue-select select{width:100%;min-width:132px;max-width:none;height:40px;min-height:40px;font-size:13px}
.catalogue-order{min-width:152px}
#directory-reset{min-height:40px}
.catalogue-resultbar{margin-top:10px;margin-bottom:9px}
body[data-page="episodes"] .episode-list{gap:10px}
body[data-page="episodes"] .episode-row{grid-template-columns:53px minmax(0,1fr) 18px;align-items:stretch;gap:13px;min-height:0;padding:17px 16px 15px}
body[data-page="episodes"] .episode-row:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
body[data-page="episodes"] .episode-row-number{padding-top:2px}
body[data-page="episodes"] .episode-row h3{margin:0;font-size:16px;line-height:1.55}
body[data-page="episodes"] .episode-row-top{display:contents}
body[data-page="episodes"] .episode-row .episode-row-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;font-size:11px;line-height:1.5}
body[data-page="episodes"] .episode-row .episode-row-meta .badge{margin:0}
body[data-page="episodes"] .episode-row .episode-row-meta>span:not(.badge){display:inline-flex;align-items:center;gap:4px}
body[data-page="episodes"] .episode-row p{margin-top:8px}
.episode-row-highlights{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.episode-row-highlights span{max-width:100%;padding:2px 7px;border:1px solid #dde6d4;border-radius:999px;background:#f6f8ee;color:#718a5c;font-size:10px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.episode-row-arrow{align-self:center}
.catalogue-empty{display:grid;justify-items:center;gap:7px;padding:32px 20px}
.catalogue-empty strong{color:var(--ui-secondary);font-size:14px}
.catalogue-empty button{min-height:34px;padding:5px 10px;border:1px solid #d7e1d2;border-radius:6px;background:#fcfdf8;color:#6a8360;font-size:12px}
@media(max-width:700px){.catalogue-toolbar{display:grid;padding:8px}.catalogue-search,.catalogue-select,.catalogue-order,#directory-reset{width:100%;max-width:none}.episode-row-highlights span:nth-child(n+3){display:none}body[data-page="episodes"] .episode-row{grid-template-columns:45px minmax(0,1fr) 15px;gap:10px;padding:14px 12px}body[data-page="episodes"] .episode-row-number strong{font-size:23px}body[data-page="episodes"] .episode-row h3{font-size:15px}}
body[data-page="episodes"] .episode-row .episode-row-meta .badge{padding:1px 6px;border:0;background:#eaf0e4;color:#718a61;font-size:10px}
body[data-page="episodes"] .episode-row .episode-row-meta .badge+.badge{background:transparent;color:#9c8367;padding-left:0}
body[data-page="episodes"] .episode-row .episode-row-meta .ui-icon{width:12px;height:12px}
