:root{--bg:#f5f6f3;--paper:#fff;--side:#edf0eb;--ink:#263a32;--muted:#69746d;--line:#dde3dc;--green:#476653;--light:#e6eee4;--gold:#9d7541;--serif:Georgia,'Noto Serif SC','Songti SC','SimSun',serif;--sans:Inter,'Segoe UI','Microsoft YaHei',sans-serif}
body{caret-color:transparent;cursor:default}input,textarea,[contenteditable="true"]{caret-color:auto;cursor:text}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 var(--sans)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}a{text-decoration:none}button{border:1px solid var(--line);background:white;border-radius:7px;padding:7px 13px}button:hover,.button:hover{background:var(--light)}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #97b295;outline-offset:3px}.skip{position:fixed;top:-100px;left:250px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}.sidebar{position:fixed;width:224px;inset:0 auto 0 0;background:var(--side);border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column;z-index:20;overflow:auto}.brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:600;padding:0 12px 30px;letter-spacing:2px}.brand-mark{display:grid;place-items:center;background:var(--green);color:#fff;width:40px;height:43px;border-radius:10px;font-family:var(--serif);font-size:23px}.brand small{display:block;letter-spacing:1.5px;font-size:10px;font-weight:500;color:var(--muted);margin-top:1px}.workspace-label{font-size:12px;color:var(--muted);letter-spacing:1px;margin:16px 12px 10px}nav a{display:flex;align-items:center;gap:12px;padding:10px 13px;border-radius:7px;margin:3px 0;font-size:14px}nav a>span{width:18px;font-size:20px;line-height:1}nav a b{font-size:12px;font-weight:500;margin-left:auto;color:var(--muted)}nav a.active{background:#dce7da;color:#31523c;font-weight:600}nav a:hover{background:#e2e8df}.topic{display:flex;align-items:center;gap:10px;padding:10px;background:#f8faf7;border:1px solid var(--line);border-radius:8px;margin:0 5px 8px;font-weight:600;font-size:14px}.topic-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;color:var(--green);background:var(--light);border-radius:8px}.topic-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.topic-title{width:auto;min-width:0;font-size:14px;line-height:1.35}.quick-tags{display:flex;flex-direction:column;gap:3px}.quick-tags button{text-align:left;background:transparent;border:0;font-size:13px;color:var(--muted);padding:6px 13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-tags button:hover{background:var(--light)}.sidebar-bottom{margin-top:auto;padding:30px 12px 0;display:flex;flex-direction:column;font-size:12px;color:var(--muted);gap:6px}.local-mark{font-size:13px;color:var(--green)}.sidebar-bottom a{text-decoration:underline;text-underline-offset:3px}.workspace{margin-left:224px}.topbar{height:78px;padding:0 36px;border-bottom:1px solid var(--line);background:#ffffffbf;display:flex;gap:24px;align-items:center;position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}#breadcrumb{font-size:13px;color:var(--muted);white-space:nowrap}#breadcrumb span{padding:0 10px;color:#abb6ab}.search-box{margin-left:auto;display:flex;align-items:center;gap:10px;width:350px;border:1px solid var(--line);background:var(--bg);border-radius:7px;padding:7px 12px}.search-box>span{font-size:24px;line-height:1}.search-box input{background:transparent;border:0;outline:0;width:100%;min-width:0;font-size:13px;color:var(--ink)}kbd{font:10px var(--sans);white-space:nowrap;color:#818c83;border:1px solid var(--line);border-radius:3px;padding:2px 4px}.mobile-menu{display:none}#main{outline:0}.library-view{max-width:1500px;margin:auto;padding:32px 38px 55px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);margin-bottom:4px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}h1,h2,h3,p{margin-top:0}.page-heading h1{font-family:var(--serif);font-size:31px;font-weight:600;margin:0 0 5px}.page-heading p{color:var(--muted);margin:0;font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:white;border-radius:7px;padding:8px 14px;font-size:14px;white-space:nowrap}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#385441}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:27px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px 19px;display:flex;align-items:baseline;gap:12px}.stat strong{font-family:Georgia,serif;font-weight:400;font-size:28px}.stat span{font-size:13px;color:var(--muted)}.stat:first-child{background:#e9efe6}.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:0 0 16px;border-bottom:1px solid var(--line);margin-bottom:4px}.filters select{max-width:220px;border:1px solid var(--line);border-radius:6px;padding:7px 28px 7px 10px;background:#fff;color:var(--ink);font-size:13px}.result-count{margin-left:auto;color:var(--muted);font-size:13px}.paper-card{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:18px;padding:24px 6px;border-bottom:1px solid var(--line)}.paper-icon{width:43px;height:53px;border:1px solid #ced8ca;background:#eef3eb;border-radius:4px 12px 4px 4px;display:flex;align-items:center;justify-content:center;color:#5a7359;font-family:Georgia,serif;font-size:11px;letter-spacing:.5px;margin-top:4px}.paper-card h2{font-family:var(--serif);font-size:20px;line-height:1.45;font-weight:500;max-width:940px;margin:4px 0 8px}.paper-card h2 a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}.paper-meta{font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}.paper-summary{color:#687269;font-size:13px;line-height:1.85;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{background:#eaf0e7;color:#55704f;border-radius:4px;padding:2px 7px;font-size:11px;border:0}.chip.neutral{background:#edece7;color:#79705f}.card-actions{display:flex;gap:6px;align-items:flex-start;margin-top:6px}.card-actions a{font-size:12px;color:var(--muted);padding:4px 9px;border:1px solid var(--line);border-radius:5px;background:#fff}.card-actions a:hover{color:var(--green);border-color:var(--green)}.empty{padding:75px 24px;text-align:center;color:var(--muted)}.empty h2{font-size:21px;color:var(--ink)}mark{background:#e7dfab;color:inherit;padding:1px 2px}.reader-toolbar{padding:12px 28px;background:#fafbf8;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;position:sticky;top:78px;z-index:9}.reader-toolbar .spacer{flex:1}.reader-toolbar button,.reader-toolbar a{font-size:13px}.reader{display:grid;grid-template-columns:minmax(0,1fr) 276px;align-items:start}.article-wrap{min-width:0;background:var(--paper);min-height:calc(100vh - 135px)}.article-header{max-width:900px;margin:auto;padding:42px 48px 23px}.article-header h1{font:500 31px/1.35 var(--serif);margin:14px 0 16px;overflow-wrap:anywhere}.article-header .authors{font-size:14px;color:var(--muted)}.article-header .venue{font-size:12px;color:var(--muted);margin:8px 0 15px}.notice{border-left:3px solid #ad8e50;background:#f8f4e8;padding:10px 14px;color:#796342;font-size:13px;margin-top:18px}.article-body{max-width:900px;margin:auto;padding:0 48px 80px;font-size:16px;line-height:1.95;overflow-wrap:anywhere}.article-body h1{font:600 27px/1.5 var(--serif);margin:32px 0 14px}.article-body h2{font:600 23px/1.5 var(--serif);margin:36px 0 18px;border-bottom:1px solid var(--line);padding-bottom:12px;scroll-margin-top:150px}.article-body h3{font-size:18px;margin:27px 0 12px;scroll-margin-top:150px}.article-body h4{scroll-margin-top:150px}.article-body p,.article-body ul,.article-body ol{margin-bottom:20px}.article-body li{margin:7px 0}.article-body a{color:#4b7055;text-decoration:underline;text-decoration-color:#afc0ad;text-underline-offset:3px}.article-body a.wiki{background:#eef4e9;border-radius:3px;padding:1px 4px}.article-body img{max-width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:5px;margin:20px auto}.article-body blockquote{margin:22px 0;background:#f3f6ef;border-left:3px solid #94aa8d;padding:15px 20px;color:#52604e;font-size:15px}.article-body blockquote p:last-child{margin-bottom:0}.article-body table{border-collapse:collapse;font-size:14px;line-height:1.7;width:100%;margin:22px 0}.article-body th,.article-body td{padding:10px 12px;border:1px solid var(--line);text-align:left;min-width:95px}.article-body th{background:#edf2e9;font-weight:600}.table-scroll{overflow:auto;max-width:100%}.article-body code{font-size:.85em;background:#eff1ed;border-radius:3px;padding:2px 4px}.article-body pre{background:#f3f5f1;border:1px solid var(--line);border-radius:5px;padding:16px;overflow:auto;line-height:1.6}.article-body pre code{padding:0;background:transparent}.article-body details{border:1px solid var(--line);border-radius:5px;padding:10px 13px;margin:15px 0;font-size:14px}.article-body summary{cursor:pointer;color:var(--muted)}.math-display{display:block;overflow:auto;padding:8px 0}.katex{font-size:1.08em}.inspector{position:sticky;top:136px;max-height:calc(100vh - 136px);overflow:auto;padding:22px 20px;border-left:1px solid var(--line)}.tabs{display:flex;gap:3px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:22px}.tabs button{font-size:13px;border:0;background:transparent;flex:1;padding:7px}.tabs button.active{background:var(--light);color:var(--green)}.aside-heading{font-size:12px;font-weight:600;color:var(--muted);margin:20px 0 10px}.relation-card{display:block;background:white;border:1px solid var(--line);padding:11px;border-radius:7px;margin:8px 0;font-size:13px;line-height:1.6}.relation-card:hover{border-color:#93ab8a}.relation-card small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.muted{color:var(--muted);font-size:13px}.property{margin:13px 0;font-size:13px;overflow-wrap:anywhere}.property dt{color:var(--muted);font-size:11px;margin-bottom:3px}.property dd{margin:0}.toc-link{display:block;font-size:13px;padding:5px 0;color:var(--muted)}.toc-link:hover{color:var(--green)}.toc-link.level-3{padding-left:12px}.pdf-panel{display:none;position:sticky;top:136px;height:calc(100vh - 136px);border-left:1px solid var(--line);background:#e5e7e3}.reader.with-pdf{grid-template-columns:minmax(0,1fr) minmax(350px,1fr)}.with-pdf .inspector{display:none}.with-pdf .pdf-panel{display:flex;flex-direction:column}.with-pdf .article-header{padding:30px 30px 20px}.with-pdf .article-header h1{font-size:26px}.with-pdf .article-body{padding:0 30px 70px}.pdf-bar{padding:9px 13px;display:flex;gap:10px;align-items:center;font-size:12px;background:#edf0e9}.pdf-bar a{margin-left:auto;text-decoration:underline}.pdf-panel iframe{border:0;flex:1;width:100%;min-height:0}.graph-page{padding:28px 32px}.graph-page .page-heading{margin-bottom:18px}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;border:1px solid var(--line);background:white;border-radius:9px;overflow:hidden;height:calc(100vh - 226px);min-height:500px}.graph-stage{position:relative;background:radial-gradient(#dce4d6 .7px,transparent .7px);background-size:19px 19px}.cy{position:absolute;inset:0}.graph-controls{position:absolute;left:16px;top:16px;z-index:2;display:flex;gap:5px}.graph-controls button{font-size:13px;padding:6px 10px}.legend{position:absolute;bottom:16px;left:17px;display:flex;gap:16px;font-size:12px;color:var(--muted);background:#ffffffde;padding:8px 10px;border-radius:6px}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#6c8c67;margin-right:5px}.legend .knowledge{background:#b18d52}.graph-detail{border-left:1px solid var(--line);padding:22px;overflow:auto;background:#fcfdfb}.graph-detail h2{font-family:var(--serif);font-size:21px;line-height:1.5}.graph-detail blockquote{margin:14px 0;padding:12px;background:#f0f4ec;border-left:3px solid #93aa88;font-size:13px;overflow-wrap:anywhere}.graph-detail .button{white-space:normal;text-align:left;margin:8px 0;font-size:13px}.imports pre{white-space:pre-wrap;word-break:break-all;background:#fff;padding:20px;border:1px solid var(--line);font-size:13px}.imports h2{font-size:20px;margin-top:28px}.imports ul{font-size:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#314c3b;color:white;padding:10px 18px;border-radius:7px;z-index:100;display:none;font-size:14px}
@media(min-width:1600px){.article-body{font-size:17px}.article-header h1{font-size:35px}.paper-card h2{font-size:22px}}
@media(max-width:1150px){.sidebar{width:195px;padding:25px 12px}.workspace{margin-left:195px}.topbar{padding:0 24px}.library-view{padding:28px 26px}.card-actions{display:none}.paper-card{grid-template-columns:42px minmax(0,1fr);gap:14px}.reader{grid-template-columns:minmax(0,1fr) 240px}.article-header{padding:30px}.article-body{padding:0 30px 60px}.graph-layout{grid-template-columns:minmax(0,1fr) 240px}.graph-page{padding:24px}.reader-toolbar{padding:10px 18px;gap:6px}.reader-toolbar .button,.reader-toolbar button{font-size:12px;padding:7px 9px}}
@media(max-width:860px){.sidebar{width:180px}.workspace{margin-left:180px}.brand{padding-left:5px;font-size:21px}.brand small{font-size:8px}.topbar{height:68px;padding:0 18px}#breadcrumb{display:none}.search-box{width:100%}.reader{display:block}.inspector{position:static;max-height:none;border-top:1px solid var(--line);border-left:0}.reader-toolbar{top:68px;flex-wrap:wrap}.reader.with-pdf{display:block}.with-pdf .pdf-panel{position:relative;top:0;height:80vh;min-height:500px}.article-header h1{font-size:28px}.stats{gap:8px}.stat{padding:12px;gap:7px}.stat strong{font-size:24px}.stat span{font-size:12px}.graph-layout{grid-template-columns:1fr;height:auto;min-height:0}.graph-stage{height:55vh;min-height:370px}.graph-detail{border-left:0;border-top:1px solid var(--line);max-height:400px}.page-heading h1{font-size:27px}.graph-detail .button{margin-right:8px}}
@media(max-width:860px){.reader.with-pdf{display:flex;flex-direction:column}.with-pdf .pdf-panel{order:-1;width:100%;height:72vh}.with-pdf .article-wrap{width:100%}}
@media(max-width:620px){.sidebar{transform:translateX(-100%);width:224px;transition:transform .2s}.sidebar.open{transform:none;box-shadow:10px 0 60px #263a3233}.workspace{margin-left:0}.mobile-menu{display:block;padding:3px 8px;border:0;background:transparent;font-size:20px}.topbar{gap:10px;height:62px;padding:0 12px}.search-box kbd{display:none}.library-view{padding:23px 18px}.page-heading{align-items:flex-start}.page-heading p{font-size:12px}.page-heading .button{font-size:12px;padding:7px 10px}.stats{gap:6px;margin-bottom:20px}.stat{display:block;padding:10px}.stat strong{display:block;font-size:25px}.stat span{font-size:11px}.paper-card{grid-template-columns:1fr;padding:20px 0}.paper-icon{display:none}.paper-card h2{font-size:19px}.filters select{max-width:160px;flex:1;font-size:12px}.result-count{font-size:12px}.reader-toolbar{top:62px;padding:8px 12px}.article-header{padding:25px 22px 18px}.article-header h1{font-size:27px}.article-body{padding:0 22px 50px}.article-body h2{font-size:22px}.graph-page{padding:22px 14px}.graph-stage{min-height:380px}.legend{font-size:11px;gap:8px}.reader-toolbar .spacer{display:none}.paper-meta{font-size:11px}}

/* Topic / paper / knowledge graph */
.graph-settings{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 14px;font-size:13px}.graph-settings label{display:flex;align-items:center;gap:7px}.graph-settings select{max-width:330px;width:100%;padding:7px;border:1px solid var(--line);border-radius:5px;background:white;font-size:13px}.graph-settings input[type=range]{width:95px;accent-color:var(--green)}.graph-settings details{position:relative;z-index:8}.graph-settings summary{cursor:pointer;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:white}.tag-choice-list{position:absolute;width:350px;max-height:340px;overflow:auto;background:white;border:1px solid var(--line);box-shadow:0 8px 24px #20382022;padding:12px;border-radius:8px;margin-top:5px}.tag-choice-list label{padding:5px 0;font-size:13px}.tag-choice-list small{color:var(--muted);margin-left:auto}.tag-choice-list input{accent-color:var(--green)}.graph-settings button{font-size:13px}.graph-selection{position:absolute;left:16px;right:16px;top:61px;color:var(--muted);font-size:12px;background:#ffffffdb;padding:5px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.legend .tag-legend{border-radius:50%;background:#527fb5}.graph-detail h3{font-size:14px;margin:24px 0 10px}.graph-detail .relation-card{width:100%;text-align:left;white-space:normal}.relation-cta{display:block;font-size:11px;color:var(--green);margin-top:6px}.edge-endpoint{padding:13px;background:#edf2e9;border-radius:7px}.edge-endpoint small{display:block;color:var(--muted);margin-bottom:5px}.edge-endpoint button{font-family:var(--serif);text-align:left;font-size:17px;line-height:1.5;background:transparent;padding:0;border:0}.edge-direction{color:var(--muted);font-size:12px;margin:10px}.tag-proof{font-size:13px;white-space:pre-wrap;background:#f0f4ec;padding:12px}.graph-page .graph-layout{height:calc(100vh - 280px);min-height:540px}.graph-page .graph-detail{font-size:14px}.graph-detail blockquote{line-height:1.9}.graph-detail .eyebrow{font-size:11px}
@media(max-width:860px){.graph-page .graph-layout{height:auto;min-height:0}.graph-stage{height:60vh;min-height:430px}.graph-settings{gap:8px}.graph-settings select{max-width:230px}.graph-selection{top:60px}.graph-detail{max-height:520px}.graph-controls{flex-wrap:wrap}}
@media(max-width:620px){.tag-choice-list{width:min(330px,85vw)}.graph-settings select{max-width:210px}.graph-settings label{font-size:12px}.graph-controls{left:10px;top:10px}.graph-controls button{font-size:12px;padding:6px 8px}.graph-selection{left:10px;right:10px}.graph-settings input[type=range]{width:85px}}
.tag-search-bar{position:sticky;top:0;z-index:1;background:#fff;padding:0 0 10px;margin-bottom:6px;border-bottom:1px solid var(--line)}.tag-search-bar input{display:block;width:100%;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;font:inherit}.tag-choice-list [hidden]{display:none}.tag-choice-list #graph-tag-empty{margin:12px 0 4px;color:var(--muted);font-size:13px}
.graph-heading-line{display:flex;align-items:baseline;gap:8px 20px;flex-wrap:wrap}.graph-heading-line h1{margin-bottom:0}.graph-heading-line p{white-space:normal}.graph-controls{left:auto;right:16px}.graph-selection{left:auto;right:16px;max-width:calc(100% - 32px);width:max-content;text-align:right}.tag-batch-actions{display:flex;align-items:center;gap:8px;margin-top:10px}.tag-batch-actions button{padding:4px 8px}.tag-batch-actions span{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}@media(max-width:620px){.graph-controls{left:auto;right:10px}.graph-selection{left:auto;right:10px;max-width:calc(100% - 20px)}.graph-heading-line{gap:4px 12px}}

/* Spacious graph with collapsible controls inside the canvas. */
.graph-page{padding:12px 16px 16px}
.graph-page .page-heading{margin-bottom:10px}
.graph-page .page-heading .eyebrow{display:none}
.graph-page .page-heading h1{font-size:24px}
.graph-page .graph-layout{display:block;position:relative;height:calc(100dvh - 156px);min-height:480px}
.graph-page .graph-stage{height:100%;min-height:0;background:#fcfdfb}
.graph-stage .graph-settings{position:absolute;left:14px;top:14px;z-index:5;margin:0;display:block;max-width:calc(100% - 28px)}
.graph-settings .tag-choice-list{width:300px;max-width:calc(100vw - 65px);max-height:calc(100dvh - 290px);overscroll-behavior:contain;box-shadow:0 6px 24px #20382018}
.graph-settings .graph-locate{display:block;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:10px}
.graph-settings .graph-locate select{display:block;max-width:100%;margin-top:5px}
.graph-page .graph-detail{display:none;position:absolute;right:14px;top:64px;bottom:58px;width:310px;max-width:calc(100% - 28px);max-height:none;border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 24px #20382018;padding:18px;overscroll-behavior:contain;z-index:4}
.graph-page .graph-detail.is-open{display:block}
.graph-stage .graph-selection{top:auto;bottom:14px;max-width:50%;font-size:12px}
.graph-controls{top:14px;right:14px}
.graph-layout.graph-expanded{position:fixed;inset:12px;height:auto;min-height:0;z-index:60;box-shadow:0 0 0 20px #f5f6f3}
.graph-expanded .tag-choice-list{max-height:calc(100dvh - 150px)}
@media(max-width:620px){
 .graph-page{padding:8px}.graph-page .page-heading h1{font-size:20px}.graph-heading-line p{display:none}
 .graph-page .graph-layout{height:calc(100dvh - 126px);min-height:420px}
 .graph-controls{top:58px;left:10px;right:auto;gap:4px}.graph-controls button{padding:5px 7px}
 .graph-stage .graph-settings{left:10px;top:10px}.graph-page .graph-detail{top:104px;right:10px;bottom:55px}
 .graph-stage .graph-selection{bottom:53px;max-width:calc(100% - 20px)}
 .graph-layout.graph-expanded{inset:6px;height:auto}.graph-settings .tag-choice-list{max-height:calc(100dvh - 260px)}
}

.legend .domain-legend{border-radius:0;background:#527fb5}
.legend .knowledge{border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%);width:11px;height:10px}

/* Administrator source linking and public note-to-PDF anchors. */
.source-link-editor{display:flex;align-items:center;gap:20px;padding:12px 28px;background:#fff8d9;border-bottom:1px solid #d9c983;box-shadow:0 5px 18px #3e4c3620;position:sticky;top:135px;z-index:8}
.source-link-editor>div:first-child{min-width:0;flex:1}.source-link-editor strong{display:block;color:#495e3d;margin-bottom:4px}.source-link-editor p{display:flex;gap:8px;margin:2px 0;font-size:12px;line-height:1.55}.source-link-editor p span{color:#7a806e;flex:0 0 34px}.source-link-editor p b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-link-actions{display:flex;gap:7px;flex:0 0 auto}
.article-body mark.source-anchor{background:#f1d66c80;color:inherit;padding:1px 2px;border-radius:2px;cursor:pointer;text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:#a7822d;text-decoration-thickness:1.5px;text-underline-offset:3px}.article-body mark.source-anchor:hover,.article-body mark.source-anchor:focus{background:#efd058a8;box-shadow:none;text-decoration-color:#5e6f4e;text-decoration-thickness:2px}.article-body mark.source-anchor-target{animation:source-note-target 1.2s ease-out}@keyframes source-note-target{0%,100%{box-shadow:0 0 0 0 #c5982e00}40%{box-shadow:0 0 0 5px #c5982e3b}}
.article-body{caret-color:transparent}
.reader-note-toolbar{position:fixed;z-index:130;background:transparent;padding:0;border:0;border-radius:0;box-shadow:none}.reader-note-toolbar button{border:1px solid #365446;background:#365446;color:#fff;padding:3px 8px;border-radius:3px;font-size:11px;line-height:1.35;box-shadow:none}.reader-note-toolbar button:hover{background:#263f33}
.article-body mark.reader-note{background:transparent;color:inherit;padding:0;cursor:pointer;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#d05180;text-decoration-thickness:1.5px;text-underline-offset:4px;position:relative}.article-body mark.reader-note:hover,.article-body mark.reader-note:focus{text-decoration-color:#a72c5e;text-decoration-thickness:2px}.article-body mark.reader-note-end::after{content:'';position:absolute;right:-.42em;top:-.22em;width:7px;height:7px;border:1px solid #fff;border-radius:50%;background:#dc4f7c;box-shadow:0 1px 2px #7b294833;text-decoration:none}
.reader-note-modal{position:fixed;inset:0;z-index:150;background:#17251c55;display:grid;place-items:center;padding:20px}.reader-note-dialog{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:0 20px 70px #17251c55}.reader-note-dialog h2{font:600 21px/1.4 var(--serif);margin:0 0 12px}.reader-note-dialog blockquote,.reader-note-viewer>blockquote{margin:0 0 14px;padding:9px 12px;background:#f5f4ef;border-left:3px solid #d05180;color:#60685f;font-size:13px;max-height:100px;overflow:auto}.reader-note-dialog textarea{display:block;width:100%;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:10px;font:14px/1.6 var(--sans)}.reader-note-dialog small{display:block;text-align:right;color:var(--muted);margin-top:4px}.reader-note-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
.reader-note-viewer{position:fixed;z-index:140;width:min(310px,calc(100vw - 20px));max-height:min(430px,calc(100vh - 20px));overflow:auto;background:#fff;border:1px solid #b9c4bc;border-radius:5px;padding:10px 11px;box-shadow:0 7px 24px #17251c2e}.reader-note-viewer-heading{display:flex;align-items:center;margin-bottom:7px}.reader-note-viewer-heading strong{font-size:12px}.reader-note-viewer article{position:relative;border-top:1px solid var(--line);padding:9px 0 2px}.reader-note-viewer article p{margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.55}.reader-note-viewer article small{color:var(--muted);font-size:10px}.reader-note-delete{position:absolute;right:0;bottom:0;border:0;background:transparent;color:#a34a5d;padding:2px 4px;font-size:10px}
.reader.note-editing{display:grid!important;grid-template-columns:1fr!important}.reader.note-editing .article-header,.reader.note-editing .inspector,.reader.note-editing .pdf-panel{display:none!important}body.note-editing-mode .reader-toolbar{display:none}.reader.note-editing .article-wrap{width:100%;min-height:calc(100vh - 78px)}.note-editor-host{max-width:none!important;margin:0!important;padding:28px 42px!important}.note-editor{width:min(1180px,100%);max-width:none;margin:auto}.note-editor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.note-editor-heading strong{display:block;font:600 19px/1.4 var(--serif)}.note-editor-heading small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.note-editor-warning{margin:0 0 10px;padding:8px 10px;border-left:3px solid #b7954d;background:#faf6e9;color:#79663f;font-size:12px}.note-editor textarea{display:block;width:100%;min-height:calc(100vh - 245px);resize:vertical;border:1px solid #aebbae;border-radius:6px;background:#fcfdfb;color:var(--ink);padding:16px;font:14px/1.75 Consolas,'Cascadia Code','Microsoft YaHei',monospace;tab-size:2}.note-editor textarea:focus{outline:2px solid #799577;outline-offset:1px}.note-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px}.note-editor-footer>small{color:var(--muted)}.note-editor-footer>div{display:flex;gap:8px}

/* Desktop sidebar can be tucked away without changing the current page. */
.sidebar{transition:transform .2s ease}.sidebar-collapse,.sidebar-expand{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #cbd6c8;border-radius:6px;background:#f8faf7;color:#45604d;font:22px/1 Georgia,serif}.sidebar-collapse{position:absolute;top:12px;right:10px;z-index:2}.sidebar-expand{position:fixed;top:24px;left:14px;z-index:21}.sidebar-collapse:hover,.sidebar-expand:hover{background:#e4ebe0}.sidebar-expand[hidden]{display:none}body.sidebar-collapsed .sidebar{transform:translateX(-100%)}body.sidebar-collapsed .workspace{margin-left:0}body.sidebar-collapsed .topbar{padding-left:78px}
@media(max-width:620px){.sidebar-collapse,.sidebar-expand{display:none!important}body.sidebar-collapsed .sidebar.open{transform:none}body.sidebar-collapsed .topbar{padding-left:12px}.note-editor-host{padding:22px!important}.note-editor textarea{min-height:calc(100vh - 260px)}}
@media(max-width:860px){.source-link-editor{position:relative;top:0;padding:12px 18px}}
@media(max-width:620px){.source-link-editor{align-items:stretch;flex-direction:column;gap:9px;padding:10px 12px}.source-link-actions{justify-content:flex-end}.source-link-editor p b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.reader-note-dialog{padding:17px}.reader-note-viewer{left:10px!important;right:10px!important;width:auto}}

/* Editing only replaces the article column; the surrounding reader stays put. */
.reader.note-editing{grid-template-columns:minmax(0,1fr) 276px!important}.reader.note-editing.with-pdf{grid-template-columns:minmax(0,1fr) minmax(350px,1fr)!important}.reader.note-editing .article-wrap{width:auto;min-width:0;min-height:calc(100vh - 135px)}.reader.note-editing .inspector{display:block!important}.reader.note-editing.with-pdf .inspector{display:none!important}.reader.note-editing.with-pdf .pdf-panel{display:flex!important;flex-direction:column}.note-editor-host{padding:42px 48px 80px!important}.with-pdf .note-editor-host{padding:30px!important}.note-editor{width:100%;max-width:900px;margin:auto}.note-editor textarea{min-height:calc(100vh - 285px)}.note-editor-footer>div{display:none}

/* Make the outline hierarchy visible at a glance. */
.toc-link.level-1,.toc-link.level-2{font-size:14px;font-weight:650;color:#435549;padding:7px 0}.toc-link.level-3{font-size:13px;font-weight:400;padding-left:14px}.toc-link.level-3::before{content:'·';display:inline-block;margin-right:7px;color:#819080}
@media(max-width:1150px){.reader.note-editing{grid-template-columns:minmax(0,1fr) 240px!important}}
@media(max-width:860px){.reader.note-editing,.reader.note-editing.with-pdf{display:block!important}.reader.note-editing .inspector{display:block!important}.reader.note-editing.with-pdf .inspector{display:none!important}.with-pdf .note-editor-host{padding:30px!important}}
@media(max-width:620px){.note-editor-host,.with-pdf .note-editor-host{padding:22px!important}.note-editor textarea{min-height:calc(100vh - 260px)}}

/* Editing metadata lives in the toolbar; the document itself uses page scrolling. */
.note-editor-status{display:flex;align-items:center;gap:15px;flex:1;min-width:0;padding:0 16px}.note-editor-status>div{flex:0 0 auto}.note-editor-status strong{display:block;font:600 15px/1.4 var(--serif);color:var(--ink)}.note-editor-status small{display:block;color:var(--muted);font-size:10px}.note-editor-status p{min-width:0;margin:0;padding:5px 9px;border-left:2px solid #b7954d;background:#faf6e9;color:#79663f;font-size:11px;line-height:1.45}.note-editor textarea{height:auto;min-height:calc(100vh - 250px);overflow-y:hidden;resize:none;border:0;border-radius:0;background:transparent;padding:0;font:15px/1.95 Consolas,'Cascadia Code','Microsoft YaHei',monospace}.note-editor textarea:focus{outline:0}.note-editor-footer{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}
@media(max-width:860px){.note-editor-status{order:3;flex-basis:100%;padding:4px 0}.note-editor-status p{flex:1}}
@media(max-width:620px){.note-editor-status{display:block}.note-editor-status>div{margin-bottom:5px}.note-editor-status p{font-size:10px}.note-editor textarea{min-height:calc(100vh - 235px)}}
