:root{font-family:ui-sans-serif,system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#202923;background:#f8f9f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}header{height:72px;border-bottom:1px solid #dfe5da;display:flex;align-items:center;justify-content:space-between;padding:0 6%;background:#f8f9f5}.brand{font-size:30px;font-weight:800;letter-spacing:-2px;color:#203d2b;text-decoration:none}.brand span{color:#8bb257}.header-right{display:flex;align-items:center;gap:20px;color:#677569;font-size:13px}button{border:0;background:none;color:inherit}#logout{border-bottom:1px solid #8c9c8f;padding:5px 0}main{max-width:1500px;margin:auto}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.16em;color:#718470;margin:0 0 20px}#signin{padding:clamp(90px,15vh,180px) 10%;min-height:70vh}#signin h1{font-size:clamp(48px,7vw,86px);letter-spacing:-.065em;line-height:1.13;margin:0 0 24px;color:#203d2b}#signin>p:not(.eyebrow){color:#647267;margin-bottom:38px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:35px;padding:15px 20px;background:#284f35;color:white;text-decoration:none;border-radius:4px;font-size:14px;font-weight:650;transition:background .18s}.primary:hover{background:#3b6b49}#workspace{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:calc(100vh - 72px)}aside{padding:55px 32px 40px 20%;border-right:1px solid #dfe5da}aside h2{font-size:24px;margin:0}.muted{color:#7a887d;font-size:13px;line-height:1.6}nav{display:flex;flex-direction:column;align-items:stretch;margin-top:28px;gap:3px}.doc-link{text-align:left;line-height:1.5;padding:9px 0;color:#385b42;overflow-wrap:anywhere}.doc-link:hover{text-decoration:underline}article{padding:65px clamp(32px,7vw,110px);max-width:1000px}.top h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.05em;margin:0 0 40px;color:#203d2b}label{font-size:13px;font-weight:650;display:block;margin-bottom:10px}.searchbar{display:flex;border:1px solid #bdcbbd;background:white;padding:5px;border-radius:5px}.searchbar:focus-within{outline:2px solid #85a889}.searchbar input{border:0;outline:0;padding:10px 12px;min-width:0;flex:1;background:transparent}.searchbar .primary{padding:12px 22px}#message{font-size:13px;color:#6a796c;margin:35px 0 12px}.result{border-top:1px solid #dfe5da;padding:20px 0}.result .doc-link{font-size:19px;font-weight:650;padding:0}.result p{margin:7px 0;line-height:1.7}#document{border-top:1px solid #dfe5da;margin-top:30px;padding-top:25px}.back{color:#53745a;margin:0 0 38px;padding:0}#document h2{font-size:30px;overflow-wrap:anywhere}pre{font:15px/1.9 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#334338}@media(max-width:700px){header{height:64px}#workspace{display:block}aside{padding:30px 7%;border-right:0;border-bottom:1px solid #dfe5da}nav{max-height:160px;overflow:auto;margin-top:15px}article{padding:45px 7%}#signin{padding:90px 7%}}
#password-login,#password-update{max-width:420px}#password-login input,#password-update input{display:block;width:100%;border:1px solid #bdcbbd;border-radius:4px;padding:12px 14px;background:#fff;margin:0 0 22px}#password-login input:focus,#password-update input:focus{outline:2px solid #85a889}#password-login .primary,#password-update .primary{min-width:150px}button:disabled{opacity:.6;cursor:wait}#password-settings{padding:75px 10%;max-width:850px}#password-settings h1{font-size:36px;letter-spacing:-.04em}#password-note{color:#647267;line-height:1.7;max-width:490px;margin-bottom:30px}#auth-message,#password-message{color:#734029;line-height:1.6;font-size:14px}#signin h1{font-size:clamp(36px,6vw,62px)}@media(max-width:700px){#password-settings{padding:45px 7%}.header-right{gap:10px;font-size:12px}}
#new-document{margin-top:18px;padding:10px 15px}#edit-document{margin-left:24px}#document-editor{border-top:1px solid #dfe5da;margin-top:30px;padding-top:25px}#document-editor h2{font-size:28px}#document-editor input,#document-editor textarea{display:block;width:100%;border:1px solid #bdcbbd;border-radius:4px;background:white;padding:12px;margin-bottom:22px;font:14px/1.6 ui-monospace,monospace}#document-editor input:disabled{background:#edf0e9;color:#657568}#document-editor textarea{resize:vertical}#document-editor .editor-actions{display:flex;gap:20px;align-items:center}#save-status{font-size:14px;color:#875439;line-height:1.7}#conflict-panel,#draft-panel{border-top:1px solid #d8c6a9;margin-top:28px;padding-top:20px}#conflict-panel p{font-size:14px;line-height:1.7}#load-latest,#restart-edit{border-bottom:1px solid #63806b;padding:8px 0;margin-bottom:20px}#latest-markdown,#previous-draft{background:#f0f2ec!important}
.wiki-link{font:inherit;color:#287044;text-decoration:underline;text-underline-offset:3px;padding:0;overflow-wrap:anywhere}#backlinks{border-top:1px solid #dfe5da;margin-top:36px;padding-top:18px}#backlinks h3{font-size:15px;color:#385b42}#backlinks-list{display:flex;flex-direction:column;align-items:flex-start;color:#7a887d;font-size:13px}

#open-graph{display:block;margin:22px 0 0}#graph-panel{border-top:1px solid #dfe5da;margin-top:30px;padding-top:20px}.graph-heading{display:flex;align-items:center;gap:18px}.graph-heading h2{flex:1}#graph-focus{max-width:100%;padding:10px;border:1px solid #bdcbbd;background:white;font:inherit}#graph-status{font-size:13px;color:#647267}#graph-canvas{overflow:auto;max-height:65vh;background:#f0f3ed;border-radius:4px}#graph-canvas svg{display:block;min-width:100%}.graph-node{cursor:pointer}.graph-node text{font:13px system-ui;fill:#284f35}.graph-node:hover circle,.graph-node:focus circle{stroke:#203d2b;stroke-width:4}.graph-node:focus{outline:none}#graph-detail{overflow-wrap:anywhere;margin-top:20px}#graph-detail h3{font-size:16px}

#graph-canvas{overflow:hidden;height:clamp(320px,60vh,650px);max-height:none}#graph-canvas svg{width:100%;height:100%;min-width:0;touch-action:none;user-select:none;cursor:grab}#graph-canvas svg.dragging,#graph-canvas svg.dragging .graph-node{cursor:grabbing}.graph-controls{display:flex;gap:8px;margin:12px 0}.graph-controls button{min-width:44px;min-height:44px;border:1px solid #bdcbbd;border-radius:4px}.graph-controls button:hover{background:#e5ecdf}

.graph-pin{margin-left:20px;border:1px solid #8ba08b;border-radius:4px;padding:10px 14px;min-height:44px}.graph-pin[aria-pressed="true"]{background:#e5ecdf}.graph-pin:focus-visible{outline:2px solid #284f35;outline-offset:3px}

/* Content-first workspace: compact navigation and controls. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
header{height:52px;padding:0 22px}.brand{font-size:25px}main{max-width:none}#workspace{grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 52px)}aside{padding:20px 18px}aside>.eyebrow,aside>.muted{display:none}aside h2{font-size:18px}article{padding:16px 24px;max-width:none;min-width:0}nav{margin-top:12px}.doc-link{padding:6px 0}.searchbar{padding:3px}.searchbar input{padding:6px 10px}.searchbar .primary{padding:8px 16px}#message{margin:8px 0;font-size:13px}#message:empty{display:none}#document,#document-editor,#graph-panel{margin-top:12px;padding-top:12px}.back{margin-bottom:12px}#document>.eyebrow{display:none}#document h2{font-size:22px;margin:8px 0}pre{margin-top:12px}.graph-heading{gap:12px}.graph-heading h2{font-size:20px;margin:0}.graph-heading button{padding:8px}#graph-panel>.muted{margin:5px 0;font-size:12px}#graph-focus{padding:6px;max-width:100%}#graph-status,#graph-save-status{display:inline-block;margin:6px 12px 4px 0;font-size:12px}.graph-controls{margin:6px 0;gap:6px}.graph-controls button{min-height:32px;padding:4px 10px}#graph-panel{border-top:0;margin-top:0;padding-top:0}#graph-canvas{height:calc(100dvh - 290px);min-height:260px}#graph-detail{margin-top:10px}#graph-detail h3{margin:6px 0}#graph-detail p{margin:4px 0}#graph-search{display:flex;gap:6px;margin:8px 0;max-width:500px}#graph-query{min-width:0;flex:1;padding:7px 10px;border:1px solid #bdcbbd;border-radius:4px;background:white}#graph-search button{padding:6px 14px;border:1px solid #bdcbbd;border-radius:4px}#graph-matches{display:flex;flex-direction:column;max-height:140px;overflow:auto;font-size:13px;color:#536957}.graph-node[aria-current="true"] circle{stroke:#284f35;stroke-width:5}.graph-node[aria-current="true"] text{font-weight:750}
@media(max-width:700px){header{height:auto;min-height:48px;padding:8px 12px;gap:10px}.header-right{flex-wrap:wrap;gap:8px}#workspace{display:block}aside{padding:8px 12px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}aside h2{font-size:16px}#new-document,#open-graph{margin:0;padding:6px 8px}aside nav{flex-basis:100%;max-height:75px;margin:0}#workspace:has(#graph-panel:not([hidden])) aside nav{display:none}article{padding:10px 12px}#graph-canvas{height:calc(100dvh - 400px);min-height:240px}.graph-controls{flex-wrap:wrap}.graph-heading h2{font-size:18px}}

#open-knowledge{display:block;margin:12px 0}.knowledge-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.knowledge-tools label{margin:0}.knowledge-tools select{max-width:100%;padding:6px}.knowledge-tools .primary{padding:8px 12px}.knowledge-item{border-top:1px solid #dfe5da;padding:12px 0}.knowledge-item h3{font-size:16px;margin:4px 0}.knowledge-item p{font-size:12px;color:#657568;margin:5px 0}.knowledge-item button{padding:8px;margin-right:10px;color:#284f35;text-decoration:underline}.knowledge-item pre{font-size:13px;background:#edf1e8;padding:10px}.knowledge-item details{margin-top:8px;font-size:12px}#knowledge-graph{background:#f0f3ed;overflow:auto;padding:10px}#knowledge-graph svg{display:block;width:100%;height:360px;min-width:500px}#knowledge-graph text{font:12px system-ui;fill:#284f35}#knowledge-graph g[role=button]{cursor:pointer}#knowledge-panel{min-width:0}
