/* ============================================================================
 * FORM ENGINE — Command Palette
 * ============================================================================ */

.fe-cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 15, 30, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.fe-cmdk-modal {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.fe-cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f5;
}

.fe-cmdk-input-row svg {
  width: 18px;
  height: 18px;
  color: #7c3aed;
  flex-shrink: 0;
}

.fe-cmdk-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: transparent;
  color: #1f2937;
}

.fe-cmdk-input::placeholder { color: #9ca3af; }

.fe-cmdk-hint {
  font-size: 11px;
  color: #9ca3af;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}

.fe-cmdk-results {
  overflow-y: auto;
  padding: 6px;
  flex: 1;
}

.fe-cmdk-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 10px 12px 4px;
}

.fe-cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.fe-cmdk-item:hover,
.fe-cmdk-item.is-active {
  background: linear-gradient(90deg, #f5f3ff, #faf5ff);
}

.fe-cmdk-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6d28d9;
}

.fe-cmdk-item-icon svg { width: 16px; height: 16px; }

.fe-cmdk-item-body { flex: 1; min-width: 0; }

.fe-cmdk-item-title {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-cmdk-item-sub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-cmdk-item-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  background: #ede9fe;
  color: #6d28d9;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.fe-cmdk-empty {
  padding: 40px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.fe-cmdk-footer {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid #eef0f5;
  font-size: 11px;
  color: #9ca3af;
  background: #fafafb;
}

.fe-cmdk-footer kbd {
  padding: 1px 5px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  color: #4b5563;
}
