/** Canvas panel visibility within NotesAi shell. */
#notesaiViewCanvas.is-active {
    display: flex;
    flex-direction: column;
}

/* Shared chrome row below the shell header: board title + icons (left),
   search (center), file drop strip (far right). The drop strip is static
   markup already in this row (see index.html); .canvas-brand is the only
   piece still relocated in, since the legacy engine builds it itself. */
.notesai-canvas-title-row,
.notesai-document-title-row {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: transparent;
    z-index: 20;
}

.notesai-canvas-title-row .canvas-brand,
.notesai-document-title-row .document-folder-indicator-wrap {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    pointer-events: auto;
    flex: 0 1 auto;
    max-width: calc(50% - 160px);
    min-width: 0;
    display: flex;
    align-items: center;
}

.notesai-canvas-title-row .canvas-page-header {
    margin-top: 0;
    max-width: 100%;
    align-items: center;
    /* Match drop-strip control height so both share one optical midline. */
    min-height: 28px;
}

.notesai-canvas-title-row .canvas-page-name {
    line-height: 28px;
    padding: 0;
    font-size: 0.875rem;
}

.notesai-canvas-title-row .canvas-page-settings-btn,
.notesai-canvas-title-row .notesai-page-history-toggle,
.notesai-document-title-row .canvas-page-settings-btn {
    width: 28px;
    height: 28px;
}

/* BD-142: Add split button (replaces Single Note Mode icon). Same control on Document. */
.notesai-canvas-title-row .canvas-add-split,
.notesai-document-title-row .canvas-add-split {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: 6px;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ln-btn-primary, #667eea) 40%, transparent);
}

.notesai-canvas-title-row .canvas-add-split-primary,
.notesai-canvas-title-row .canvas-add-split-toggle,
.notesai-document-title-row .canvas-add-split-primary,
.notesai-document-title-row .canvas-add-split-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin: 0;
    border: none;
    background: var(--ln-btn-primary, #667eea);
    color: #fff;
    cursor: pointer;
    transition: filter 0.12s ease, background 0.12s ease;
}

.notesai-canvas-title-row .canvas-add-split-primary,
.notesai-document-title-row .canvas-add-split-primary {
    gap: 5px;
    padding: 0 10px 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
}

.notesai-canvas-title-row .canvas-add-split-primary i,
.notesai-document-title-row .canvas-add-split-primary i {
    font-size: 0.6875rem;
}

.notesai-canvas-title-row .canvas-add-split-toggle,
.notesai-document-title-row .canvas-add-split-toggle {
    width: 24px;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.6875rem;
}

.notesai-canvas-title-row .canvas-add-split-primary:hover,
.notesai-canvas-title-row .canvas-add-split-toggle:hover,
.notesai-document-title-row .canvas-add-split-primary:hover,
.notesai-document-title-row .canvas-add-split-toggle:hover {
    filter: brightness(1.08);
}

.notesai-canvas-title-row .canvas-add-split-primary:active,
.notesai-canvas-title-row .canvas-add-split-toggle:active,
.notesai-document-title-row .canvas-add-split-primary:active,
.notesai-document-title-row .canvas-add-split-toggle:active {
    filter: brightness(0.94);
}

.notesai-canvas-title-row .canvas-add-split-primary:focus-visible,
.notesai-canvas-title-row .canvas-add-split-toggle:focus-visible,
.notesai-document-title-row .canvas-add-split-primary:focus-visible,
.notesai-document-title-row .canvas-add-split-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
    z-index: 1;
}

.notesai-canvas-title-row .canvas-add-split.is-open .canvas-add-split-toggle,
.notesai-document-title-row .canvas-add-split.is-open .canvas-add-split-toggle {
    filter: brightness(0.9);
}

.canvas-add-menu {
    position: fixed;
    z-index: var(--z-popover, 1200);
    min-width: 168px;
    padding: 4px 0;
    margin: 0;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    background: var(--bg-primary, #fff);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(15, 23, 42, 0.18));
}

.canvas-add-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary, #111827);
    font: inherit;
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
}

.canvas-add-menu-item:hover,
.canvas-add-menu-item:focus-visible {
    background: color-mix(in srgb, var(--primary-color, #667eea) 12%, transparent);
    outline: none;
}

.canvas-add-menu-default {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-tertiary, #9ca3af);
}

/* Centered board search — same visual language as the drop strip. */
.notesai-canvas-title-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(280px, calc(100% - 360px));
    min-width: 140px;
    height: 28px;
    padding: 0 10px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 0.75rem;
    line-height: 1;
    cursor: text;
    z-index: 1;
}

.notesai-canvas-title-search:hover,
.notesai-canvas-title-search:focus-within {
    border-color: rgba(255, 255, 255, 0.22);
}

.notesai-canvas-title-search-icon {
    flex-shrink: 0;
    opacity: 0.7;
    display: block;
    pointer-events: none;
}

.notesai-canvas-title-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    opacity: 0.85;
}

