:root{--bg:#18181b;--panel:#232329;--panel2:#2b2b33;--border:#3c3c47;--text:#ededf2;--muted:#aaaabc;--accent:#8b6cf6;--danger:#ef5d6a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px Segoe UI,Arial,sans-serif;overflow:hidden}button,input,select,textarea{font:inherit}button,select,input{background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px 10px}button{cursor:pointer}button:hover{border-color:var(--accent)}header{height:54px;display:flex;align-items:center;gap:10px;padding:8px 14px;background:var(--panel);border-bottom:1px solid var(--border)}.brand{font-weight:700;color:#bcaaff;font-size:16px}.grow{flex:1}#search{width:280px}main{height:calc(100vh - 54px);display:grid;grid-template-columns:280px minmax(400px,1fr) 300px}aside{background:var(--panel);border-right:1px solid var(--border);overflow:auto;padding:10px}.right{border-left:1px solid var(--border);border-right:0}.actions{display:flex;gap:8px;margin-bottom:10px}.actions button{flex:1}#stats{color:var(--muted);padding:8px;border-bottom:1px solid var(--border);margin-bottom:8px}.entry{padding:6px 8px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.entry:hover,.entry.selected{background:#39334d}.entry.folder{color:#cfbdff;font-weight:600}.workspace{display:flex;min-width:0;flex-direction:column}.tabs{height:44px;background:var(--panel);display:flex;align-items:center;gap:5px;padding:6px 10px;border-bottom:1px solid var(--border)}.tab.active{background:var(--accent);border-color:var(--accent)}#pathLabel{margin-left:auto;color:var(--muted);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.view{display:none;flex:1;min-height:0}.view.active{display:block}#editor{width:100%;height:100%;resize:none;border:0;outline:0;background:#1d1d21;color:var(--text);padding:24px;font:15px/1.6 Consolas,monospace}#preview{height:100%;overflow:auto;padding:28px 8%;background:#fdfdfd;color:#222;line-height:1.65}#preview pre,#preview code{background:#eee;border-radius:5px}#preview pre{padding:12px;overflow:auto}#preview blockquote{border-left:4px solid var(--accent);padding-left:12px;color:#555}#preview table{border-collapse:collapse}#preview td,#preview th{border:1px solid #ccc;padding:6px}footer{height:46px;display:flex;align-items:center;gap:8px;padding:6px 10px;background:var(--panel);border-top:1px solid var(--border)}#status{flex:1;color:var(--muted)}.primary{background:var(--accent)}#results .result{padding:10px;border-bottom:1px solid var(--border);cursor:pointer}#results .result:hover{background:var(--panel2)}#results small{color:var(--muted)}mark{background:#d7bd36}.modal{display:none;position:fixed;inset:0;background:#121215ee;z-index:10;align-items:center;justify-content:center}.modal.show{display:flex}.card{width:360px;background:var(--panel);padding:28px;border:1px solid var(--border);border-radius:12px}.card label{display:block;margin:14px 0;color:var(--muted)}.card input,.card button{width:100%;margin-top:6px}.error{color:var(--danger);margin-top:12px}#graph{width:100%;height:100%;background:#151519}@media(max-width:950px){main{grid-template-columns:220px 1fr}.right{display:none}} 
