:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light dark;--bg: #0f1720;--panel: #17212d;--panel-2: #1e2a38;--text: #f5f7fa;--muted: #aeb9c5;--border: #334155;--accent: #dce6f1}:root[data-theme=light]{--bg: #f4f6f8;--panel: #ffffff;--panel-2: #eef2f6;--text: #18212b;--muted: #5f6b76;--border: #d5dde5;--accent: #1f2937}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{min-height:100vh;background:var(--bg);color:var(--text)}button,textarea,input{font:inherit}button{border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:8px;padding:.6rem .8rem;cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{width:0;overflow:hidden;border-right:1px solid var(--border);background:var(--panel);transition:width .16s ease}.sidebar-open{width:260px;padding:1rem;overflow-y:auto}.sidebar-title{font-weight:700;margin-bottom:1rem}.sidebar-empty,.muted{color:var(--muted)}.navigation-tree{list-style:none;padding-left:.6rem}.navigation-tree a{color:var(--text);text-decoration:none}.app-column{min-width:0;flex:1;display:flex;flex-direction:column}.context-header{min-height:64px;display:flex;gap:1rem;align-items:center;padding:.75rem 1rem;background:var(--panel);border-bottom:1px solid var(--border)}.context-current{display:flex;flex-direction:column;min-width:0;flex:1}.context-caption{color:var(--muted);font-size:.8rem}.context-actions{display:flex;gap:.5rem}.workspace{flex:1;padding:1.5rem}.welcome-panel,.state-card{max-width:900px;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:1.5rem}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}.state-error{border-color:currentColor}.conversation-shell{position:sticky;bottom:0;display:grid;grid-template-columns:auto 1fr auto auto;gap:.5rem;padding:.8rem;background:var(--panel);border-top:1px solid var(--border)}.conversation-shell textarea{resize:none;min-height:44px;max-height:160px;border:1px solid var(--border);border-radius:10px;padding:.7rem;background:var(--panel-2);color:var(--text)}.search-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:start center;padding-top:12vh;background:#00000073}.search-panel{width:min(720px,calc(100vw - 2rem));background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:1rem}.search-row{display:flex;gap:.5rem}.search-row input{flex:1;border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text);padding:.7rem}.bootstrap-screen{min-height:100vh;display:grid;place-items:center;padding:1rem}@media (max-width: 760px){.sidebar-open{position:fixed;z-index:20;inset:0 auto 0 0;width:min(84vw,320px)}.context-actions button:first-child{display:none}.conversation-shell{grid-template-columns:auto 1fr auto}.conversation-shell button:last-child{grid-column:2 / 4}}.view-heading{margin-bottom:1rem}.view-heading h1{margin-bottom:.4rem}.collection-view{max-width:1100px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.collection-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1rem}.collection-card h2{margin-top:0;font-size:1rem}.portfolio-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(180px,1fr) auto;gap:.75rem;align-items:end;margin:1rem 0}.portfolio-field{display:grid;gap:.35rem}.portfolio-field span{font-size:.78rem;color:var(--muted)}.portfolio-field input,.portfolio-field select{width:100%;min-height:2.5rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text)}.portfolio-view-switch{display:inline-flex;border:1px solid var(--border);border-radius:9px;overflow:hidden}.portfolio-view-switch button{min-height:2.5rem;padding:.55rem .75rem;border:0;border-right:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer}.portfolio-view-switch button:last-child{border-right:0}.portfolio-view-switch button[aria-pressed=true]{font-weight:700;text-decoration:underline;text-underline-offset:.2rem}.portfolio-summary{margin-bottom:.8rem;color:var(--muted);font-size:.85rem}.portfolio-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.portfolio-table{width:100%;border-collapse:collapse}.portfolio-table th,.portfolio-table td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--border)}.portfolio-table th{font-size:.8rem;color:var(--muted)}.portfolio-table tbody tr:last-child td{border-bottom:0}@media (max-width: 900px){.portfolio-toolbar{grid-template-columns:1fr 1fr}}@media (max-width: 620px){.portfolio-toolbar{grid-template-columns:1fr}.portfolio-view-switch{width:100%}.portfolio-view-switch button{flex:1}}.object-detail{max-width:1100px}.object-back{display:inline-block;margin-bottom:1rem}.object-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:1rem 0}.object-facts>div{border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:.85rem 1rem}.object-facts dt{color:var(--muted);font-size:.78rem;margin-bottom:.3rem}.object-facts dd{margin:0;font-weight:600}.object-sections{display:grid;gap:.75rem;margin-top:1rem}.object-sections h2{margin-top:0;font-size:1rem}.search-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:start center;padding:12vh 1rem 1rem;background:#00000085}.search-palette{width:min(720px,100%);max-height:70vh;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--panel);box-shadow:0 20px 60px #0000004d}.search-input-row{display:flex;gap:.5rem;padding:.8rem;border-bottom:1px solid var(--border)}.search-input-row input{flex:1;min-width:0;min-height:2.7rem;padding:.6rem .75rem;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text)}.search-input-row button{min-width:3.2rem;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);cursor:pointer}.search-state{margin:0;padding:1rem;color:var(--muted)}.search-results{list-style:none;margin:0;padding:.5rem;overflow-y:auto;max-height:52vh}.search-results li+li{margin-top:.25rem}.search-results a{display:grid;gap:.2rem;padding:.75rem;border-radius:9px;color:var(--text);text-decoration:none}.search-results a:hover,.search-results a:focus-visible{background:var(--bg);outline:1px solid var(--border)}.search-results span{color:var(--muted);font-size:.8rem}.conversation-shell{display:grid;gap:.55rem;width:100%}.conversation-history{display:grid;gap:.45rem;max-height:180px;overflow-y:auto}.conversation-user-message{justify-self:end;display:grid;gap:.2rem;max-width:min(78%,720px);padding:.65rem .8rem;border-radius:16px;background:var(--panel);border:1px solid var(--border)}.conversation-user-message small{color:var(--muted);font-size:.72rem}.conversation-attachments{display:flex;flex-wrap:wrap;gap:.4rem}.conversation-attachments span{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.35rem .55rem;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:.78rem}.conversation-composer{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:end;gap:.4rem;width:100%;padding:.45rem;border:1px solid var(--border);border-radius:18px;background:var(--panel)}.conversation-composer textarea{resize:none;width:100%;min-height:2.55rem;max-height:150px;padding:.6rem .35rem;border:0;outline:0;background:transparent;color:var(--text);font:inherit}.composer-icon-button,.composer-send-button{display:inline-grid;place-items:center;width:2.55rem;height:2.55rem;border:0;border-radius:999px;background:transparent;color:var(--text);cursor:pointer}.composer-icon-button:hover,.composer-icon-button:focus-visible{background:var(--bg)}.composer-icon-button.is-active{background:var(--bg);box-shadow:inset 0 0 0 1px var(--border)}.composer-send-button{background:var(--text);color:var(--bg)}.composer-send-button:disabled{opacity:.35;cursor:default}.composer-icon-button svg,.composer-send-button svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.conversation-inline-status{margin:0;color:var(--muted);font-size:.75rem}.conversation-system-message{justify-self:start;display:grid;gap:.2rem;max-width:min(78%,720px);padding:.65rem .8rem;border-radius:16px;background:transparent;border:1px solid var(--border)}.conversation-system-message small{color:var(--muted);font-size:.72rem}.conversation-context{opacity:.75}.conversation-attachment-chip{display:inline-grid;grid-template-columns:minmax(0,auto) auto auto;align-items:center;gap:.4rem}.conversation-attachment-chip small{color:var(--muted);font-size:.7rem}.conversation-attachment-chip.is-error small{color:currentColor}.conversation-attachment-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-attachment-chip button{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;font-size:1rem;line-height:1}.microphone-button{position:relative}.microphone-active-dot{position:absolute;right:.28rem;bottom:.28rem;width:.42rem;height:.42rem;border-radius:999px;background:currentColor}.microphone-status{min-height:1rem}.microphone-status.is-listening,.microphone-status.is-requesting,.microphone-status.is-stopping{font-weight:500}.graph-view{display:grid;gap:1rem}.graph-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.graph-toolbar label{display:grid;gap:.3rem}.graph-warnings{border:1px solid currentColor;border-radius:.75rem;padding:.75rem 1rem}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:1rem;min-height:560px}.graph-canvas-wrap{position:relative;min-width:0;border:1px solid var(--border);border-radius:1rem;overflow:hidden}.graph-canvas{display:block;width:100%;min-height:560px;touch-action:pan-x pan-y pinch-zoom}.graph-edge line{stroke:currentColor;stroke-opacity:.42;stroke-width:1.5}.graph-edge text{font-size:11px;fill:currentColor;opacity:.78;pointer-events:none}.graph-node{cursor:pointer;outline:none}.graph-node circle{fill:var(--surface);stroke:currentColor;stroke-width:2}.graph-node.is-selected circle,.graph-node:focus circle{stroke-width:4}.graph-node text{fill:currentColor;font-size:11px;pointer-events:none}.graph-counter{position:absolute;left:.75rem;bottom:.75rem;padding:.35rem .55rem;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:.78rem}.graph-detail-panel{border:1px solid var(--border);border-radius:1rem;padding:1rem;overflow:auto}.graph-detail-panel dl{display:grid;gap:.6rem}.graph-detail-panel dl>div{display:grid;gap:.15rem}.graph-detail-panel dt{font-size:.75rem;opacity:.7}.graph-detail-panel dd{margin:0;overflow-wrap:anywhere}.graph-detail-actions{display:flex;flex-wrap:wrap;gap:.5rem}.object-actions{margin:.75rem 0 1rem}.button-link{display:inline-flex;align-items:center;text-decoration:none}@media (max-width: 900px){.graph-layout{grid-template-columns:1fr}.graph-detail-panel{max-height:320px}}
