.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 120;
  display: flex;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(1px);
}

.cmd-palette {
  width: 620px;
  max-width: 96vw;
  height: fit-content;
  background: var(--panel);
  border: 1px solid var(--matrix);
  box-shadow: var(--matrix-glow-lg);
  display: flex;
  flex-direction: column;
  animation: cmd-in 0.18s var(--ease);
}

@keyframes cmd-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: none;             opacity: 1; }
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.cmd-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--matrix);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  letter-spacing: 1px;
  padding: 0;
}

.cmd-input-wrap input:focus { box-shadow: none; }

.cmd-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cmd-list::-webkit-scrollbar {
  display: none;
}

.cmd-group-label {
  padding: 8px 16px 4px;
  font-size: 0.6rem;
  opacity: 0.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.78rem;
  border-left: 3px solid transparent;
}

.cmd-item-icon { opacity: 0.6; flex-shrink: 0; }

.cmd-item.active {
  background: var(--matrix-tint-10);
  border-left-color: var(--matrix);
  padding-left: 13px;
}

.cmd-item.active .cmd-item-icon { opacity: 1; }

.cmd-kbd {
  margin-left: auto;
  font-size: 0.62rem;
  opacity: 0.5;
  border: 1px solid var(--border);
  padding: 1px 5px;
  letter-spacing: 1px;
}

.cmd-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.5;
}

.cmd-hint {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.6rem;
  opacity: 0.4;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
