.sge-palette {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.sge-palette[hidden] { display: none !important; }

.sge-palette-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.sge-palette-card {
    position: relative;
    background: var(--sge-card, #fff);
    color: var(--sge-text, #1f2937);
    width: min(640px, 92vw);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
    border: 1px solid var(--sge-border, #e5e7eb);
}

.sge-palette-input {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sge-border, #e5e7eb);
    gap: 10px;
}

.sge-palette-input i {
    font-size: 18px;
    color: var(--sge-text-muted, #6b7280);
}

.sge-palette-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
}

.sge-palette-results {
    max-height: 50vh;
    overflow-y: auto;
}

.sge-palette-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
}

.sge-palette-item:hover, .sge-palette-item.active {
    background: rgba(13,110,253,0.08);
    border-left-color: #0d6efd;
    color: inherit;
}

.sge-palette-item .sge-palette-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(13,110,253,.12); color:#0d6efd;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sge-palette-item .sge-palette-title { font-weight: 600; font-size: 14px; }
.sge-palette-item .sge-palette-sub { font-size: 12px; color: var(--sge-text-muted, #6b7280); }
.sge-palette-item .sge-palette-tag {
    margin-left: auto;
    font-size: 11px;
    background: rgba(13,110,253,.1);
    color: #0d6efd;
    padding: 2px 8px;
    border-radius: 999px;
}

.sge-palette-footer {
    padding: 8px 18px;
    border-top: 1px solid var(--sge-border, #e5e7eb);
    font-size: 11px;
    color: var(--sge-text-muted, #6b7280);
}
