~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
/**
* Notes Page Styles
*/
/* Screen-reader-only utility — used by aria-labels on icon buttons,
* loading-state announcements, and label elements that should not
* appear visually (a placeholder is present instead). Standard WCAG
* pattern for visually-hidden text. */
.ldr-visually-hidden {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Page Header */
.ldr-notes-page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding: 0 0.5rem;
}
.ldr-notes-page-header h1 {
margin: 0;
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.75rem;
color: var(--text-primary, #e4e4e7);
}
.ldr-notes-page-header h1 i {
color: var(--accent-primary, #6e4ff6);
}
/* Filters */
.ldr-notes-filters {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
align-items: center;
}
/* Ask your notes box */
.ldr-notes-ask {
display: flex;
align-items: center;
gap: 0.6rem;
background: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
border-radius: 12px;
padding: 0.5rem 0.75rem;
margin-bottom: 1rem;
}
.ldr-notes-ask > i {
color: var(--accent-primary, #6e4ff6);
}
.ldr-notes-ask input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: var(--text-primary, #e4e4e7);
font-size: 0.95rem;
}
.ldr-notes-ask input:focus {
outline: none;
}
/* The border lives on the container, so surface focus there (mirrors the
search input's focus ring) — without this, keyboard users get no visible
focus indicator on the Ask field. */
.ldr-notes-ask:focus-within {
border-color: var(--accent-primary, #6e4ff6);
box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}
.ldr-notes-ask-btn {
background: linear-gradient(135deg, var(--accent-primary, #6e4ff6) 0%, var(--accent-secondary, #8b5cf6) 100%);
color: var(--text-on-accent);
border: none;
border-radius: 8px;
padding: 0.4rem 0.9rem;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
white-space: nowrap;
}
.ldr-notes-ask-btn:disabled {
opacity: 0.6;
cursor: default;
}
.ldr-notes-search {
flex: 1;
min-width: 250px;
position: relative;
}
.ldr-notes-search i {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted, #71717a);
pointer-events: none;
}
.ldr-notes-search input {
width: 100%;
padding: 0.75rem 1rem 0.75rem 2.75rem;
background: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
border-radius: 10px;
color: var(--text-primary, #e4e4e7);
font-size: 0.95rem;
transition: all 0.2s ease;
}
.ldr-notes-search input:focus {
outline: none;
border-color: var(--accent-primary, #6e4ff6);
box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}
.ldr-notes-search input::placeholder {
color: var(--text-muted, #71717a);
}
.ldr-collection-filter-select {
padding: 0.75rem 1rem;
background: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
border-radius: 10px;
color: var(--text-primary, #e4e4e7);
min-width: 180px;
cursor: pointer;
}
.ldr-collection-filter-select:focus {
outline: none;
border-color: var(--accent-primary, #6e4ff6);
box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}
/* Create Button */
.ldr-create-note-btn {
background: linear-gradient(135deg, var(--accent-primary, #6e4ff6) 0%, var(--accent-secondary, #8b5cf6) 100%);
color: var(--text-on-accent);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 10px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
text-decoration: none;
}
.ldr-create-note-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
color: var(--text-on-accent);
}
/* Notes Grid */
.ldr-notes-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.25rem;
}
/* Keyword-listing pager below the grid (JS toggles display: none/flex) */
.ldr-notes-load-more {
justify-content: center;
margin: 1.25rem 0 0.5rem;
}
/* Note Card */
.ldr-note-card {
background: var(--bg-secondary, #1e1e2d);
border: 1px solid var(--border-color, #343452);
border-radius: 16px;
padding: 1.5rem;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
display: flex;
flex-direction: column;
min-height: 200px;
}
.ldr-note-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--accent-primary, #6e4ff6) 0%, var(--accent-secondary, #8b5cf6) 100%);
border-radius: 16px 16px 0 0;
}
.ldr-note-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--accent-primary, #6e4ff6);
border-color: var(--accent-primary, #6e4ff6);
}
.ldr-note-card.ldr-pinned {
border-color: var(--accent-primary, #6e4ff6);
box-shadow: 0 4px 6px -1px rgba(var(--accent-primary-rgb), 0.15), 0 2px 4px -1px rgba(var(--accent-primary-rgb), 0.1);
}
.ldr-note-card.ldr-pinned::before {
background: linear-gradient(90deg, var(--warning-color) 0%, var(--warning-color) 100%);
}
.ldr-note-card.ldr-pinned::after {
content: '\f08d';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
position: absolute;
top: 1.25rem;
right: 1.25rem;
color: var(--warning-color);
font-size: 1rem;
transform: rotate(45deg);
}
.ldr-note-card-header {
display: flex;
align-items: flex-start;
gap: 0.5rem;
margin-bottom: 0.75rem;
padding-top: 0.25rem;
}
.ldr-note-card-title {
font-weight: 700;
color: var(--text-primary, #e4e4e7);
margin: 0;
font-size: 1.15rem;
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.ldr-note-card-preview {
color: var(--text-secondary, #a1a1aa);
font-size: 0.875rem;
line-height: 1.7;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
margin: 0;
flex: 1;
}
.ldr-note-card-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1rem;
margin-top: auto;
border-top: 1px solid var(--border-color, #343452);
gap: 0.75rem;
}
.ldr-note-card-tags {
display: flex;
gap: 0.35rem;
flex-wrap: wrap;
flex: 1;
overflow: hidden;
}
.ldr-note-tag {
background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.2) 0%, rgba(var(--accent-secondary-rgb), 0.1) 100%);
color: var(--accent-primary, #6e4ff6);
padding: 0.2rem 0.6rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 500;
border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
white-space: nowrap;
}
.ldr-note-card-stats {
display: flex;
gap: 0.6rem;
font-size: 0.75rem;
color: var(--text-muted, #71717a);
flex-shrink: 0;
}
.ldr-note-stat {
display: flex;
align-items: center;
gap: 0.25rem;
}
.ldr-note-stat i {
font-size: 0.7rem;
opacity: 0.8;
}
.ldr-note-stat.ldr-indexed i {
color: var(--success-color);
}
/* Empty State */
.ldr-notes-empty {
text-align: center;
padding: 4rem 2rem;
background: var(--bg-secondary, #1e1e2d);
border-radius: 12px;
border: 1px dashed var(--border-color, #343452);
}
.ldr-notes-empty-icon {
font-size: 4rem;
color: var(--text-muted, #71717a);
margin-bottom: 1.5rem;
opacity: 0.4;
display: block;
}
.ldr-notes-empty h3 {
color: var(--text-primary, #e4e4e7);
margin-bottom: 0.5rem;
font-size: 1.25rem;
}
.ldr-notes-empty p {
color: var(--text-muted, #71717a);
margin-bottom: 1.5rem;
}
/* Modal Improvements */
#noteModal .modal-content {
background: var(--bg-secondary, #1e1e2d);
border: 1px solid var(--border-color, #343452);
border-radius: 16px;
}
#noteModal .modal-header {
border-bottom: 1px solid var(--border-color, #343452);
padding: 1.25rem 1.5rem;
}
#noteModal .modal-title {
display: flex;
align-items: center;
gap: 0.5rem;
}
#noteModal .modal-title i {
color: var(--accent-primary, #6e4ff6);
}
#noteModal .modal-body {
padding: 1.5rem;
}
#noteModal .modal-footer {
border-top: 1px solid var(--border-color, #343452);
padding: 1rem 1.5rem;
}
#noteModal .form-control,
#noteModal .form-select {
background: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
color: var(--text-primary, #e4e4e7);
border-radius: 8px;
padding: 0.75rem 1rem;
}
#noteModal .form-control:focus,
#noteModal .form-select:focus {
border-color: var(--accent-primary, #6e4ff6);
box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}
#noteModal textarea.form-control {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
line-height: 1.6;
min-height: 250px;
}
#noteModal .form-label {
color: var(--text-primary, #e4e4e7);
font-weight: 500;
margin-bottom: 0.5rem;
}
/* Search mode selector (Text / AI Hybrid / AI only) */
.ldr-notes-search-mode .dropdown-toggle {
white-space: nowrap;
}
.ldr-notes-search-mode .dropdown-item.active,
.ldr-notes-search-mode .dropdown-item:active {
background: var(--accent-primary, #6e4ff6);
color: var(--text-on-accent);
}
.ldr-notes-search-mode .dropdown-item.active small,
.ldr-notes-search-mode .dropdown-item:active small {
color: var(--text-on-accent) !important;
}
/* Search notice (e.g. AI search unavailable → keyword-only) */
.ldr-notes-search-notice {
display: flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.12) 0%, rgba(var(--accent-secondary-rgb), 0.08) 100%);
border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
border-radius: 10px;
padding: 0.6rem 1rem;
margin-bottom: 1rem;
color: var(--accent-primary, #6e4ff6);
font-size: 0.85rem;
}
/* Similarity Badge */
.ldr-similarity-badge {
background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15) 0%, rgba(var(--accent-secondary-rgb), 0.1) 100%);
color: var(--accent-primary, #6e4ff6);
padding: 0.15rem 0.5rem;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
margin-left: auto;
flex-shrink: 0;
}
/* Semantic Search Loading */
.ldr-semantic-search-loading {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4rem 2rem;
color: var(--text-muted, #71717a);
}
.ldr-semantic-search-loading p {
margin-top: 1rem;
font-size: 0.9rem;
}
/* Note Card Header - Similarity badge */
.ldr-note-card-header .ldr-similarity-badge {
margin-top: 0.25rem;
}
/* Research items in note detail */
.ldr-research-item {
background: var(--bg-secondary, #1e1e2d);
border: 1px solid var(--border-color, #343452);
border-radius: 10px;
padding: 1rem 1.25rem;
transition: all 0.2s ease;
}
.ldr-research-item:hover {
border-color: var(--accent-primary, #6e4ff6);
}
.ldr-research-item-header {
display: flex;
align-items: center;
gap: 0.5rem;
/* Wrap so the "View Results" link drops to its own line in the
narrow sidebar instead of being squeezed to one word per line and
clipped under the floating action button. */
flex-wrap: wrap;
margin-bottom: 0.5rem;
}
.ldr-research-item-query {
/* Take the remaining row width and wrap at word boundaries
(min-width:0 lets a flex item shrink below its content size, which
is what stops the one-word-per-line breakage). */
flex: 1 1 6rem;
min-width: 0;
overflow-wrap: anywhere;
font-weight: 600;
color: var(--text-primary, #e4e4e7);
font-size: 0.95rem;
}
/* "View Results" link: never squeeze it; let it wrap to the next line. */
.ldr-research-item-header > a {
flex: 0 0 auto;
white-space: nowrap;
}
.ldr-research-item-meta {
font-size: 0.8rem;
color: var(--text-muted, #71717a);
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.ldr-research-empty {
text-align: center;
padding: 2.5rem;
color: var(--text-muted, #71717a);
}
.ldr-research-empty i {
font-size: 2.5rem;
margin-bottom: 1rem;
opacity: 0.4;
}
.ldr-research-empty p {
margin: 0;
}
/* Inline text link inside the empty Research panel — opens the research modal. */
.ldr-research-empty-link {
background: none;
border: none;
padding: 0;
font: inherit;
color: var(--accent-primary, #6e4ff6);
cursor: pointer;
text-decoration: underline;
}
.ldr-research-empty-link:hover {
color: var(--accent-secondary, #8b5cf6);
}
/* AI result cards
*
* Rendered as <a> (was <div>) so keyboard users can activate via Enter and
* the browser handles middle-click / open-in-new-tab / focus ring / role=link
* semantics natively. The display/text-decoration/color resets below are what
* keep the visual identical to the previous <div> rendering.
*/
.ldr-ai-result-card {
display: block;
text-decoration: none;
color: inherit;
background: var(--bg-tertiary, #2a2a3a);
border: 1px solid var(--border-color, #343452);
border-radius: 10px;
padding: 0.85rem;
margin-bottom: 0.75rem;
transition: all 0.2s ease;
}
/* The clickable affordance only applies to the navigable <a> variant
(Similar Notes / Passages). Suggest-Links / Unlinked-Mentions render the
card as a <div> whose action is an inner Accept button — it must not look
clickable itself. */
a.ldr-ai-result-card {
cursor: pointer;
}
a.ldr-ai-result-card:hover {
border-color: var(--accent-primary, #6e4ff6);
transform: translateX(4px);
}
.ldr-ai-result-card:last-child {
margin-bottom: 0;
}
.ldr-ai-result-card-title {
font-weight: 600;
color: var(--text-primary, #e4e4e7);
margin-bottom: 0.25rem;
}
.ldr-ai-result-card-preview {
font-size: 0.85rem;
color: var(--text-muted, #71717a);
line-height: 1.5;
}
.ldr-ai-result-card-meta {
font-size: 0.75rem;
color: var(--text-muted, #71717a);
margin-top: 0.5rem;
display: flex;
gap: 0.75rem;
}
/* Suggested Links: badge on the left, Accept button on the right.
Overrides the badge's margin-left:auto so they don't collide. */
.ldr-suggest-link-meta {
align-items: center;
justify-content: space-between;
}
/* Without this override both flex children carry margin-left: auto, the free
space splits between the two auto margins, and justify-content is inert —
the badge floats mid-card instead of sitting flush left. */
.ldr-suggest-link-meta .ldr-similarity-badge {
margin-left: 0;
}
.ldr-suggest-link-accept {
margin-left: auto;
background: linear-gradient(135deg, var(--accent-primary, #6e4ff6) 0%, var(--accent-secondary, #8b5cf6) 100%);
color: var(--text-on-accent);
border: none;
border-radius: 8px;
padding: 0.2rem 0.6rem;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
}
.ldr-suggest-link-accept:disabled {
opacity: 0.6;
cursor: default;
}
.ldr-suggestion-accepted {
opacity: 0.55;
}
/* AI-suggested link badge in the outgoing-links sidebar */
.ldr-ai-link-badge {
color: var(--accent-primary, #6e4ff6);
font-size: 0.7rem;
margin-left: 0.25rem;
}
/* Fact-check (Verify with Research) */
.ldr-factcheck-status {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--text-muted, #71717a);
margin-bottom: 0.5rem;
}
.ldr-factcheck-claims {
margin: 0.25rem 0 0;
padding-left: 1.1rem;
font-size: 0.8rem;
color: var(--text-secondary, #a1a1aa);
}
.ldr-verdict-card {
border: 1px solid var(--border-color, #343452);
border-radius: 10px;
padding: 0.6rem 0.75rem;
margin-bottom: 0.6rem;
background: var(--bg-tertiary, #2a2a3a);
}
.ldr-verdict-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.35rem;
}
.ldr-verdict-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 0.15rem 0.5rem;
border-radius: 10px;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.ldr-verdict-supported {
background: rgba(var(--success-color-rgb), 0.18);
/* Lightened from #22c55e (4.5:1, borderline) to meet WCAG AA with margin. */
color: #4ade80;
}
.ldr-verdict-contradicted {
background: rgba(var(--error-color-rgb), 0.18);
/* Lightened from #ef4444 (3.1:1, fails AA) to #fca5a5 (6.2:1) — keeps the
red identity for this safety-critical verdict while passing WCAG AA. */
color: #fca5a5;
}
.ldr-verdict-partial {
background: rgba(var(--warning-color-rgb), 0.18);
/* Lightened from #f59e0b (4.7:1, borderline) to meet WCAG AA with margin. */
color: #fcd34d;
}
.ldr-verdict-unverified {
background: rgba(var(--text-muted-rgb), 0.2);
/* Lightened from --text-muted (~4.5:1, borderline) to meet WCAG AA. */
color: #d4d4d8;
}
.ldr-verdict-confidence {
font-size: 0.72rem;
color: var(--text-muted, #71717a);
}
.ldr-verdict-claim {
font-weight: 600;
font-size: 0.85rem;
color: var(--text-primary, #e4e4e7);
}
.ldr-verdict-reasoning {
font-size: 0.8rem;
color: var(--text-secondary, #a1a1aa);
margin-top: 0.25rem;
}
.ldr-verdict-sources {
font-size: 0.75rem;
margin-top: 0.35rem;
}
.ldr-verdict-footer {
font-size: 0.8rem;
margin-top: 0.25rem;
}
/* Keep the modal close icon visible on both light and dark surfaces. */
.ldr-btn-close-white {
/* Bootstrap's :hover rule re-reads --bs-btn-close-color (#000) and lowers
opacity, so theme the variables rather than only the resting color. */
--bs-btn-close-color: var(--text-primary);
--bs-btn-close-opacity: 1;
--bs-btn-close-hover-opacity: 1;
--bs-btn-close-focus-opacity: 1;
--bs-btn-close-filter: none;
position: relative;
background: none;
color: var(--bs-btn-close-color);
filter: none;
opacity: 1;
}
.ldr-btn-close-white::before,
.ldr-btn-close-white::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 1em;
height: 2px;
background: currentColor;
transform: translate(-50%, -50%) rotate(45deg);
}
.ldr-btn-close-white::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
/* Forced-colors mode (Windows High Contrast) repaints background-color with
Canvas, which would erase the bars above. Paint them in the system text
color instead. */
@media (forced-colors: active) {
.ldr-btn-close-white::before,
.ldr-btn-close-white::after {
forced-color-adjust: none;
background: CanvasText;
}
}
/* Editor hint bar */
.ldr-editor-hint {
padding: 6px 12px;
background: rgba(var(--accent-primary-rgb), 0.05);
border-bottom: 1px solid var(--border-color);
font-size: 0.8rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
}
.ldr-editor-hint kbd {
background: var(--bg-tertiary);
padding: 1px 5px;
border-radius: 3px;
border: 1px solid var(--border-color);
font-size: 0.8rem;
font-family: monospace;
}
.ldr-hint-dismiss {
margin-left: auto;
color: var(--text-muted);
background: none;
border: none;
cursor: pointer;
font-size: 1rem;
padding: 0 4px;
line-height: 1;
}
/* Wiki-link autocomplete dropdown */
.ldr-wiki-link-dropdown {
position: fixed;
z-index: 99999;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(var(--shadow-color-rgb), 0.15);
max-height: 250px;
overflow-y: auto;
min-width: 280px;
max-width: 400px;
}
.ldr-wiki-link-item {
padding: 8px 12px;
cursor: pointer;
border-bottom: 1px solid
rgba(var(--shadow-color-rgb, 128, 128, 128), 0.08);
}
.ldr-wiki-link-item:last-child {
border-bottom: none;
}
.ldr-wiki-link-item:hover,
.ldr-wiki-link-item.active {
background: rgba(var(--accent-primary-rgb), 0.1);
}
.ldr-wiki-link-item-title {
font-weight: 600;
color: var(--text-primary);
font-size: 0.9rem;
}
.ldr-wiki-link-item-title .ldr-highlight {
/* Stacks on the 0.1 hover/active tint; 0.2 keeps text-primary at 4.5:1. */
background: rgba(var(--accent-primary-rgb), 0.2);
border-radius: 2px;
padding: 0 1px;
}
.ldr-wiki-link-placeholder {
padding: 12px;
color: var(--text-muted);
font-size: 0.85rem;
text-align: center;
font-style: italic;
}
/* Tag chip used in note read mode and lists */
.ldr-tag {
display: inline-block;
padding: 0.15rem 0.55rem;
margin: 0.1rem 0.2rem 0.1rem 0;
background: rgba(var(--accent-primary-rgb), 0.12);
color: var(--accent-primary);
border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
border-radius: 12px;
font-size: 0.78rem;
line-height: 1.2;
}
/* Rendered markdown content (preview panes) */
.ldr-markdown-content {
color: var(--text-primary);
line-height: 1.6;
}
.ldr-markdown-content h1,
.ldr-markdown-content h2,
.ldr-markdown-content h3 {
color: var(--text-primary);
margin: 1rem 0 0.5rem;
}
.ldr-markdown-content p { margin: 0.5rem 0; }
.ldr-markdown-content ul,
.ldr-markdown-content ol { margin: 0.5rem 0 0.5rem 1.5rem; }
.ldr-markdown-content code {
background: var(--bg-tertiary);
padding: 0.15rem 0.3rem;
border-radius: 4px;
}
.ldr-markdown-content blockquote {
border-left: 3px solid var(--accent-primary);
padding-left: 1rem;
margin: 0.5rem 0;
color: var(--text-secondary);
}
/* GFM tables render as bare <table> elements; without borders they
collapse visually into run-together text ("Col ACol B"). Give them
the same bordered look as the rest of the markdown surface. */
.ldr-markdown-content table {
border-collapse: collapse;
margin: 0.5rem 0;
width: auto;
max-width: 100%;
}
.ldr-markdown-content th,
.ldr-markdown-content td {
border: 1px solid var(--border-color);
padding: 0.35rem 0.6rem;
text-align: left;
}
.ldr-markdown-content th {
background: var(--bg-tertiary);
font-weight: 600;
}
/* Research items: collapse + drag-and-drop */
.ldr-research-item-drag-handle {
cursor: grab;
color: var(--text-muted);
margin-right: 0.5rem;
user-select: none;
}
.ldr-research-item-drag-handle:active {
cursor: grabbing;
}
.ldr-research-item-collapse-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 0.15rem 0.35rem;
margin-right: 0.4rem;
border-radius: 3px;
}
.ldr-research-item-collapse-btn:hover {
background: rgba(var(--accent-primary-rgb), 0.08);
color: var(--accent-primary);
}
.ldr-research-item.ldr-collapsed .ldr-research-item-body {
display: none;
}
.ldr-research-item.ldr-dragging {
opacity: 0.45;
}
.ldr-research-item.ldr-drop-target {
outline: 2px dashed var(--accent-primary);
outline-offset: -2px;
}
/* Semantic diff modal */
.ldr-diff-meta {
color: var(--text-muted);
font-size: 0.85rem;
margin-bottom: 0.75rem;
}
.ldr-diff-summary {
background: rgba(var(--accent-primary-rgb), 0.08);
border-left: 3px solid var(--accent-primary);
padding: 0.75rem 1rem;
border-radius: 4px;
margin-bottom: 1rem;
color: var(--text-primary);
}
.ldr-diff-list {
list-style: none;
padding-left: 0;
margin: 0.5rem 0 1rem;
}
.ldr-diff-list li {
padding: 0.35rem 0.6rem;
border-radius: 4px;
margin: 0.2rem 0;
}
.ldr-diff-added {
background: rgba(var(--success-color-rgb), 0.12);
border-left: 3px solid var(--success-color);
}
.ldr-diff-removed {
background: rgba(var(--error-color-rgb), 0.12);
border-left: 3px solid var(--error-color);
}
.ldr-diff-modified {
background: rgba(var(--warning-color-rgb), 0.12);
border-left: 3px solid var(--warning-color);
}
.ldr-diff-unchanged {
color: var(--text-muted);
font-style: italic;
}
/* Notes page header + select mode */
.ldr-notes-page-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}
.ldr-select-mode-btn {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
}
.ldr-select-mode-btn:hover {
background: rgba(var(--accent-primary-rgb), 0.1);
border-color: var(--accent-primary);
}
.ldr-select-mode-btn.active {
background: var(--accent-primary);
color: var(--text-on-accent);
border-color: var(--accent-primary);
}
/* Bottom action bar shown when select mode is on */
.ldr-select-actions {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6rem 1rem;
margin: 0.5rem 0 1rem;
background: var(--bg-secondary);
border: 1px solid var(--accent-primary);
border-radius: 6px;
position: sticky;
top: 0.5rem;
z-index: 10;
}
.ldr-select-actions-buttons {
display: flex;
gap: 0.5rem;
}
/* Note card selection visual. Anchored top-LEFT so it can't overlap the
pinned-note badge (.ldr-note-card.ldr-pinned::after), which sits top-right.
(.ldr-note-card already declares position: relative above.) */
.ldr-note-card-checkbox {
position: absolute;
top: 0.6rem;
left: 0.6rem;
color: var(--accent-primary);
font-size: 1.1rem;
pointer-events: none;
}
.ldr-note-card.ldr-note-card-selected {
outline: 2px solid var(--accent-primary);
outline-offset: -2px;
}
/* Synthesis modal selected list */
.ldr-synthesis-selected-list {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.ldr-synthesis-selected-item {
background: rgba(var(--accent-primary-rgb), 0.12);
border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
padding: 0.25rem 0.6rem;
border-radius: 12px;
font-size: 0.8rem;
color: var(--text-primary);
}
.ldr-synthesis-preview {
margin-top: 1rem;
padding: 0.75rem 1rem;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 6px;
}