:root{color-scheme:light;--ink:#172b36;--muted:#77858e;--line:#e5ebee;--accent:#087f72;--accent-soft:#e8f5f1;--nav:#142e36;--bg:#f5f8f9;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);display:flex;min-height:100vh}button,input,textarea{font:inherit}button,.button{border:1px solid transparent;border-radius:7px;padding:9px 15px;cursor:pointer;transition:background .15s;color:inherit;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}button:disabled{cursor:wait;opacity:.55}.primary{background:var(--accent);color:white}.primary:hover{background:#066b60}.secondary{background:white;border-color:#dce4e7}.secondary:hover{background:#f2f6f7}.danger{color:#b54a48;background:transparent}.danger:hover{background:#fff0ef}.icon-button{padding:2px 7px;font-size:24px;background:transparent;line-height:1.1}.sidebar{width:248px;min-width:248px;background:var(--nav);color:#e4f0f2;padding:32px 20px 20px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;gap:12px;align-items:center;color:white;font-size:19px;font-weight:650;text-decoration:none;margin:0 7px 44px}.brand-icon{display:grid;place-items:center;width:39px;height:39px;border:1px solid #5e9a95;background:#28524f;border-radius:11px;color:#b7e6cf;font-size:22px}.brand small{display:block;margin-top:5px;font-size:11px;font-weight:400;letter-spacing:2px;color:#8ca9b0}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#9db7be;margin:0 8px 12px}.sidebar input{background:#203e46;color:white;border:1px solid #34515a;margin-bottom:18px;padding:10px;width:100%;border-radius:7px}.sidebar input::placeholder{color:#89a2a9}.project-link{display:block;text-align:left;white-space:normal;width:100%;color:#bad0d5;border:0;background:transparent;padding:12px;margin-bottom:5px}.project-link:hover{background:#21414a}.project-link.active{background:#28524f;color:#d8f4e7;box-shadow:inset 3px 0 #74c3a5}.project-link strong{display:block;font-weight:500}.project-link small{display:block;margin-top:5px;font-size:11px;opacity:.7}.sidebar-footer{font-size:11px;color:#96afb5;margin-top:auto;padding:32px 7px 0;display:flex;gap:7px;align-items:center}.sidebar-footer #project-count{margin-left:auto}.status-dot{width:6px;height:6px;background:#79c7ad;border-radius:50%}main{padding:34px 40px 20px;flex:1;min-width:0;max-width:1800px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:700}h1{font-size:25px;letter-spacing:-.5px;margin:7px 0 0;font-weight:600}h2{font-size:22px;margin:8px 0 10px;font-weight:600}h3{font-size:14px;margin:0;font-weight:600}.project-header{border-top:1px solid var(--line);padding:25px 0 23px;display:flex;justify-content:space-between;align-items:center;gap:20px}.breadcrumb{font-size:12px;color:var(--muted);font-family:Consolas,monospace}.project-header p{margin:0;line-height:1.7;color:var(--muted);max-width:650px}.actions{display:flex;gap:8px}.workspace-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(400px,1.8fr);gap:22px;align-items:stretch}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden;min-width:0}.panel-heading{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.panel-heading p{color:var(--muted);font-size:11px;line-height:1.6;margin:7px 0 0}.badge{background:#eff3f5;border-radius:5px;padding:2px 6px;font-size:11px;color:var(--muted);margin-left:5px}.document-link{display:block;width:100%;background:white;border:0;border-radius:0;border-bottom:1px solid #eef2f4;text-align:left;white-space:normal;padding:18px 20px;position:relative}.document-link:hover{background:#f7faf9}.document-link.active{background:#f0f8f5;box-shadow:inset 3px 0 var(--accent)}.document-link strong{display:block;font-size:13px;font-weight:500}.document-link small{display:block;color:var(--muted);margin-top:7px;font-family:Consolas,monospace;font-size:11px;overflow-wrap:anywhere}.document-link p{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.list-empty{padding:30px 20px;color:var(--muted);font-size:12px;text-align:center;line-height:1.9}.editor-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:530px;color:var(--muted)}.editor-placeholder>span{font-size:32px;color:#b3c6c6;margin-bottom:20px}.editor-placeholder h3{color:#52666e}.editor-placeholder p{font-size:12px}.editor-fields{padding:20px}.field-row{display:grid;grid-template-columns:1fr 1.3fr;gap:14px}label{display:block;font-size:12px;font-weight:500;margin-bottom:16px}input,textarea{display:block;width:100%;padding:10px 11px;margin-top:8px;border:1px solid #dfe6e9;border-radius:6px;outline:none;background:white;color:var(--ink)}input:focus,textarea:focus{border-color:#55a89b;box-shadow:0 0 0 3px #e9f6f1}input:disabled{background:#f4f6f8;color:#829099}textarea{resize:vertical;line-height:1.7}#document-content{height:340px;min-height:240px;font-family:"Cascadia Code",Consolas,"Microsoft YaHei",monospace;font-size:12px;tab-size:2}.markdown-label{margin-bottom:0}#character-count{float:right;color:#91a0a8;font-size:10px;font-weight:400}.editor-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding:15px 20px}#editor-status{font-size:11px;color:var(--muted);margin-left:auto}.upload-button{margin:0;font-weight:400;font-size:11px}.main-footer{margin-top:24px;color:#8a989f;font-size:10px;display:flex;justify-content:space-between;gap:15px;line-height:1.8}.main-footer a{color:var(--accent)}code{font-family:Consolas,monospace}#notice{border-radius:7px;margin:0 0 15px;padding:11px 15px;font-size:13px;line-height:1.7;background:var(--accent-soft);color:#16634f}#notice.error{background:#fff0ec;color:#ae4741}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(480px,calc(100% - 32px));box-shadow:0 24px 80px #0b253440}dialog::backdrop{background:#122e3959;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{margin:0;font-size:21px}dialog p{font-size:12px;color:var(--muted);line-height:1.8;margin:15px 0 23px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#project-form-error{color:#b54a48;margin:0}.empty-state{text-align:center;padding:100px 20px}.empty-state p{color:var(--muted);line-height:1.9}.empty-icon{font-size:32px;background:#e6f1ed;color:var(--accent);width:65px;height:65px;display:grid;place-items:center;border-radius:18px;margin:0 auto 20px}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #65bdab;outline-offset:2px}@media(min-width:1600px){main{padding-left:60px;padding-right:60px}}@media(max-width:1100px){main{padding:28px 22px}.sidebar{width:210px;min-width:210px;padding:28px 14px}.workspace-grid{grid-template-columns:1fr}.documents-panel{max-height:290px;overflow:auto}.editor-placeholder{min-height:260px}.project-header{align-items:flex-start}.main-footer{flex-direction:column}}@media(max-width:650px){body{display:block}.sidebar{width:100%;min-height:0;padding:20px}.brand{margin:0 0 18px}.sidebar-footer{display:none}#project-list{max-height:180px;overflow:auto}.sidebar-heading{margin-bottom:5px}.sidebar input{margin-bottom:8px}.project-link{padding:9px 12px}main{padding:24px 16px}.topbar{gap:12px}.topbar .button{font-size:11px;padding:9px}h1{font-size:22px}.project-header{flex-direction:column;gap:12px}.field-row{grid-template-columns:1fr;gap:0}.main-footer{overflow-wrap:anywhere}.editor-footer{padding:12px 10px;gap:4px}#editor-status{display:none}}
