@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*{box-sizing:border-box}html,body{background:#0b111b;min-width:320px;min-height:100%;margin:0;font-family:Inter,sans-serif}button,input{font:inherit}#root{width:100%;min-height:100vh}.app-shell{color:#e5edf8;background:#0b111b;grid-template-columns:245px minmax(0,1fr) 300px;height:100vh;min-height:600px;display:grid;overflow:hidden}.sidebar{background:#101927;border-right:1px solid #202c3c;flex-direction:column;padding:26px 18px 18px;display:flex}.brand{align-items:center;gap:12px;padding:0 4px 35px;display:flex}.brand-mark{color:#5ce0c0;background:#173b48;border:1px solid #286b72;border-radius:11px;place-items:center;width:38px;height:38px;font-size:21px;font-weight:700;display:grid}.brand h1{letter-spacing:-.5px;margin:0;font-size:17px}.brand span,.sidebar-bottom>span{color:#718197;letter-spacing:1px;margin-top:4px;font-size:9px;display:block}.sidebar-section{margin-bottom:30px}.section-label{color:#718197;letter-spacing:1.2px;margin:0 0 14px;font-size:10px;font-weight:700}.search-input{color:#e5edf8;background:#151f2e;border:1px solid #2a394b;border-radius:7px;outline:none;width:100%;padding:11px 12px;font-size:12px}.search-input:focus{border-color:#3d8f9a}.search-input::placeholder{color:#64748b}.filter-row{color:#c1ccda;justify-content:space-between;align-items:center;margin:17px 0;font-size:12px;display:flex}.filter-row span{align-items:center;gap:10px;display:flex}.filter-row strong{color:#8495aa;font-size:11px;font-weight:500}.filter-row input{accent-color:#38c9a0;cursor:pointer}.status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.active-dot{background:#36c9a0}.unresolved-dot{background:#e9ad54}.superseded-dot{background:#68768a}.sidebar-bottom{border-top:1px solid #202c3c;margin-top:auto;padding-top:18px}.connection-indicator{color:#a8b7c9;align-items:center;gap:9px;font-size:11px;display:flex}.workspace{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.topbar{border-bottom:1px solid #202c3c;flex-shrink:0;justify-content:space-between;align-items:center;height:88px;padding:0 28px;display:flex}.breadcrumb{color:#718197;letter-spacing:1.2px;margin:0 0 7px;font-size:9px}.topbar h2{letter-spacing:-.5px;margin:0;font-size:19px;font-weight:600}.topbar-stats{gap:30px;display:flex}.topbar-stats div{flex-direction:column;gap:4px;display:flex}.topbar-stats strong{font-size:17px}.topbar-stats span{color:#8291a5;font-size:10px}.graph-area{background-color:#0b111b;background-image:radial-gradient(#253246 .8px,#0000 .8px);background-size:23px 23px;flex:1;min-height:0;position:relative}.graph-canvas{width:100%;height:100%;position:absolute;inset:0}.graph-message{z-index:2;color:#a8b7c9;pointer-events:none;font-size:13px;position:absolute;top:45%;left:50%;transform:translate(-50%,-50%)}.error-message{color:#f0a1a1}.graph-controls{z-index:5;background:#111b29e8;border:1px solid #29374a;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex;position:absolute;top:18px;right:20px}.graph-controls button{color:#aebcce;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;gap:5px;min-width:32px;height:30px;padding:0 9px;font-size:11px;transition:all .15s;display:flex}.graph-controls button:hover{color:#e5edf8;background:#1b2b3e;border-color:#34516b}.graph-controls button span{font-size:14px}.graph-legend{z-index:4;pointer-events:none;background:#111b29e8;border:1px solid #29374a;border-radius:8px;flex-direction:column;gap:10px;min-width:215px;padding:12px 14px;display:flex;position:absolute;bottom:20px;left:20px}.legend-title{color:#8291a5;letter-spacing:1.1px;margin:0 0 1px;font-size:9px;font-weight:700}.legend-row{color:#b7c5d7;align-items:center;gap:10px;min-height:13px;font-size:10px;display:flex}.legend-line{border-top:2px solid;flex:0 0 30px;width:30px;height:0;display:inline-block;position:relative}.legend-line:after{content:"";border-top:3px solid #0000;border-bottom:3px solid #0000;border-left:5px solid;width:0;height:0;position:absolute;top:-4px;right:-1px}.legend-line.active{color:#45ddb4;border-color:#45ddb4}.legend-line.unresolved{color:#f2b65d;border-top:2px dotted #f2b65d}.legend-line.superseded{color:#8998ad;opacity:.65;border-top:2px dashed #8998ad}.legend-entity{background:#29496f;border:2px solid #8abeff;border-radius:50%;flex:0 0 12px;width:12px;height:12px;display:inline-block}.legend-size-key{align-items:center;gap:9px;padding-top:2px;display:flex}.legend-size-circles{flex:0 0 30px;align-items:center;gap:5px;width:30px;display:flex}.legend-size-circles i{background:#29496f;border:1px solid #8abeff;border-radius:50%;display:block}.legend-size-circles i:first-child{width:6px;height:6px}.legend-size-circles i:nth-child(2){width:9px;height:9px}.legend-size-circles i:nth-child(3){width:12px;height:12px}.legend-note{color:#718197;margin:-3px 0 0 40px;font-size:9px}.graph-hint{color:#64748b;pointer-events:none;font-size:10px;position:absolute;bottom:25px;right:20px}.inspector{background:#101927;border-left:1px solid #202c3c;min-width:0}.inspector-header{border-bottom:1px solid #202c3c;padding:27px 21px 20px}.inspector-header .section-label{margin-bottom:10px}.inspector-header h3{margin:0;font-size:15px;font-weight:600}.inspector-content{max-height:calc(100vh - 90px);padding:23px 21px;overflow-y:auto}.status-badge{color:#50d6ae;letter-spacing:.7px;background:#15382f;border-radius:4px;margin-bottom:19px;padding:5px 9px;font-size:9px;font-weight:700;display:inline-block}.status-badge.unresolved{color:#e9ad54;background:#3a3020}.status-badge.superseded{color:#9ba9ba;background:#293241}.entity-badge{color:#82b7f8;background:#1b3049}.inspector-content h4{overflow-wrap:anywhere;margin:0 0 9px;font-size:16px;font-weight:600}.relation-label{color:#8498b0;margin:0 0 9px;font-size:11px}.detail-divider{background:#29374a;height:1px;margin:23px 0}.detail-label{color:#718197;letter-spacing:1px;margin:20px 0 7px;font-size:9px;font-weight:700}.detail-value{color:#c1ccda;overflow-wrap:anywhere;margin:0;font-size:11px;line-height:1.6}.id-value{color:#8298b4;font-size:10px}.empty-inspector{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:260px;padding:25px;display:flex}.empty-icon{color:#53677f;margin-bottom:15px;font-size:30px}.empty-inspector p{color:#8291a5;max-width:190px;font-size:11px;line-height:1.7}.connected-memories{flex-direction:column;gap:10px;margin-top:12px;display:flex}.connected-memory{background:#151f2e;border:1px solid #29374a;border-radius:7px;padding:12px}.connected-memory-top{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.connected-memory-top>span:first-child{color:#8298b4;font-size:10px}.connected-memory-top .status-badge{flex-shrink:0;margin:0;font-size:8px}.connected-memory-value{color:#e5edf8;overflow-wrap:anywhere;margin:0;font-size:12px}.connected-memory-context{color:#8291a5;margin:8px 0 0;font-size:10px;line-height:1.5}@media (width<=1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.inspector{display:none}}@media (width<=650px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{padding:0 16px}.graph-hint{display:none}.graph-legend{min-width:195px;padding:10px 11px;bottom:12px;left:12px}.graph-controls{top:12px;right:12px}}.nav-button{color:#9aabc0;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:11px;width:100%;margin-bottom:6px;padding:11px 12px;font-size:12px;transition:all .15s;display:flex}.nav-button>span{color:#8298b4;text-align:center;width:17px;font-size:16px}.nav-button:hover{color:#e5edf8;background:#172334}.nav-button.active{color:#5ce0c0;background:#17313c;border-color:#254553}.nav-button.active>span{color:#5ce0c0}.app-shell.chat-mode{grid-template-columns:245px minmax(0,1fr)}.chat-mode .inspector{display:none}.view-hidden{display:none!important}.chat-area{background:#0b111b;flex-direction:column;flex:1 1 0;min-height:0;display:flex;overflow:hidden}.chat-messages{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#394b61 transparent;-webkit-overflow-scrolling:touch;flex:1 1 0;min-height:0;padding:30px max(30px,50% - 410px);overflow:hidden auto}.chat-welcome{text-align:center;flex-direction:column;align-items:center;max-width:500px;margin:12vh auto 0;display:flex}.chat-welcome-icon{color:#5ce0c0;background:#173b48;border:1px solid #286b72;border-radius:15px;place-items:center;width:52px;height:52px;margin-bottom:20px;font-size:25px;font-weight:700;display:grid}.chat-welcome h3{color:#e5edf8;margin:0 0 10px;font-size:22px;font-weight:600}.chat-welcome>p{color:#8291a5;max-width:390px;margin:0;font-size:13px;line-height:1.7}.suggested-questions{flex-wrap:wrap;justify-content:center;gap:9px;margin-top:27px;display:flex}.suggested-questions button{color:#aebcce;cursor:pointer;background:#111b29;border:1px solid #29374a;border-radius:8px;padding:10px 13px;font-size:11px}.suggested-questions button:hover{color:#e5edf8;border-color:#3d8f9a}.message-row{align-items:flex-start;gap:12px;max-width:820px;margin:0 auto 25px;display:flex}.message-row.user{justify-content:flex-end}.message-avatar,.user-avatar{border-radius:9px;flex-shrink:0;place-items:center;width:30px;height:30px;font-size:12px;font-weight:700;display:grid}.message-avatar{color:#5ce0c0;background:#173b48;border:1px solid #286b72}.user-avatar{color:#a9cfff;background:#263b56;font-size:9px}.message-content{flex-direction:column;min-width:0;max-width:min(78%,680px);display:flex}.message-bubble{color:#dce6f3;white-space:pre-wrap;overflow-wrap:anywhere;background:#131e2d;border:1px solid #29374a;border-radius:4px 12px 12px;padding:13px 16px;font-size:13px;line-height:1.75}.message-row.user .message-bubble{background:#1a3047;border-color:#294b65;border-radius:12px 4px 12px 12px}.typing-indicator{color:#8298b4;background:#131e2d;border:1px solid #29374a;border-radius:4px 12px 12px;padding:10px 14px;font-size:11px}.message-sources{margin-top:13px}.sources-heading{color:#718197;letter-spacing:1px;margin:0 0 8px;font-size:9px;font-weight:700}.source-card{background:#101927;border:1px solid #29374a;border-radius:7px;margin-bottom:7px}.source-card summary{color:#b9c9dc;cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;font-size:11px;list-style:none;display:flex}.source-card summary::-webkit-details-marker{display:none}.source-card summary>span:first-child{overflow-wrap:anywhere}.source-chevron{color:#718197;transition:transform .15s}.source-card[open] .source-chevron{transform:rotate(180deg)}.source-details{border-top:1px solid #29374a;padding:0 12px 11px}.source-details p{color:#91a2b8;overflow-wrap:anywhere;margin:9px 0 0;font-size:10px;line-height:1.5}.source-details strong{color:#c5d2e1;font-weight:600}.source-details .source-id{color:#63758d;font-size:9px}.chat-input-area{background:#111b29;border:1px solid #29374a;border-radius:11px;flex-shrink:0;gap:10px;width:min(820px,100% - 48px);margin:0 auto;padding:12px;display:flex}.chat-input-area input{color:#e5edf8;background:0 0;border:none;outline:none;flex:1;min-width:0;padding:9px 7px;font-size:13px}.chat-input-area input::placeholder{color:#64748b}.chat-input-area button,.clear-chat-button{color:#5ce0c0;cursor:pointer;background:#173b48;border:1px solid #286b72;border-radius:7px;padding:10px 17px;font-size:11px;font-weight:600}.chat-input-area button:disabled,.clear-chat-button:disabled{opacity:.4;cursor:not-allowed}.chat-input-area button:not(:disabled):hover,.clear-chat-button:not(:disabled):hover{background:#20515b}.clear-chat-button{color:#aebcce;background:#151f2e;border-color:#29374a}.chat-disclaimer{color:#5f7087;text-align:center;flex-shrink:0;margin:10px auto 15px;font-size:9px}.chat-error{color:#f0a1a1;background:#2b1c25;border:1px solid #603b42;border-radius:7px;max-width:820px;margin:0 auto 18px;padding:10px 13px;font-size:11px}@media (width<=1050px){.app-shell.chat-mode{grid-template-columns:210px minmax(0,1fr)}}@media (width<=650px){.app-shell.chat-mode{grid-template-columns:1fr}.chat-messages{padding:22px 14px}.chat-welcome{margin-top:8vh}.message-content{max-width:85%}.chat-input-area{width:calc(100% - 24px)}.chat-disclaimer{padding:0 12px}}html,body,#root{width:100%;height:100%;min-height:0;margin:0}body,#root{overflow:hidden}.app-shell{width:100%;min-height:0}.app-shell.database-mode{grid-template-columns:245px minmax(0,1fr)}.database-area{background:#0b111b;flex-direction:column;flex:1 1 0;gap:14px;min-width:0;min-height:0;padding:20px 24px 16px;display:flex;overflow:hidden}.database-toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:10px;min-width:0;display:flex}.database-refresh-button{color:#e8eef7;white-space:nowrap;cursor:pointer;background:#1b2b40;border:1px solid #40536b;border-radius:6px;justify-content:center;align-items:center;min-height:32px;padding:0 11px;font-size:11px;line-height:1;transition:background .15s,border-color .15s;display:inline-flex}.database-refresh-button:hover:not(:disabled){background:#243a54;border-color:#55718f}.database-refresh-button:disabled{opacity:.6;cursor:wait}.database-table-viewport{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#394b61 #0d1725;-webkit-overflow-scrolling:touch;background:#0d1725;border:1px solid #29394d;border-radius:9px;flex:1 1 0;min-width:0;min-height:0;overflow:auto}.database-table-viewport::-webkit-scrollbar{width:8px;height:8px}.database-table-viewport::-webkit-scrollbar-track{background:#0d1725}.database-table-viewport::-webkit-scrollbar-thumb{background:#394b61;border:2px solid #0d1725;border-radius:8px}.database-table-viewport::-webkit-scrollbar-thumb:hover{background:#536b86}.database-table{border-collapse:collapse;text-align:left}@media (width<=1050px){.app-shell.database-mode{grid-template-columns:210px minmax(0,1fr)}.database-area{padding:16px}}@media (width<=650px){.app-shell.database-mode{grid-template-columns:1fr}.database-area{padding:12px}}