.notesai-canvas-title-search-input::placeholder {
    color: rgba(241, 245, 249, 0.45);
}

.notesai-canvas-title-search-input::-webkit-search-decoration,
.notesai-canvas-title-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.notesai-canvas-title-row .ln-canvas-drop-strip,
.notesai-document-title-row .ln-canvas-drop-strip {
    /* Nested in the title row (static markup in index.html). The standalone
       engine styles are scoped to `body > .ln-canvas-drop-strip`, so this
       rule owns the notesai appearance — glass container, not plain text. */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex: 0 0 auto;
    margin: 0 45px 0 auto;
    width: auto;
    max-width: min(100%, 260px);
    height: 28px;
    padding: 0 6px 0 10px;
    z-index: auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    font-family: inherit;
    user-select: none;
    cursor: default;
    pointer-events: auto;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-label,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-label {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    letter-spacing: 0.01em;
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-icon,
.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-browse-icon,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-icon,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-browse-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 1;
    color: #e2e8f0;
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-actions,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-actions {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-browse,
.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-camera,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-browse,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-camera {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-camera[hidden],
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-camera[hidden] {
    display: none !important;
}

.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-browse:hover,
.notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-camera:hover,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-browse:hover,
.notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-camera:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.notesai-canvas-title-row .ln-canvas-drop-strip:hover,
.notesai-document-title-row .ln-canvas-drop-strip:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.notesai-canvas-title-row .ln-canvas-drop-strip:focus-visible,
.notesai-document-title-row .ln-canvas-drop-strip:focus-visible {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: -2px;
}

.notesai-canvas-title-row .ln-canvas-drop-strip.ln-drop-strip-over,
.notesai-document-title-row .ln-canvas-drop-strip.ln-drop-strip-over {
    background: rgba(102, 126, 234, 0.22);
    border-color: rgba(165, 180, 252, 0.65);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25);
    color: #eef2ff;
}

.notesai-canvas-title-row .ln-canvas-drop-strip.ln-drop-strip-over .ln-drop-strip-icon,
.notesai-document-title-row .ln-canvas-drop-strip.ln-drop-strip-over .ln-drop-strip-icon {
    opacity: 1;
    color: #c7d2fe;
}

/* Tablet / narrow header: keep upload control compact without crowding title. */
@media (max-width: 900px) {
    .notesai-canvas-title-row .ln-canvas-drop-strip,
    .notesai-document-title-row .ln-canvas-drop-strip {
        margin-right: 12px;
        max-width: min(100%, 200px);
        padding-left: 10px;
    }
}

@media (max-width: 720px) {
    .notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-label,
    .notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-label {
        display: none;
    }

    .notesai-canvas-title-row .ln-canvas-drop-strip,
    .notesai-document-title-row .ln-canvas-drop-strip {
        gap: 0;
        padding: 0 6px;
        max-width: none;
    }

    .notesai-canvas-title-row .ln-canvas-drop-strip .ln-drop-strip-actions,
    .notesai-document-title-row .ln-canvas-drop-strip .ln-drop-strip-actions {
        margin-left: 6px;
        padding-left: 6px;
    }
}

/* Dim notes that don't match the title-bar board search. */
.notesai-workspace #noteCanvas .content-block.ln-board-search-miss {
    opacity: 0.18;
    pointer-events: none;
}

/* BD-137: the match currently arrowed to. Ring only — no colour/size change,
   so stepping through matches does not reflow the board. */
.notesai-workspace #noteCanvas .content-block.ln-board-search-current {
    outline: 2px solid rgba(250, 204, 21, 0.9);
    outline-offset: 2px;
}

/* In-card phrase highlight for the title-bar board search. */
.notesai-workspace #noteCanvas .ln-board-search-hit {
    background: rgba(250, 204, 21, 0.55);
    color: inherit;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
    padding: 0 0.05em;
}

#notesaiViewCanvas.is-active #notesaiCanvasRoot {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: auto;
    overscroll-behavior: contain;
    /* Same as #noteCanvas: pan natively, omit pinch-zoom so board handlers own pinch. */
    touch-action: pan-x pan-y;
    /* Keep pan/scroll; hide the bar chrome. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#notesaiViewCanvas.is-active #notesaiCanvasRoot::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Real-mobile owns title chrome in #mobileCanvasBrandHost; drop strip is
   hidden there too — collapse the empty row so it doesn't leave a gap. */
body.canvas-mode--mobile:not(.canvas-mode--desktop-single) .notesai-canvas-title-row {
    display: none;
}

