:root{--bg: #0f1115;--panel: #171a21;--border: #2a2f3a;--text: #e8eaf0;--muted: #a0a7b4;--accent: #5aa3ff;--vec-base: #8a8a8a;--vec-selected: #3d7eff;--vec-result: #ffb02e;--vec-query: #ff4d4f}*{box-sizing:border-box}body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";background:var(--bg);color:var(--text)}.menubar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;background:var(--panel);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.menubar .brand{font-weight:600}.menubar .project-controls{display:flex;align-items:center;gap:6px;min-width:220px}.menubar .project-controls .project-label{font-size:12px;color:var(--muted)}.menubar .project-controls select{min-width:140px;background:#0f1115;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:6px 8px;font-size:13px}.menubar .project-controls select:disabled{opacity:.6;cursor:not-allowed}.menubar .project-controls button{background:transparent;color:var(--text);border:1px solid var(--border);padding:6px 8px;border-radius:6px;cursor:pointer}.menubar .project-controls button:disabled{opacity:.6;cursor:not-allowed}.menubar .project-message{font-size:12px;color:var(--muted);min-width:160px}.menubar nav button{background:transparent;color:var(--text);border:1px solid var(--border);padding:6px 10px;margin-left:6px;border-radius:6px;cursor:pointer}.menubar nav button.active{border-color:var(--accent);color:var(--accent)}.menubar .searchbar{display:flex;gap:6px;align-items:center;width:50%}.menubar .searchbar input[type=search]{flex:1;min-width:120px;background:#0f1115;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:6px 8px;font-size:13px}.menubar .searchbar input[type=number]{width:64px;background:#0f1115;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:6px 8px;font-size:13px}.menubar .searchbar button{background:transparent;color:var(--text);border:1px solid var(--border);padding:6px 10px;border-radius:6px;cursor:pointer}.menubar .searchbar button:disabled,.menubar nav button:disabled,.sidebar-header button:disabled{opacity:.6;cursor:not-allowed}.layout{display:grid;grid-template-columns:300px 1fr;height:calc(100vh - 50px)}.sidebar{border-right:1px solid var(--border);overflow:auto;background:var(--panel)}.sidebar-header{display:flex;gap:6px;padding:8px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--panel);z-index:5}.sidebar-header button{background:transparent;color:var(--text);border:1px solid var(--border);padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px}.tree{list-style:none;padding:8px;margin:0;font-size:14px}.tree li{margin:2px 0}.tree .dir{color:var(--muted);margin-top:6px}.tree .file{cursor:pointer;padding:2px 6px;border-radius:4px}.tree .file:hover,.tree .file.active{background:#222737}.results{padding:8px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}.results .result{padding:6px;border:1px solid var(--border);border-radius:6px;margin-top:6px;cursor:pointer;color:var(--text);background:#141822}.results .result:hover{border-color:var(--accent)}.results .path{color:var(--muted);font-size:12px}.results .line{color:var(--accent);font-weight:600;margin-right:6px}.flash{animation:flash-bg 1s ease-out 1}@keyframes flash-bg{0%{background-color:#3b82f620}to{background-color:transparent}}.editor{display:grid;grid-template-rows:auto 1fr auto;height:100%}.path{padding:8px 12px;border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}#editor{width:100%;height:100%;background:transparent;color:var(--text);border:none;resize:none;outline:none;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;line-height:1.5}#editor:disabled{background:#10131b;color:var(--muted);cursor:not-allowed}.actions{display:flex;gap:8px;align-items:center;border-top:1px solid var(--border);padding:8px 12px}.actions button{background:var(--accent);color:#04132b;border:none;padding:8px 12px;border-radius:6px;cursor:pointer;font-weight:600}.actions button#cancel{background:transparent;color:var(--text);border:1px solid var(--border);font-weight:500}.actions button.danger{background:#f87171;color:#2a0b0b}.actions button:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.2)}.status{margin-left:auto;color:var(--muted);font-size:12px}.hidden{display:none!important}#vectors-view{display:grid;grid-template-rows:auto 1fr auto;height:100%}#vector-canvas-container{position:relative;background:#111;border:1px solid var(--border)}#vector-canvas{width:100%;height:100%;display:block}#vector-legend{font-size:12px;color:var(--muted);padding:6px 12px}
