.eb-spotlight {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.eb-spotlight.is-open {
    display: block;
}

.eb-spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.eb-spotlight-dialog {
    position: relative;
    max-width: 720px;
    margin: 10vh auto 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

body.eb-spotlight-open {
    overflow: hidden;
}

.eb-spotlight-input-wrap {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.eb-spotlight-input-wrap input {
    font-size: 18px;
    padding: 12px 14px;
}

.eb-spotlight-results {
    max-height: 55vh;
    overflow: auto;
}

.eb-spotlight-group {
    padding: 10px 0;
}

.eb-spotlight-group-title {
    padding: 0 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
}

.eb-spotlight-list {
    padding: 6px 8px;
}

.eb-spotlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.eb-spotlight-item:hover {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.eb-spotlight-item.is-selected {
    background: rgba(0, 123, 255, 0.12);
}

.eb-spotlight-item-main {
    min-width: 0;
}

.eb-spotlight-item-label {
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eb-spotlight-item-meta {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eb-spotlight-item-origin {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
    white-space: normal;
    line-height: 1.3;
}

.eb-spotlight-item-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.eb-spotlight-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.eb-spotlight-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eb-spotlight-pin {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.42);
    filter: grayscale(1);
    opacity: 0.65;
}

.eb-spotlight-pin:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.65);
    opacity: 0.9;
}

.eb-spotlight-pin.is-pinned {
    border-color: rgba(0, 123, 255, 0.35);
    background: rgba(0, 123, 255, 0.08);
    color: rgba(0, 123, 255, 0.95);
    filter: none;
    opacity: 1;
}

.eb-spotlight-pin.is-pinned:hover {
    background: rgba(0, 123, 255, 0.16);
}

.eb-spotlight-action {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.85);
}

.eb-spotlight-action:hover {
    background: rgba(0, 0, 0, 0.04);
}

.eb-spotlight-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.45);
}

.eb-spotlight-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

.eb-spotlight-empty,
.eb-spotlight-loading {
    padding: 16px;
    color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 768px) {
    .eb-spotlight-dialog {
        margin: 6vh 14px 0 14px;
    }
}