/* Desktop single-note: keep board title + Add control above the fixed
   .mobile-note-viewer (z-index 800). */
body.notesai-workspace.canvas-mode--desktop-single .notesai-canvas-title-row {
    position: relative;
    z-index: 900;
}

/* Board history moved from a top-bar toolbar icon (see workspace.css) into a
   dropdown anchored under the board title, opened via a chevron next to the
   name. */
.notesai-page-history-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.6875rem;
    line-height: 1;
    pointer-events: auto;
    transition: color 0.15s, background 0.15s, transform 0.15s;
}

.notesai-page-history-toggle:hover,
.notesai-page-history-toggle:focus-visible {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.15);
    outline: none;
}

.notesai-page-history-toggle.is-open {
    color: #e2e8f0;
    background: rgba(102, 126, 234, 0.25);
}

.notesai-page-history-toggle.is-open i {
    transform: rotate(180deg);
}

.notesai-page-history-toggle i {
    transition: transform 0.15s ease;
}

/* position: fixed, not absolute: the menu is relocated to <body> at runtime
   (see canvas_view.js) and positioned from the toggle's live rect. This
   escapes .canvas-brand's stacking context (position: absolute + z-index: 1),
   which otherwise trapped the menu below note cards — cards get bumped to
   z-indexes in the thousands on interaction, and a nested z-index can never
   out-rank content outside its own stacking context regardless of magnitude.
   z-index here is set above the app's other top-level overlays (nav drawer,
   modals) so it's never covered no matter how high a card's z-index climbs. */
.notesai-page-history-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 40px));
    max-height: min(480px, calc(100vh - 100px));
    overflow: hidden;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 10060;
    pointer-events: auto;
}

.notesai-page-history-menu[hidden] {
    display: none !important;
}

/* BD-110: title left, New Canvas (+) right — header stays fixed above the list. */
.notesai-page-history-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 10px 8px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #334155;
}

.notesai-page-history-menu-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.notesai-page-history-new-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.notesai-page-history-new-btn:hover,
.notesai-page-history-new-btn:focus-visible {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.15);
    outline: none;
}

.notesai-page-history-new-btn i {
    pointer-events: none;
}

.notesai-page-history-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 4px 6px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notesai-page-history-empty {
    padding: 16px 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.8125rem;
}

.notesai-page-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    color: #e2e8f0;
}

.notesai-page-history-item:hover,
.notesai-page-history-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.notesai-page-history-item-main {
    min-width: 0;
    flex: 1;
}

.notesai-page-history-item-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #f1f5f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notesai-page-history-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.notesai-page-history-item-meta .notesai-page-history-archived {
    color: #f59e0b;
}

.notesai-page-history-item-chevron {
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.6875rem;
}

/* Globe control — opens cross-canvas search modal (local search stays on Enter/type). */
.notesai-global-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0.85;
}

.notesai-global-search-btn:hover,
.notesai-global-search-btn:focus-visible {
    color: #f1f5f9;
    opacity: 1;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.notesai-global-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(12vh, 48px) 16px 24px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notesai-global-search-overlay[hidden] {
    display: none;
}

.notesai-global-search-modal {
    width: min(560px, 100%);
    max-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
    overflow: hidden;
}

.notesai-global-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
}

.notesai-global-search-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.notesai-global-search-heading-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.notesai-global-search-heading h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f8fafc;
}

.notesai-global-search-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.notesai-global-search-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.notesai-global-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 16px 8px;
    padding: 0 12px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.45);
    box-sizing: border-box;
}

.notesai-global-search-field:focus-within {
    border-color: rgba(148, 163, 184, 0.55);
}

.notesai-global-search-field-icon {
    flex-shrink: 0;
    color: #94a3b8;
    opacity: 0.8;
}

.notesai-global-search-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #f1f5f9;
    font: inherit;
    font-size: 0.875rem;
}

.notesai-global-search-field input::placeholder {
    color: rgba(226, 232, 240, 0.4);
}

.notesai-global-search-field input::-webkit-search-decoration,
.notesai-global-search-field input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.notesai-global-search-status {
    min-height: 1.1em;
    padding: 0 16px 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.notesai-global-search-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0 8px 12px;
}

.notesai-global-search-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.notesai-global-search-item {
    display: block;
    width: 100%;
    margin: 0 0 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.notesai-global-search-item:hover,
.notesai-global-search-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.notesai-global-search-item-title {
    font-size: 0.875rem;
    font-weight: 560;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notesai-global-search-item-preview {
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notesai-global-search-item-preview mark {
    background: rgba(250, 204, 21, 0.45);
    color: inherit;
    border-radius: 2px;
    padding: 0 0.05em;
}

.notesai-global-search-item-meta {
    margin-top: 6px;
    font-size: 0.6875rem;
    color: #64748b;
}

