/* ========== Power-K Command Palette ========== */

.pk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
.pk-overlay.open { display: flex; }

.pk-dialog {
    width: 580px;
    max-width: 95vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pk-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    color: var(--text, #0f172a);
    background: white;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.pk-input::placeholder { color: var(--muted, #94a3b8); }

.pk-results {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.pk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: background 80ms;
}
.pk-item:hover, .pk-item.selected {
    background: var(--surface, #f1f5f9);
}
.pk-item.selected {
    background: #e0e7ff;
}

.pk-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--surface, #e2e8f0);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--muted, #64748b);
}
.pk-icon-grid::after   { content: "grid"; }
.pk-icon-gauge::after  { content: "dash"; }
.pk-icon-inbox::after  { content: "in"; }
.pk-icon-plus::after   { content: "+"; font-size: 1rem; font-weight: 600; }
.pk-icon-folder::after { content: "P"; font-weight: 700; color: var(--primary, #2563eb); }

.pk-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.pk-item-label {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pk-item-hint {
    font-size: 0.75rem;
    color: var(--muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #94a3b8);
    flex-shrink: 0;
}

.pk-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--muted, #94a3b8);
}

.pk-hint {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    color: var(--muted, #94a3b8);
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    gap: 1rem;
}
