.universal-search{position:relative;width:100%}.search-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.search-icon{position:absolute;left:.875rem;color:#64748b;pointer-events:none}.search-controls{position:absolute;right:.875rem;display:flex;align-items:center;gap:.5rem;pointer-events:all}.source-menu-btn,.cache-menu-btn,.clear-cache-btn{background:none;border:none;cursor:pointer;padding:.375rem;display:flex;align-items:center;justify-content:center;color:#64748b;transition:color .2s;border-radius:4px;font-size:.875rem;position:relative}.source-menu-btn:hover,.cache-menu-btn:hover,.clear-cache-btn:hover{color:#a78bfa}.source-count{position:absolute;top:-4px;right:-4px;background:#a78bfa;color:#0f172a;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:600}.search-input{width:100%;padding:.625rem 3.5rem .625rem 2.5rem;border:1px solid #404854;border-radius:0;font-size:.875rem;transition:all .2s;outline:none;background:#1a1d23;color:#e2e8f0}.search-input::placeholder{color:#64748b}.search-input:focus{border-color:#a78bfa;background:#1f2229;box-shadow:none}.search-loading{position:absolute;right:3rem}.search-spinner{width:16px;height:16px;border:2px solid #404854;border-top-color:#a78bfa;border-radius:50%;animation:spin .6s linear infinite}.search-dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;background:#242a32;border:1px solid #404854;border-radius:0;box-shadow:0 10px 25px #00000080;max-height:400px;overflow:hidden;display:flex;flex-direction:column;z-index:100}.search-results-header{padding:.5rem .875rem;border-bottom:1px solid #404854;font-size:.75rem;color:#94a3b8;font-weight:600;background:#1a1d23;text-transform:uppercase;letter-spacing:.05em}.search-results-list{overflow-y:auto;max-height:360px}.search-result-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s;border-bottom:1px solid #404854;height:40px;background:#242a32}.search-result-item:last-child{border-bottom:none}.search-result-item:hover{background:#2d3139}.search-result-item.selected{background:#2d3139;border-left:2px solid #a78bfa}.result-icon{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;background:#1a1d23;border-radius:3px;flex-shrink:0}.result-icon img{width:24px;height:24px;border-radius:2px;object-fit:cover}.result-content{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem;overflow:hidden}.result-header-row{display:flex;align-items:center;gap:.375rem;margin:0;flex-shrink:0;min-width:0}.result-title{font-size:.875rem;font-weight:500;color:#e2e8f0;display:flex;align-items:center;gap:.25rem;margin:0;white-space:nowrap}.verified-badge{color:#3b82f6;flex-shrink:0}.result-type-badge{font-size:.65rem;padding:.125rem .3rem;border-radius:2px;font-weight:600;white-space:nowrap;background:#a78bfa1a;color:#a78bfa;flex-shrink:0;text-transform:uppercase;letter-spacing:.03em}.result-username{font-size:.8rem;color:#94a3b8;margin:0;white-space:nowrap;flex-shrink:0}.result-description{font-size:.8rem;color:#94a3b8;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.result-meta{display:flex;align-items:center;gap:.5rem;margin:0;flex-shrink:0;font-size:.7rem;color:#64748b}.result-source{font-size:.7rem;color:#a78bfa;font-weight:600;white-space:nowrap;text-transform:uppercase;letter-spacing:.03em}.result-followers{font-size:.7rem;color:#64748b;white-space:nowrap}.result-arrow{color:#64748b;margin:0;flex-shrink:0;transition:color .15s}.search-result-item:hover .result-arrow,.search-result-item.selected .result-arrow{color:#a78bfa}.result-variants{display:flex;gap:.5rem;margin-left:auto;flex-shrink:0}.variant-badge{background:#242a32;border:1px solid #404854;color:#94a3b8;padding:.25rem .5rem;border-radius:2px;font-size:.65rem;cursor:pointer;transition:all .15s;white-space:nowrap;text-transform:uppercase;letter-spacing:.03em;font-weight:600}.variant-badge:hover{background:#2d3139;border-color:#a78bfa;color:#a78bfa}.variant-badge.active{background:#a78bfa;color:#0f172a;border-color:#a78bfa}.result-external-link{background:none;border:none;cursor:pointer;padding:.375rem;display:flex;align-items:center;justify-content:center;color:#64748b;transition:color .15s;border-radius:3px;flex-shrink:0}.result-external-link:hover{color:#a78bfa}.search-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center;color:#64748b;background:#242a32}.search-empty svg{margin-bottom:.75rem;opacity:.3}.search-empty p{font-size:.875rem;font-weight:600;color:#94a3b8;margin-bottom:.125rem}.search-empty span{font-size:.8rem;color:#64748b}.search-results-list::-webkit-scrollbar{width:6px}.search-results-list::-webkit-scrollbar-track{background:#1a1d23}.search-results-list::-webkit-scrollbar-thumb{background:#404854;border-radius:2px}.search-results-list::-webkit-scrollbar-thumb:hover{background:#64748b}.source-menu,.cache-menu{position:absolute;top:calc(100% + .25rem);right:0;background:#242a32;border:1px solid #404854;border-radius:0;box-shadow:0 10px 25px #00000080;max-height:250px;min-width:220px;z-index:101;display:flex;flex-direction:column}.cache-menu-header{padding:.5rem .875rem;border-bottom:1px solid #404854;font-size:.75rem;color:#94a3b8;font-weight:600;background:#1a1d23;text-transform:uppercase;letter-spacing:.05em}.cache-menu-list{overflow-y:auto;max-height:210px;padding:.25rem 0}.cache-menu-item{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s;border-bottom:1px solid #404854;min-height:40px;height:auto;background:#242a32}.cache-menu-item:last-child{border-bottom:none}.cache-menu-item:hover{background:#2d3139}.cache-item-content{flex:1;display:flex;flex-direction:column;gap:.25rem;min-width:0}.cache-query{font-size:.8rem;color:#e2e8f0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cache-sources{font-size:.7rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cache-count{font-size:.7rem;color:#64748b;white-space:nowrap;flex-shrink:0}.source-menu-header{padding:.5rem .875rem;border-bottom:1px solid #404854;font-size:.75rem;color:#94a3b8;font-weight:600;background:#1a1d23;text-transform:uppercase;letter-spacing:.05em;display:flex;justify-content:space-between;align-items:center;gap:.5rem}.source-menu-actions{display:flex;gap:.25rem}.source-menu-action{background:#404854;border:none;color:#a78bfa;padding:.25rem .5rem;border-radius:2px;font-size:.65rem;cursor:pointer;transition:all .15s;font-weight:600}.source-menu-action:hover{background:#a78bfa;color:#0f172a}.source-menu-list{overflow-y:auto;max-height:210px;padding:.25rem 0}.source-menu-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s;color:#e2e8f0;font-size:.8rem}.source-menu-item:hover{background:#2d3139}.source-menu-item input[type=checkbox]{cursor:pointer;accent-color:#a78bfa}.source-menu-item span{-webkit-user-select:none;user-select:none}@media (max-width: 768px){.search-dropdown{max-height:300px}.search-results-list{max-height:260px}}.sentence-query-builder{width:100%}.query-editor-container{position:relative;background:#1a1d23;border:1px solid #404854;border-radius:0;transition:all .2s ease;box-shadow:none}.query-editor-container:focus-within{border-color:#a78bfa;background:#1f2229;box-shadow:none}.query-editor{min-height:60px;max-height:180px;overflow-y:auto;padding:.75rem 3.5rem .75rem .875rem;font-size:.875rem;line-height:1.5;color:#e2e8f0;outline:none;white-space:pre-wrap;word-wrap:break-word;cursor:text;background:transparent}.query-editor:empty:before{content:attr(data-placeholder);color:#64748b;pointer-events:none}.entity-pill{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;margin:0 1px;background:#a78bfa;color:#0f172a;border-radius:3px;font-size:.8rem;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;box-shadow:none;transition:all .2s ease;white-space:nowrap}.entity-pill[data-entity-type=social]{background:#3b82f6;color:#fff}.entity-pill:hover{opacity:.9;background:#c4b5fd}.entity-pill[data-entity-type=social]:hover{background:#60a5fa}.entity-pill-icon{font-size:11px;line-height:1}.entity-pill-label{font-size:.8rem;font-weight:500}.entity-pill-close{font-size:1rem;line-height:1;margin-left:2px;opacity:.7;transition:opacity .2s ease;cursor:pointer;padding:0 2px}.entity-pill-close:hover{opacity:1}.clear-button,.search-button{position:absolute;top:50%;transform:translateY(-50%);border:none;background:none;cursor:pointer;padding:.5rem;border-radius:3px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;color:#64748b}.clear-button{right:3rem}.clear-button:hover{color:#ef4444}.search-button{right:.5rem;background:#a78bfa;color:#0f172a}.search-button:hover{background:#c4b5fd}.typeahead-dropdown{position:absolute;z-index:1000;background:#242a32;border:1px solid #404854;border-radius:0;box-shadow:0 10px 25px #00000080;min-width:300px;max-width:450px;max-height:350px;overflow:hidden}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.typeahead-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:#1a1d23;border-bottom:1px solid #404854;font-size:.7rem;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.typeahead-hint{font-size:.65rem;color:#64748b;font-weight:400}.typeahead-loading{display:flex;align-items:center;gap:.75rem;padding:1.5rem;justify-content:center;color:#94a3b8}.typeahead-results{max-height:300px;overflow-y:auto}.typeahead-result{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s ease;border-bottom:1px solid #404854;height:36px;background:#242a32}.typeahead-result:last-child{border-bottom:none}.typeahead-result:hover,.typeahead-result.selected{background:#2d3139}.typeahead-result.selected{border-left:2px solid #a78bfa}.typeahead-result-icon{font-size:.875rem;width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.typeahead-result-icon img{width:20px;height:20px;border-radius:2px;object-fit:cover}.typeahead-result-content{flex:1;min-width:0}.typeahead-result-label{font-size:.8rem;font-weight:600;color:#e2e8f0;margin-bottom:0;display:flex;align-items:center;gap:.4rem;white-space:nowrap}.typeahead-result-username{font-size:.7rem;font-weight:400;color:#94a3b8;white-space:nowrap;margin-left:.4rem}.typeahead-result-meta{display:flex;align-items:center;gap:.5rem;font-size:.65rem;color:#64748b}.typeahead-result-type{padding:.125rem .3rem;background:#a78bfa1a;border-radius:2px;font-weight:600;color:#a78bfa;text-transform:uppercase;letter-spacing:.03em}.typeahead-result-source{font-weight:600;color:#a78bfa;text-transform:uppercase;letter-spacing:.03em}.typeahead-result-arrow{color:#64748b;flex-shrink:0}.typeahead-result.selected .typeahead-result-arrow{color:#a78bfa}.query-hint{margin-top:.75rem;font-size:.75rem;color:#64748b;display:flex;align-items:center;gap:.4rem}.query-hint kbd{display:inline-block;padding:.125rem .3rem;background:#242a32;border:1px solid #404854;border-radius:2px;font-size:.65rem;font-family:monospace;font-weight:600;color:#a78bfa;box-shadow:none}.spinner{width:14px;height:14px;border:2px solid #404854;border-top-color:#a78bfa;border-radius:50%;animation:spin .6s linear infinite}.query-editor::-webkit-scrollbar,.typeahead-results::-webkit-scrollbar{width:6px}.query-editor::-webkit-scrollbar-track,.typeahead-results::-webkit-scrollbar-track{background:#1a1d23}.query-editor::-webkit-scrollbar-thumb,.typeahead-results::-webkit-scrollbar-thumb{background:#404854;border-radius:2px}.query-editor::-webkit-scrollbar-thumb:hover,.typeahead-results::-webkit-scrollbar-thumb:hover{background:#64748b}.auto-suggest-tooltip{position:absolute;z-index:1001;background:#242a32;border:1px solid #404854;border-radius:0;box-shadow:0 10px 25px #00000080;min-width:260px;max-width:350px;overflow:hidden}@keyframes suggestBounce{0%{opacity:0;transform:translateY(-10px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.auto-suggest-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#1a1d23;border-bottom:1px solid #404854;font-size:.7rem;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.auto-suggest-icon{font-size:.875rem}.auto-suggest-kbd{margin-left:auto;padding:.125rem .3rem;background:#242a32;border:1px solid #404854;border-radius:2px;font-size:.65rem;font-family:monospace;font-weight:600;color:#a78bfa;box-shadow:none}.auto-suggest-entity{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s ease;height:32px}.auto-suggest-entity:hover{background:#2d3139}.auto-suggest-entity-icon{font-size:.875rem;width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:#a78bfa1a;border-radius:2px;flex-shrink:0;color:#a78bfa}.auto-suggest-entity-content{flex:1;min-width:0}.auto-suggest-entity-label{font-size:.8rem;font-weight:600;color:#e2e8f0;margin-bottom:0;display:flex;align-items:center;gap:.4rem;white-space:nowrap}.auto-suggest-entity-username{font-size:.7rem;font-weight:400;color:#94a3b8;white-space:nowrap;margin-left:.4rem}.auto-suggest-entity-meta{font-size:.65rem;color:#94a3b8}.auto-suggest-more{padding:.4rem .75rem;background:#1a1d23;border-top:1px solid #404854;font-size:.65rem;font-weight:600;color:#94a3b8;text-align:center;text-transform:uppercase;letter-spacing:.05em}@media (max-width: 640px){.query-editor{padding:.5rem 3rem .5rem .75rem;font-size:.8rem;min-height:50px}.typeahead-dropdown{min-width:260px;max-width:90vw}.auto-suggest-tooltip{min-width:240px;max-width:85vw}.entity-pill{font-size:.75rem;padding:1px 5px}.query-hint{font-size:.7rem}}.debug-terminal{flex:1;background-color:#1a1d23;border:1px solid #404854;border-radius:0;display:flex;flex-direction:column;overflow:hidden;font-family:Courier New,monospace;font-size:.75rem;box-shadow:none;height:600px;max-height:80vh}.terminal-header{background-color:#141b27;padding:.5rem .875rem;border-bottom:1px solid #404854;display:flex;align-items:center;gap:.75rem;color:#94a3b8;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.terminal-status{margin-left:auto;display:flex;align-items:center;gap:.5rem;font-size:.65rem;color:#10b981}.status-dot{width:5px;height:5px;background-color:#10b981;border-radius:50%;box-shadow:0 0 6px #10b981;animation:pulse 2s infinite}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.terminal-body{flex:1;padding:.75rem;overflow-y:auto;color:#e2e8f0;display:flex;flex-direction:column;gap:.25rem;background:#1f2229}.terminal-body::-webkit-scrollbar{width:6px}.terminal-body::-webkit-scrollbar-track{background:#1a1d23}.terminal-body::-webkit-scrollbar-thumb{background:#404854;border-radius:2px}.terminal-body::-webkit-scrollbar-thumb:hover{background:#64748b}.log-entry{line-height:1.3;word-break:break-all;font-family:Courier New,monospace;white-space:pre-wrap}.log-timestamp{color:#64748b;margin-right:.75rem}.log-tag{font-weight:700;margin-right:.5rem;font-family:Courier New,monospace}.log-latency{color:#fbbf24;margin-left:.5rem;font-size:.65rem}.debug .log-tag{color:#a78bfa}.backend .log-tag{color:#3b82f6}.response .log-tag{color:#10b981}.cache .log-tag{color:#f59e0b}.error .log-tag{color:#ef4444}.log-message{color:#cbd5e1;font-family:Courier New,monospace}.backend .log-message{color:#93c5fd}.response .log-message{color:#6ee7b7}.cache .log-message{color:#fcd34d}.error .log-message{color:#fca5a5}.instruction-tooltip-container{position:relative;display:inline-block}.tooltip-trigger{background:none;border:none;color:#64748b;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.tooltip-trigger:hover,.tooltip-trigger.active{color:#a78bfa;background:#a78bfa1a}.tooltip-content{position:absolute;top:100%;right:0;margin-top:10px;width:280px;background:#1e293b;border:1px solid #404854;border-radius:8px;box-shadow:0 10px 25px #00000080;z-index:2000;animation:tooltipFadeIn .2s ease-out}@keyframes tooltipFadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.tooltip-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #404854}.tooltip-title{font-size:.75rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.tooltip-close{background:none;border:none;color:#64748b;cursor:pointer;padding:2px;display:flex;align-items:center;transition:color .15s ease}.tooltip-close:hover{color:#ef4444}.tooltip-body{padding:1rem;font-size:.875rem;color:#e2e8f0;line-height:1.5}.tooltip-body p{margin:0}.tooltip-body strong{color:#a78bfa}.tooltip-body kbd{background:#0f172a;border:1px solid #404854;border-radius:3px;padding:1px 4px;font-family:monospace;font-size:.75rem;color:#a78bfa}@media (max-width: 640px){.tooltip-content{position:fixed;top:auto;bottom:80px;right:1rem;left:1rem;width:auto}}.app{min-height:100vh;display:flex;flex-direction:column;background:#0f172a;color:#e2e8f0}.header{background:#141b27;border-bottom:1px solid #404854;padding:1.5rem 0}.header-content{max-width:1200px;margin:0 auto;padding:0 1.5rem;text-align:center}.logo{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-bottom:.375rem}.logo svg{color:#a78bfa}.logo h1{font-size:1.875rem;font-weight:700;color:#a78bfa}.tagline{color:#94a3b8;font-size:.9rem;font-weight:500}.main{flex:1;padding:1.5rem}.search-container{max-width:1000px;margin:0 auto;display:flex;flex-direction:column;gap:1.5rem}.search-section-wrapper{display:flex;gap:1.5rem;align-items:flex-start;min-height:400px}.sentence-query-section,.web-search-section{background:#1a1d23;border:1px solid #404854;border-radius:0;padding:1.25rem;box-shadow:none}.search-section{flex:2;background:#1a1d23;border:1px solid #404854;border-radius:0;padding:1.25rem;box-shadow:none}.sentence-query-section h2,.search-section h2,.web-search-section h2{display:flex;align-items:center;gap:.5rem;font-size:1rem;margin-bottom:.75rem;color:#e2e8f0;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.section-header-flex{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.section-header-flex h2{margin-bottom:0!important}.tooltip-instructions p{margin:.5rem 0}.tooltip-instructions strong{color:#a78bfa}.sentence-query-section h2 svg,.search-section h2 svg,.web-search-section h2 svg{color:#a78bfa}.divider{display:flex;align-items:center;justify-content:center;position:relative;margin:1rem 0}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#404854}.divider span{padding:0 1rem;color:#94a3b8;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.section-description{color:#94a3b8;margin-bottom:1rem;font-size:.8rem;line-height:1.4}.selected-entities{background:#1a1d23;border:1px solid #404854;border-radius:0;padding:1.25rem;box-shadow:none}.selected-entities h3{font-size:.95rem;margin-bottom:.75rem;color:#e2e8f0;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.entity-chips{display:flex;flex-wrap:wrap;gap:.75rem}.entity-chip{display:flex;align-items:center;gap:.5rem;background:#242a32;border:1px solid #404854;border-radius:0;padding:.5rem .75rem;transition:all .2s;box-shadow:none}.entity-chip:hover{border-color:#a78bfa;background:#2d3139}.entity-chip-icon{display:flex;align-items:center;justify-content:center;color:#a78bfa}.entity-chip-content{flex:1;min-width:0}.entity-chip-label{font-weight:600;color:#e2e8f0;font-size:.85rem}.entity-chip-meta{font-size:.75rem;color:#94a3b8}.entity-chip-source{font-size:.7rem;color:#64748b;font-weight:500;text-transform:uppercase;letter-spacing:.03em}.entity-chip-remove{background:transparent;border:none;border-radius:2px;padding:.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;color:#64748b}.entity-chip-remove:hover{color:#ef4444}.web-search-input-group{display:flex;gap:.75rem;align-items:stretch}.web-search-input{flex:1;padding:.625rem .875rem;border:1px solid #404854;border-radius:0;font-size:.875rem;transition:all .2s;outline:none;background:#1f2229;color:#e2e8f0}.web-search-input::placeholder{color:#64748b}.web-search-input:focus{border-color:#a78bfa;background:#242a32;box-shadow:none}.web-search-button{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:#a78bfa;color:#0f172a;border:none;border-radius:0;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em}.web-search-button:hover:not(:disabled){background:#c4b5fd}.web-search-button:disabled{opacity:.5;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.1);border-top-color:#a78bfa;border-radius:50%;animation:spin .6s linear infinite}.search-results{background:#1a1d23;border:1px solid #404854;border-radius:0;padding:1.25rem;box-shadow:none}.search-results h3{font-size:1rem;margin-bottom:1rem;color:#e2e8f0;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.results-meta{background:#242a32;border:1px solid #404854;border-radius:0;padding:.75rem;margin-bottom:1rem;font-size:.8rem;color:#94a3b8}.results-meta strong{color:#a78bfa}.results-list{display:flex;flex-direction:column;gap:.75rem}.result-card{border:1px solid #404854;border-radius:0;padding:1rem;transition:all .2s;background:#242a32}.result-card:hover{border-color:#a78bfa;background:#2d3139}.result-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.result-header h4{flex:1;font-size:.9rem;color:#e2e8f0;font-weight:600}.result-link{color:#a78bfa;padding:.25rem;border-radius:2px;transition:all .2s;display:flex;align-items:center}.result-link:hover{background:#404854}.result-url{font-size:.75rem;color:#64b5f6;margin-bottom:.5rem;word-break:break-all}.result-snippet{color:#94a3b8;line-height:1.5;margin-bottom:.5rem;font-size:.8rem}.result-source{display:inline-block;background:#a78bfa1a;color:#a78bfa;padding:.2rem .5rem;border-radius:2px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.footer{background:#141b27;border-top:1px solid #404854;padding:1rem;text-align:center;color:#94a3b8;font-size:.8rem}@media (max-width: 1024px){.search-section-wrapper{flex-direction:column}.search-section{width:100%}}@media (max-width: 768px){.logo h1{font-size:1.5rem}.main{padding:1rem}.web-search-input-group,.entity-chips{flex-direction:column}.sentence-query-section,.search-section,.web-search-section,.selected-entities,.search-results{padding:1rem}}.mobile-search{display:flex;flex-direction:column;height:100vh;background:#0f172a;overflow:hidden}.mobile-search .debug-terminal{height:150px;max-height:25vh;flex:none;border-top:none;border-left:none;border-right:none}.mobile-search-results{flex:1;overflow-y:auto;padding:1rem;padding-bottom:80px;display:flex;flex-direction:column}.mobile-results-inner{margin-top:auto;display:flex;flex-direction:column;gap:.75rem;width:100%}.mobile-result-card{background:#1a1d23;border:1px solid #404854;border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s ease;touch-action:manipulation}.mobile-result-card:active{transform:scale(.98);background:#242a32}.mobile-result-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.mobile-result-title{font-size:1rem;font-weight:600;color:#e2e8f0;flex:1}.mobile-disambiguation-badge{font-size:.65rem;padding:.2rem .4rem;background:#fbbf24;color:#0f172a;border-radius:3px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.mobile-result-meta{display:flex;gap:.75rem;margin-bottom:.5rem;font-size:.75rem}.mobile-result-source{color:#a78bfa;font-weight:600;text-transform:uppercase}.mobile-result-category{color:#64748b}.mobile-result-description{font-size:.875rem;color:#94a3b8;line-height:1.5;margin:0}.mobile-empty-state{text-align:center;color:#64748b;padding:2rem;font-size:.875rem}.mobile-controls-container{position:fixed;bottom:0;left:0;right:0;background:#1a1d23;border-top:1px solid #404854;display:flex;flex-direction:column;z-index:100}.mobile-source-select{padding:1rem;border-bottom:1px solid #2d3748;background:#141b27}.source-select-header{font-size:.7rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem}.source-chips{display:flex;gap:.5rem;flex-wrap:wrap}.source-chip{padding:.4rem .8rem;border-radius:20px;font-size:.75rem;font-weight:600;background:#1a1d23;border:1px solid #404854;color:#94a3b8;cursor:pointer;transition:all .2s ease}.source-chip.active{background:#a78bfa;border-color:#a78bfa;color:#0f172a}.mobile-search-input-container{padding:1rem;display:flex;align-items:center;gap:.75rem}.mobile-source-toggle{background:none;border:none;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;transition:color .2s ease}.mobile-source-toggle.active{color:#a78bfa}.mobile-instructions p{margin:.5rem 0}.mobile-instructions strong{color:#a78bfa}.mobile-search-input{flex:1;background:#0f172a;border:1px solid #404854;border-radius:8px;padding:.875rem 1rem;font-size:1rem;color:#e2e8f0;outline:none;transition:border-color .2s ease}.mobile-search-input:focus{border-color:#a78bfa}.mobile-search-input::placeholder{color:#64748b}.mobile-loading-spinner{width:20px;height:20px;border:2px solid #404854;border-top-color:#a78bfa;border-radius:50%;animation:spin .6s linear infinite}.mobile-search-results::-webkit-scrollbar{width:4px}.mobile-search-results::-webkit-scrollbar-track{background:#0f172a}.mobile-search-results::-webkit-scrollbar-thumb{background:#404854;border-radius:2px}.quick-search{max-width:600px;margin:0 auto;padding:2rem 1rem;min-height:100vh;background:#0f172a}.quick-search-header{text-align:center;margin-bottom:2rem}.quick-header-main{display:flex;align-items:center;justify-content:center;gap:1rem}.quick-search-title{font-size:2rem;font-weight:700;color:#e2e8f0;margin:0 0 .5rem}.quick-search-subtitle{font-size:.875rem;color:#64748b;margin:0}.quick-search-input-wrapper{position:relative;margin-bottom:1.5rem}.quick-search-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.quick-search-input{width:100%;background:#1a1d23;border:2px solid #404854;border-radius:8px;padding:1rem 3rem;font-size:1.125rem;color:#e2e8f0;outline:none;transition:border-color .2s ease}.quick-search-input:focus{border-color:#a78bfa}.quick-search-input::placeholder{color:#64748b}.quick-loading-spinner{position:absolute;right:1rem;top:50%;transform:translateY(-50%);width:20px;height:20px;border:2px solid #404854;border-top-color:#a78bfa;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.quick-results-list{background:#1a1d23;border:1px solid #404854;border-radius:8px;overflow:hidden;margin-bottom:1rem}.quick-result-item{padding:1rem;cursor:pointer;transition:background .15s ease;border-bottom:1px solid #404854}.quick-result-item:last-child{border-bottom:none}.quick-result-item:hover,.quick-result-item.selected{background:#242a32}.quick-result-item.selected{border-left:3px solid #a78bfa}.quick-result-main{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.quick-result-label{font-size:1rem;font-weight:600;color:#e2e8f0}.quick-disambiguation-badge{font-size:.625rem;padding:.2rem .4rem;background:#fbbf24;color:#0f172a;border-radius:3px;font-weight:700;text-transform:uppercase}.quick-result-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem}.quick-result-source{color:#a78bfa;font-weight:600;text-transform:uppercase}.quick-result-separator{color:#404854}.quick-result-category{color:#64748b}.quick-search-hint{text-align:center;font-size:.75rem;color:#64748b;display:flex;align-items:center;justify-content:center;gap:.5rem}.quick-search-hint kbd{display:inline-block;padding:.25rem .5rem;background:#1a1d23;border:1px solid #404854;border-radius:4px;font-size:.7rem;font-family:monospace;color:#a78bfa}.quick-search-debug{position:fixed;bottom:2rem;right:2rem;width:350px;z-index:1000}.quick-search-debug .debug-terminal{height:300px;max-height:40vh;box-shadow:0 10px 25px #00000080;border-radius:8px}@media (max-width: 1200px){.quick-search-debug{position:static;width:100%;margin-top:2rem}.quick-search-debug .debug-terminal{height:200px}}.sentence-search{max-width:800px;margin:0 auto;padding:2rem 1rem;min-height:100vh;background:#0f172a}.sentence-search-header{text-align:center;margin-bottom:2rem}.sentence-header-main{display:flex;align-items:center;justify-content:center;gap:1rem}.sentence-search-title{font-size:2rem;font-weight:700;color:#e2e8f0;margin:0 0 .5rem}.sentence-search-subtitle{font-size:.875rem;color:#64748b;margin:0;line-height:1.5}.sentence-search-builder{margin-bottom:1.5rem}.sentence-search-action{display:flex;justify-content:center;margin-bottom:2rem}.sentence-search-button{display:flex;align-items:center;gap:.5rem;padding:.875rem 2rem;background:#a78bfa;color:#0f172a;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.sentence-search-button:hover{background:#c4b5fd;transform:translateY(-1px)}.sentence-search-button:active{transform:translateY(0)}.sentence-search-preview{background:#1a1d23;border:1px solid #404854;border-radius:8px;padding:1.5rem;margin-bottom:1.5rem}.sentence-preview-title{font-size:.875rem;font-weight:600;color:#94a3b8;margin:0 0 1rem;text-transform:uppercase;letter-spacing:.05em}.sentence-preview-content{display:flex;flex-direction:column;gap:1rem}.sentence-preview-text{font-size:1rem;color:#e2e8f0;margin:0;line-height:1.6}.sentence-preview-entities{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.sentence-preview-label{font-size:.75rem;color:#64748b;font-weight:600;text-transform:uppercase}.sentence-preview-entity{display:inline-flex;align-items:center;padding:.25rem .5rem;background:#a78bfa;color:#0f172a;border-radius:4px;font-size:.8rem;font-weight:500}.sentence-search-hint{text-align:center;font-size:.75rem;color:#64748b;line-height:1.6}.sentence-search-hint kbd{display:inline-block;padding:.2rem .4rem;background:#1a1d23;border:1px solid #404854;border-radius:3px;font-size:.7rem;font-family:monospace;color:#a78bfa;margin:0 .2rem}@media (max-width: 640px){.sentence-search{padding:1rem}.sentence-search-title{font-size:1.5rem}.sentence-search-button{width:100%;justify-content:center}}.sentence-search-debug{position:fixed;bottom:2rem;right:2rem;width:350px;z-index:1000}.sentence-search-debug .debug-terminal{height:300px;max-height:40vh;box-shadow:0 10px 25px #00000080;border-radius:8px}@media (max-width: 1200px){.sentence-search-debug{position:static;width:100%;margin-top:2rem}.sentence-search-debug .debug-terminal{height:200px}}.app-router{min-height:100vh;background:#0f172a}.app-nav{background:#1a1d23;border-bottom:1px solid #404854;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1000}.nav-brand{display:flex;align-items:center;gap:.75rem;color:#a78bfa;font-size:1.25rem;font-weight:700}.nav-links{display:flex;gap:1.5rem}.nav-link{color:#94a3b8;text-decoration:none;font-size:.875rem;font-weight:500;padding:.5rem 1rem;border-radius:6px;transition:all .2s ease}.nav-link:hover{color:#e2e8f0;background:#242a32}.nav-link.active{color:#a78bfa;background:#a78bfa1a}@media (max-width: 640px){.app-nav{padding:.75rem 1rem;flex-direction:column;gap:1rem}.nav-links{width:100%;justify-content:space-around;gap:.5rem}.nav-link{padding:.5rem;font-size:.8rem}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}#root{min-height:100vh;display:flex;flex-direction:column}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
