.spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: rgba(15, 23, 42, 0.45);
    /* backdrop-filter: blur(4px); */
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.spotlight-overlay.spotlight-visible {
    opacity: 1;
    pointer-events: all;
}

.spotlight-container {
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: scale(0.95) translateY(-8px);
    transition: transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.spotlight-overlay.spotlight-visible .spotlight-container {
    transform: scale(1) translateY(0);
}

.spotlight-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f2f5;
}

.spotlight-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.spotlight-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #0f172a;
    background: transparent;
    line-height: 1.5;
}

.spotlight-input::placeholder {
    color: #b0b8c4;
}

.spotlight-esc-hint {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: inherit;
    flex-shrink: 0;
}

.spotlight-results {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
}

.spotlight-results:empty {
    display: none;
}

.spotlight-empty {
    padding: 20px 18px;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.spotlight-section-label {
    padding: 6px 18px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 100ms ease;
}

.spotlight-item:hover,
.spotlight-item.spotlight-selected {
    background: #f0f4ff;
}

.spotlight-item-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 7px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.spotlight-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.spotlight-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

mark.spotlight-highlight {
    background: #fef08a;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.spotlight-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 18px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}

.spotlight-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.spotlight-footer kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-family: inherit;
    color: #64748b;
}
