/* ── Cmd+K Search Palette ── */
#cmdk-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
#cmdk-overlay.open {
  opacity: 1;
  visibility: visible;
}
#cmdk-modal {
  width: 560px;
  max-height: 420px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.96) translateY(-8px);
  transition: transform .15s ease;
}
#cmdk-overlay.open #cmdk-modal {
  transform: scale(1) translateY(0);
}

/* ── Input row ── */
#cmdk-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #30363d;
}
#cmdk-input-wrap svg {
  flex-shrink: 0;
  color: #484f58;
}
#cmdk-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #c9d1d9;
  padding: 14px 12px;
  font-family: inherit;
}
#cmdk-input::placeholder { color: #484f58; }
#cmdk-kbd {
  font-size: 11px;
  color: #484f58;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}

/* ── Results list ── */
#cmdk-results {
  overflow-y: auto;
  padding: 6px 8px;
  flex: 1;
}
#cmdk-results::-webkit-scrollbar { width: 6px; }
#cmdk-results::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

.cmdk-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .1s ease;
}
.cmdk-item:hover,
.cmdk-item.active {
  background: #1c2128;
}
.cmdk-item.active {
  border-left-color: #a78bfa;
}
.cmdk-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  line-height: 1.4;
}
.cmdk-item.active .cmdk-item-name { color: #a78bfa; }
.cmdk-item-desc {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
  margin-top: 1px;
}

/* ── Empty state ── */
#cmdk-empty {
  text-align: center;
  color: #484f58;
  padding: 32px 16px;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  #cmdk-modal { width: calc(100vw - 32px); }
  #cmdk-overlay { padding-top: 60px; }
}
