:root{color:#152033;background:#f4f7fb;font-family:Inter,Segoe UI,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--border: #dbe3ee;--muted: #65758b;--panel: #ffffff;--ink: #152033;--blue: #1769e0;--green: #16834f;--red: #c33434}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.app-shell{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;gap:16px;min-height:100vh;padding:24px;border-right:1px solid var(--border);background:#fbfcff}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;color:#fff;background:#1769e0;font-size:20px;font-weight:800}.brand h1,.brand p,.topbar h2,.topbar p{margin:0}.brand h1{font-size:22px;line-height:1.1}.brand p{margin-top:4px;color:var(--muted);font-size:13px}.server-status,.search-box,.notice{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}.server-status{min-height:38px;padding:9px 10px;color:var(--muted);font-size:12px}.server-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-box{height:42px;padding:0 12px}.search-box input,.meta-panel input{width:100%;border:0;color:var(--ink);background:transparent;outline:0}.primary-action,.save-button,.ghost-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid transparent;border-radius:8px;font-weight:700}.primary-action,.save-button{color:#fff;background:var(--green)}.primary-action{width:100%}.ghost-button,.icon-button{color:var(--ink);border-color:var(--border);background:#fff}.icon-button{width:40px;padding:0}.page-list{display:flex;flex:1;flex-direction:column;gap:8px;overflow:auto;padding-right:2px}.page-item{display:grid;gap:6px;width:100%;padding:12px;border:1px solid transparent;border-radius:8px;color:var(--ink);background:transparent;text-align:left}.page-item:hover,.page-item.active{border-color:#bdd2f2;background:#eef5ff}.page-item span{overflow:hidden;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.page-item small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.empty-state{margin:16px 0;color:var(--muted);text-align:center}.workspace{display:flex;flex-direction:column;min-width:0;min-height:100vh;padding:24px;gap:16px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}.topbar h2{margin-top:4px;font-size:28px;line-height:1.18}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.notice{min-height:42px;padding:10px 12px;color:var(--muted)}.notice.error{color:var(--red);border-color:#f0c0c0;background:#fff4f4}.editor-layout{display:grid;grid-template-columns:280px minmax(0,1fr);flex:1;min-height:0;gap:16px}.meta-panel,.content-panel{border:1px solid var(--border);border-radius:8px;background:var(--panel)}.meta-panel{display:flex;flex-direction:column;gap:14px;align-self:start;padding:16px}.meta-panel label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:750}.meta-panel input{height:40px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff}.meta-panel input:disabled{color:#405066;background:#f6f8fb}.sync-info{display:grid;gap:5px;padding-top:12px;border-top:1px solid var(--border)}.sync-info span{color:var(--muted);font-size:12px}.sync-info strong{font-size:13px}.content-panel{min-width:0;min-height:560px;overflow:hidden}.preview{height:100%;overflow:auto;padding:28px 34px}.wiki-custom-editor,.wiki-md-editor-shell{height:100%;min-height:0}.wiki-md-editor-shell{display:flex;flex-direction:column}.wiki-md-extra-toolbar{display:flex;align-items:center;gap:8px;min-height:42px;padding:6px 10px;border-bottom:1px solid var(--border);background:#f8fafc;flex-wrap:wrap}.wiki-md-toolbar-label{color:var(--muted);font-size:12px;font-weight:800}.wiki-md-color-button,.wiki-md-tool-button{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border:1px solid var(--border);border-radius:6px;background:#fff}.wiki-md-color-button{width:28px;color:transparent}.wiki-md-tool-button{padding:0 9px;color:var(--ink);font-size:12px;font-weight:750}.wiki-md-editor-shell .md-editor{flex:1;min-height:0;border:0}.wiki-md-preview{font-family:inherit;color:var(--ink);background:transparent}.wiki-md-preview img{max-width:100%;height:auto}.wiki-md-preview .md-align{display:block}.wiki-md-preview .md-align-left{text-align:left}.wiki-md-preview .md-align-center{text-align:center}.wiki-md-preview .md-align-right{text-align:right}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:auto;border-right:0;border-bottom:1px solid var(--border)}.page-list{max-height:260px}.editor-layout{grid-template-columns:1fr}}@media(max-width:640px){.sidebar,.workspace{padding:16px}.topbar{align-items:flex-start;flex-direction:column}.toolbar,.ghost-button,.save-button{width:100%}.content-panel{min-height:480px}.preview{padding:20px}}
