:root { font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif; font-synthesis: none; color-scheme: light dark; --brand: #2563ff; --canvas: #f8fafc; --surface: #fff; --subtle: #f1f5f9; --selected: #e8efff; --ink: #0b0f14; --muted: #64748b; --line: #e2e8f0; --error: #b42318; --shadow: 0 12px 36px #0b0f1418; color: var(--ink); background: var(--canvas); font-size: 14px; } @media (prefers-color-scheme: dark) { :root { --canvas: #0b0f14; --surface: #111720; --subtle: #18212e; --selected: #182c53; --ink: #f8fafc; --muted: #9cacc2; --line: #263141; --error: #ffaaa2; --shadow: 0 12px 36px #00000050; } } * { box-sizing: border-box; } body { margin: 0; } #app { height: 100dvh; min-height: 500px; display: flex; flex-direction: column; } button, input, select { font: inherit; color: inherit; } button, summary { cursor: pointer; } button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; transition: background-color 120ms ease, border-color 120ms ease; } button:hover, summary:hover { background: var(--subtle); } button:disabled { opacity: 0.5; cursor: default; } input, select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; min-width: 0; } input::placeholder { color: var(--muted); } input[type="search"]::-webkit-search-cancel-button { display: none; } button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; } .icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; } .icon svg { width: 20px; height: 20px; fill: currentColor; } header { display: flex; align-items: center; gap: 20px; padding: 16px 22px 12px; min-height: 64px; } .brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; } .brand-symbol { width: 29px; height: 29px; object-fit: contain; } .wordmark { font-size: 20px; font-weight: 750; letter-spacing: -0.65px; } .index-status { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; } .quiet-button { border-color: transparent; background: transparent; font-size: 12px; } .icon-button { padding: 7px; border-color: transparent; background: transparent; } main { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 18px; } #search-form { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; min-height: 56px; box-shadow: 0 2px 8px #0b0f1404; } #search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px #2563ff15; } #search-form > .icon { color: var(--muted); } #search-form > .icon svg { width: 24px; height: 24px; } #query { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; font-size: 18px; background: transparent; letter-spacing: -0.25px; } #query:focus-visible { outline: none; } kbd { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1.2; padding: 4px 6px; min-height: 23px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); white-space: nowrap; } kbd .icon svg { width: 13px; height: 13px; } .popover { position: relative; } summary { display: flex; align-items: center; gap: 8px; list-style: none; } summary::-webkit-details-marker { display: none; } .popover > summary { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: var(--surface); font-size: 12px; } #settings > summary { border: 0; background: transparent; padding: 8px; } .popover-panel { position: absolute; right: 0; top: calc(100% + 9px); width: 360px; max-width: calc(100vw - 36px); z-index: 20; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow: auto; animation: panel-in 160ms ease-out; } .popover-panel h2 { font-size: 15px; margin: 0 0 15px; } .filters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } .filters-grid label { font-size: 12px; color: var(--muted); } .filters-grid input { display: block; width: 100%; margin-top: 6px; font-size: 12px; } .resource-label { display: block; font-size: 12px; margin-bottom: 8px; color: var(--muted); } #cpu-threads { width: 100%; } #roots { list-style: none; padding: 0; margin-bottom: 0; } #roots li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } #roots button { font-size: 11px; padding: 6px 9px; } #semantic-panel { margin: 8px 0 0; font-size: 12px; } #semantic-panel > summary { min-height: 34px; padding: 5px 7px; border-radius: 6px; color: var(--muted); } #semantic-panel > summary > .icon:first-child { color: var(--brand); } #semantic-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .semantic-content { padding: 12px 15px; margin: 6px 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); animation: panel-in 160ms ease-out; } .semantic-content strong { font-size: 12px; } #semantic-progress { display: block; width: 100%; height: 6px; margin-top: 12px; accent-color: var(--brand); } .semantic-actions { display: flex; gap: 8px; } .semantic-actions button { font-size: 12px; } .hint { font-size: 12px; color: var(--muted); line-height: 1.6; } #folder-form { padding: 14px 16px; margin: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; animation: panel-in 160ms ease-out; } #folder-form label { font-size: 12px; font-weight: 600; } .folder-row { display: flex; gap: 8px; margin-top: 8px; } .folder-row input { flex: 1; } .folder-row button { font-size: 12px; } #notice { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 4px 8px; } #notice:empty { display: none; } .error, #semantic-status.error { color: var(--error); } .workspace { display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); flex: 1; min-height: 0; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; overflow: hidden; background: var(--surface); } .workspace:has(aside[hidden]) { grid-template-columns: 1fr; } .results-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--canvas); } .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--muted); } #result-summary { margin: 0; padding: 12px 15px 9px; flex: 0 0 auto; } #results { list-style: none; margin: 0; padding: 0 8px 8px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-gutter: stable; } #results:empty { display: none; } #results li { padding: 3px 0; } .result { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; text-align: left; width: 100%; min-height: 96px; padding: 13px 12px; background: transparent; border: 1px solid transparent; border-radius: 8px; gap: 5px 12px; color: var(--ink); } .result:hover { background: var(--subtle); } .result.selected { background: var(--selected); border-color: #2563ff20; } .result .file-icon { grid-row: 1/4; align-self: start; } .file-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 7px; background: var(--subtle); color: var(--brand); } .file-icon svg { width: 28px; height: 28px; } .file-icon[data-type="pdf"] { color: #e12e3d; } .file-icon[data-type="code"] { color: var(--muted); } .result strong { grid-column: 2; align-self: center; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kind { font-size: 10px; color: var(--muted); white-space: nowrap; } .result .kind { grid-column: 3; align-self: center; color: var(--brand); } .snippet { grid-column: 2/4; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .path { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; } .result .path { grid-column: 2/4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .new-row { animation: row-in 160ms ease-out; } #empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px 30px; color: var(--muted); } #empty > .icon { margin-bottom: 12px; color: var(--brand); } #empty > .icon svg { width: 36px; height: 36px; } #empty h2 { margin: 7px 0; color: var(--ink); font-size: 19px; letter-spacing: -0.45px; font-weight: 600; } #empty p { max-width: 420px; font-size: 13px; line-height: 1.7; } aside { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; min-height: 0; background: var(--canvas); } .preview-header { display: flex; align-items: center; gap: 13px; padding: 18px 20px 10px; } .preview-heading { min-width: 0; } aside h2 { margin: 0 0 5px; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; } .preview-heading .path { margin: 0; line-height: 1.5; } .preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 14px; } #preview-kind { font-size: 11px; color: var(--muted); } .preview-actions { display: flex; gap: 6px; flex: 0 0 auto; } .preview-actions button { font-size: 11px; padding: 6px 9px; } .preview-actions .icon svg { width: 17px; height: 17px; } .passage { flex: 1; min-height: 0; margin: 0 10px 10px; padding: 22px 25px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; scrollbar-gutter: stable; } .passage > .eyebrow { margin: 0 0 18px; } aside pre { font-family: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; } footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px; min-height: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; } .footer-privacy { display: flex; align-items: center; gap: 8px; min-width: 0; } .footer-privacy > .icon { color: var(--ink); } .privacy { font-size: 10px; border-left: 1px solid var(--line); padding-left: 9px; white-space: nowrap; } .keyboard-hints { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .keyboard-hints > span:not(.icon) { margin-right: 8px; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } [hidden] { display: none !important; } @keyframes row-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } } @keyframes panel-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 820px) { .index-status { display: none; } .header-actions { gap: 5px; } .quiet-button > span:not(.icon) { display: none; } .workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .keyboard-hints > span { display: none; } .privacy { display: none; } .preview-actions button > span:not(.icon) { display: none; } .preview-header { padding: 14px 14px 8px; } .preview-toolbar { padding: 0 14px 12px; } .passage { padding: 18px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } } @media (forced-colors: active) { :root { --canvas: Canvas; --surface: Canvas; --subtle: ButtonFace; --ink: CanvasText; --muted: CanvasText; --line: ButtonBorder; --selected: Highlight; --brand: LinkText; --error: CanvasText; } .result.selected { color: HighlightText; border-color: Highlight; } .result.selected .path, .result.selected .kind { color: HighlightText; } .file-icon { border: 1px solid ButtonBorder; } button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: Highlight; } } /* Keep one scoped media player within the existing result preview. */ .media-preview { margin: 0 20px 14px; overflow: hidden; border-radius: 10px; background: #f3f4f7; } .media-preview img, .media-preview video { display: block; width: 100%; max-height: 340px; object-fit: contain; } .media-preview audio { display: block; width: 100%; } #media-preview-status { margin: 0 20px 14px; } .file-icon[data-type="image"] { color: #6c62b5; } .file-icon[data-type="video"] { color: #a16a48; } .file-icon[data-type="audio"] { color: #608271; } .performance-toggle { display: flex; align-items: center; gap: 8px; margin-top: 14px; } .performance-toggle input { width: auto; accent-color: var(--brand); } #performance-panel { margin: 0 20px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; } #performance-panel summary { cursor: pointer; font-weight: 600; } #performance-detail { max-height: 280px; overflow: auto; font-variant-numeric: tabular-nums; } #performance-detail p { margin: 8px 0; } .performance-attempt { font-weight: 600; } .performance-span { border-left: 2px solid var(--line); } #copy-performance-status { margin-left: 8px; color: var(--muted); } mark[data-match="literal"] { background: #ffebae; color: #31280c; border-radius: 2px; padding: 0 1px; font-weight: 600; box-decoration-break: clone; } .passage.semantic-passage { background: var(--selected); border-left: 3px solid var(--brand); } .match-details { margin: 0 20px 12px; color: var(--muted); font-size: 11px; } .match-details summary { width: fit-content; cursor: pointer; } .match-details p { margin: 6px 0 0; line-height: 1.5; } #match-legend { font-size: 10px; } @media (prefers-color-scheme: dark) { mark[data-match="literal"] { background: #65531e; color: #fff2bd; } } @media (forced-colors: active) { mark[data-match="literal"] { background: Highlight; color: HighlightText; outline: 1px solid Highlight; } .passage.semantic-passage { background: Canvas; border-color: Highlight; } }